blob: f812f2c1b222a2bd85fcb789e6e1899dd8c0d6f5 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080020 */
Kiet Lam842dad02014-02-18 18:44:02 -080021
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
Jeff Johnson295189b2012-06-20 16:38:30 -070028/*===========================================================================
29
30 b a p A p i D e b u g . C
31
32 OVERVIEW:
33
34 This software unit holds the implementation of the WLAN BAP modules
35 Debug functions.
36
37 The functions externalized by this module are to be called ONLY by other
38 WLAN modules (HDD) that properly register with the BAP Layer initially.
39
40 DEPENDENCIES:
41
42 Are listed for each API below.
43
44
Jeff Johnson295189b2012-06-20 16:38:30 -070045===========================================================================*/
46
47/*===========================================================================
48
49 EDIT HISTORY FOR FILE
50
51
52 This section contains comments describing changes made to the module.
53 Notice that changes are listed in reverse chronological order.
54
55
56 $Header: /cygdrive/e/Builds/M7201JSDCAAPAD52240B/WM/platform/msm7200/Src/Drivers/SD/ClientDrivers/WLAN/QCT/CORE/BAP/src/bapApiDebug.c,v 1.2 2008/11/10 22:37:58 jzmuda Exp jzmuda $$DateTime$$Author: jzmuda $
57
58
59 when who what, where, why
60---------- --- --------------------------------------------------------
612008-09-15 jez Created module
62
63===========================================================================*/
64
65/*----------------------------------------------------------------------------
66 * Include Files
67 * -------------------------------------------------------------------------*/
68//#include "wlan_qct_tl.h"
69#include "vos_trace.h"
70
71/* BT-AMP PAL API header file */
72#include "bapApi.h"
73#include "bapInternal.h"
74
75//
76//#define BAP_DEBUG
77/*----------------------------------------------------------------------------
78 * Preprocessor Definitions and Constants
79 * -------------------------------------------------------------------------*/
80
81
82/*----------------------------------------------------------------------------
83 * Type Declarations
84 * -------------------------------------------------------------------------*/
85
86/*----------------------------------------------------------------------------
87 * Global Data Definitions
88 * -------------------------------------------------------------------------*/
89
90/*----------------------------------------------------------------------------
91 * Static Variable Definitions
92 * -------------------------------------------------------------------------*/
93
94/*----------------------------------------------------------------------------
95 * Static Function Declarations and Definitions
96 * -------------------------------------------------------------------------*/
97
98/*----------------------------------------------------------------------------
99 * Externalized Function Definitions
100* -------------------------------------------------------------------------*/
101
102/*----------------------------------------------------------------------------
103 * Function Declarations and Documentation
104 * -------------------------------------------------------------------------*/
105
106/*
107Debug Commands
108*/
109
110/*----------------------------------------------------------------------------
111
112 FUNCTION WLAN_BAPReadLoopbackMode()
113
114 DESCRIPTION
115 Implements the actual HCI Read Loopback Mode command. There
116 is no need for a callback because when this call returns the action
117 has been completed.
118
119 DEPENDENCIES
120 NA.
121
122 PARAMETERS
123
124 IN
125 btampHandle: pointer to the BAP handle. Returned from WLANBAP_GetNewHndl.
126 pBapHCIReadLoopbackMode: pointer to the "HCI Read Loopback Mode".
127
128 IN/OUT
129 pBapHCIEvent: Return event value for the command complete event.
130 (The caller of this routine is responsible for sending
131 the Command Complete event up the HCI interface.)
132
133 RETURN VALUE
134 The result code associated with performing the operation
135
136 VOS_STATUS_E_FAULT: pointer to pBapHCIReadLoopbackMode or
137 pBapHCILoopbackMode is NULL.
138 VOS_STATUS_SUCCESS: Success
139
140 SIDE EFFECTS
141
142----------------------------------------------------------------------------*/
143VOS_STATUS
144WLAN_BAPReadLoopbackMode
145(
146 ptBtampHandle btampHandle,
147 tBtampTLVHCI_Read_Loopback_Mode_Cmd *pBapHCIReadLoopbackMode,
148 tpBtampHCI_Event pBapHCIEvent /* This now encodes ALL event types */
149 /* Including Command Complete and Command Status*/
150)
151{
152
153 return VOS_STATUS_SUCCESS;
154} /* WLAN_BAPReadLoopbackMode */
155
156/*----------------------------------------------------------------------------
157
158 FUNCTION WLAN_BAPWriteLoopbackMode()
159
160 DESCRIPTION
161 Implements the actual HCI Write Loopback Mode command. There
162 is no need for a callback because when this call returns the action
163 has been completed.
164
165 DEPENDENCIES
166 NA.
167
168 PARAMETERS
169
170 IN
171 btampHandle: pointer to the BAP handle. Returned from WLANBAP_GetNewHndl.
172 pBapHCIWriteLoopbackMode: pointer to the "HCI Write Loopback Mode" Structure.
173
174 IN/OUT
175 pBapHCIEvent: Return event value for the command complete event.
176 (The caller of this routine is responsible for sending
177 the Command Complete event up the HCI interface.)
178
179 RETURN VALUE
180 The result code associated with performing the operation
181
182 VOS_STATUS_E_FAULT: pointer to pBapHCIWriteLoopbackMode is NULL
183 VOS_STATUS_SUCCESS: Success
184
185 SIDE EFFECTS
186
187----------------------------------------------------------------------------*/
188VOS_STATUS
189WLAN_BAPWriteLoopbackMode
190(
191 ptBtampHandle btampHandle,
192 tBtampTLVHCI_Write_Loopback_Mode_Cmd *pBapHCIWriteLoopbackMode,
193 tpBtampHCI_Event pBapHCIEvent /* This now encodes ALL event types */
194 /* Including Command Complete and Command Status*/
195)
196{
197
198 return VOS_STATUS_SUCCESS;
199} /* WLAN_BAPWriteLoopbackMode */
200
201
202
203
204