blob: 36afdc73b406bee2b2e5c00ab8e9facfe66d93c8 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Padma, Santhosh Kumar5d2f76b2016-01-11 18:42:20 +05302 * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
Kiet Lam1ed83fc2014-02-19 01:15:45 -08003 *
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.
20 */
21
22/*
Kiet Lama7f454d2014-07-24 12:04:06 -070023 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
Kiet Lam1ed83fc2014-02-19 01:15:45 -080026 */
27
Jeff Johnson295189b2012-06-20 16:38:30 -070028
Kiet Lama7f454d2014-07-24 12:04:06 -070029
30
Jeff Johnson295189b2012-06-20 16:38:30 -070031#ifndef WLAN_QCT_WDI_H
32#define WLAN_QCT_WDI_H
33
34/*===========================================================================
35
36 W L A N D E V I C E A B S T R A C T I O N L A Y E R
37 E X T E R N A L A P I
38
39
40DESCRIPTION
41 This file contains the external API exposed by the wlan transport layer
42 module.
43
44
Jeff Johnson295189b2012-06-20 16:38:30 -070045===========================================================================*/
46
47
48/*===========================================================================
49
50 EDIT HISTORY FOR FILE
51
52
53 This section contains comments describing changes made to the module.
54 Notice that changes are listed in reverse chronological order.
55
56
57 $Header:$ $DateTime: $ $Author: $
58
59
60when who what, where, why
61-------- --- ----------------------------------------------------------
6210/05/11 hap Adding support for Keep Alive
6308/04/10 lti Created module.
64
65===========================================================================*/
66
67
68
69/*===========================================================================
70
71 INCLUDE FILES FOR MODULE
72
73===========================================================================*/
74
75/*----------------------------------------------------------------------------
76 * Include Files
77 * -------------------------------------------------------------------------*/
78#include "wlan_qct_pal_api.h"
79#include "wlan_qct_pal_type.h"
80#include "wlan_qct_pack_align.h"
81#include "wlan_qct_wdi_cfg.h"
82
83/*----------------------------------------------------------------------------
84 * Preprocessor Definitions and Constants
85 * -------------------------------------------------------------------------*/
86#ifdef __cplusplus
87 extern "C" {
88#endif
89
90/* MAC ADDRESS LENGTH - per spec*/
91#define WDI_MAC_ADDR_LEN 6
92
93/* Max number of 11b rates -> 1,2,5.5,11 */
94#define WDI_NUM_11B_RATES 4
95
96/* Max number of 11g rates -> 6,9,12,18,24,36,48,54*/
97#define WDI_NUM_11A_RATES 8
98
99/* Max number of legacy rates -> 72, 96, 108*/
100#define WDI_NUM_POLARIS_RATES 3
101
102/* Max supported MCS set*/
103#define WDI_MAC_MAX_SUPPORTED_MCS_SET 16
104
105/*Max number of Access Categories for QoS - per spec */
106#define WDI_MAX_NO_AC 4
107
108/*Max. size for reserving the Beacon Template */
109#define WDI_BEACON_TEMPLATE_SIZE 0x180
110
111#define WDI_WOWL_BCAST_PATTERN_MAX_SIZE 128
112
113#define WDI_WOWL_BCAST_MAX_NUM_PATTERNS 16
114
115#define WDI_MAX_SSID_SIZE 32
116
117/* The shared memory between WDI and HAL is 4K so maximum data can be transferred
118from WDI to HAL is 4K.This 4K should also include the Message header so sending 4K
119of NV fragment is nt possbile.The next multiple of 1Kb is 3K */
120
121#define FRAGMENT_SIZE 3072
122
123/* Macro to find the total number fragments of the NV Image*/
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800124#define TOTALFRAGMENTS(x) (((x % FRAGMENT_SIZE) == 0) ? (x / FRAGMENT_SIZE):((x / FRAGMENT_SIZE) + 1))
Jeff Johnson295189b2012-06-20 16:38:30 -0700125
126/* Beacon Filter Length*/
Abhishek Singh5fef4042014-11-25 18:33:00 +0530127#define WDI_BEACON_FILTER_LEN 90
Jeff Johnson295189b2012-06-20 16:38:30 -0700128
129/* Coex Indication data size - should match WLAN_COEX_IND_DATA_SIZE */
130#define WDI_COEX_IND_DATA_SIZE (4)
131
132#define WDI_CIPHER_SEQ_CTR_SIZE 6
133
134#define WDI_NUM_BSSID 2
135
136/*Version string max length (including NUL) */
137#define WDI_VERSION_LENGTH 64
138
139
140/*WDI Response timeout - how long will WDI wait for a response from the device
141 - it should be large enough to allow any other failure mechanism to kick
142 in before we get to a timeout (ms units)*/
143#define WDI_RESPONSE_TIMEOUT 10000
144
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -0700145/* SSR timeout - If Riva initiated SSR doesn't happen during this time, then the
146 * Apps initiated SSR will be performed */
147#define WDI_SSR_TIMEOUT 5000
148
Jeff Johnson295189b2012-06-20 16:38:30 -0700149#define WDI_SET_POWER_STATE_TIMEOUT 10000 /* in msec a very high upper limit */
150
Yue Mab9c86f42013-08-14 15:59:08 -0700151/* Periodic Tx pattern offload feature */
152#define PERIODIC_TX_PTRN_MAX_SIZE 1536
153#define MAXNUM_PERIODIC_TX_PTRNS 6
Srinivas Dasari4dae48f2014-11-26 21:14:16 +0530154#define WDI_DISA_MAX_PAYLOAD_SIZE 1600
Siddharth Bhald1be97f2015-05-27 22:39:59 +0530155#define MAX_NUM_OF_BUFFER 3
Karthick Sa6616c32015-07-22 14:49:02 +0530156#define VALID_FW_LOG_TYPES 2
Karthick Sed59a282015-08-10 14:52:16 +0530157#define MAX_LOG_BUFFER_LENGTH 128 * 1024
Yue Mab9c86f42013-08-14 15:59:08 -0700158
Jeff Johnson295189b2012-06-20 16:38:30 -0700159/*============================================================================
160 * GENERIC STRUCTURES
161
162============================================================================*/
163
164/*---------------------------------------------------------------------------
165 WDI Version Information
166---------------------------------------------------------------------------*/
167typedef struct
168{
169 wpt_uint8 revision;
170 wpt_uint8 version;
171 wpt_uint8 minor;
172 wpt_uint8 major;
173} WDI_WlanVersionType;
174
175/*---------------------------------------------------------------------------
176 WDI Device Capability
177---------------------------------------------------------------------------*/
178typedef struct
179{
180 /*If this flag is true it means that the device can support 802.3/ETH2 to
181 802.11 translation*/
182 wpt_boolean bFrameXtlSupported;
183
184 /*Maximum number of BSSes supported by the Device */
185 wpt_uint8 ucMaxBSSSupported;
186
187 /*Maximum number of stations supported by the Device */
188 wpt_uint8 ucMaxSTASupported;
189}WDI_DeviceCapabilityType;
190
191/*---------------------------------------------------------------------------
192 WDI Channel Offset
193---------------------------------------------------------------------------*/
194typedef enum
195{
196 WDI_SECONDARY_CHANNEL_OFFSET_NONE = 0,
197 WDI_SECONDARY_CHANNEL_OFFSET_UP = 1,
Jeff Johnsone7245742012-09-05 17:12:55 -0700198 WDI_SECONDARY_CHANNEL_OFFSET_DOWN = 3,
199#ifdef WLAN_FEATURE_11AC
200 WDI_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4, //20/40MHZ offset LOW 40/80MHZ offset CENTERED
201 WDI_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5, //20/40MHZ offset CENTERED 40/80MHZ offset CENTERED
202 WDI_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6, //20/40MHZ offset HIGH 40/80MHZ offset CENTERED
203 WDI_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7,//20/40MHZ offset LOW 40/80MHZ offset LOW
204 WDI_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8, //20/40MHZ offset HIGH 40/80MHZ offset LOW
205 WDI_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9, //20/40MHZ offset LOW 40/80MHZ offset HIGH
206 WDI_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10,//20/40MHZ offset-HIGH 40/80MHZ offset HIGH
207#endif
208 WDI_SECONDARY_CHANNEL_OFFSET_MAX
Jeff Johnson295189b2012-06-20 16:38:30 -0700209}WDI_HTSecondaryChannelOffset;
210
211/*---------------------------------------------------------------------------
212 WDI_MacFrameCtl
213 Frame control field format (2 bytes)
214---------------------------------------------------------------------------*/
215typedef struct
216{
217 wpt_uint8 protVer :2;
218 wpt_uint8 type :2;
219 wpt_uint8 subType :4;
220
221 wpt_uint8 toDS :1;
222 wpt_uint8 fromDS :1;
223 wpt_uint8 moreFrag :1;
224 wpt_uint8 retry :1;
225 wpt_uint8 powerMgmt :1;
226 wpt_uint8 moreData :1;
227 wpt_uint8 wep :1;
228 wpt_uint8 order :1;
229
230} WDI_MacFrameCtl;
231
232/*---------------------------------------------------------------------------
233 WDI Sequence control field
234---------------------------------------------------------------------------*/
235typedef struct
236{
237 wpt_uint8 fragNum : 4;
238 wpt_uint8 seqNumLo : 4;
239 wpt_uint8 seqNumHi : 8;
240} WDI_MacSeqCtl;
241
242/*---------------------------------------------------------------------------
243 Management header format
244---------------------------------------------------------------------------*/
245typedef struct
246{
247 WDI_MacFrameCtl fc;
248 wpt_uint8 durationLo;
249 wpt_uint8 durationHi;
250 wpt_uint8 da[WDI_MAC_ADDR_LEN];
251 wpt_uint8 sa[WDI_MAC_ADDR_LEN];
252 wpt_macAddr bssId;
253 WDI_MacSeqCtl seqControl;
254} WDI_MacMgmtHdr;
255
256/*---------------------------------------------------------------------------
257 NV Blob management sturcture
258 ---------------------------------------------------------------------------*/
259
260typedef struct
261{
262 /* NV image fragments count */
263 wpt_uint16 usTotalFragment;
264
265 /* NV fragment size */
266 wpt_uint16 usFragmentSize;
267
268 /* current fragment to be sent */
269 wpt_uint16 usCurrentFragment;
270
271} WDI_NvBlobInfoParams;
272
273
274/*---------------------------------------------------------------------------
275 Data path enums memory pool resource
276 ---------------------------------------------------------------------------*/
277
278typedef enum
279{
280 /* managment resource pool ID */
281 WDI_MGMT_POOL_ID = 0,
282 /* Data resource pool ID */
283 WDI_DATA_POOL_ID = 1
284}WDI_ResPoolType;
285
286/*============================================================================
287 * GENERIC STRUCTURES - END
288 ============================================================================*/
289
290/*----------------------------------------------------------------------------
291 * Type Declarations
292 * -------------------------------------------------------------------------*/
293/*---------------------------------------------------------------------------
294 WDI Status
295---------------------------------------------------------------------------*/
296typedef enum
297{
298 WDI_STATUS_SUCCESS, /* Operation has completed successfully*/
299 WDI_STATUS_SUCCESS_SYNC, /* Operation has completed successfully in a
300 synchronous way - no rsp will be generated*/
301 WDI_STATUS_PENDING, /* Operation result is pending and will be
302 provided asynchronously through the Req Status
303 Callback */
304 WDI_STATUS_E_FAILURE, /* Operation has ended in a generic failure*/
305 WDI_STATUS_RES_FAILURE, /* Operation has ended in a resource failure*/
306 WDI_STATUS_MEM_FAILURE, /* Operation has ended in a memory allocation
307 failure*/
308 WDI_STATUS_E_NOT_ALLOWED, /* Operation is not allowed in the current state
309 of the driver*/
310 WDI_STATUS_E_NOT_IMPLEMENT, /* Operation is not yet implemented*/
311
312 WDI_STATUS_DEV_INTERNAL_FAILURE, /*An internal error has occurred in the device*/
313 WDI_STATUS_MAX
314
315}WDI_Status;
316
317
318/*---------------------------------------------------------------------------
319 WDI_ReqStatusCb
320
321 DESCRIPTION
322
323 This callback is invoked by DAL to deliver to UMAC the result of posting
324 a previous request for which the return status was PENDING.
325
326 PARAMETERS
327
328 IN
329 wdiStatus: response status received from the Control Transport
330 pUserData: user data
331
332
333
334 RETURN VALUE
335 The result code associated with performing the operation
336---------------------------------------------------------------------------*/
337typedef void (*WDI_ReqStatusCb)(WDI_Status wdiStatus,
338 void* pUserData);
339
340/*---------------------------------------------------------------------------
341 WDI_LowLevelIndEnumType
342 Types of indication that can be posted to UMAC by DAL
343---------------------------------------------------------------------------*/
344typedef enum
345{
346 /*When RSSI monitoring is enabled of the Lower MAC and a threshold has been
347 passed. */
348 WDI_RSSI_NOTIFICATION_IND,
349
350 /*Link loss in the low MAC */
351 WDI_MISSED_BEACON_IND,
352
353 /*when hardware has signaled an unknown addr2 frames. The indication will
354 contain info from frames to be passed to the UMAC, this may use this info to
355 deauth the STA*/
356 WDI_UNKNOWN_ADDR2_FRAME_RX_IND,
357
358 /*MIC Failure detected by HW*/
359 WDI_MIC_FAILURE_IND,
360
361 /*Fatal Error Ind*/
362 WDI_FATAL_ERROR_IND,
363
364 /*Delete Station Ind*/
365 WDI_DEL_STA_IND,
366
367 /*Indication from Coex*/
368 WDI_COEX_IND,
369
370 /* Indication for Tx Complete */
371 WDI_TX_COMPLETE_IND,
372
373 /*.P2P_NOA_Attr_Indication */
374 WDI_P2P_NOA_ATTR_IND,
375
376 /* Preferred Network Found Indication */
377 WDI_PREF_NETWORK_FOUND_IND,
378
379 WDI_WAKE_REASON_IND,
380
381 /* Tx PER Tracking Indication */
382 WDI_TX_PER_HIT_IND,
Viral Modid86bde22012-12-10 13:09:21 -0800383
Viral Modid86bde22012-12-10 13:09:21 -0800384 /* P2P_NOA_Start_Indication */
385 WDI_P2P_NOA_START_IND,
Viral Modid86bde22012-12-10 13:09:21 -0800386
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530387 /* TDLS_Indication */
388 WDI_TDLS_IND,
389
Leo Changd9df8aa2013-09-26 13:32:26 -0700390 /* LPHB Indication from FW to umac */
391 WDI_LPHB_IND,
Leo Chang9056f462013-08-01 19:21:11 -0700392
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700393 /* IBSS Peer Inactivity Indication */
394 WDI_IBSS_PEER_INACTIVITY_IND,
395
Yue Mab9c86f42013-08-14 15:59:08 -0700396 /* Periodic Tx Pattern FW Indication */
397 WDI_PERIODIC_TX_PTRN_FW_IND,
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530398#ifdef WLAN_FEATURE_RMC
399 /* RMC_Ruler_Pick_New Indication */
400 WDI_RMC_RULER_PICK_NEW,
401#endif
Yue Mab9c86f42013-08-14 15:59:08 -0700402
Rajeev79dbe4c2013-10-05 11:03:42 +0530403#ifdef FEATURE_WLAN_BATCH_SCAN
404 /*Batch scan result indication from FW*/
405 WDI_BATCH_SCAN_RESULT_IND,
406#endif
407
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530408#ifdef WLAN_FEATURE_RMC
409 WDI_TX_FAIL_IND,
410#endif
411
Leo Chang0b0e45a2013-12-15 15:18:55 -0800412#ifdef FEATURE_WLAN_CH_AVOID
413 WDI_CH_AVOID_IND,
414#endif /* FEATURE_WLAN_CH_AVOID */
Sunil Duttbd736ed2014-05-26 21:19:41 +0530415#ifdef WLAN_FEATURE_LINK_LAYER_STATS
416 WDI_LL_STATS_RESULTS_IND,
417#endif
Dino Mycle41bdc942014-06-10 11:30:24 +0530418#ifdef WLAN_FEATURE_EXTSCAN
419 WDI_EXTSCAN_PROGRESS_IND,
420 WDI_EXTSCAN_SCAN_AVAILABLE_IND,
421 WDI_EXTSCAN_SCAN_RESULT_IND,
422 WDI_EXTSCAN_GET_CAPABILITIES_IND,
423 WDI_EXTSCAN_BSSID_HOTLIST_RESULT_IND,
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +0530424 WDI_EXTSCAN_SSID_HOTLIST_RESULT_IND,
Dino Mycle41bdc942014-06-10 11:30:24 +0530425#endif
Abhishek Singh66c16762014-08-14 19:13:19 +0530426 /*Delete BA Ind*/
427 WDI_DEL_BA_IND,
Srinivas Dasari32a79262015-02-19 13:04:49 +0530428 WDI_NAN_EVENT_IND,
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +0530429 WDI_LOST_LINK_PARAMS_IND,
Gupta, Kapil7c34b322015-09-30 13:12:35 +0530430 WDI_RSSI_BREACHED_IND,
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +0530431#ifdef FEATURE_OEM_DATA_SUPPORT
432 WDI_START_OEM_DATA_RSP_IND_NEW,
433#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700434 WDI_MAX_IND
435}WDI_LowLevelIndEnumType;
436
437
438/*---------------------------------------------------------------------------
439 WDI_LowRSSIThIndType
440---------------------------------------------------------------------------*/
441typedef struct
442{
443 /*Positive crossing of Rssi Thresh1*/
444 wpt_uint32 bRssiThres1PosCross : 1;
445 /*Negative crossing of Rssi Thresh1*/
446 wpt_uint32 bRssiThres1NegCross : 1;
447 /*Positive crossing of Rssi Thresh2*/
448 wpt_uint32 bRssiThres2PosCross : 1;
449 /*Negative crossing of Rssi Thresh2*/
450 wpt_uint32 bRssiThres2NegCross : 1;
451 /*Positive crossing of Rssi Thresh3*/
452 wpt_uint32 bRssiThres3PosCross : 1;
453 /*Negative crossing of Rssi Thresh3*/
454 wpt_uint32 bRssiThres3NegCross : 1;
455
Srinivasdaaec712012-12-12 15:59:44 -0800456 wpt_uint32 avgRssi : 8;
457 wpt_uint32 bReserved : 18;
Jeff Johnson295189b2012-06-20 16:38:30 -0700458
459}WDI_LowRSSIThIndType;
460
461
462/*---------------------------------------------------------------------------
463 WDI_UnkAddr2FrmRxIndType
464---------------------------------------------------------------------------*/
465typedef struct
466{
467 /*Rx Bd data of the unknown received addr2 frame.*/
468 void* bufRxBd;
469
470 /*Buffer Length*/
471 wpt_uint16 usBufLen;
472}WDI_UnkAddr2FrmRxIndType;
473
474/*---------------------------------------------------------------------------
475 WDI_DeleteSTAIndType
476---------------------------------------------------------------------------*/
477typedef struct
478{
479 /*ASSOC ID, as assigned by UMAC*/
480 wpt_uint16 usAssocId;
481
482 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
483 wpt_uint8 ucSTAIdx;
484
485 /*BSSID of STA*/
486 wpt_macAddr macBSSID;
487
488 /*MAC ADDR of STA*/
489 wpt_macAddr macADDR2;
490
491 /* To unify the keepalive / unknown A2 / tim-based disa*/
492 wpt_uint16 wptReasonCode;
493
494}WDI_DeleteSTAIndType;
495
496/*---------------------------------------------------------------------------
497 WDI_MicFailureIndType
498---------------------------------------------------------------------------*/
499typedef struct
500{
501 /*current BSSID*/
502 wpt_macAddr bssId;
503
504 /*Source mac address*/
505 wpt_macAddr macSrcAddr;
506
507 /*Transmitter mac address*/
508 wpt_macAddr macTaAddr;
509
510 /*Destination mac address*/
511 wpt_macAddr macDstAddr;
512
513 /*Multicast flag*/
514 wpt_uint8 ucMulticast;
515
516 /*First byte of IV*/
517 wpt_uint8 ucIV1;
518
519 /*Key Id*/
520 wpt_uint8 keyId;
521
522 /*Sequence Number*/
523 wpt_uint8 TSC[WDI_CIPHER_SEQ_CTR_SIZE];
524
525 /*receive address */
526 wpt_macAddr macRxAddr;
527}WDI_MicFailureIndType;
528
529/*---------------------------------------------------------------------------
530 WDI_CoexIndType
531---------------------------------------------------------------------------*/
532typedef struct
533{
534 wpt_uint32 coexIndType;
535 wpt_uint32 coexIndData[WDI_COEX_IND_DATA_SIZE];
536} WDI_CoexIndType;
537
538/*---------------------------------------------------------------------------
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +0530539 WDI_DHCPInd
540---------------------------------------------------------------------------*/
541
542typedef struct
543{
544 wpt_uint8 device_mode;
545 wpt_uint8 macAddr[WDI_MAC_ADDR_LEN];
546}WDI_DHCPInd;
547
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530548#ifdef WLAN_FEATURE_RMC
549typedef struct
550{
551 /*Request status callback offered by UMAC - it is called if the current
552 req has returned PENDING as status; it delivers the status of sending
553 the message over the BUS */
554 WDI_ReqStatusCb wdiReqStatusCB;
555
556 /*The user data passed in by UMAC, it will be sent back when the above
557 function pointer will be called */
558 void* pUserData;
559
560 wpt_uint8 tx_fail_count;
561}WDI_TXFailMonitorInd;
562#endif /* WLAN_FEATURE_RMC */
563
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +0530564/*---------------------------------------------------------------------------
565
Jeff Johnson295189b2012-06-20 16:38:30 -0700566 WDI_MacSSid
567---------------------------------------------------------------------------*/
568typedef struct
569{
570 wpt_uint8 ucLength;
571 wpt_uint8 sSSID[WDI_MAX_SSID_SIZE];
572} WDI_MacSSid;
573
574#ifdef FEATURE_WLAN_SCAN_PNO
575/*---------------------------------------------------------------------------
576 WDI_PrefNetworkFoundInd
577---------------------------------------------------------------------------*/
578typedef struct
579{
580 /* Network that was found with the highest RSSI*/
Srikant Kuppa066904f2013-05-07 13:56:02 -0700581 WDI_MacSSid ssId;
Jeff Johnson295189b2012-06-20 16:38:30 -0700582 /* Indicates the RSSI */
Srikant Kuppa066904f2013-05-07 13:56:02 -0700583 wpt_uint8 rssi;
584 wpt_uint16 frameLength;
585 wpt_uint8 *pData;
Jeff Johnson295189b2012-06-20 16:38:30 -0700586} WDI_PrefNetworkFoundInd;
587#endif // FEATURE_WLAN_SCAN_PNO
588
Jeff Johnson295189b2012-06-20 16:38:30 -0700589/*---------------------------------------------------------------------------
590 *WDI_P2pNoaAttrIndType
591 *-------------------------------------------------------------------------*/
Jeff Johnson295189b2012-06-20 16:38:30 -0700592typedef struct
593{
594 wpt_uint8 ucIndex ;
595 wpt_uint8 ucOppPsFlag ;
596 wpt_uint16 usCtWin ;
597
598 wpt_uint16 usNoa1IntervalCnt;
599 wpt_uint16 usRsvd1 ;
600 wpt_uint32 uslNoa1Duration;
601 wpt_uint32 uslNoa1Interval;
602 wpt_uint32 uslNoa1StartTime;
603
604 wpt_uint16 usNoa2IntervalCnt;
605 wpt_uint16 usRsvd2;
606 wpt_uint32 uslNoa2Duration;
607 wpt_uint32 uslNoa2Interval;
608 wpt_uint32 uslNoa2StartTime;
609
610 wpt_uint32 status;
611}WDI_P2pNoaAttrIndType;
Viral Modid86bde22012-12-10 13:09:21 -0800612
613/*---------------------------------------------------------------------------
614 *WDI_P2pNoaStartIndType
615 *-------------------------------------------------------------------------*/
616typedef struct
617{
618 wpt_uint32 status;
619 wpt_uint32 bssIdx;
620}WDI_P2pNoaStartIndType;
621
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530622/*---------------------------------------------------------------------------
623 *WDI_TdlsIndType
624 *-------------------------------------------------------------------------*/
625typedef struct
626{
627 wpt_uint16 status;
628 wpt_uint16 assocId;
629 wpt_uint16 staIdx;
630 wpt_uint16 reasonCode;
631}WDI_TdlsIndType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700632
633#ifdef WLAN_WAKEUP_EVENTS
634/*---------------------------------------------------------------------------
635 WDI_WakeReasonIndType
636---------------------------------------------------------------------------*/
637typedef struct
638{
639 wpt_uint32 ulReason; /* see tWakeReasonType */
640 wpt_uint32 ulReasonArg; /* argument specific to the reason type */
641 wpt_uint32 ulStoredDataLen; /* length of optional data stored in this message, in case
642 HAL truncates the data (i.e. data packets) this length
643 will be less than the actual length */
644 wpt_uint32 ulActualDataLen; /* actual length of data */
645 wpt_uint8 aDataStart[1]; /* variable length start of data (length == storedDataLen)
646 see specific wake type */
647} WDI_WakeReasonIndType;
648#endif // WLAN_WAKEUP_EVENTS
649
Srinivas Dasari32a79262015-02-19 13:04:49 +0530650typedef struct
651{
652 wpt_uint16 event_data_len;
653 wpt_uint8* event_data;
654} WDI_NanEventType;
655
656
Jeff Johnson295189b2012-06-20 16:38:30 -0700657/*---------------------------------------------------------------------------
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800658 WDI_MissedBeaconIndType
659-----------------------------------------------------------------------------*/
660typedef struct
661{
662 wpt_uint8 bssIdx; /*bssidx on which beacon is missed*/
663} WDI_MissedBeaconIndType;
664
Leo Chang9056f462013-08-01 19:21:11 -0700665#ifdef FEATURE_WLAN_LPHB
666/*---------------------------------------------------------------------------
667 WDI_LPHBTimeoutIndData
668-----------------------------------------------------------------------------*/
669typedef struct
670{
671 wpt_uint8 bssIdx;
672 wpt_uint8 sessionIdx;
673 wpt_uint8 protocolType; /*TCP or UDP*/
674 wpt_uint8 eventReason;
675} WDI_LPHBTimeoutIndData;
676#endif /* FEATURE_WLAN_LPHB */
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800677
Yue Mab9c86f42013-08-14 15:59:08 -0700678/*-----------------------------------------------------------------------------
679WDI_PeriodicTxPtrnFwIndType
680-----------------------------------------------------------------------------*/
681typedef struct
682{
683 wpt_uint8 bssIdx;
684 wpt_uint32 selfStaIdx;
685 wpt_uint32 status;
686 wpt_uint32 patternIdBitmap;
687} WDI_PeriodicTxPtrnFwIndType;
688
Rajeev79dbe4c2013-10-05 11:03:42 +0530689#ifdef FEATURE_WLAN_BATCH_SCAN
690/*---------------------------------------------------------------------------
691 WDI_SetBatchScanReqType
692---------------------------------------------------------------------------*/
693typedef struct
694{
695 wpt_uint32 scanFrequency; /* how frequent to do scan default 30Sec*/
696 wpt_uint32 numberOfScansToBatch; /* number of scans to batch */
697 wpt_uint32 bestNetwork; /* best networks in terms of rssi */
698 wpt_uint8 rfBand; /* band to scan :
699 0 ->both Band, 1->2.4Ghz Only
700 and 2-> 5GHz Only */
701 wpt_uint32 rtt; /* set if required to do RTT it is not
702 supported in current version */
703}WDI_SetBatchScanReqType;
704
705/*---------------------------------------------------------------------------
706 WDI_SetBatchScanRspType
707---------------------------------------------------------------------------*/
708typedef struct
709{
710 /*max number of scans which FW can cache*/
711 wpt_uint32 nScansToBatch;
712}WDI_SetBatchScanRspType;
713
714/*---------------------------------------------------------------------------
715 WDI_TriggerBatchScanResultIndType
716---------------------------------------------------------------------------*/
717typedef struct
718{
719 wpt_uint32 param;
720}WDI_TriggerBatchScanResultIndType;
721
722/*---------------------------------------------------------------------------
723 WDI_StopBatchScanIndType
724---------------------------------------------------------------------------*/
725typedef struct
726{
727 /*max number of scans which FW can cache*/
728 wpt_uint32 param;
729}WDI_StopBatchScanIndType;
730
731
732/*---------------------------------------------------------------------------
733 * WDI_BatchScanResultIndType
734 *--------------------------------------------------------------------------*/
735typedef struct
736{
737 wpt_uint32 bssid[6]; /* BSSID */
738 wpt_uint32 ssid[32]; /* SSID */
739 wpt_uint32 ch; /* Channel */
740 wpt_uint32 rssi; /* RSSI or Level */
741 /* Timestamp when Network was found. Used to calculate age based on
742 timestamp in GET_RSP msg header */
743 wpt_uint32 timestamp;
744} tWDIBatchScanNetworkInfo, *tpWDIBatchScanNetworkInfo;
745
746typedef struct
747{
748 wpt_uint32 scanId; /*Scan List ID*/
749 /*No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg*/
750 wpt_uint32 numNetworksInScanList;
751 /*Variable data ptr: Number of AP in Scan List*/
752 wpt_uint32 scanList[1];
753} tWDIBatchScanList, *tpWDIBatchScanList;
754
755typedef struct
756{
757 wpt_uint32 timestamp;
758 wpt_uint32 numScanLists;
759 wpt_boolean isLastResult;
760 /* Variable Data ptr: Number of Scan Lists*/
761 wpt_uint32 scanResults[1];
762} tWDIBatchScanResultParam, *tpWDIBatchScanResultParam;
763
764#endif
765
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530766#ifdef WLAN_FEATURE_RMC
767typedef struct
768{
769 wpt_uint8 seqNo;
770 wpt_uint8 macAddr[WDI_MAC_ADDR_LEN];
771} WDI_TXFailIndType;
772#endif /* WLAN_FEATURE_RMC */
Rajeev79dbe4c2013-10-05 11:03:42 +0530773
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +0530774typedef struct
775{
776 wpt_uint8 bssIdx;
777 wpt_uint8 rssi;
778 wpt_uint8 selfMacAddr[WDI_MAC_ADDR_LEN];
779 wpt_uint32 linkFlCnt;
780 wpt_uint32 linkFlTx;
781 wpt_uint32 lastDataRate;
782 wpt_uint32 rsvd1;
783 wpt_uint32 rsvd2;
784
785}WDI_LostLinkParamsIndType;
786
Gupta, Kapil7c34b322015-09-30 13:12:35 +0530787typedef struct
788{
789 wpt_uint32 request_id;
790 wpt_uint8 bssId[WDI_MAC_ADDR_LEN];
791 wpt_int8 rssi;
792}WDI_RssiBreachedIndType;
793
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800794/*---------------------------------------------------------------------------
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700795 WDI_IbssPeerInactivityIndType
796-----------------------------------------------------------------------------*/
797typedef struct
798{
799 wpt_uint8 bssIdx;
800 wpt_uint8 staIdx;
801 wpt_macAddr staMacAddr;
802}WDI_IbssPeerInactivityIndType;
803
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530804#ifdef WLAN_FEATURE_RMC
805/*---------------------------------------------------------------------------
806 WDI_RmcRulerReqParams
807-----------------------------------------------------------------------------*/
808typedef struct
809{
810 wpt_uint8 cmd;
811
812 /* MAC address of MCAST Transmitter (source) */
813 wpt_macAddr mcastTransmitter;
814
815 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
816 wpt_macAddr mcastGroup;
817
818 /* List of candidates for cmd = WLAN_HAL_SUGGEST_RULER*/
819 wpt_macAddr blacklist[8]; /* HAL_NUM_MAX_RULERS */
820
821 /*
822 * Request status callback offered by UMAC - it is called if the current
823 * req has returned PENDING as status; it delivers the status of sending
824 * the message over the BUS
825 */
826 WDI_ReqStatusCb wdiReqStatusCB;
827
828} WDI_RmcRulerReqParams;
829
830/*---------------------------------------------------------------------------
831 WDI_RmcUpdateIndParams
832-----------------------------------------------------------------------------*/
833typedef struct
834{
835 wpt_uint8 indication; /* tRmcUpdateIndType */
836
837 wpt_uint8 role;
838
839 /* MAC address of MCAST Transmitter (source) */
840 wpt_macAddr mcastTransmitter;
841
842 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
843 wpt_macAddr mcastGroup;
844
845 wpt_macAddr mcastRuler;
846
847 wpt_macAddr ruler[16];
848
849 /*
850 * Request status callback offered by UMAC - it is called if the current
851 * req has returned PENDING as status; it delivers the status of sending
852 * the message over the BUS
853 */
854 WDI_ReqStatusCb wdiReqStatusCB;
855
856 /*
857 * The user data passed in by UMAC, it will be sent back when the above
858 * function pointer will be called
859 */
860 void *pUserData;
861
862} WDI_RmcUpdateIndParams;
863
864typedef enum
865{
866 eWDI_SUGGEST_RULER_CMD = 0,
867 eWDI_BECOME_RULER_CMD = 1,
868} eWDI_RulerRspCmdType;
869
870/*---------------------------------------------------------------------------
871 WDI_RmcRspParamsType
872-----------------------------------------------------------------------------*/
873typedef struct
874{
875 wpt_uint8 status; /* success or failure */
876
877 /* Command Type */
878 eWDI_RulerRspCmdType cmd;
879
880 /* MAC address of MCAST Transmitter (source) */
881 wpt_macAddr mcastTransmitter;
882
883 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
884 wpt_macAddr mcastGroup;
885
886 wpt_macAddr ruler[8];
887} WDI_RmcRspParamsType;
888
889/*---------------------------------------------------------------------------
890 WDI_RmcPickNewRuler
891-----------------------------------------------------------------------------*/
892typedef struct
893{
894 wpt_uint8 indication; /* pick_new */
895
896 wpt_uint8 role;
897
898 /* MAC address of MCAST Transmitter (source) */
899 wpt_macAddr mcastTransmitter;
900
901 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
902 wpt_macAddr mcastGroup;
903
904 wpt_macAddr mcastRuler;
905
906 wpt_macAddr ruler[16];
907} WDI_RmcPickNewRuler;
908#endif
909
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700910/*---------------------------------------------------------------------------
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700911 WDI_TxRateFlags
912-----------------------------------------------------------------------------*/
913typedef enum
914{
915 WDI_TX_RATE_LEGACY = 0x1, /* Legacy rates */
916 WDI_TX_RATE_HT20 = 0x2, /* HT20 rates */
917 WDI_TX_RATE_HT40 = 0x4, /* HT40 rates */
918 WDI_TX_RATE_SGI = 0x8, /* Rate with Short guard interval */
919 WDI_TX_RATE_LGI = 0x10, /* Rate with Long guard interval */
920 WDI_TX_RATE_VHT20 = 0x20, /* VHT 20 rates */
921 WDI_TX_RATE_VHT40 = 0x40, /* VHT 20 rates */
922 WDI_TX_RATE_VHT80 = 0x80, /* VHT 20 rates */
923 WDI_TX_RATE_VIRT = 0x100, /* Virtual Rate */
924} WDI_TxRateFlags;
925
926/*---------------------------------------------------------------------------
927 WDI_RateUpdateIndParams
928-----------------------------------------------------------------------------*/
929typedef struct
930{
931 /* 0 implies RA, positive value implies fixed rate, -1 implies ignore this
932 * param ucastDataRate can be used to control RA behavior of unicast data to
933 */
934 wpt_int32 ucastDataRate;
935
936 /* TX flag to differentiate between HT20, HT40 etc */
937 WDI_TxRateFlags ucastDataRateTxFlag;
938
939 /* BSSID - Optional. 00-00-00-00-00-00 implies apply to all BCAST STAs */
940 wpt_macAddr bssid;
941
942 /*
943 * 0 implies MCAST RA, positive value implies fixed rate,
944 * -1 implies ignore this param
945 */
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530946 wpt_int32 rmcDataRate; //unit Mbpsx10
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700947
948 /* TX flag to differentiate between HT20, HT40 etc */
Abhishek Singh7cd040e2016-01-07 10:51:04 +0530949 WDI_TxRateFlags rmcDataRateTxFlag;
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700950
951 /*
952 * MCAST(or BCAST) fixed data rate in 2.4 GHz, unit Mbpsx10,
953 * 0 implies ignore
954 */
955 wpt_uint32 mcastDataRate24GHz;
956
957 /* TX flag to differentiate between HT20, HT40 etc */
958 WDI_TxRateFlags mcastDataRate24GHzTxFlag;
959
960 /*
961 * MCAST(or BCAST) fixed data rate in 5 GHz,
962 * unit Mbpsx10, 0 implies ignore
963 */
964 wpt_uint32 mcastDataRate5GHz;
965
966 /* TX flag to differentiate between HT20, HT40 etc */
967 WDI_TxRateFlags mcastDataRate5GHzTxFlag;
968
969 /*
970 * Request status callback offered by UMAC - it is called if the current
971 * req has returned PENDING as status; it delivers the status of sending
972 * the message over the BUS
973 */
974 WDI_ReqStatusCb wdiReqStatusCB;
975
976 /*
977 * The user data passed in by UMAC, it will be sent back when the above
978 * function pointer will be called
979 */
980 void *pUserData;
981
982} WDI_RateUpdateIndParams;
983
Abhishek Singh85b74712014-10-08 11:38:19 +0530984typedef struct
985{
986 wpt_uint32 ubsp_enter_cnt;
987 wpt_uint32 ubsp_jump_ddr_cnt;
988}ubspFwStats;
989
990typedef struct
991{
992 wpt_uint32 type;
993 /*data*/
994 union{
995 ubspFwStats ubspStats;
996 }wdiFwStatsData;
997} WDI_FWStatsResults;
998
Leo Chang0b0e45a2013-12-15 15:18:55 -0800999#ifdef FEATURE_WLAN_CH_AVOID
Abhishek Singhe34eb552015-06-18 10:12:15 +05301000#define WDI_CH_AVOID_MAX_RANGE 15
Leo Chang0b0e45a2013-12-15 15:18:55 -08001001
1002typedef struct
1003{
1004 wpt_uint32 startFreq;
1005 wpt_uint32 endFreq;
1006} WDI_ChAvoidFreqType;
1007
1008typedef struct
1009{
1010 wpt_uint32 avoidRangeCount;
1011 WDI_ChAvoidFreqType avoidFreqRange[WDI_CH_AVOID_MAX_RANGE];
1012} WDI_ChAvoidIndType;
1013#endif /* FEATURE_WLAN_CH_AVOID */
1014
Dino Mycled3d50022014-07-07 12:58:25 +05301015#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1016typedef struct
1017{
1018 void *pLinkLayerStatsResults;
1019 wpt_macAddr macAddr;
1020} WDI_LinkLayerStatsResults;
1021
1022#endif
Abhishek Singh66c16762014-08-14 19:13:19 +05301023
1024typedef struct
1025{
1026 /*STA Index*/
1027 wpt_uint16 staIdx;
1028
1029 /*Peer MAC*/
1030 wpt_macAddr peerMacAddr;
1031
1032 // TID for which a BA session timeout is being triggered
1033 wpt_uint8 baTID;
1034 // DELBA direction
1035 // 1 - Originator
1036 // 0 - Recipient
1037 wpt_uint8 baDirection;
1038 wpt_uint32 reasonCode;
1039 /*MAC ADDR of STA*/
1040 wpt_macAddr bssId; // TO SUPPORT BT-AMP
1041} WDI_DeleteBAIndType;
1042
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +05301043typedef struct
1044{
1045 wpt_uint32 tx_complete_status;
1046 wpt_uint32 tx_bd_token;
1047} WDI_TxBDStatus;
Padma, Santhosh Kumarf75c37b2016-01-25 10:36:08 +05301048
1049#ifdef FEATURE_OEM_DATA_SUPPORT
1050/*----------------------------------------------------------------------------
1051 OEM DATA RESPONSE - DATA STRUCTURES
1052----------------------------------------------------------------------------*/
1053typedef struct
1054{
1055 void *pOemRspNewIndData;
1056 /* Max OemRspNewLen possible is NEW_OEM_DATA_RSP_SIZE*/
1057 wpt_uint32 OemRspNewLen;
1058} WDI_OemDataRspNew;
1059#endif
1060
Chittajit Mitraf5413a42013-10-18 14:20:08 -07001061/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07001062 WDI_LowLevelIndType
1063 Inidcation type and information about the indication being carried
1064 over
1065---------------------------------------------------------------------------*/
1066typedef struct
1067{
1068 /*Inidcation type*/
1069 WDI_LowLevelIndEnumType wdiIndicationType;
1070
1071 /*Indication data*/
1072 union
1073 {
1074 /*RSSI Threshold Info for WDI_LOW_RSSI_IND*/
1075 WDI_LowRSSIThIndType wdiLowRSSIInfo;
1076
1077 /*Addr2 Frame Info for WDI_UNKNOWN_ADDR2_FRAME_RX_IND*/
1078 WDI_UnkAddr2FrmRxIndType wdiUnkAddr2FrmInfo;
1079
1080 /*MIC Failure info for WDI_MIC_FAILURE_IND*/
1081 WDI_MicFailureIndType wdiMICFailureInfo;
1082
1083 /*Error code for WDI_FATAL_ERROR_IND*/
1084 wpt_uint16 usErrorCode;
1085
1086 /*Delete STA Indication*/
1087 WDI_DeleteSTAIndType wdiDeleteSTAIndType;
1088
1089 /*Coex Indication*/
1090 WDI_CoexIndType wdiCoexInfo;
1091
1092 /* Tx Complete Indication */
1093 wpt_uint32 tx_complete_status;
1094
Jeff Johnson295189b2012-06-20 16:38:30 -07001095 /* P2P NOA ATTR Indication */
1096 WDI_P2pNoaAttrIndType wdiP2pNoaAttrInfo;
Viral Modid86bde22012-12-10 13:09:21 -08001097 WDI_P2pNoaStartIndType wdiP2pNoaStartInfo;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301098 /* TDLS Indications */
1099 WDI_TdlsIndType wdiTdlsIndInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001100
1101
1102#ifdef FEATURE_WLAN_SCAN_PNO
1103 WDI_PrefNetworkFoundInd wdiPrefNetworkFoundInd;
1104#endif // FEATURE_WLAN_SCAN_PNO
1105
1106#ifdef WLAN_WAKEUP_EVENTS
1107 WDI_WakeReasonIndType wdiWakeReasonInd;
1108#endif // WLAN_WAKEUP_EVENTS
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -08001109 WDI_MissedBeaconIndType wdiMissedBeaconInd;
Ravi Joshid2ca7c42013-07-23 08:37:49 -07001110
Leo Chang9056f462013-08-01 19:21:11 -07001111#ifdef FEATURE_WLAN_LPHB
1112 WDI_LPHBTimeoutIndData wdiLPHBTimeoutInd;
1113#endif /* FEATURE_WLAN_LPHB */
Ravi Joshid2ca7c42013-07-23 08:37:49 -07001114
1115 /* IBSS Peer Inactivity Indication */
1116 WDI_IbssPeerInactivityIndType wdiIbssPeerInactivityInd;
1117
Yue Mab9c86f42013-08-14 15:59:08 -07001118 /* Periodic TX Pattern FW Indication */
1119 WDI_PeriodicTxPtrnFwIndType wdiPeriodicTxPtrnFwInd;
Rajeev79dbe4c2013-10-05 11:03:42 +05301120
Abhishek Singh7cd040e2016-01-07 10:51:04 +05301121#ifdef WLAN_FEATURE_RMC
1122 WDI_RmcPickNewRuler wdiRmcPickNewRulerInd;
1123#endif /* WLAN_FEATURE_RMC */
1124
Rajeev79dbe4c2013-10-05 11:03:42 +05301125#ifdef FEATURE_WLAN_BATCH_SCAN
1126 /*batch scan result indication from FW*/
1127 void *pBatchScanResult;
1128#endif
1129
Abhishek Singh7cd040e2016-01-07 10:51:04 +05301130#ifdef WLAN_FEATURE_RMC
1131 WDI_TXFailIndType wdiTXFailInd;
1132#endif /* WLAN_FEATURE_RMC */
1133
Leo Chang0b0e45a2013-12-15 15:18:55 -08001134#ifdef FEATURE_WLAN_CH_AVOID
1135 WDI_ChAvoidIndType wdiChAvoidInd;
1136#endif /* FEATURE_WLAN_CH_AVOID */
Sunil Duttbd736ed2014-05-26 21:19:41 +05301137
1138#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1139 /*Link Layer Statistics from FW*/
Dino Mycled3d50022014-07-07 12:58:25 +05301140 WDI_LinkLayerStatsResults wdiLinkLayerStatsResults;
Sunil Duttbd736ed2014-05-26 21:19:41 +05301141#endif
Dino Mycle41bdc942014-06-10 11:30:24 +05301142#ifdef WLAN_FEATURE_EXTSCAN
1143 /*EXTSCAN Results from FW*/
1144 void *pEXTScanIndData;
1145#endif
Abhishek Singh66c16762014-08-14 19:13:19 +05301146 WDI_DeleteBAIndType wdiDeleteBAInd;
Srinivas Dasari32a79262015-02-19 13:04:49 +05301147
1148 WDI_NanEventType wdiNanEvent;
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +05301149
1150 WDI_TxBDStatus wdiTxBdInd;
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +05301151 WDI_LostLinkParamsIndType wdiLostLinkParamsInd;
Gupta, Kapil7c34b322015-09-30 13:12:35 +05301152 WDI_RssiBreachedIndType wdiRssiBreachedInd;
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05301153#ifdef FEATURE_OEM_DATA_SUPPORT
1154/*OEM Data Rsp New Results from FW*/
Padma, Santhosh Kumarf75c37b2016-01-25 10:36:08 +05301155 WDI_OemDataRspNew wdiOemDataRspNew;
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05301156#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001157 } wdiIndicationData;
1158}WDI_LowLevelIndType;
1159
1160/*---------------------------------------------------------------------------
1161 WDI_LowLevelIndCBType
1162
1163 DESCRIPTION
1164
1165 This callback is invoked by DAL to deliver to UMAC certain indications
1166 that has either received from the lower device or has generated itself.
1167
1168 PARAMETERS
1169
1170 IN
1171 pwdiInd: information about the indication sent over
1172 pUserData: user data provided by UMAC during registration
1173
1174
1175
1176 RETURN VALUE
1177 The result code associated with performing the operation
1178---------------------------------------------------------------------------*/
1179typedef void (*WDI_LowLevelIndCBType)(WDI_LowLevelIndType* pwdiInd,
1180 void* pUserData);
1181
1182/*---------------------------------------------------------------------------
1183 WDI_DriverType
1184---------------------------------------------------------------------------*/
1185typedef enum
1186{
1187 WDI_DRIVER_TYPE_PRODUCTION = 0,
1188 WDI_DRIVER_TYPE_MFG = 1,
1189 WDI_DRIVER_TYPE_DVT = 2
1190} WDI_DriverType;
1191
1192/*---------------------------------------------------------------------------
1193 WDI_StartReqParamsType
1194---------------------------------------------------------------------------*/
1195typedef struct
1196{
1197 /*This is a TLV formatted buffer containing all config values that can
1198 be set through the DAL Interface
1199
1200 The TLV is expected to be formatted like this:
1201
1202 0 7 15 31 ....
1203 | CONFIG ID | CFG LEN | RESERVED | CFG BODY |
1204
1205 Or from a C construct point of VU it would look like this:
1206
1207 typedef struct WPT_PACK_POST
1208 {
1209 #ifdef WPT_BIG_ENDIAN
1210 wpt_uint32 ucCfgId:8;
1211 wpt_uint32 ucCfgLen:8;
1212 wpt_uint32 usReserved:16;
1213 #else
1214 wpt_uint32 usReserved:16;
1215 wpt_uint32 ucCfgLen:8;
1216 wpt_uint32 ucCfgId:8;
1217 #endif
1218
1219 wpt_uint8 ucCfgBody[ucCfgLen];
1220 }WDI_ConfigType;
1221
1222 Multiple such tuplets are to be placed in the config buffer. One for
1223 each required configuration item:
1224
1225 | TLV 1 | TLV2 | ....
1226
1227 The buffer is expected to be a flat area of memory that can be manipulated
1228 with standard memory routines.
1229
1230 For more info please check paragraph 2.3.1 Config Structure from the
1231 HAL LLD.
1232
1233 For a list of accepted configuration list and IDs please look up
1234 wlan_qct_dal_cfg.h
1235
1236 */
1237 void* pConfigBuffer;
1238
1239 /*Length of the config buffer above*/
1240 wpt_uint16 usConfigBufferLen;
1241
1242 /*Production or FTM driver*/
1243 WDI_DriverType wdiDriverType;
1244
1245 /*Should device enable frame translation */
1246 wpt_uint8 bFrameTransEnabled;
1247
1248 /*Request status callback offered by UMAC - it is called if the current
1249 req has returned PENDING as status; it delivers the status of sending
1250 the message over the BUS */
1251 WDI_ReqStatusCb wdiReqStatusCB;
1252
1253 /*The user data passed in by UMAC, it will be sent back when the above
1254 function pointer will be called */
1255 void* pUserData;
1256
1257 /*Indication callback given by UMAC to be called by the WLAN DAL when it
1258 wishes to send something back independent of a request*/
1259 WDI_LowLevelIndCBType wdiLowLevelIndCB;
1260
1261 /*The user data passed in by UMAC, it will be sent back when the indication
1262 function pointer will be called */
1263 void* pIndUserData;
1264}WDI_StartReqParamsType;
1265
1266
1267/*---------------------------------------------------------------------------
1268 WDI_StartRspParamsType
1269---------------------------------------------------------------------------*/
1270typedef struct
1271{
1272 /*Status of the response*/
1273 WDI_Status wdiStatus;
1274
1275 /*Max number of STA supported by the device*/
1276 wpt_uint8 ucMaxStations;
1277
1278 /*Max number of BSS supported by the device*/
1279 wpt_uint8 ucMaxBssids;
1280
1281 /*Version of the WLAN HAL API with which we were compiled*/
1282 WDI_WlanVersionType wlanCompiledVersion;
1283
1284 /*Version of the WLAN HAL API that was reported*/
1285 WDI_WlanVersionType wlanReportedVersion;
1286
1287 /*WCNSS Software version string*/
1288 wpt_uint8 wcnssSoftwareVersion[WDI_VERSION_LENGTH];
1289
1290 /*WCNSS Hardware version string*/
1291 wpt_uint8 wcnssHardwareVersion[WDI_VERSION_LENGTH];
1292}WDI_StartRspParamsType;
1293
1294
1295/*---------------------------------------------------------------------------
1296 WDI_StopType
1297---------------------------------------------------------------------------*/
1298typedef enum
1299{
1300 /*Device is being stopped due to a reset*/
1301 WDI_STOP_TYPE_SYS_RESET,
1302
1303 /*Device is being stopped due to entering deep sleep*/
1304 WDI_STOP_TYPE_SYS_DEEP_SLEEP,
1305
1306 /*Device is being stopped because the RF needs to shut off
1307 (e.g.:Airplane mode)*/
1308 WDI_STOP_TYPE_RF_KILL
1309}WDI_StopType;
1310
1311/*---------------------------------------------------------------------------
1312 WDI_StopReqParamsType
1313---------------------------------------------------------------------------*/
1314typedef struct
1315{
1316
1317 /*The reason for which the device is being stopped*/
1318 WDI_StopType wdiStopReason;
1319
1320 /*Request status callback offered by UMAC - it is called if the current
1321 req has returned PENDING as status; it delivers the status of sending
1322 the message over the BUS */
1323 WDI_ReqStatusCb wdiReqStatusCB;
1324
1325 /*The user data passed in by UMAC, it will be sent back when the above
1326 function pointer will be called */
1327 void* pUserData;
1328}WDI_StopReqParamsType;
1329
1330
1331/*---------------------------------------------------------------------------
1332 WDI_ScanMode
1333---------------------------------------------------------------------------*/
1334typedef enum
1335{
1336 WDI_SCAN_MODE_NORMAL = 0,
1337 WDI_SCAN_MODE_LEARN,
1338 WDI_SCAN_MODE_SCAN,
1339 WDI_SCAN_MODE_PROMISC,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -07001340 WDI_SCAN_MODE_SUSPEND_LINK,
1341 WDI_SCAN_MODE_ROAM_SCAN,
1342 WDI_SCAN_MODE_ROAM_SUSPEND_LINK,
1343
Jeff Johnson295189b2012-06-20 16:38:30 -07001344} WDI_ScanMode;
1345
1346/*---------------------------------------------------------------------------
1347 WDI_ScanEntry
1348---------------------------------------------------------------------------*/
1349typedef struct
1350{
1351 wpt_uint8 bssIdx[WDI_NUM_BSSID];
1352 wpt_uint8 activeBSScnt;
1353}WDI_ScanEntry;
1354
1355/*---------------------------------------------------------------------------
1356 WDI_InitScanReqInfoType
1357---------------------------------------------------------------------------*/
1358typedef struct
1359{
1360 /*LEARN - AP Role
1361 SCAN - STA Role*/
1362 WDI_ScanMode wdiScanMode;
1363
1364 /*BSSID of the BSS*/
1365 wpt_macAddr macBSSID;
1366
1367 /*Whether BSS needs to be notified*/
1368 wpt_boolean bNotifyBSS;
1369
1370 /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or
1371 CTS to Self). Must always be a valid frame type.*/
1372 wpt_uint8 ucFrameType;
1373
1374 /*UMAC has the option of passing the MAC frame to be used for notifying
1375 the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by
1376 macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on
1377 frameType.*/
1378 wpt_uint8 ucFrameLength;
1379
1380 /*Pointer to the MAC frame buffer. Used only if ucFrameLength is non-zero.*/
1381 WDI_MacMgmtHdr wdiMACMgmtHdr;
1382
1383 /*Entry to hold number of active BSS to send NULL frames before
1384 * initiating SCAN*/
1385 WDI_ScanEntry wdiScanEntry;
1386
1387 /* Flag to enable/disable Single NOA*/
1388 wpt_boolean bUseNOA;
1389
1390 /* Indicates the scan duration (in ms) */
1391 wpt_uint16 scanDuration;
1392
1393}WDI_InitScanReqInfoType;
1394
1395/*---------------------------------------------------------------------------
1396 WDI_InitScanReqParamsType
1397---------------------------------------------------------------------------*/
1398typedef struct
1399{
1400 /*The info associated with the request that needs to be sent over to the
1401 device*/
1402 WDI_InitScanReqInfoType wdiReqInfo;
1403
1404 /*Request status callback offered by UMAC - it is called if the current
1405 req has returned PENDING as status; it delivers the status of sending
1406 the message over the BUS */
1407 WDI_ReqStatusCb wdiReqStatusCB;
1408
1409 /*The user data passed in by UMAC, it will be sent back when the above
1410 function pointer will be called */
1411 void* pUserData;
1412}WDI_InitScanReqParamsType;
1413
1414/*---------------------------------------------------------------------------
1415 WDI_StartScanReqParamsType
1416---------------------------------------------------------------------------*/
1417typedef struct
1418{
1419 /*Indicates the channel to scan*/
1420 wpt_uint8 ucChannel;
1421
1422 /*Request status callback offered by UMAC - it is called if the current
1423 req has returned PENDING as status; it delivers the status of sending
1424 the message over the BUS */
1425 WDI_ReqStatusCb wdiReqStatusCB;
1426
1427 /*The user data passed in by UMAC, it will be sent back when the above
1428 function pointer will be called */
1429 void* pUserData;
1430}WDI_StartScanReqParamsType;
1431
1432/*---------------------------------------------------------------------------
1433 WDI_StartScanRspParamsType
1434---------------------------------------------------------------------------*/
1435typedef struct
1436{
1437 /*Indicates the status of the operation */
1438 WDI_Status wdiStatus;
1439
1440#if defined WLAN_FEATURE_VOWIFI
1441 wpt_uint32 aStartTSF[2];
1442 wpt_int8 ucTxMgmtPower;
1443#endif
1444}WDI_StartScanRspParamsType;
1445
1446/*---------------------------------------------------------------------------
1447 WDI_EndScanReqParamsType
1448---------------------------------------------------------------------------*/
1449typedef struct
1450{
1451 /*Indicates the channel to stop scanning. Not used really. But retained
1452 for symmetry with "start Scan" message. It can also help in error
1453 check if needed.*/
1454 wpt_uint8 ucChannel;
1455
1456 /*Request status callback offered by UMAC - it is called if the current
1457 req has returned PENDING as status; it delivers the status of sending
1458 the message over the BUS */
1459 WDI_ReqStatusCb wdiReqStatusCB;
1460
1461 /*The user data passed in by UMAC, it will be sent back when the above
1462 function pointer will be called */
1463 void* pUserData;
1464}WDI_EndScanReqParamsType;
1465
1466/*---------------------------------------------------------------------------
1467 WDI_PhyChanBondState
1468---------------------------------------------------------------------------*/
1469typedef enum
1470{
1471 WDI_PHY_SINGLE_CHANNEL_CENTERED = 0,
1472 WDI_PHY_DOUBLE_CHANNEL_LOW_PRIMARY = 1,
1473 WDI_PHY_DOUBLE_CHANNEL_CENTERED = 2,
Jeff Johnsone7245742012-09-05 17:12:55 -07001474 WDI_PHY_DOUBLE_CHANNEL_HIGH_PRIMARY = 3,
1475#ifdef WLAN_FEATURE_11AC
1476 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4, //20/40MHZ offset LOW 40/80MHZ offset CENTERED
1477 WDI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5, //20/40MHZ offset CENTERED 40/80MHZ offset CENTERED
1478 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6, //20/40MHZ offset HIGH 40/80MHZ offset CENTERED
1479 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7,//20/40MHZ offset LOW 40/80MHZ offset LOW
1480 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8, //20/40MHZ offset HIGH 40/80MHZ offset LOW
1481 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9, //20/40MHZ offset LOW 40/80MHZ offset HIGH
1482 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10,//20/40MHZ offset-HIGH 40/80MHZ offset HIGH
1483#endif
1484 WDI_MAX_CB_STATE
Jeff Johnson295189b2012-06-20 16:38:30 -07001485} WDI_PhyChanBondState;
1486
1487/*---------------------------------------------------------------------------
1488 WDI_FinishScanReqInfoType
1489---------------------------------------------------------------------------*/
1490typedef struct
1491{
1492 /*LEARN - AP Role
1493 SCAN - STA Role*/
1494 WDI_ScanMode wdiScanMode;
1495
1496 /*Operating channel to tune to.*/
1497 wpt_uint8 ucCurrentOperatingChannel;
1498
1499 /*Channel Bonding state If 20/40 MHz is operational, this will indicate the
1500 40 MHz extension channel in combination with the control channel*/
1501 WDI_PhyChanBondState wdiCBState;
1502
1503 /*BSSID of the BSS*/
1504 wpt_macAddr macBSSID;
1505
1506 /*Whether BSS needs to be notified*/
1507 wpt_boolean bNotifyBSS;
1508
1509 /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or
1510 CTS to Self). Must always be a valid frame type.*/
1511 wpt_uint8 ucFrameType;
1512
1513 /*UMAC has the option of passing the MAC frame to be used for notifying
1514 the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by
1515 macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on
1516 frameType.*/
1517 wpt_uint8 ucFrameLength;
1518
1519 /*Pointer to the MAC frame buffer. Used only if ucFrameLength is non-zero.*/
1520 WDI_MacMgmtHdr wdiMACMgmtHdr;
1521
1522 /*Entry to hold number of active BSS to send NULL frames after SCAN*/
1523 WDI_ScanEntry wdiScanEntry;
1524
1525}WDI_FinishScanReqInfoType;
1526
1527/*---------------------------------------------------------------------------
1528 WDI_SwitchChReqInfoType
1529---------------------------------------------------------------------------*/
1530typedef struct
1531{
1532 /*Indicates the channel to switch to.*/
1533 wpt_uint8 ucChannel;
1534
1535 /*Local power constraint*/
1536 wpt_uint8 ucLocalPowerConstraint;
1537
1538 /*Secondary channel offset */
1539 WDI_HTSecondaryChannelOffset wdiSecondaryChannelOffset;
1540
1541#ifdef WLAN_FEATURE_VOWIFI
1542 wpt_int8 cMaxTxPower;
1543
1544 /*Self STA Mac address*/
1545 wpt_macAddr macSelfStaMacAddr;
1546#endif
1547 /* VO Wifi comment: BSSID is needed to identify which session issued this request. As the
1548 request has power constraints, this should be applied only to that session */
1549 /* V IMP: Keep bssId field at the end of this msg. It is used to mantain backward compatbility
1550 * by way of ignoring if using new host/old FW or old host/new FW since it is at the end of this struct
1551 */
1552 wpt_macAddr macBSSId;
1553
1554}WDI_SwitchChReqInfoType;
1555
1556/*---------------------------------------------------------------------------
1557 WDI_SwitchChReqParamsType
1558---------------------------------------------------------------------------*/
1559typedef struct
1560{
1561 /*Channel Info*/
1562 WDI_SwitchChReqInfoType wdiChInfo;
1563
1564 /*Request status callback offered by UMAC - it is called if the current
1565 req has returned PENDING as status; it delivers the status of sending
1566 the message over the BUS */
1567 WDI_ReqStatusCb wdiReqStatusCB;
1568
1569 /*The user data passed in by UMAC, it will be sent back when the above
1570 function pointer will be called */
1571 void* pUserData;
1572}WDI_SwitchChReqParamsType;
1573
1574/*---------------------------------------------------------------------------
1575 WDI_FinishScanReqParamsType
1576---------------------------------------------------------------------------*/
1577typedef struct
1578{
1579 /*Info for the Finish Scan request that will be sent down to the device*/
1580 WDI_FinishScanReqInfoType wdiReqInfo;
1581
1582 /*Request status callback offered by UMAC - it is called if the current
1583 req has returned PENDING as status; it delivers the status of sending
1584 the message over the BUS */
1585 WDI_ReqStatusCb wdiReqStatusCB;
1586
1587 /*The user data passed in by UMAC, it will be sent back when the above
1588 function pointer will be called */
1589 void* pUserData;
1590}WDI_FinishScanReqParamsType;
1591
1592/*---------------------------------------------------------------------------
1593 WDI_JoinReqInfoType
1594---------------------------------------------------------------------------*/
1595typedef struct
1596{
1597 /*Indicates the BSSID to which STA is going to associate*/
1598 wpt_macAddr macBSSID;
1599
1600 /*Indicates the MAC Address of the current Self STA*/
1601 wpt_macAddr macSTASelf;
1602
1603 /*Indicates the link State determining the entity Type e.g. BTAMP-STA, STA etc.*/
1604 wpt_uint32 linkState;
1605
1606 /*Indicates the channel to switch to.*/
1607 WDI_SwitchChReqInfoType wdiChannelInfo;
1608
1609}WDI_JoinReqInfoType;
1610
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08001611typedef enum
1612{
1613 eWDI_CHANNEL_SWITCH_SOURCE_SCAN,
1614 eWDI_CHANNEL_SWITCH_SOURCE_LISTEN,
1615 eWDI_CHANNEL_SWITCH_SOURCE_MCC,
1616 eWDI_CHANNEL_SWITCH_SOURCE_CSA,
1617 eWDI_CHANNEL_SWITCH_SOURCE_MAX = 0x7FFFFFFF
1618} WDI_ChanSwitchSource;
1619
1620/*---------------------------------------------------------------------------
1621 WDI_SwitchChReqInfoType_V1
1622---------------------------------------------------------------------------*/
1623typedef struct
1624{
1625 /*Indicates the channel to switch to.*/
1626 wpt_uint8 ucChannel;
1627
1628 /*Local power constraint*/
1629 wpt_uint8 ucLocalPowerConstraint;
1630
1631 /*Secondary channel offset */
1632 WDI_HTSecondaryChannelOffset wdiSecondaryChannelOffset;
1633
1634#ifdef WLAN_FEATURE_VOWIFI
1635 wpt_int8 cMaxTxPower;
1636 /*Self STA Mac address*/
1637 wpt_macAddr macSelfStaMacAddr;
1638#endif
1639 /* VO Wifi comment: BSSID is needed to identify which session
1640 issued this request. As the request has power constraints, this
1641 should be applied only to that session
1642 */
1643 /* V IMP: Keep bssId field at the end of this msg. It is used to
1644 maintain backward compatibility by way of ignoring if using new
1645 host/old FW or old host/new FW since it is at the end of this struct
1646 */
1647 wpt_macAddr macBSSId;
1648 /* Source of Channel Switch */
1649 WDI_ChanSwitchSource channelSwitchSrc;
1650}WDI_SwitchChReqInfoType_V1;
1651
1652/*--------------------------------------------------------------------
1653 WDI_SwitchChReqParamsType_V1
1654----------------------------------------------------------------------*/
1655typedef struct
1656{
1657 /*Channel Info*/
1658 WDI_SwitchChReqInfoType_V1 wdiChInfo;
1659
1660 /*Request status callback offered by UMAC - it is called if the current
1661 req has returned PENDING as status; it delivers the status of sending
1662 the message over the BUS */
1663 WDI_ReqStatusCb wdiReqStatusCB;
1664
1665 /*The user data passed in by UMAC, it will be sent back when the above
1666 function pointer will be called */
1667 void* pUserData;
1668}WDI_SwitchChReqParamsType_V1;
1669
Jeff Johnson295189b2012-06-20 16:38:30 -07001670/*---------------------------------------------------------------------------
1671 WDI_JoinReqParamsType
1672---------------------------------------------------------------------------*/
1673typedef struct
1674{
1675 /*Info for the Join request that will be sent down to the device*/
1676 WDI_JoinReqInfoType wdiReqInfo;
1677
1678 /*Request status callback offered by UMAC - it is called if the current
1679 req has returned PENDING as status; it delivers the status of sending
1680 the message over the BUS */
1681 WDI_ReqStatusCb wdiReqStatusCB;
1682
1683 /*The user data passed in by UMAC, it will be sent back when the above
1684 function pointer will be called */
1685 void* pUserData;
1686}WDI_JoinReqParamsType;
1687
1688/*---------------------------------------------------------------------------
1689 WDI_BssType
1690---------------------------------------------------------------------------*/
1691typedef enum
1692{
1693 WDI_INFRASTRUCTURE_MODE,
1694 WDI_INFRA_AP_MODE, //Added for softAP support
1695 WDI_IBSS_MODE,
1696 WDI_BTAMP_STA_MODE,
1697 WDI_BTAMP_AP_MODE,
1698 WDI_BSS_AUTO_MODE,
1699}WDI_BssType;
1700
1701/*---------------------------------------------------------------------------
1702 WDI_NwType
1703---------------------------------------------------------------------------*/
1704typedef enum
1705{
1706 WDI_11A_NW_TYPE,
1707 WDI_11B_NW_TYPE,
1708 WDI_11G_NW_TYPE,
1709 WDI_11N_NW_TYPE,
1710} WDI_NwType;
1711
1712/*---------------------------------------------------------------------------
1713 WDI_ConfigAction
1714---------------------------------------------------------------------------*/
1715typedef enum
1716{
1717 WDI_ADD_BSS,
1718 WDI_UPDATE_BSS
1719} WDI_ConfigAction;
1720
1721/*---------------------------------------------------------------------------
1722 WDI_HTOperatingMode
1723---------------------------------------------------------------------------*/
1724typedef enum
1725{
1726 WDI_HT_OP_MODE_PURE,
1727 WDI_HT_OP_MODE_OVERLAP_LEGACY,
1728 WDI_HT_OP_MODE_NO_LEGACY_20MHZ_HT,
1729 WDI_HT_OP_MODE_MIXED
1730
1731} WDI_HTOperatingMode;
1732
1733
1734/*---------------------------------------------------------------------------
1735 WDI_STAEntryType
1736---------------------------------------------------------------------------*/
1737typedef enum
1738{
1739 WDI_STA_ENTRY_SELF,
1740 WDI_STA_ENTRY_PEER,
1741 WDI_STA_ENTRY_BSSID,
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001742 WDI_STA_ENTRY_BCAST,
1743#ifdef FEATURE_WLAN_TDLS
1744 WDI_STA_ENTRY_TDLS_PEER,
1745#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001746}WDI_STAEntryType;
1747
1748/*---------------------------------------------------------------------------
1749 WDI_ConfigActionType
1750---------------------------------------------------------------------------*/
1751typedef enum
1752{
1753 WDI_ADD_STA,
1754 WDI_UPDATE_STA
1755} WDI_ConfigActionType;
1756
1757/*----------------------------------------------------------------------------
1758 Each station added has a rate mode which specifies the sta attributes
1759 ----------------------------------------------------------------------------*/
1760typedef enum
1761{
1762 WDI_RESERVED_1 = 0,
1763 WDI_RESERVED_2,
1764 WDI_RESERVED_3,
1765 WDI_11b,
1766 WDI_11bg,
1767 WDI_11a,
1768 WDI_11n,
1769} WDI_RateModeType;
1770
1771/*---------------------------------------------------------------------------
1772 WDI_SupportedRatesType
1773---------------------------------------------------------------------------*/
1774typedef struct
1775{
1776 /*
1777 * For Self STA Entry: this represents Self Mode.
1778 * For Peer Stations, this represents the mode of the peer.
1779 * On Station:
1780 * --this mode is updated when PE adds the Self Entry.
1781 * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP.
1782 * ON AP:
1783 * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used
1784 * to indicate the self mode of the AP.
1785 * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated.
1786 */
1787
1788 WDI_RateModeType opRateMode;
1789
1790 /* 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps */
1791 wpt_uint16 llbRates[WDI_NUM_11B_RATES];
1792 wpt_uint16 llaRates[WDI_NUM_11A_RATES];
1793 wpt_uint16 aLegacyRates[WDI_NUM_POLARIS_RATES];
1794
1795 /*Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported)
1796 First 26 bits are reserved for those Titan rates and
1797 the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved.*/
1798 wpt_uint32 uEnhancedRateBitmap; //Titan and Taurus Rates
1799
1800 /*
1801 * 0-76 bits used, remaining reserved
1802 * bits 0-15 and 32 should be set.
1803 */
1804 wpt_uint8 aSupportedMCSSet[WDI_MAC_MAX_SUPPORTED_MCS_SET];
1805
1806 /*
1807 * RX Highest Supported Data Rate defines the highest data
1808 * rate that the STA is able to receive, in unites of 1Mbps.
1809 * This value is derived from "Supported MCS Set field" inside
1810 * the HT capability element.
1811 */
1812 wpt_uint16 aRxHighestDataRate;
1813
Jeff Johnsone7245742012-09-05 17:12:55 -07001814
1815#ifdef WLAN_FEATURE_11AC
1816 /*Indicates the Maximum MCS that can be received for each number
1817 of spacial streams */
1818 wpt_uint16 vhtRxMCSMap;
1819 /*Indicate the highest VHT data rate that the STA is able to receive*/
1820 wpt_uint16 vhtRxHighestDataRate;
1821 /*Indicates the Maximum MCS that can be transmitted for each number
1822 of spacial streams */
1823 wpt_uint16 vhtTxMCSMap;
1824 /*Indicate the highest VHT data rate that the STA is able to transmit*/
1825 wpt_uint16 vhtTxHighestDataRate;
1826#endif
1827
Jeff Johnson295189b2012-06-20 16:38:30 -07001828} WDI_SupportedRates;
1829
1830/*--------------------------------------------------------------------------
1831 WDI_HTMIMOPowerSaveState
1832 Spatial Multiplexing(SM) Power Save mode
1833 --------------------------------------------------------------------------*/
1834typedef enum
1835{
1836 WDI_HT_MIMO_PS_STATIC = 0, // Static SM Power Save mode
1837 WDI_HT_MIMO_PS_DYNAMIC = 1, // Dynamic SM Power Save mode
1838 WDI_HT_MIMO_PS_NA = 2, // reserved
1839 WDI_HT_MIMO_PS_NO_LIMIT = 3, // SM Power Save disabled
1840} WDI_HTMIMOPowerSaveState;
1841
1842/*---------------------------------------------------------------------------
1843 WDI_ConfigStaReqInfoType
1844---------------------------------------------------------------------------*/
1845typedef struct
1846{
1847 /*BSSID of STA*/
1848 wpt_macAddr macBSSID;
1849
1850 /*ASSOC ID, as assigned by UMAC*/
1851 wpt_uint16 usAssocId;
1852
1853 /*Used for configuration of different HW modules.*/
1854 WDI_STAEntryType wdiSTAType;
1855
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -07001856 /*STA Index */
1857 wpt_uint8 staIdx;
1858
Jeff Johnson295189b2012-06-20 16:38:30 -07001859 /*Short Preamble Supported.*/
1860 wpt_uint8 ucShortPreambleSupported;
1861
1862 /*MAC Address of STA*/
1863 wpt_macAddr macSTA;
1864
1865 /*Listen interval of the STA*/
1866 wpt_uint16 usListenInterval;
1867
1868 /*Support for 11e/WMM*/
1869 wpt_uint8 ucWMMEnabled;
1870
1871 /*11n HT capable STA*/
1872 wpt_uint8 ucHTCapable;
1873
1874 /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/
1875 wpt_uint8 ucTXChannelWidthSet;
1876
1877 /*RIFS mode 0 - NA, 1 - Allowed*/
1878 wpt_uint8 ucRIFSMode;
1879
1880 /*L-SIG TXOP Protection mechanism
1881 0 - No Support, 1 - Supported
1882 SG - there is global field*/
1883 wpt_uint8 ucLSIGTxopProtection;
1884
1885 /*Max Ampdu Size supported by STA. Device programming.
1886 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */
1887 wpt_uint8 ucMaxAmpduSize;
1888
1889 /*Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4)*/
1890 wpt_uint8 ucMaxAmpduDensity;
1891
1892 /*Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes*/
1893 wpt_uint8 ucMaxAmsduSize;
1894
1895 /*Short GI support for 40Mhz packets*/
1896 wpt_uint8 ucShortGI40Mhz;
1897
1898 /*Short GI support for 20Mhz packets*/
1899 wpt_uint8 ucShortGI20Mhz;
1900
1901 /*These rates are the intersection of peer and self capabilities.*/
1902 WDI_SupportedRates wdiSupportedRates;
1903
1904 /*Robust Management Frame (RMF) enabled/disabled*/
1905 wpt_uint8 ucRMFEnabled;
1906
1907 /* The unicast encryption type in the association */
1908 wpt_uint32 ucEncryptType;
1909
1910 /*HAL should update the existing STA entry, if this flag is set. UMAC
1911 will set this flag in case of RE-ASSOC, where we want to reuse the old
1912 STA ID.*/
1913 WDI_ConfigActionType wdiAction;
1914
1915 /*U-APSD Flags: 1b per AC. Encoded as follows:
1916 b7 b6 b5 b4 b3 b2 b1 b0 =
1917 X X X X BE BK VI VO
1918 */
1919 wpt_uint8 ucAPSD;
1920
1921 /*Max SP Length*/
1922 wpt_uint8 ucMaxSPLen;
1923
1924 /*11n Green Field preamble support*/
1925 wpt_uint8 ucGreenFieldCapable;
1926
1927 /*MIMO Power Save mode*/
1928 WDI_HTMIMOPowerSaveState wdiMIMOPS;
1929
1930 /*Delayed BA Support*/
1931 wpt_uint8 ucDelayedBASupport;
1932
1933 /*Max AMPDU duration in 32us*/
1934 wpt_uint8 us32MaxAmpduDuratio;
1935
1936 /*HT STA should set it to 1 if it is enabled in BSS
1937 HT STA should set it to 0 if AP does not support it. This indication is
1938 sent to HAL and HAL uses this flag to pickup up appropriate 40Mhz rates.
1939 */
1940 wpt_uint8 ucDsssCckMode40Mhz;
1941
1942 wpt_uint8 ucP2pCapableSta;
Jeff Johnsone7245742012-09-05 17:12:55 -07001943#ifdef WLAN_FEATURE_11AC
1944 wpt_uint8 ucVhtCapableSta;
1945 wpt_uint8 ucVhtTxChannelWidthSet;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001946 wpt_uint8 ucVhtTxBFEnabled;
Abhishek Singh6927fa02014-06-27 17:19:55 +05301947 wpt_uint8 vhtTxMUBformeeCapable;
Jeff Johnsone7245742012-09-05 17:12:55 -07001948#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001949
1950 wpt_uint8 ucHtLdpcEnabled;
1951 wpt_uint8 ucVhtLdpcEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001952}WDI_ConfigStaReqInfoType;
1953
1954
1955/*---------------------------------------------------------------------------
1956 WDI_RateSet
1957
1958 12 Bytes long because this structure can be used to represent rate
1959 and extended rate set IEs
1960 The parser assume this to be at least 12
1961---------------------------------------------------------------------------*/
1962#define WDI_RATESET_EID_MAX 12
1963
1964typedef struct
1965{
1966 wpt_uint8 ucNumRates;
1967 wpt_uint8 aRates[WDI_RATESET_EID_MAX];
1968} WDI_RateSet;
1969
1970/*---------------------------------------------------------------------------
1971 WDI_AciAifsnType
1972 access category record
1973---------------------------------------------------------------------------*/
1974typedef struct
1975{
1976 wpt_uint8 rsvd : 1;
1977 wpt_uint8 aci : 2;
1978 wpt_uint8 acm : 1;
1979 wpt_uint8 aifsn : 4;
1980} WDI_AciAifsnType;
1981
1982/*---------------------------------------------------------------------------
1983 WDI_CWType
1984 contention window size
1985---------------------------------------------------------------------------*/
1986typedef struct
1987{
1988 wpt_uint8 max : 4;
1989 wpt_uint8 min : 4;
1990} WDI_CWType;
1991
1992/*---------------------------------------------------------------------------
1993 WDI_EdcaParamRecord
1994---------------------------------------------------------------------------*/
1995typedef struct
1996{
1997 /*Access Category Record*/
1998 WDI_AciAifsnType wdiACI;
1999
2000 /*Contention WIndow Size*/
2001 WDI_CWType wdiCW;
2002
2003 /*TX Oportunity Limit*/
2004 wpt_uint16 usTXOPLimit;
2005} WDI_EdcaParamRecord;
2006
2007/*---------------------------------------------------------------------------
2008 WDI_EDCAParamsType
2009---------------------------------------------------------------------------*/
2010typedef struct
2011{
2012 /*BSS Index*/
2013 wpt_uint8 ucBSSIdx;
2014
2015 /*?*/
2016 wpt_boolean bHighPerformance;
2017
2018 /*Best Effort*/
2019 WDI_EdcaParamRecord wdiACBE;
2020
2021 /*Background*/
2022 WDI_EdcaParamRecord wdiACBK;
2023
2024 /*Video*/
2025 WDI_EdcaParamRecord wdiACVI;
2026
2027 /*Voice*/
2028 WDI_EdcaParamRecord acvo; // voice
2029} WDI_EDCAParamsType;
2030
2031/* operMode in ADD BSS message */
2032#define WDI_BSS_OPERATIONAL_MODE_AP 0
2033#define WDI_BSS_OPERATIONAL_MODE_STA 1
2034
2035/*---------------------------------------------------------------------------
2036 WDI_ConfigBSSRspParamsType
2037---------------------------------------------------------------------------*/
2038typedef struct
2039{
2040 /*Status of the response*/
2041 WDI_Status wdiStatus;
2042
2043 /*BSSID of the BSS*/
2044 wpt_macAddr macBSSID;
2045
2046 /*BSS Index*/
2047 wpt_uint8 ucBSSIdx;
2048
2049 /*Unicast DPU signature*/
2050 wpt_uint8 ucUcastSig;
2051
2052 /*Broadcast DPU Signature*/
2053 wpt_uint8 ucBcastSig;
2054
2055 /*MAC Address of STA*/
2056 wpt_macAddr macSTA;
2057
2058 /*BSS STA ID*/
2059 wpt_uint8 ucSTAIdx;
2060
2061#ifdef WLAN_FEATURE_VOWIFI
2062 /*HAL fills in the tx power used for mgmt frames in this field */
2063 wpt_int8 ucTxMgmtPower;
2064#endif
2065
2066}WDI_ConfigBSSRspParamsType;
2067
2068/*---------------------------------------------------------------------------
2069 WDI_DelBSSReqParamsType
2070---------------------------------------------------------------------------*/
2071typedef struct
2072{
2073 /*BSS Index of the BSS*/
2074 wpt_uint8 ucBssIdx;
2075
2076 /*Request status callback offered by UMAC - it is called if the current
2077 req has returned PENDING as status; it delivers the status of sending
2078 the message over the BUS */
2079 WDI_ReqStatusCb wdiReqStatusCB;
2080
2081 /*The user data passed in by UMAC, it will be sent back when the above
2082 function pointer will be called */
2083 void* pUserData;
2084}WDI_DelBSSReqParamsType;
2085
2086/*---------------------------------------------------------------------------
2087 WDI_DelBSSRspParamsType
2088---------------------------------------------------------------------------*/
2089typedef struct
2090{
2091 /*Status of the response*/
2092 WDI_Status wdiStatus;
2093
2094 /*BSSID of the BSS*/
2095 wpt_macAddr macBSSID;
2096
2097 wpt_uint8 ucBssIdx;
2098
2099}WDI_DelBSSRspParamsType;
2100
2101/*---------------------------------------------------------------------------
2102 WDI_ConfigSTARspParamsType
2103---------------------------------------------------------------------------*/
2104typedef struct
2105{
2106 /*Status of the response*/
2107 WDI_Status wdiStatus;
2108
2109 /*STA Idx allocated by HAL*/
2110 wpt_uint8 ucSTAIdx;
2111
2112 /*MAC Address of STA*/
2113 wpt_macAddr macSTA;
2114
2115 /* BSSID Index of BSS to which the station is associated */
2116 wpt_uint8 ucBssIdx;
2117
2118 /* DPU Index - PTK */
2119 wpt_uint8 ucDpuIndex;
2120
2121 /* Bcast DPU Index - GTK */
2122 wpt_uint8 ucBcastDpuIndex;
2123
2124 /* Management DPU Index - IGTK - Why is it called bcastMgmtDpuIdx? */
2125 wpt_uint8 ucBcastMgmtDpuIdx;
2126
2127 /*Unicast DPU signature*/
2128 wpt_uint8 ucUcastSig;
2129
2130 /*Broadcast DPU Signature*/
2131 wpt_uint8 ucBcastSig;
2132
2133 /* IGTK DPU signature*/
2134 wpt_uint8 ucMgmtSig;
2135
2136}WDI_ConfigSTARspParamsType;
2137
2138/*---------------------------------------------------------------------------
2139 WDI_PostAssocRspParamsType
2140---------------------------------------------------------------------------*/
2141typedef struct
2142{
2143 /*Status of the response*/
2144 WDI_Status wdiStatus;
2145
2146 /*Parameters related to the BSS*/
2147 WDI_ConfigBSSRspParamsType bssParams;
2148
2149 /*Parameters related to the self STA*/
2150 WDI_ConfigSTARspParamsType staParams;
2151
2152}WDI_PostAssocRspParamsType;
2153
2154/*---------------------------------------------------------------------------
2155 WDI_DelSTAReqParamsType
2156---------------------------------------------------------------------------*/
2157typedef struct
2158{
2159 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
2160 wpt_uint8 ucSTAIdx;
2161
2162 /*Request status callback offered by UMAC - it is called if the current
2163 req has returned PENDING as status; it delivers the status of sending
2164 the message over the BUS */
2165 WDI_ReqStatusCb wdiReqStatusCB;
2166
2167 /*The user data passed in by UMAC, it will be sent back when the above
2168 function pointer will be called */
2169 void* pUserData;
2170}WDI_DelSTAReqParamsType;
2171
2172/*---------------------------------------------------------------------------
2173 WDI_DelSTARspParamsType
2174---------------------------------------------------------------------------*/
2175typedef struct
2176{
2177 /*Status of the response*/
2178 WDI_Status wdiStatus;
2179
2180 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
2181 wpt_uint8 ucSTAIdx;
2182}WDI_DelSTARspParamsType;
2183
2184/*---------------------------------------------------------------------------
2185 WDI_EncryptType
2186---------------------------------------------------------------------------*/
2187typedef enum
2188{
2189 WDI_ENCR_NONE,
2190 WDI_ENCR_WEP40,
2191 WDI_ENCR_WEP104,
2192 WDI_ENCR_TKIP,
2193 WDI_ENCR_CCMP,
2194#if defined(FEATURE_WLAN_WAPI)
2195 WDI_ENCR_WPI,
2196#endif
2197 WDI_ENCR_AES_128_CMAC
2198} WDI_EncryptType;
2199
2200/*---------------------------------------------------------------------------
2201 WDI_KeyDirectionType
2202---------------------------------------------------------------------------*/
2203typedef enum
2204{
2205 WDI_TX_ONLY,
2206 WDI_RX_ONLY,
2207 WDI_TX_RX,
Jeff Johnson295189b2012-06-20 16:38:30 -07002208 WDI_TX_DEFAULT,
Jeff Johnson295189b2012-06-20 16:38:30 -07002209 WDI_DONOT_USE_KEY_DIRECTION
2210} WDI_KeyDirectionType;
2211
2212#define WDI_MAX_ENCR_KEYS 4
2213#define WDI_MAX_KEY_LENGTH 32
2214#if defined(FEATURE_WLAN_WAPI)
2215#define WDI_MAX_KEY_RSC_LEN 16
2216#define WDI_WAPI_KEY_RSC_LEN 16
2217#else
2218#define WDI_MAX_KEY_RSC_LEN 8
2219#endif
2220
2221typedef struct
2222{
2223 /* Key ID */
2224 wpt_uint8 keyId;
2225 /* 0 for multicast */
2226 wpt_uint8 unicast;
2227 /* Key Direction */
2228 WDI_KeyDirectionType keyDirection;
2229 /* Usage is unknown */
2230 wpt_uint8 keyRsc[WDI_MAX_KEY_RSC_LEN];
2231 /* =1 for authenticator, =0 for supplicant */
2232 wpt_uint8 paeRole;
2233 wpt_uint16 keyLength;
2234 wpt_uint8 key[WDI_MAX_KEY_LENGTH];
2235
2236}WDI_KeysType;
2237
2238/*---------------------------------------------------------------------------
2239 WDI_SetBSSKeyReqInfoType
2240---------------------------------------------------------------------------*/
2241typedef struct
2242{
2243 /*BSS Index of the BSS*/
2244 wpt_uint8 ucBssIdx;
2245
2246 /*Encryption Type used with peer*/
2247 WDI_EncryptType wdiEncType;
2248
2249 /*Number of keys*/
2250 wpt_uint8 ucNumKeys;
2251
2252 /*Array of keys.*/
2253 WDI_KeysType aKeys[WDI_MAX_ENCR_KEYS];
2254
2255 /*Control for Replay Count, 1= Single TID based replay count on Tx
2256 0 = Per TID based replay count on TX */
2257 wpt_uint8 ucSingleTidRc;
2258}WDI_SetBSSKeyReqInfoType;
2259
2260/*---------------------------------------------------------------------------
2261 WDI_SetBSSKeyReqParamsType
2262---------------------------------------------------------------------------*/
2263typedef struct
2264{
2265 /*Key Info */
2266 WDI_SetBSSKeyReqInfoType wdiBSSKeyInfo;
2267
2268 /*Request status callback offered by UMAC - it is called if the current
2269 req has returned PENDING as status; it delivers the status of sending
2270 the message over the BUS */
2271 WDI_ReqStatusCb wdiReqStatusCB;
2272
2273 /*The user data passed in by UMAC, it will be sent back when the above
2274 function pointer will be called */
2275 void* pUserData;
2276}WDI_SetBSSKeyReqParamsType;
2277
2278/*---------------------------------------------------------------------------
2279 WDI_WepType
2280---------------------------------------------------------------------------*/
2281typedef enum
2282{
2283 WDI_WEP_STATIC,
2284 WDI_WEP_DYNAMIC
2285
2286} WDI_WepType;
2287
2288/*---------------------------------------------------------------------------
2289 WDI_RemoveBSSKeyReqInfoType
2290---------------------------------------------------------------------------*/
2291typedef struct
2292{
2293 /*BSS Index of the BSS*/
2294 wpt_uint8 ucBssIdx;
2295
2296 /*Encryption Type used with peer*/
2297 WDI_EncryptType wdiEncType;
2298
2299 /*Key Id*/
2300 wpt_uint8 ucKeyId;
2301
2302 /*STATIC/DYNAMIC. Used in Nullifying in Key Descriptors for Static/Dynamic
2303 keys*/
2304 WDI_WepType wdiWEPType;
2305}WDI_RemoveBSSKeyReqInfoType;
2306
2307/*---------------------------------------------------------------------------
2308 WDI_RemoveBSSKeyReqParamsType
2309---------------------------------------------------------------------------*/
2310typedef struct
2311{
2312 /*Key Info */
2313 WDI_RemoveBSSKeyReqInfoType wdiKeyInfo;
2314
2315 /*Request status callback offered by UMAC - it is called if the current
2316 req has returned PENDING as status; it delivers the status of sending
2317 the message over the BUS */
2318 WDI_ReqStatusCb wdiReqStatusCB;
2319
2320 /*The user data passed in by UMAC, it will be sent back when the above
2321 function pointer will be called */
2322 void* pUserData;
2323}WDI_RemoveBSSKeyReqParamsType;
2324
2325/*---------------------------------------------------------------------------
2326 WDI_SetSTAKeyReqInfoType
2327---------------------------------------------------------------------------*/
2328typedef struct
2329{
2330 /*STA Index*/
2331 wpt_uint8 ucSTAIdx;
2332
2333 /*Encryption Type used with peer*/
2334 WDI_EncryptType wdiEncType;
2335
2336 /*STATIC/DYNAMIC*/
2337 WDI_WepType wdiWEPType;
2338
2339 /*Default WEP key, valid only for static WEP, must between 0 and 3.*/
2340 wpt_uint8 ucDefWEPIdx;
2341
2342 /*Number of keys*/
2343 wpt_uint8 ucNumKeys;
2344
2345 /*Array of keys.*/
2346 WDI_KeysType wdiKey[WDI_MAX_ENCR_KEYS];
2347
2348 /*Control for Replay Count, 1= Single TID based replay count on Tx
2349 0 = Per TID based replay count on TX */
2350 wpt_uint8 ucSingleTidRc;
2351}WDI_SetSTAKeyReqInfoType;
2352
2353/*---------------------------------------------------------------------------
2354 WDI_ConfigBSSReqInfoType
2355---------------------------------------------------------------------------*/
2356typedef struct
2357{
2358 /*Peer BSSID*/
2359 wpt_macAddr macBSSID;
2360
2361 /*Self MAC Address*/
2362 wpt_macAddr macSelfAddr;
2363
2364 /*BSS Type*/
2365 WDI_BssType wdiBSSType;
2366
2367 /*Operational Mode: AP =0, STA = 1*/
2368 wpt_uint8 ucOperMode;
2369
2370 /*Network Type*/
2371 WDI_NwType wdiNWType;
2372
2373 /*Used to classify PURE_11G/11G_MIXED to program MTU*/
2374 wpt_uint8 ucShortSlotTimeSupported;
2375
2376 /*Co-exist with 11a STA*/
2377 wpt_uint8 ucllaCoexist;
2378
2379 /*Co-exist with 11b STA*/
2380 wpt_uint8 ucllbCoexist;
2381
2382 /*Co-exist with 11g STA*/
2383 wpt_uint8 ucllgCoexist;
2384
2385 /*Coexistence with 11n STA*/
2386 wpt_uint8 ucHT20Coexist;
2387
2388 /*Non GF coexist flag*/
2389 wpt_uint8 ucllnNonGFCoexist;
2390
2391 /*TXOP protection support*/
2392 wpt_uint8 ucTXOPProtectionFullSupport;
2393
2394 /*RIFS mode*/
2395 wpt_uint8 ucRIFSMode;
2396
2397 /*Beacon Interval in TU*/
2398 wpt_uint16 usBeaconInterval;
2399
2400 /*DTIM period*/
2401 wpt_uint8 ucDTIMPeriod;
2402
2403 /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/
2404 wpt_uint8 ucTXChannelWidthSet;
2405
2406 /*Operating channel*/
2407 wpt_uint8 ucCurrentOperChannel;
2408
2409 /*Extension channel for channel bonding*/
2410 wpt_uint8 ucCurrentExtChannel;
2411
2412 /*Context of the station being added in HW.*/
2413 WDI_ConfigStaReqInfoType wdiSTAContext;
2414
2415 /*SSID of the BSS*/
2416 WDI_MacSSid wdiSSID;
2417
2418 /*HAL should update the existing BSS entry, if this flag is set. UMAC will
2419 set this flag in case of RE-ASSOC, where we want to reuse the old BSSID*/
2420 WDI_ConfigAction wdiAction;
2421
2422 /*Basic Rate Set*/
2423 WDI_RateSet wdiRateSet;
2424
2425 /*Enable/Disable HT capabilities of the BSS*/
2426 wpt_uint8 ucHTCapable;
2427
2428 /* Enable/Disable OBSS protection */
2429 wpt_uint8 ucObssProtEnabled;
2430
2431 /*RMF enabled/disabled*/
2432 wpt_uint8 ucRMFEnabled;
2433
2434 /*Determines the current HT Operating Mode operating mode of the
2435 802.11n STA*/
2436 WDI_HTOperatingMode wdiHTOperMod;
2437
2438 /*Dual CTS Protection: 0 - Unused, 1 - Used*/
2439 wpt_uint8 ucDualCTSProtection;
2440
2441 /* Probe Response Max retries */
2442 wpt_uint8 ucMaxProbeRespRetryLimit;
2443
2444 /* To Enable Hidden ssid */
2445 wpt_uint8 bHiddenSSIDEn;
2446
2447 /* To Enable Disable FW Proxy Probe Resp */
2448 wpt_uint8 bProxyProbeRespEn;
2449
2450 /* Boolean to indicate if EDCA params are valid. UMAC might not have valid
2451 EDCA params or might not desire to apply EDCA params during config BSS.
2452 0 implies Not Valid ; Non-Zero implies valid*/
2453 wpt_uint8 ucEDCAParamsValid;
2454
2455 /*EDCA Parameters for BK*/
2456 WDI_EdcaParamRecord wdiBKEDCAParams;
2457
2458 /*EDCA Parameters for BE*/
2459 WDI_EdcaParamRecord wdiBEEDCAParams;
2460
2461 /*EDCA Parameters for VI*/
2462 WDI_EdcaParamRecord wdiVIEDCAParams;
2463
2464 /*EDCA Parameters for VO*/
2465 WDI_EdcaParamRecord wdiVOEDCAParams;
2466
2467#ifdef WLAN_FEATURE_VOWIFI
2468 /*max power to be used after applying the power constraint, if any */
2469 wpt_int8 cMaxTxPower;
2470#endif
2471
2472 /* Persona for the BSS can be STA,AP,GO,CLIENT, same as Connection Mode */
2473 wpt_uint8 ucPersona;
2474
2475 /* Spectrum Mangement Indicator */
2476 wpt_uint8 bSpectrumMgtEn;
2477
2478#ifdef WLAN_FEATURE_VOWIFI_11R
2479 wpt_uint8 bExtSetStaKeyParamValid;
2480 WDI_SetSTAKeyReqInfoType wdiExtSetKeyParam;
2481#endif
2482
Jeff Johnsone7245742012-09-05 17:12:55 -07002483#ifdef WLAN_FEATURE_11AC
2484 wpt_uint8 ucVhtCapableSta;
2485 wpt_uint8 ucVhtTxChannelWidthSet;
2486#endif
2487
Jeff Johnson295189b2012-06-20 16:38:30 -07002488}WDI_ConfigBSSReqInfoType;
2489
2490/*---------------------------------------------------------------------------
2491 WDI_PostAssocReqParamsType
2492---------------------------------------------------------------------------*/
2493typedef struct
2494{
2495 /*Config STA arguments.*/
2496 WDI_ConfigStaReqInfoType wdiSTAParams;
2497
2498 /*Config BSS Arguments*/
2499 WDI_ConfigBSSReqInfoType wdiBSSParams;
2500
2501 /*Request status callback offered by UMAC - it is called if the current
2502 req has returned PENDING as status; it delivers the status of sending
2503 the message over the BUS */
2504 WDI_ReqStatusCb wdiReqStatusCB;
2505
2506 /*The user data passed in by UMAC, it will be sent back when the above
2507 function pointer will be called */
2508 void* pUserData;
2509}WDI_PostAssocReqParamsType;
2510
2511/*---------------------------------------------------------------------------
2512 WDI_ConfigBSSReqParamsType
2513---------------------------------------------------------------------------*/
2514typedef struct
2515{
2516 /*Info for the Join request that will be sent down to the device*/
2517 WDI_ConfigBSSReqInfoType wdiReqInfo;
2518
2519 /*Request status callback offered by UMAC - it is called if the current
2520 req has returned PENDING as status; it delivers the status of sending
2521 the message over the BUS */
2522 WDI_ReqStatusCb wdiReqStatusCB;
2523
2524 /*The user data passed in by UMAC, it will be sent back when the above
2525 function pointer will be called */
2526 void* pUserData;
2527}WDI_ConfigBSSReqParamsType;
2528
2529/*---------------------------------------------------------------------------
2530 WDI_SetSTAKeyReqParamsType
2531---------------------------------------------------------------------------*/
2532typedef struct
2533{
2534 /*Key Info*/
2535 WDI_SetSTAKeyReqInfoType wdiKeyInfo;
2536
2537 /*Request status callback offered by UMAC - it is called if the current
2538 req has returned PENDING as status; it delivers the status of sending
2539 the message over the BUS */
2540 WDI_ReqStatusCb wdiReqStatusCB;
2541
2542 /*The user data passed in by UMAC, it will be sent back when the above
2543 function pointer will be called */
2544 void* pUserData;
2545}WDI_SetSTAKeyReqParamsType;
2546
2547/*---------------------------------------------------------------------------
2548 WDI_RemoveSTAKeyReqInfoType
2549---------------------------------------------------------------------------*/
2550typedef struct
2551{
2552 /*STA Index*/
2553 wpt_uint8 ucSTAIdx;
2554
2555 /*Encryption Type used with peer*/
2556 WDI_EncryptType wdiEncType;
2557
2558 /*Key Id*/
2559 wpt_uint8 ucKeyId;
2560
2561 /*Whether to invalidate the Broadcast key or Unicast key. In case of WEP,
2562 the same key is used for both broadcast and unicast.*/
2563 wpt_uint8 ucUnicast;
2564}WDI_RemoveSTAKeyReqInfoType;
2565
2566/*---------------------------------------------------------------------------
2567 WDI_RemoveSTAKeyReqParamsType
2568---------------------------------------------------------------------------*/
2569typedef struct
2570{
2571 /*Key Info */
2572 WDI_RemoveSTAKeyReqInfoType wdiKeyInfo;
2573
2574 /*Request status callback offered by UMAC - it is called if the current
2575 req has returned PENDING as status; it delivers the status of sending
2576 the message over the BUS */
2577 WDI_ReqStatusCb wdiReqStatusCB;
2578
2579 /*The user data passed in by UMAC, it will be sent back when the above
2580 function pointer will be called */
2581 void* pUserData;
2582}WDI_RemoveSTAKeyReqParamsType;
2583
2584/*---------------------------------------------------------------------------
2585 QOS Parameters
2586---------------------------------------------------------------------------*/
2587
2588/*---------------------------------------------------------------------------
2589 WDI_TSInfoTfc
2590---------------------------------------------------------------------------*/
2591typedef struct
2592{
2593 wpt_uint16 ackPolicy:2;
2594 wpt_uint16 userPrio:3;
2595 wpt_uint16 psb:1;
2596 wpt_uint16 aggregation : 1;
2597 wpt_uint16 accessPolicy : 2;
2598 wpt_uint16 direction : 2;
2599 wpt_uint16 tsid : 4;
2600 wpt_uint16 trafficType : 1;
2601} WDI_TSInfoTfc;
2602
2603/*---------------------------------------------------------------------------
2604 WDI_TSInfoSch
2605---------------------------------------------------------------------------*/
2606typedef struct
2607{
2608 wpt_uint8 rsvd : 7;
2609 wpt_uint8 schedule : 1;
2610} WDI_TSInfoSch;
2611
2612/*---------------------------------------------------------------------------
2613 WDI_TSInfoType
2614---------------------------------------------------------------------------*/
2615typedef struct
2616{
2617 WDI_TSInfoTfc wdiTraffic;
2618 WDI_TSInfoSch wdiSchedule;
2619} WDI_TSInfoType;
2620
2621/*---------------------------------------------------------------------------
2622 WDI_TspecIEType
2623---------------------------------------------------------------------------*/
2624typedef struct
2625{
2626 wpt_uint8 ucType;
2627 wpt_uint8 ucLength;
2628 WDI_TSInfoType wdiTSinfo;
2629 wpt_uint16 usNomMsduSz;
2630 wpt_uint16 usMaxMsduSz;
2631 wpt_uint32 uMinSvcInterval;
2632 wpt_uint32 uMaxSvcInterval;
2633 wpt_uint32 uInactInterval;
2634 wpt_uint32 uSuspendInterval;
2635 wpt_uint32 uSvcStartTime;
2636 wpt_uint32 uMinDataRate;
2637 wpt_uint32 uMeanDataRate;
2638 wpt_uint32 uPeakDataRate;
2639 wpt_uint32 uMaxBurstSz;
2640 wpt_uint32 uDelayBound;
2641 wpt_uint32 uMinPhyRate;
2642 wpt_uint16 usSurplusBw;
2643 wpt_uint16 usMediumTime;
2644}WDI_TspecIEType;
2645
2646/*---------------------------------------------------------------------------
2647 WDI_AddTSReqInfoType
2648---------------------------------------------------------------------------*/
2649typedef struct
2650{
2651 /*STA Index*/
2652 wpt_uint8 ucSTAIdx;
2653
2654 /*Identifier for TSpec*/
2655 wpt_uint16 ucTspecIdx;
2656
2657 /*Tspec IE negotiated OTA*/
2658 WDI_TspecIEType wdiTspecIE;
2659
2660 /*UAPSD delivery and trigger enabled flags */
2661 wpt_uint8 ucUapsdFlags;
2662
2663 /*SI for each AC*/
2664 wpt_uint8 ucServiceInterval[WDI_MAX_NO_AC];
2665
2666 /*Suspend Interval for each AC*/
2667 wpt_uint8 ucSuspendInterval[WDI_MAX_NO_AC];
2668
2669 /*DI for each AC*/
2670 wpt_uint8 ucDelayedInterval[WDI_MAX_NO_AC];
2671
2672}WDI_AddTSReqInfoType;
2673
2674
2675/*---------------------------------------------------------------------------
2676 WDI_AddTSReqParamsType
2677---------------------------------------------------------------------------*/
2678typedef struct
2679{
2680 /*TSpec Info */
2681 WDI_AddTSReqInfoType wdiTsInfo;
2682
2683 /*Request status callback offered by UMAC - it is called if the current
2684 req has returned PENDING as status; it delivers the status of sending
2685 the message over the BUS */
2686 WDI_ReqStatusCb wdiReqStatusCB;
2687
2688 /*The user data passed in by UMAC, it will be sent back when the above
2689 function pointer will be called */
2690 void* pUserData;
2691}WDI_AddTSReqParamsType;
2692
2693/*---------------------------------------------------------------------------
2694 WDI_DelTSReqInfoType
2695---------------------------------------------------------------------------*/
2696typedef struct
2697{
2698 /*STA Index*/
2699 wpt_uint8 ucSTAIdx;
2700
2701 /*Identifier for TSpec*/
2702 wpt_uint16 ucTspecIdx;
2703
2704 /*BSSID of the BSS*/
2705 wpt_macAddr macBSSID;
2706}WDI_DelTSReqInfoType;
2707
2708/*---------------------------------------------------------------------------
2709 WDI_DelTSReqParamsType
2710---------------------------------------------------------------------------*/
2711typedef struct
2712{
2713 /*Del TSpec Info*/
2714 WDI_DelTSReqInfoType wdiDelTSInfo;
2715
2716 /*Request status callback offered by UMAC - it is called if the current
2717 req has returned PENDING as status; it delivers the status of sending
2718 the message over the BUS */
2719 WDI_ReqStatusCb wdiReqStatusCB;
2720
2721 /*The user data passed in by UMAC, it will be sent back when the above
2722 function pointer will be called */
2723 void* pUserData;
2724}WDI_DelTSReqParamsType;
2725
2726/*---------------------------------------------------------------------------
2727 WDI_UpdateEDCAInfoType
2728---------------------------------------------------------------------------*/
2729typedef struct
2730{
krunal soni0b366c02013-07-17 19:55:57 -07002731 /*BSS Index of the BSS*/
2732 wpt_uint16 ucBssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07002733
Jeff Johnson295189b2012-06-20 16:38:30 -07002734 /*EDCA params for BE*/
2735 WDI_EdcaParamRecord wdiEdcaBEInfo;
2736
2737 /*EDCA params for BK*/
2738 WDI_EdcaParamRecord wdiEdcaBKInfo;
2739
2740 /*EDCA params for VI*/
2741 WDI_EdcaParamRecord wdiEdcaVIInfo;
2742
2743 /*EDCA params for VO*/
2744 WDI_EdcaParamRecord wdiEdcaVOInfo;
2745
2746}WDI_UpdateEDCAInfoType;
2747
2748/*---------------------------------------------------------------------------
2749 WDI_UpdateEDCAParamsType
2750---------------------------------------------------------------------------*/
2751typedef struct
2752{
2753 /*EDCA Info */
2754 WDI_UpdateEDCAInfoType wdiEDCAInfo;
2755
2756 /*Request status callback offered by UMAC - it is called if the current
2757 req has returned PENDING as status; it delivers the status of sending
2758 the message over the BUS */
2759 WDI_ReqStatusCb wdiReqStatusCB;
2760
2761 /*The user data passed in by UMAC, it will be sent back when the above
2762 function pointer will be called */
2763 void* pUserData;
2764}WDI_UpdateEDCAParamsType;
2765
2766/*---------------------------------------------------------------------------
2767 WDI_AddBASessionReqinfoType
2768---------------------------------------------------------------------------*/
2769typedef struct
2770{
2771 /*Indicates the station for which BA is added..*/
2772 wpt_uint8 ucSTAIdx;
2773
2774 /*The peer mac address*/
2775 wpt_macAddr macPeerAddr;
2776
2777 /*TID for which BA was negotiated*/
2778 wpt_uint8 ucBaTID;
2779
2780 /*Delayed or imediate */
2781 wpt_uint8 ucBaPolicy;
2782
2783 /*The number of buffers for this TID (baTID)*/
2784 wpt_uint16 usBaBufferSize;
2785
2786 /*BA timeout in TU's*/
2787 wpt_uint16 usBaTimeout;
2788
2789 /*b0..b3 - Fragment Number - Always set to 0
2790 b4..b15 - Starting Sequence Number of first MSDU for which this BA is setup*/
2791 wpt_uint16 usBaSSN;
2792
2793 /*Originator/Recipient*/
2794 wpt_uint8 ucBaDirection;
2795
2796}WDI_AddBASessionReqinfoType;
2797
2798
2799/*---------------------------------------------------------------------------
2800 WDI_AddBASessionReqParamsType
2801---------------------------------------------------------------------------*/
2802typedef struct
2803{
2804 /*BA Session Info Type*/
2805 WDI_AddBASessionReqinfoType wdiBASessionInfoType;
2806
2807 /*Request status callback offered by UMAC - it is called if the current
2808 req has returned PENDING as status; it delivers the status of sending
2809 the message over the BUS */
2810 WDI_ReqStatusCb wdiReqStatusCB;
2811
2812 /*The user data passed in by UMAC, it will be sent back when the above
2813 function pointer will be called */
2814 void* pUserData;
2815}WDI_AddBASessionReqParamsType;
2816
2817/*---------------------------------------------------------------------------
2818 WDI_AddBASessionRspParamsType
2819---------------------------------------------------------------------------*/
2820typedef struct
2821{
2822 /*Status of the response*/
2823 WDI_Status wdiStatus;
2824
2825 /* Dialog token */
2826 wpt_uint8 ucBaDialogToken;
2827
2828 /* TID for which the BA session has been setup */
2829 wpt_uint8 ucBaTID;
2830
2831 /* BA Buffer Size allocated for the current BA session */
2832 wpt_uint8 ucBaBufferSize;
2833
2834 /* BA session ID */
2835 wpt_uint16 usBaSessionID;
2836
2837 /* Reordering Window buffer */
2838 wpt_uint8 ucWinSize;
2839
2840 /*Station Index to id the sta */
2841 wpt_uint8 ucSTAIdx;
2842
2843 /* Starting Sequence Number */
2844 wpt_uint16 usBaSSN;
2845
2846}WDI_AddBASessionRspParamsType;
2847
2848/*---------------------------------------------------------------------------
Siddharth Bhal171788a2014-09-29 21:02:40 +05302849 WDI_SpoofMacAddrRspParamType
2850---------------------------------------------------------------------------*/
2851typedef struct
2852{
2853 /* wdi status */
2854 wpt_uint32 wdiStatus;
2855
2856 /* Reserved Field */
2857 wpt_uint32 reserved;
2858
2859}WDI_SpoofMacAddrRspParamType;
2860/*---------------------------------------------------------------------------
Siddharth Bhal64246172015-02-27 01:04:37 +05302861 WDI_GetFrameLogRspParamType
2862---------------------------------------------------------------------------*/
2863typedef struct
2864{
2865 /* wdi status */
2866 wpt_uint32 wdiStatus;
2867}WDI_GetFrameLogRspParamType;
2868/*---------------------------------------------------------------------------
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302869 WDI_FWLoggingInitRspParamType
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05302870---------------------------------------------------------------------------*/
2871typedef struct
2872{
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302873 //FW mail box address
2874 wpt_uint64 logMailBoxAddr;
2875 wpt_uint32 status;
2876 //Logging mail box version
2877 wpt_uint8 logMailBoxVer;
2878 //Qshrink is enabled
2879 wpt_boolean logCompressEnabled;
c_manjeecfd1efb2015-09-25 19:32:34 +05302880 /* store the size of fw mem dump */
2881 wpt_uint32 fw_mem_dump_max_size;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302882 //Reserved for future purpose
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302883 wpt_uint32 reserved1;
2884 wpt_uint32 reserved2;
2885}WDI_FWLoggingInitRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302886
Gupta, Kapil7c34b322015-09-30 13:12:35 +05302887typedef struct
2888{
2889 /* wdi status */
2890 wpt_uint32 status;
2891}WDI_RssiMonitorStartRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302892
Gupta, Kapil7c34b322015-09-30 13:12:35 +05302893typedef struct
2894{
2895 /* wdi status */
2896 wpt_uint32 status;
2897}WDI_RssiMonitorStopRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302898/*---------------------------------------------------------------------------
2899 WDI_FatalEventLogsRspParamType
2900---------------------------------------------------------------------------*/
2901typedef struct
2902{
2903 /* wdi status */
2904 wpt_uint32 wdiStatus;
2905}WDI_FatalEventLogsRspParamType;
2906
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05302907/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07002908 WDI_AddBAReqinfoType
2909---------------------------------------------------------------------------*/
2910typedef struct
2911{
2912 /*Indicates the station for which BA is added..*/
2913 wpt_uint8 ucSTAIdx;
2914
2915 /* Session Id */
2916 wpt_uint8 ucBaSessionID;
2917
2918 /* Reorder Window Size */
2919 wpt_uint8 ucWinSize;
2920
2921#ifdef FEATURE_ON_CHIP_REORDERING
2922 wpt_boolean bIsReorderingDoneOnChip;
2923#endif
2924
2925}WDI_AddBAReqinfoType;
2926
2927
2928/*---------------------------------------------------------------------------
2929 WDI_AddBAReqParamsType
2930---------------------------------------------------------------------------*/
2931typedef struct
2932{
2933 /*BA Info Type*/
2934 WDI_AddBAReqinfoType wdiBAInfoType;
2935
2936 /*Request status callback offered by UMAC - it is called if the current
2937 req has returned PENDING as status; it delivers the status of sending
2938 the message over the BUS */
2939 WDI_ReqStatusCb wdiReqStatusCB;
2940
2941 /*The user data passed in by UMAC, it will be sent back when the above
2942 function pointer will be called */
2943 void* pUserData;
2944}WDI_AddBAReqParamsType;
2945
2946
2947/*---------------------------------------------------------------------------
2948 WDI_AddBARspinfoType
2949---------------------------------------------------------------------------*/
2950typedef struct
2951{
2952 /*Status of the response*/
2953 WDI_Status wdiStatus;
2954
2955 /* Dialog token */
2956 wpt_uint8 ucBaDialogToken;
2957
2958}WDI_AddBARspinfoType;
2959
2960/*---------------------------------------------------------------------------
2961 WDI_TriggerBAReqCandidateType
2962---------------------------------------------------------------------------*/
2963typedef struct
2964{
2965 /* STA index */
2966 wpt_uint8 ucSTAIdx;
2967
2968 /* TID bit map for the STA's*/
2969 wpt_uint8 ucTidBitmap;
2970
2971}WDI_TriggerBAReqCandidateType;
2972
2973
2974/*---------------------------------------------------------------------------
2975 WDI_TriggerBAReqinfoType
2976---------------------------------------------------------------------------*/
2977typedef struct
2978{
2979 /*Indicates the station for which BA is added..*/
2980 wpt_uint8 ucSTAIdx;
2981
2982 /* Session Id */
2983 wpt_uint8 ucBASessionID;
2984
2985 /* Trigger BA Request candidate count */
2986 wpt_uint16 usBACandidateCnt;
2987
2988 /* WDI_TriggerBAReqCandidateType followed by this*/
2989
2990}WDI_TriggerBAReqinfoType;
2991
2992
2993/*---------------------------------------------------------------------------
2994 WDI_TriggerBAReqParamsType
2995---------------------------------------------------------------------------*/
2996typedef struct
2997{
2998 /*BA Trigger Info Type*/
2999 WDI_TriggerBAReqinfoType wdiTriggerBAInfoType;
3000
3001 /*Request status callback offered by UMAC - it is called if the current
3002 req has returned PENDING as status; it delivers the status of sending
3003 the message over the BUS */
3004 WDI_ReqStatusCb wdiReqStatusCB;
3005
3006 /*The user data passed in by UMAC, it will be sent back when the above
3007 function pointer will be called */
3008 void* pUserData;
3009}WDI_TriggerBAReqParamsType;
3010
3011/*---------------------------------------------------------------------------
3012 WDI_AddBAInfoType
3013---------------------------------------------------------------------------*/
3014typedef struct
3015{
3016 wpt_uint16 fBaEnable : 1;
3017 wpt_uint16 startingSeqNum: 12;
3018 wpt_uint16 reserved : 3;
3019}WDI_AddBAInfoType;
3020
3021/*---------------------------------------------------------------------------
3022 WDI_TriggerBARspCandidateType
3023---------------------------------------------------------------------------*/
3024#define STA_MAX_TC 8
3025
3026typedef struct
3027{
3028 /* STA index */
3029 wpt_macAddr macSTA;
3030
3031 /* BA Info */
3032 WDI_AddBAInfoType wdiBAInfo[STA_MAX_TC];
3033}WDI_TriggerBARspCandidateType;
3034
3035/*---------------------------------------------------------------------------
3036 WDI_TriggerBARspParamsType
3037---------------------------------------------------------------------------*/
3038typedef struct
3039{
3040 /*Status of the response*/
3041 WDI_Status wdiStatus;
3042
3043 /*BSSID of the BSS*/
3044 wpt_macAddr macBSSID;
3045
3046 /* Trigger BA response candidate count */
3047 wpt_uint16 usBaCandidateCnt;
3048
3049 /* WDI_TriggerBARspCandidateType followed by this*/
3050
3051}WDI_TriggerBARspParamsType;
3052
3053/*---------------------------------------------------------------------------
3054 WDI_DelBAReqinfoType
3055---------------------------------------------------------------------------*/
3056typedef struct
3057{
3058 /*Indicates the station for which BA is added..*/
3059 wpt_uint8 ucSTAIdx;
3060
3061 /*TID for which BA was negotiated*/
3062 wpt_uint8 ucBaTID;
3063
3064 /*Originator/Recipient*/
3065 wpt_uint8 ucBaDirection;
3066
3067}WDI_DelBAReqinfoType;
3068
3069/*---------------------------------------------------------------------------
3070 WDI_DelBAReqParamsType
3071---------------------------------------------------------------------------*/
3072typedef struct
3073{
3074 /*BA Info */
3075 WDI_DelBAReqinfoType wdiBAInfo;
3076
3077 /*Request status callback offered by UMAC - it is called if the current
3078 req has returned PENDING as status; it delivers the status of sending
3079 the message over the BUS */
3080 WDI_ReqStatusCb wdiReqStatusCB;
3081
3082 /*The user data passed in by UMAC, it will be sent back when the above
3083 function pointer will be called */
3084 void* pUserData;
3085}WDI_DelBAReqParamsType;
3086
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -08003087/*---------------------------------------------------------------------------
3088 WDI_UpdateChannelReqinfoType
3089---------------------------------------------------------------------------*/
3090typedef struct
3091{
3092 /** primary 20 MHz channel frequency in mhz */
3093 wpt_uint32 mhz;
3094 /** Center frequency 1 in MHz*/
3095 wpt_uint32 band_center_freq1;
3096 /** Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode*/
3097 wpt_uint32 band_center_freq2;
3098 /* The first 26 bits are a bit mask to indicate any channel flags,
3099 (see WLAN_HAL_CHAN_FLAG*)
3100 The last 6 bits indicate the mode (see tChannelPhyModeType)*/
3101 wpt_uint32 channel_info;
3102 /** contains min power, max power, reg power and reg class id. */
3103 wpt_uint32 reg_info_1;
3104 /** contains antennamax */
3105 wpt_uint32 reg_info_2;
3106}WDI_UpdateChannelReqinfoType;
3107
3108typedef struct
3109{
3110 wpt_uint8 numchan;
3111 WDI_UpdateChannelReqinfoType *pchanParam;
3112}WDI_UpdateChannelReqType;
3113/*---------------------------------------------------------------------------
3114 WDI_UpdateChReqParamsType
3115---------------------------------------------------------------------------*/
3116typedef struct
3117{
3118 /*BA Info */
3119 WDI_UpdateChannelReqType wdiUpdateChanParams;
3120
3121 /*Request status callback offered by UMAC - it is called if the current
3122 req has returned PENDING as status; it delivers the status of sending
3123 the message over the BUS */
3124 WDI_ReqStatusCb wdiReqStatusCB;
3125
3126 /*The user data passed in by UMAC, it will be sent back when the above
3127 function pointer will be called */
3128 void* pUserData;
3129}WDI_UpdateChReqParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003130
3131/*---------------------------------------------------------------------------
3132 WDI_SwitchCHRspParamsType
3133---------------------------------------------------------------------------*/
3134typedef struct
3135{
3136 /*Status of the response*/
3137 WDI_Status wdiStatus;
3138
3139 /*Indicates the channel that WLAN is on*/
3140 wpt_uint8 ucChannel;
3141
3142#ifdef WLAN_FEATURE_VOWIFI
3143 /*HAL fills in the tx power used for mgmt frames in this field.*/
3144 wpt_int8 ucTxMgmtPower;
3145#endif
3146
3147}WDI_SwitchCHRspParamsType;
3148
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08003149/*--------------------------------------------------------------------
3150 WDI_SwitchChRspParamsType_V1
3151--------------------------------------------------------------------*/
3152typedef struct
3153{
3154 /*Status of the response*/
3155 WDI_Status wdiStatus;
3156
3157 /*Indicates the channel that WLAN is on*/
3158 wpt_uint8 ucChannel;
3159
3160#ifdef WLAN_FEATURE_VOWIFI
3161 /*HAL fills in the tx power used for mgmt frames in this field.*/
3162 wpt_int8 ucTxMgmtPower;
3163#endif
3164
3165 /* Source of Channel Switch */
3166 WDI_ChanSwitchSource channelSwitchSrc;
3167}WDI_SwitchChRspParamsType_V1;
3168
Jeff Johnson295189b2012-06-20 16:38:30 -07003169/*---------------------------------------------------------------------------
3170 WDI_ConfigSTAReqParamsType
3171---------------------------------------------------------------------------*/
3172typedef struct
3173{
3174 /*Info for the Join request that will be sent down to the device*/
3175 WDI_ConfigStaReqInfoType wdiReqInfo;
3176
3177 /*Request status callback offered by UMAC - it is called if the current
3178 req has returned PENDING as status; it delivers the status of sending
3179 the message over the BUS */
3180 WDI_ReqStatusCb wdiReqStatusCB;
3181
3182 /*The user data passed in by UMAC, it will be sent back when the above
3183 function pointer will be called */
3184 void* pUserData;
3185}WDI_ConfigSTAReqParamsType;
3186
3187
3188/*---------------------------------------------------------------------------
3189 WDI_UpdateBeaconParamsInfoType
3190---------------------------------------------------------------------------*/
3191
3192typedef struct
3193{
3194 /*BSS Index of the BSS*/
3195 wpt_uint8 ucBssIdx;
3196
3197 /*shortPreamble mode. HAL should update all the STA rates when it
3198 receives this message*/
3199 wpt_uint8 ucfShortPreamble;
3200 /* short Slot time.*/
3201 wpt_uint8 ucfShortSlotTime;
3202 /* Beacon Interval */
3203 wpt_uint16 usBeaconInterval;
3204 /*Protection related */
3205 wpt_uint8 ucllaCoexist;
3206 wpt_uint8 ucllbCoexist;
3207 wpt_uint8 ucllgCoexist;
3208 wpt_uint8 ucHt20MhzCoexist;
3209 wpt_uint8 ucllnNonGFCoexist;
3210 wpt_uint8 ucfLsigTXOPProtectionFullSupport;
3211 wpt_uint8 ucfRIFSMode;
3212
3213 wpt_uint16 usChangeBitmap;
3214}WDI_UpdateBeaconParamsInfoType;
3215
Mohit Khanna4a70d262012-09-11 16:30:12 -07003216#ifdef WLAN_FEATURE_11AC
3217typedef struct
3218{
3219 wpt_uint16 opMode;
3220 wpt_uint16 staId;
3221}WDI_UpdateVHTOpMode;
3222#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003223
3224/*---------------------------------------------------------------------------
3225 WDI_UpdateBeaconParamsType
3226---------------------------------------------------------------------------*/
3227typedef struct
3228{
3229 /*Update Beacon Params Info*/
3230 WDI_UpdateBeaconParamsInfoType wdiUpdateBeaconParamsInfo;
3231
3232 /*Request status callback offered by UMAC - it is called if the current
3233 req has returned PENDING as status; it delivers the status of sending
3234 the message over the BUS */
3235 WDI_ReqStatusCb wdiReqStatusCB;
3236
3237 /*The user data passed in by UMAC, it will be sent back when the above
3238 function pointer will be called */
3239 void* pUserData;
3240}WDI_UpdateBeaconParamsType;
3241
3242/*---------------------------------------------------------------------------
3243 WDI_SendBeaconParamsInfoType
3244---------------------------------------------------------------------------*/
3245
3246typedef struct {
3247
3248 /*BSSID of the BSS*/
3249 wpt_macAddr macBSSID;
3250
3251 /* Beacon data */
3252 wpt_uint8 beacon[WDI_BEACON_TEMPLATE_SIZE];
3253
3254 /* length of the template */
3255 wpt_uint32 beaconLength;
3256
Jeff Johnson295189b2012-06-20 16:38:30 -07003257 /* TIM IE offset from the beginning of the template.*/
3258 wpt_uint32 timIeOffset;
Jeff Johnson295189b2012-06-20 16:38:30 -07003259
Jeff Johnson295189b2012-06-20 16:38:30 -07003260 /* P2P IE offset from the beginning of the template */
3261 wpt_uint16 usP2PIeOffset;
Jeff Johnson295189b2012-06-20 16:38:30 -07003262} WDI_SendBeaconParamsInfoType;
3263
3264/*---------------------------------------------------------------------------
3265 WDI_SendBeaconParamsType
3266---------------------------------------------------------------------------*/
3267typedef struct
3268{
3269 /*Send Beacon Params Info*/
3270 WDI_SendBeaconParamsInfoType wdiSendBeaconParamsInfo;
3271
3272 /*Request status callback offered by UMAC - it is called if the current
3273 req has returned PENDING as status; it delivers the status of sending
3274 the message over the BUS */
3275 WDI_ReqStatusCb wdiReqStatusCB;
3276
3277 /*The user data passed in by UMAC, it will be sent back when the above
3278 function pointer will be called */
3279 void* pUserData;
3280}WDI_SendBeaconParamsType;
3281
3282/*---------------------------------------------------------------------------
3283 WDI_LinkStateType
3284---------------------------------------------------------------------------*/
3285typedef enum
3286{
3287 WDI_LINK_IDLE_STATE = 0,
3288 WDI_LINK_PREASSOC_STATE = 1,
3289 WDI_LINK_POSTASSOC_STATE = 2,
3290 WDI_LINK_AP_STATE = 3,
3291 WDI_LINK_IBSS_STATE = 4,
3292
3293 // BT-AMP Case
3294 WDI_LINK_BTAMP_PREASSOC_STATE = 5,
3295 WDI_LINK_BTAMP_POSTASSOC_STATE = 6,
3296 WDI_LINK_BTAMP_AP_STATE = 7,
3297 WDI_LINK_BTAMP_STA_STATE = 8,
3298
3299 // Reserved for HAL internal use
3300 WDI_LINK_LEARN_STATE = 9,
3301 WDI_LINK_SCAN_STATE = 10,
3302 WDI_LINK_FINISH_SCAN_STATE = 11,
3303 WDI_LINK_INIT_CAL_STATE = 12,
3304 WDI_LINK_FINISH_CAL_STATE = 13,
Jeff Johnson295189b2012-06-20 16:38:30 -07003305 WDI_LINK_LISTEN_STATE = 14,
Gopichand Nakkala924e4552013-05-08 19:18:14 +05303306 WDI_LINK_SEND_ACTION_STATE = 15,
Jeff Johnson295189b2012-06-20 16:38:30 -07003307 WDI_LINK_MAX = 0x7FFFFFFF
3308} WDI_LinkStateType;
3309
3310/*---------------------------------------------------------------------------
3311 WDI_SetLinkReqInfoType
3312---------------------------------------------------------------------------*/
3313typedef struct
3314{
3315 /*BSSID of the BSS*/
3316 wpt_macAddr macBSSID;
3317
3318 /*Link state*/
3319 WDI_LinkStateType wdiLinkState;
3320
3321 /*BSSID of the BSS*/
3322 wpt_macAddr macSelfStaMacAddr;
3323}WDI_SetLinkReqInfoType;
3324
3325/*---------------------------------------------------------------------------
3326 WDI_SetLinkReqParamsType
3327---------------------------------------------------------------------------*/
3328typedef struct
3329{
3330 /*Link Info*/
3331 WDI_SetLinkReqInfoType wdiLinkInfo;
3332
3333 /*Request status callback offered by UMAC - it is called if the current
3334 req has returned PENDING as status; it delivers the status of sending
3335 the message over the BUS */
3336 WDI_ReqStatusCb wdiReqStatusCB;
3337
3338 /*The user data passed in by UMAC, it will be sent back when the above
3339 function pointer will be called */
3340 void* pUserData;
3341}WDI_SetLinkReqParamsType;
3342
3343/*---------------------------------------------------------------------------
3344 WDI_GetStatsParamsInfoType
3345---------------------------------------------------------------------------*/
3346typedef struct
3347{
3348 /*Indicates the station for which Get Stats are requested..*/
3349 wpt_uint8 ucSTAIdx;
3350
3351 /* categories of stats requested */
3352 wpt_uint32 uStatsMask;
3353}WDI_GetStatsParamsInfoType;
3354
3355/*---------------------------------------------------------------------------
3356 WDI_GetStatsReqParamsType
3357---------------------------------------------------------------------------*/
3358typedef struct
3359{
3360 /*Get Stats Params Info*/
3361 WDI_GetStatsParamsInfoType wdiGetStatsParamsInfo;
3362
3363 /*Request status callback offered by UMAC - it is called if the current
3364 req has returned PENDING as status; it delivers the status of sending
3365 the message over the BUS */
3366 WDI_ReqStatusCb wdiReqStatusCB;
3367
3368 /*The user data passed in by UMAC, it will be sent back when the above
3369 function pointer will be called */
3370 void* pUserData;
3371}WDI_GetStatsReqParamsType;
3372
3373/*---------------------------------------------------------------------------
3374 WDI_GetStatsRspParamsType
3375---------------------------------------------------------------------------*/
3376typedef struct
3377{
3378 /*message type is same as the request type*/
3379 wpt_uint16 usMsgType;
3380
3381 /* length of the entire request, includes the pStatsBuf length too*/
3382 wpt_uint16 usMsgLen;
3383
3384 /*Result of the operation*/
3385 WDI_Status wdiStatus;
3386
3387 /*Indicates the station for which Get Stats are requested..*/
3388 wpt_uint8 ucSTAIdx;
3389
3390 /* categories of stats requested */
3391 wpt_uint32 uStatsMask;
3392
3393 /* The Stats buffer starts here and can be an aggregate of more than one statistics
3394 * structure depending on statsMask.*/
3395}WDI_GetStatsRspParamsType;
3396
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003397#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08003398/*---------------------------------------------------------------------------
3399 WDI_GetRoamRssiParamsInfoType
3400---------------------------------------------------------------------------*/
3401typedef struct
3402{
3403 /*Indicates the station for which Get Stats are requested..*/
3404 wpt_uint8 ucSTAIdx;
3405
3406 /* categories of stats requested */
3407 wpt_uint32 uStatsMask;
3408}WDI_GetRoamRssiParamsInfoType;
3409
3410/*---------------------------------------------------------------------------
3411 WDI_GetRoamRssiReqParamsType
3412---------------------------------------------------------------------------*/
3413typedef struct
3414{
3415 /*Get Roam Rssi Params Info*/
3416 WDI_GetRoamRssiParamsInfoType wdiGetRoamRssiParamsInfo;
3417
3418 /*Request status callback offered by UMAC - it is called if the current
3419 req has returned PENDING as status; it delivers the status of sending
3420 the message over the BUS */
3421 WDI_ReqStatusCb wdiReqStatusCB;
3422
3423 /*The user data passed in by UMAC, it will be sent back when the above
3424 function pointer will be called */
3425 void* pUserData;
3426}WDI_GetRoamRssiReqParamsType;
3427
3428/*---------------------------------------------------------------------------
3429 WDI_GetRoamRssiRspParamsType
3430---------------------------------------------------------------------------*/
3431typedef struct
3432{
3433 /*Result of the operation*/
3434 WDI_Status wdiStatus;
3435
3436 /*Indicates the station for which Get Stats are requested..*/
3437 wpt_uint8 ucSTAIdx;
3438
3439 /* roam rssi requested */
3440 wpt_int8 rssi;
3441
3442 /* The Stats buffer starts here and can be an aggregate of more than one statistics
3443 * structure depending on statsMask.*/
3444}WDI_GetRoamRssiRspParamsType;
3445#endif
3446
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003447#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07003448/*---------------------------------------------------------------------------
3449 WDI_TSMStatsParamsInfoType
3450---------------------------------------------------------------------------*/
3451typedef struct
3452{
3453 /*Indicates the station for which Get Stats are requested..*/
3454 wpt_uint8 ucTid;
3455
3456 wpt_macAddr bssid;
3457}WDI_TSMStatsParamsInfoType;
3458
3459/*---------------------------------------------------------------------------
3460 WDI_TSMStatsReqParamsType
3461---------------------------------------------------------------------------*/
3462typedef struct
3463{
3464 /*Get TSM Stats Params Info*/
3465 WDI_TSMStatsParamsInfoType wdiTsmStatsParamsInfo;
3466
3467 WDI_ReqStatusCb wdiReqStatusCB;
3468
3469 /*The user data passed in by UMAC, it will be sent back when the above
3470 function pointer will be called */
3471 void* pUserData;
3472
3473}WDI_TSMStatsReqParamsType;
3474
3475
3476/*---------------------------------------------------------------------------
3477 WDI_TSMStatsRspParamsType
3478---------------------------------------------------------------------------*/
3479typedef struct
3480{
3481 /*Indicates the status of the operation */
3482 WDI_Status wdiStatus;
3483
3484 wpt_uint16 UplinkPktQueueDly;
3485 wpt_uint16 UplinkPktQueueDlyHist[4];
3486 wpt_uint32 UplinkPktTxDly;
3487 wpt_uint16 UplinkPktLoss;
3488 wpt_uint16 UplinkPktCount;
3489 wpt_uint8 RoamingCount;
3490 wpt_uint16 RoamingDly;
3491}WDI_TSMStatsRspParamsType;
3492
3493
3494#endif
3495/*---------------------------------------------------------------------------
3496 WDI_UpdateCfgReqParamsType
3497---------------------------------------------------------------------------*/
3498typedef struct
3499{
3500 /*This is a TLV formatted buffer containing all config values that can
3501 be set through the DAL Interface
3502
3503 The TLV is expected to be formatted like this:
3504
3505 0 7 15 31 ....
3506 | CONFIG ID | CFG LEN | RESERVED | CFG BODY |
3507
3508 Or from a C construct point of VU it would look like this:
3509
3510 typedef struct WPT_PACK_POST
3511 {
3512 #ifdef WPT_BIG_ENDIAN
3513 wpt_uint32 ucCfgId:8;
3514 wpt_uint32 ucCfgLen:8;
3515 wpt_uint32 usReserved:16;
3516 #else
3517 wpt_uint32 usReserved:16;
3518 wpt_uint32 ucCfgLen:8;
3519 wpt_uint32 ucCfgId:8;
3520 #endif
3521
3522 wpt_uint8 ucCfgBody[ucCfgLen];
3523 }WDI_ConfigType;
3524
3525 Multiple such tuplets are to be placed in the config buffer. One for
3526 each required configuration item:
3527
3528 | TLV 1 | TLV2 | ....
3529
3530 The buffer is expected to be a flat area of memory that can be manipulated
3531 with standard memory routines.
3532
3533 For more info please check paragraph 2.3.1 Config Structure from the
3534 HAL LLD.
3535
3536 For a list of accepted configuration list and IDs please look up
3537 wlan_qct_dal_cfg.h
3538 */
3539 void* pConfigBuffer;
3540
3541 /*Length of the config buffer above*/
3542 wpt_uint32 uConfigBufferLen;
3543
3544 /*Request status callback offered by UMAC - it is called if the current
3545 req has returned PENDING as status; it delivers the status of sending
3546 the message over the BUS */
3547 WDI_ReqStatusCb wdiReqStatusCB;
3548
3549 /*The user data passed in by UMAC, it will be sent back when the above
3550 function pointer will be called */
3551 void* pUserData;
3552}WDI_UpdateCfgReqParamsType;
3553
3554/*---------------------------------------------------------------------------
3555 WDI_UpdateProbeRspTemplateInfoType
3556---------------------------------------------------------------------------*/
3557//Default Beacon template size
3558#define WDI_PROBE_RSP_TEMPLATE_SIZE 0x180
3559
3560#define WDI_PROBE_REQ_BITMAP_IE_LEN 8
3561
3562typedef struct
3563{
3564 /*BSSID for which the Probe Template is to be used*/
3565 wpt_macAddr macBSSID;
3566
3567 /*Probe response template*/
3568 wpt_uint8 *pProbeRespTemplate[WDI_PROBE_RSP_TEMPLATE_SIZE];
3569
3570 /*Template Len*/
3571 wpt_uint32 uProbeRespTemplateLen;
3572
3573 /*Bitmap for the IEs that are to be handled at SLM level*/
3574 wpt_uint32 uaProxyProbeReqValidIEBmap[WDI_PROBE_REQ_BITMAP_IE_LEN];
3575
3576}WDI_UpdateProbeRspTemplateInfoType;
3577
3578/*---------------------------------------------------------------------------
3579 WDI_UpdateProbeRspParamsType
3580---------------------------------------------------------------------------*/
3581typedef struct
3582{
3583 /*Link Info*/
3584 WDI_UpdateProbeRspTemplateInfoType wdiProbeRspTemplateInfo;
3585
3586 /*Request status callback offered by UMAC - it is called if the current
3587 req has returned PENDING as status; it delivers the status of sending
3588 the message over the BUS */
3589 WDI_ReqStatusCb wdiReqStatusCB;
3590
3591 /*The user data passed in by UMAC, it will be sent back when the above
3592 function pointer will be called */
3593 void* pUserData;
3594}WDI_UpdateProbeRspTemplateParamsType;
3595
3596/*---------------------------------------------------------------------------
3597 WDI_NvDownloadReqBlobInfo
3598---------------------------------------------------------------------------*/
3599
3600typedef struct
3601{
3602 /* Blob starting address*/
3603 void *pBlobAddress;
3604
3605 /* Blob size */
3606 wpt_uint32 uBlobSize;
3607
3608}WDI_NvDownloadReqBlobInfo;
3609
3610/*---------------------------------------------------------------------------
3611 WDI_NvDownloadReqParamsType
3612---------------------------------------------------------------------------*/
3613typedef struct
3614{
3615 /*NV Blob Info*/
3616 WDI_NvDownloadReqBlobInfo wdiBlobInfo;
3617
3618 /*Request status callback offered by UMAC - it is called if the current
3619 req has returned PENDING as status; it delivers the status of sending
3620 the message over the BUS */
3621 WDI_ReqStatusCb wdiReqStatusCB;
3622
3623 /*The user data passed in by UMAC, it will be sent back when the above
3624 function pointer will be called */
3625 void* pUserData;
3626
3627}WDI_NvDownloadReqParamsType;
3628
3629/*---------------------------------------------------------------------------
3630 WDI_NvDownloadRspInfoType
3631---------------------------------------------------------------------------*/
3632typedef struct
3633{
3634 /*Status of the response*/
3635 WDI_Status wdiStatus;
3636
3637}WDI_NvDownloadRspInfoType;
3638
3639/*---------------------------------------------------------------------------
3640 WDI_SetMaxTxPowerInfoType
3641---------------------------------------------------------------------------*/
3642
3643typedef struct
3644{
3645 /*BSSID is needed to identify which session issued this request. As the request has
3646 power constraints, this should be applied only to that session*/
3647 wpt_macAddr macBSSId;
3648
3649
3650 wpt_macAddr macSelfStaMacAddr;
3651
3652 /* In request power == MaxTxpower to be used.*/
3653 wpt_int8 ucPower;
3654
3655}WDI_SetMaxTxPowerInfoType;
3656
3657/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003658 WDI_SetTxPowerInfoType
3659---------------------------------------------------------------------------*/
3660
3661typedef struct
3662{
3663 wpt_uint8 bssIdx;
3664 /* In request power == MaxTxpower to be used.*/
3665 wpt_uint8 ucPower;
3666
3667}WDI_SetTxPowerInfoType;
3668
3669/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07003670 WDI_SetMaxTxPowerParamsType
3671---------------------------------------------------------------------------*/
3672typedef struct
3673{
3674 /*Link Info*/
3675 WDI_SetMaxTxPowerInfoType wdiMaxTxPowerInfo;
3676
3677 /*Request status callback offered by UMAC - it is called if the current
3678 req has returned PENDING as status; it delivers the status of sending
3679 the message over the BUS */
3680 WDI_ReqStatusCb wdiReqStatusCB;
3681
3682 /*The user data passed in by UMAC, it will be sent back when the above
3683 function pointer will be called */
3684 void* pUserData;
3685}WDI_SetMaxTxPowerParamsType;
3686
schang86c22c42013-03-13 18:41:24 -07003687/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07003688 WDI_Band
3689---------------------------------------------------------------------------*/
3690typedef enum
3691{
3692 WDI_BAND_ALL,
3693 WDI_BAND_24,
3694 WDI_BAND_5G,
3695 WDI_BAND_MAX,
3696}eWDIBand;
3697
3698/*---------------------------------------------------------------------------
3699 WDI_MaxTxPowerPerBandInfoType
3700---------------------------------------------------------------------------*/
3701typedef struct
3702{
3703 eWDIBand bandInfo;
3704 /* In request power == MaxTxpower to be used.*/
3705 wpt_uint8 ucPower;
3706}WDI_MaxTxPowerPerBandInfoType;
3707
3708/*---------------------------------------------------------------------------
3709 WDI_SetMaxTxPowerPerBandParamsType
3710---------------------------------------------------------------------------*/
3711typedef struct
3712{
3713 /*Link Info*/
3714 WDI_MaxTxPowerPerBandInfoType wdiMaxTxPowerPerBandInfo;
3715
3716 /*Request status callback offered by UMAC - it is called if the current
3717 req has returned PENDING as status; it delivers the status of sending
3718 the message over the BUS */
3719 WDI_ReqStatusCb wdiReqStatusCB;
3720
3721 /*The user data passed in by UMAC, it will be sent back when the above
3722 function pointer will be called */
3723 void* pUserData;
3724}WDI_SetMaxTxPowerPerBandParamsType;
3725
3726/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003727 WDI_SetTxPowerParamsType
3728---------------------------------------------------------------------------*/
3729typedef struct
3730{
3731 /*Link Info*/
3732 WDI_SetTxPowerInfoType wdiTxPowerInfo;
3733
3734 /*Request status callback offered by UMAC - it is called if the current
3735 req has returned PENDING as status; it delivers the status of sending
3736 the message over the BUS */
3737 WDI_ReqStatusCb wdiReqStatusCB;
3738
3739 /*The user data passed in by UMAC, it will be sent back when the above
3740 function pointer will be called */
3741 void* pUserData;
3742}WDI_SetTxPowerParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003743
3744/*---------------------------------------------------------------------------
3745 WDI_SetMaxTxPowerRspMsg
3746---------------------------------------------------------------------------*/
3747
3748typedef struct
3749{
3750 /* In response, power==tx power used for management frames*/
3751 wpt_int8 ucPower;
3752
3753 /*Result of the operation*/
3754 WDI_Status wdiStatus;
3755
3756}WDI_SetMaxTxPowerRspMsg;
3757
schang86c22c42013-03-13 18:41:24 -07003758/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07003759 WDI_SetMaxTxPowerPerBandRspMsg
3760---------------------------------------------------------------------------*/
3761typedef struct
3762{
3763 /* In response, power==tx power used for management frames*/
3764 wpt_int8 ucPower;
3765
3766 /*Result of the operation*/
3767 WDI_Status wdiStatus;
3768
3769}WDI_SetMaxTxPowerPerBandRspMsg;
3770
3771/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003772 WDI_SetTxPowerRspMsg
3773---------------------------------------------------------------------------*/
3774
3775typedef struct
3776{
3777 /* In response, power==tx power used for management frames*/
3778 wpt_int8 ucPower;
3779
3780 /*Result of the operation*/
3781 WDI_Status wdiStatus;
3782
3783}WDI_SetTxPowerRspMsg;
3784
Jeff Johnson295189b2012-06-20 16:38:30 -07003785typedef struct
3786{
3787 wpt_uint8 ucOpp_ps;
3788 wpt_uint32 uCtWindow;
3789 wpt_uint8 ucCount;
3790 wpt_uint32 uDuration;
3791 wpt_uint32 uInterval;
3792 wpt_uint32 uSingle_noa_duration;
3793 wpt_uint8 ucPsSelection;
3794}WDI_SetP2PGONOAReqInfoType;
3795
3796/*---------------------------------------------------------------------------
3797 WDI_SetP2PGONOAReqParamsType
3798---------------------------------------------------------------------------*/
3799typedef struct
3800{
3801 /*P2P GO NOA Req*/
3802 WDI_SetP2PGONOAReqInfoType wdiP2PGONOAInfo;
3803
3804 /*Request status callback offered by UMAC - it is called if the current
3805 req has returned PENDING as status; it delivers the status of sending
3806 the message over the BUS */
3807 WDI_ReqStatusCb wdiReqStatusCB;
3808
3809 /*The user data passed in by UMAC, it will be sent back when the above
3810 function pointer will be called */
3811 void* pUserData;
3812}WDI_SetP2PGONOAReqParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003813
Naresh Jayaramc7cbd782014-02-04 17:38:23 +05303814#define WDI_MAX_SUPP_CHANNELS 128
3815#define WDI_MAX_SUPP_OPER_CLASSES 32
3816
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05303817typedef struct
3818{
3819 wpt_uint16 uStaIdx;
3820 wpt_uint8 uIsResponder;
3821 wpt_uint8 uUapsdQueues;
3822 wpt_uint8 uMaxSp;
3823 wpt_uint8 uIsBufSta;
Naresh Jayaramc7cbd782014-02-04 17:38:23 +05303824 wpt_uint8 uIsOffChannelSupported;
3825 wpt_uint8 peerCurrOperClass;
3826 wpt_uint8 selfCurrOperClass;
3827 wpt_uint8 validChannelsLen;
3828 wpt_uint8 validChannels[WDI_MAX_SUPP_CHANNELS];
3829 wpt_uint8 validOperClassesLen;
3830 wpt_uint8 validOperClasses[WDI_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05303831}WDI_SetTDLSLinkEstablishReqInfoType;
3832/*---------------------------------------------------------------------------
3833 WDI_SetTDLSLinkEstablishReqParamsType
3834---------------------------------------------------------------------------*/
3835typedef struct
3836{
3837 /*TDLS Link Establish Req*/
3838 WDI_SetTDLSLinkEstablishReqInfoType wdiTDLSLinkEstablishInfo;
3839
3840 /*Request status callback offered by UMAC - it is called if the current
3841 req has returned PENDING as status; it delivers the status of sending
3842 the message over the BUS */
3843 WDI_ReqStatusCb wdiReqStatusCB;
3844
3845 /*The user data passed in by UMAC, it will be sent back when the above
3846 function pointer will be called */
3847 void* pUserData;
3848}WDI_SetTDLSLinkEstablishReqParamsType;
3849
Gopichand Nakkala574f6d12013-06-27 19:38:43 +05303850typedef struct
3851{
3852 /*Result of the operation*/
3853 WDI_Status wdiStatus;
3854
3855 /*STA Idx*/
3856 wpt_uint16 uStaIdx;
3857}WDI_SetTdlsLinkEstablishReqResp;
Jeff Johnson295189b2012-06-20 16:38:30 -07003858
Atul Mittalc0f739f2014-07-31 13:47:47 +05303859
3860
3861typedef struct
3862{
3863 /*STA Index*/
3864 wpt_uint8 staIdx;
3865 /* if this is 1, self is initiator otherwise responder only*/
3866 wpt_uint8 isOffchannelInitiator;
3867 /*TDLS off channel related params */
3868 wpt_uint8 targetOperClass;
3869 wpt_uint8 targetChannel;
3870 wpt_uint8 secondaryChannelOffset;
3871 wpt_uint8 reserved[64];
3872}WDI_SetTDLSChanSwitchReqInfoType;
3873
3874typedef struct
3875{
3876 WDI_SetTDLSChanSwitchReqInfoType wdiTDLSChanSwitchReqInfo;
3877 WDI_ReqStatusCb wdiReqStatusCB;
3878 void* pUserData;
3879}WDI_SetTDLSChanSwitchReqParamsType;
3880
3881
3882typedef struct
3883{
3884 /*Result of the operation*/
3885 WDI_Status wdiStatus;
3886
3887 /*STA Idx*/
3888 wpt_uint16 uStaIdx;
3889}WDI_SetTdlsChanSwitchReqResp;
Jeff Johnson295189b2012-06-20 16:38:30 -07003890/*---------------------------------------------------------------------------
3891 WDI_SetAddSTASelfParamsType
3892---------------------------------------------------------------------------*/
3893typedef struct
3894{
3895 /*Self Station MAC address*/
3896 wpt_macAddr selfMacAddr;
3897
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -07003898 /*Self STA device mode*/
3899 wpt_uint32 currDeviceMode;
3900
Jeff Johnson295189b2012-06-20 16:38:30 -07003901 /*Status of the operation*/
3902 wpt_uint32 uStatus;
3903}WDI_AddSTASelfInfoType;
3904
3905/*---------------------------------------------------------------------------
3906 WDI_SetAddSTASelfParamsType
3907---------------------------------------------------------------------------*/
3908typedef struct
3909{
3910 /* Add Sta Self Req */
3911 WDI_AddSTASelfInfoType wdiAddSTASelfInfo;
3912
3913 /*Request status callback offered by UMAC - it is called if the current
3914 req has returned PENDING as status; it delivers the status of sending
3915 the message over the BUS */
3916 WDI_ReqStatusCb wdiReqStatusCB;
3917
3918 /*The user data passed in by UMAC, it will be sent back when the above
3919 function pointer will be called */
3920 void* pUserData;
3921}WDI_AddSTASelfReqParamsType;
3922
3923
3924/*---------------------------------------------------------------------------
3925 WDI_AddSTASelfRspParamsType
3926---------------------------------------------------------------------------*/
3927typedef struct
3928{
3929 /*Status of the response*/
3930 WDI_Status wdiStatus;
3931
3932 /*STA Idx allocated by HAL*/
3933 wpt_uint8 ucSTASelfIdx;
3934
3935 /* DPU Index (IGTK, PTK, GTK all same) */
3936 wpt_uint8 dpuIdx;
3937
3938 /* DPU Signature */
3939 wpt_uint8 dpuSignature;
3940
3941 /*Self STA Mac*/
3942 wpt_macAddr macSelfSta;
3943
3944}WDI_AddSTASelfRspParamsType;
3945
3946/*---------------------------------------------------------------------------
3947 WDI_DelSTASelfReqParamsType
3948 Del Sta Self info passed to WDI form WDA
3949---------------------------------------------------------------------------*/
3950typedef struct
3951{
3952 wpt_macAddr selfMacAddr;
3953
3954}WDI_DelSTASelfInfoType;
3955
3956/*---------------------------------------------------------------------------
3957 WDI_DelSTASelfReqParamsType
3958 Del Sta Self info passed to WDI form WDA
3959---------------------------------------------------------------------------*/
3960typedef struct
3961{
3962 /*Del Sta Self Info Type */
3963 WDI_DelSTASelfInfoType wdiDelStaSelfInfo;
3964 /*Request status callback offered by UMAC - it is called if the current req
3965 has returned PENDING as status; it delivers the status of sending the message
3966 over the BUS */
3967 WDI_ReqStatusCb wdiReqStatusCB;
3968 /*The user data passed in by UMAC, it will be sent back when the above
3969 function pointer will be called */
3970 void* pUserData;
3971}WDI_DelSTASelfReqParamsType;
3972
3973/*---------------------------------------------------------------------------
3974 WDI_DelSTASelfRspParamsType
3975---------------------------------------------------------------------------*/
3976typedef struct
3977{
3978 /*Status of the response*/
3979 WDI_Status wdiStatus;
3980
3981 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
3982// wpt_uint8 ucSTAIdx;
3983}WDI_DelSTASelfRspParamsType;
3984
3985/*---------------------------------------------------------------------------
3986 WDI_UapsdInfoType
3987 UAPSD parameters passed per AC to WDA from UMAC
3988---------------------------------------------------------------------------*/
3989typedef struct
3990{
3991 wpt_uint8 ucSTAIdx; // STA index
3992 wpt_uint8 ucAc; // Access Category
3993 wpt_uint8 ucUp; // User Priority
3994 wpt_uint32 uSrvInterval; // Service Interval
3995 wpt_uint32 uSusInterval; // Suspend Interval
3996 wpt_uint32 uDelayInterval; // Delay Interval
3997} WDI_UapsdInfoType;
3998
3999/*---------------------------------------------------------------------------
4000 WDI_SetUapsdAcParamsReqParamsType
4001 UAPSD parameters passed per AC to WDI from WDA
4002---------------------------------------------------------------------------*/
4003typedef struct
4004{
4005 /*Enter BMPS Info Type, same as tEnterBmpsParams */
4006 WDI_UapsdInfoType wdiUapsdInfo;
4007 /*Request status callback offered by UMAC - it is called if the current req
4008 has returned PENDING as status; it delivers the status of sending the message
4009 over the BUS */
4010 WDI_ReqStatusCb wdiReqStatusCB;
4011 /*The user data passed in by UMAC, it will be sent back when the above
4012 function pointer will be called */
4013 void* pUserData;
4014}WDI_SetUapsdAcParamsReqParamsType;
4015
4016/*---------------------------------------------------------------------------
4017 WDI_EnterBmpsReqinfoType
4018 Enter BMPS parameters passed to WDA from UMAC
4019---------------------------------------------------------------------------*/
4020typedef struct
4021{
4022 //TBTT value derived from the last beacon
4023 wpt_uint8 ucBssIdx;
4024 wpt_uint64 uTbtt;
4025 wpt_uint8 ucDtimCount;
4026 //DTIM period given to HAL during association may not be valid,
4027 //if association is based on ProbeRsp instead of beacon.
4028 wpt_uint8 ucDtimPeriod;
4029 /* DXE physical addr to be passed down to RIVA. RIVA HAL will use it to program
4030 DXE when DXE wakes up from power save*/
4031 unsigned int dxePhyAddr;
4032
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08004033 // For ESE and 11R Roaming
Jeff Johnson295189b2012-06-20 16:38:30 -07004034 wpt_uint32 rssiFilterPeriod;
4035 wpt_uint32 numBeaconPerRssiAverage;
4036 wpt_uint8 bRssiFilterEnable;
4037}WDI_EnterBmpsReqinfoType;
4038
4039/*---------------------------------------------------------------------------
4040 WDI_EnterBmpsReqParamsType
4041 Enter BMPS parameters passed to WDI from WDA
4042---------------------------------------------------------------------------*/
4043typedef struct
4044{
4045 /*Enter BMPS Info Type, same as tEnterBmpsParams */
4046 WDI_EnterBmpsReqinfoType wdiEnterBmpsInfo;
4047 /*Request status callback offered by UMAC - it is called if the current req
4048 has returned PENDING as status; it delivers the status of sending the message
4049 over the BUS */
4050 WDI_ReqStatusCb wdiReqStatusCB;
4051 /*The user data passed in by UMAC, it will be sent back when the above
4052 function pointer will be called */
4053 void* pUserData;
4054}WDI_EnterBmpsReqParamsType;
4055
4056/*---------------------------------------------------------------------------
Mihir Shetea4306052014-03-25 00:02:54 +05304057 WDI_EnterImpsReqParamsType
4058 Enter IMPS parameters passed to WDI from WDA
4059---------------------------------------------------------------------------*/
4060typedef struct
4061{
4062 /*Request status callback offered by UMAC - it is called if the current req
4063 has returned PENDING as status; it delivers the status of sending the message
4064 over the BUS */
4065 WDI_ReqStatusCb wdiReqStatusCB;
4066 /*The user data passed in by UMAC, it will be sent back when the above
4067 function pointer will be called */
4068 void* pUserData;
4069}WDI_EnterImpsReqParamsType;
4070
4071/*---------------------------------------------------------------------------
Mahesh A Saptasagar329813b2014-12-15 12:16:51 +05304072 WDI_ExitImpsReqParamsType
4073 Exit IMPS parameters passed to WDI from WDA
4074----------------------------------------------------------------------------*/
4075typedef struct
4076{
4077 /*Request status callback offered by UMAC */
4078 WDI_ReqStatusCb wdiReqStatusCB;
4079 /*The user data passed in by UMAC, it will be sent back when the above
4080 function pointer will be called */
4081 void* pUserData;
4082
4083}WDI_ExitImpsReqParamsType;
4084
4085/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004086 WDI_EnterBmpsReqParamsType
4087 Enter BMPS parameters passed from WDI to WDA
4088---------------------------------------------------------------------------*/
4089typedef struct
4090{
4091 /*Status of the response*/
4092 WDI_Status wdiStatus;
4093
4094 /*BssIDX of the session*/
4095 wpt_uint8 bssIdx;
4096}WDI_EnterBmpsRspParamsType;
4097
4098/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004099 WDI_ExitBmpsReqinfoType
4100 Exit BMPS parameters passed to WDA from UMAC
4101---------------------------------------------------------------------------*/
4102typedef struct
4103{
4104 wpt_uint8 ucSendDataNull;
Jeff Johnsone7245742012-09-05 17:12:55 -07004105 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004106}WDI_ExitBmpsReqinfoType;
4107
4108/*---------------------------------------------------------------------------
4109 WDI_ExitBmpsReqParamsType
4110 Exit BMPS parameters passed to WDI from WDA
4111---------------------------------------------------------------------------*/
4112typedef struct
4113{
4114 /*Exit BMPS Info Type, same as tExitBmpsParams */
4115 WDI_ExitBmpsReqinfoType wdiExitBmpsInfo;
4116 /*Request status callback offered by UMAC - it is called if the current req
4117 has returned PENDING as status; it delivers the status of sending the message
4118 over the BUS */
4119 WDI_ReqStatusCb wdiReqStatusCB;
4120 /*The user data passed in by UMAC, it will be sent back when the above
4121 function pointer will be called */
4122 void* pUserData;
4123}WDI_ExitBmpsReqParamsType;
4124
4125/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004126 WDI_ExitBmpsReqParamsType
4127 Exit BMPS parameters passed from WDI to WDA
4128---------------------------------------------------------------------------*/
4129typedef struct
4130{
4131 /*Status of the response*/
4132 WDI_Status wdiStatus;
4133
4134 /*BssIDX of the session*/
4135 wpt_uint8 bssIdx;
4136}WDI_ExitBmpsRspParamsType;
4137
4138/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004139 WDI_EnterUapsdReqinfoType
4140 Enter UAPSD parameters passed to WDA from UMAC
4141---------------------------------------------------------------------------*/
4142typedef struct
4143{
4144 wpt_uint8 ucBkDeliveryEnabled:1;
4145 wpt_uint8 ucBeDeliveryEnabled:1;
4146 wpt_uint8 ucViDeliveryEnabled:1;
4147 wpt_uint8 ucVoDeliveryEnabled:1;
4148 wpt_uint8 ucBkTriggerEnabled:1;
4149 wpt_uint8 ucBeTriggerEnabled:1;
4150 wpt_uint8 ucViTriggerEnabled:1;
4151 wpt_uint8 ucVoTriggerEnabled:1;
Jeff Johnsone7245742012-09-05 17:12:55 -07004152 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004153}WDI_EnterUapsdReqinfoType;
4154
4155/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004156 WDI_EnterUapsdRspParamsType
4157 Enter UAPSD parameters passed from WDI to WDA
4158---------------------------------------------------------------------------*/
4159typedef struct
4160{
4161 /*Status of the response*/
4162 WDI_Status wdiStatus;
4163
4164 /*BssIDX of the session*/
4165 wpt_uint8 bssIdx;
4166}WDI_EnterUapsdRspParamsType;
4167
4168/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004169 WDI_EnterUapsdReqinfoType
4170 Enter UAPSD parameters passed to WDI from WDA
4171---------------------------------------------------------------------------*/
4172typedef struct
4173{
4174 /*Enter UAPSD Info Type, same as tUapsdParams */
4175 WDI_EnterUapsdReqinfoType wdiEnterUapsdInfo;
4176 /*Request status callback offered by UMAC - it is called if the current req
4177 has returned PENDING as status; it delivers the status of sending the message
4178 over the BUS */
4179 WDI_ReqStatusCb wdiReqStatusCB;
4180 /*The user data passed in by UMAC, it will be sent back when the above
4181 function pointer will be called */
4182 void* pUserData;
4183}WDI_EnterUapsdReqParamsType;
4184
4185/*---------------------------------------------------------------------------
4186 WDI_UpdateUapsdReqinfoType
4187 Update UAPSD parameters passed to WDA from UMAC
4188---------------------------------------------------------------------------*/
4189typedef struct
4190{
4191 wpt_uint8 ucSTAIdx;
4192 wpt_uint8 ucUapsdACMask;
4193 wpt_uint32 uMaxSpLen;
4194}WDI_UpdateUapsdReqinfoType;
4195
4196/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004197 WDI_ExitUapsdReqinfoType
4198 Exit UAPSD parameters passed to WDA from UMAC
4199---------------------------------------------------------------------------*/
4200typedef struct
4201{
4202 wpt_uint8 bssIdx;
4203}WDI_ExitUapsdReqinfoType;
4204
4205/*---------------------------------------------------------------------------
4206 WDI_ExitUapsdReqParamsType
4207 Exit UAPSD parameters passed to WDI from WDA
4208---------------------------------------------------------------------------*/
4209typedef struct
4210{
4211 /*Exit UAPSD Info Type, same as tUapsdParams */
4212 WDI_ExitUapsdReqinfoType wdiExitUapsdInfo;
4213 /*Request status callback offered by UMAC - it is called if the current req
4214 has returned PENDING as status; it delivers the status of sending the message
4215 over the BUS */
4216 WDI_ReqStatusCb wdiReqStatusCB;
4217 /*The user data passed in by UMAC, it will be sent back when the above
4218 function pointer will be called */
4219 void* pUserData;
4220}WDI_ExitUapsdReqParamsType;
4221
4222/*---------------------------------------------------------------------------
4223 WDI_ExitUapsdRspParamsType
4224 Exit UAPSD parameters passed from WDI to WDA
4225---------------------------------------------------------------------------*/
4226typedef struct
4227{
4228 /*Status of the response*/
4229 WDI_Status wdiStatus;
4230
4231 /*BssIDX of the session*/
4232 wpt_uint8 bssIdx;
4233}WDI_ExitUapsdRspParamsType;
4234
4235/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004236 WDI_UpdateUapsdReqParamsType
4237 Update UAPSD parameters passed to WDI form WDA
4238---------------------------------------------------------------------------*/
4239typedef struct
4240{
4241 /*Update UAPSD Info Type, same as tUpdateUapsdParams */
4242 WDI_UpdateUapsdReqinfoType wdiUpdateUapsdInfo;
4243 /*Request status callback offered by UMAC - it is called if the current req
4244 has returned PENDING as status; it delivers the status of sending the message
4245 over the BUS */
4246 WDI_ReqStatusCb wdiReqStatusCB;
4247 /*The user data passed in by UMAC, it will be sent back when the above
4248 function pointer will be called */
4249 void* pUserData;
4250}WDI_UpdateUapsdReqParamsType;
4251
4252/*---------------------------------------------------------------------------
4253 WDI_ConfigureRxpFilterReqParamsType
4254 RXP filter parameters passed to WDI form WDA
4255---------------------------------------------------------------------------*/
4256typedef struct
4257{
4258 /* Mode of Mcast and Bcast filters configured */
4259 wpt_uint8 ucSetMcstBcstFilterSetting;
4260
4261 /* Mcast Bcast Filters enable/disable*/
4262 wpt_uint8 ucSetMcstBcstFilter;
4263}WDI_RxpFilterReqParamsType;
4264
4265typedef struct
4266{
4267 /* Rxp Filter */
4268 WDI_RxpFilterReqParamsType wdiRxpFilterParam;
4269
4270 /*Request status callback offered by UMAC - it is called if the current req
4271 has returned PENDING as status; it delivers the status of sending the message
4272 over the BUS */
4273 WDI_ReqStatusCb wdiReqStatusCB;
4274 /*The user data passed in by UMAC, it will be sent back when the above
4275 function pointer will be called */
4276 void* pUserData;
4277}WDI_ConfigureRxpFilterReqParamsType;
4278
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05304279typedef struct
4280{
4281 wpt_uint8 enableFlag;
4282 wpt_uint8 frameType;
4283 wpt_uint8 frameSize;
4284 wpt_uint8 bufferMode;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304285 wpt_uint8 continuousFrameLogging;
4286 wpt_uint8 minLogBufferSize;
4287 wpt_uint8 maxLogBufferSize;
4288}WDI_FWLoggingInitReqInfoType;
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05304289
Siddharth Bhal64246172015-02-27 01:04:37 +05304290typedef struct
4291{
Gupta, Kapil7c34b322015-09-30 13:12:35 +05304292 wpt_uint32 requestId;
4293 wpt_uint8 minRssi;
4294 wpt_uint8 maxRssi;
4295 wpt_macAddr currentBssId;
4296}WDI_RssiMonitorReqInfoType;
4297
4298typedef struct
4299{
Sachin Ahuja715aafc2015-07-21 23:35:10 +05304300 wpt_uint32 reason_code;
4301}WDI_FatalEventLogsReqInfoType;
4302
4303
4304typedef struct
4305{
Siddharth Bhal64246172015-02-27 01:04:37 +05304306 wpt_uint8 flags;
4307}WDI_GetFrameLogReqInfoType;
4308
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304309typedef struct
4310{
Hanumantha Reddy Pothulae00a7e22015-09-15 20:11:30 +05304311 wpt_uint16 status;
4312 wpt_uint16 doneIndicationForSource;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304313 wpt_uint64 logBuffAddress[MAX_NUM_OF_BUFFER];
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304314 wpt_uint32 logBuffLength[MAX_NUM_OF_BUFFER];
4315}WDI_FWLoggingDXEdoneIndInfoType;
4316
Jeff Johnson295189b2012-06-20 16:38:30 -07004317/*---------------------------------------------------------------------------
4318 WDI_BeaconFilterInfoType
4319 Beacon Filtering data structures passed to WDA form UMAC
4320---------------------------------------------------------------------------*/
4321typedef struct
4322{
4323 wpt_uint16 usCapabilityInfo;
4324 wpt_uint16 usCapabilityMask;
4325 wpt_uint16 usBeaconInterval;
4326 wpt_uint16 usIeNum;
Madan Mohan Koyyalamudia84edda2012-10-15 14:58:25 -07004327 wpt_uint8 bssIdx;
4328 wpt_uint8 reserved;
Jeff Johnson295189b2012-06-20 16:38:30 -07004329}WDI_BeaconFilterInfoType;
4330
4331/*---------------------------------------------------------------------------
4332 WDI_BeaconFilterReqParamsType
4333 Beacon Filtering parameters passed to WDI form WDA
4334---------------------------------------------------------------------------*/
4335typedef struct
4336{
4337 /*Beacon Filtering Info Type, same as tBeaconFilterMsg */
4338 WDI_BeaconFilterInfoType wdiBeaconFilterInfo;
4339 /*Beacon Filter(s) follow the "usIeNum" field, hence the array to ease the
4340 copy of params from WDA to WDI */
4341 wpt_uint8 aFilters[WDI_BEACON_FILTER_LEN];
4342 /*Request status callback offered by UMAC - it is called if the current req
4343 has returned PENDING as status; it delivers the status of sending the message
4344 over the BUS */
4345 WDI_ReqStatusCb wdiReqStatusCB;
4346 /*The user data passed in by UMAC, it will be sent back when the above
4347 function pointer will be called */
4348 void* pUserData;
4349}WDI_BeaconFilterReqParamsType;
4350
4351/*---------------------------------------------------------------------------
4352 WDI_RemBeaconFilterInfoType
4353 Beacon Filtering data structures (to be reomoved) passed to WDA form UMAC
4354---------------------------------------------------------------------------*/
4355typedef struct
4356{
4357 wpt_uint8 ucIeCount;
4358 wpt_uint8 ucRemIeId[1];
4359}WDI_RemBeaconFilterInfoType;
4360
4361/*---------------------------------------------------------------------------
4362 WDI_RemBeaconFilterReqParamsType
4363 Beacon Filtering parameters (to be reomoved)passed to WDI form WDA
4364---------------------------------------------------------------------------*/
4365typedef struct
4366{
4367 /*Beacon Filtering Info Type, same as tBeaconFilterMsg */
4368 WDI_RemBeaconFilterInfoType wdiBeaconFilterInfo;
4369 /*Request status callback offered by UMAC - it is called if the current req
4370 has returned PENDING as status; it delivers the status of sending the message
4371 over the BUS */
4372 WDI_ReqStatusCb wdiReqStatusCB;
4373 /*The user data passed in by UMAC, it will be sent back when the above
4374 function pointer will be called */
4375 void* pUserData;
4376}WDI_RemBeaconFilterReqParamsType;
4377
4378/*---------------------------------------------------------------------------
4379 WDI_RSSIThresholdsType
4380 RSSI thresholds data structures (to be reomoved) passed to WDA form UMAC
4381---------------------------------------------------------------------------*/
4382typedef struct
4383{
4384 wpt_int8 ucRssiThreshold1 : 8;
4385 wpt_int8 ucRssiThreshold2 : 8;
4386 wpt_int8 ucRssiThreshold3 : 8;
4387 wpt_uint8 bRssiThres1PosNotify : 1;
4388 wpt_uint8 bRssiThres1NegNotify : 1;
4389 wpt_uint8 bRssiThres2PosNotify : 1;
4390 wpt_uint8 bRssiThres2NegNotify : 1;
4391 wpt_uint8 bRssiThres3PosNotify : 1;
4392 wpt_uint8 bRssiThres3NegNotify : 1;
4393 wpt_uint8 bReserved10 : 2;
4394} WDI_RSSIThresholdsType;
4395
4396/*---------------------------------------------------------------------------
4397 WDI_SetRSSIThresholdsReqParamsType
4398 RSSI thresholds parameters (to be reomoved)passed to WDI form WDA
4399---------------------------------------------------------------------------*/
4400typedef struct
4401{
4402 /*RSSI thresholds Info Type, same as WDI_RSSIThresholds */
4403 WDI_RSSIThresholdsType wdiRSSIThresholdsInfo;
4404 /*Request status callback offered by UMAC - it is called if the current req
4405 has returned PENDING as status; it delivers the status of sending the message
4406 over the BUS */
4407 WDI_ReqStatusCb wdiReqStatusCB;
4408 /*The user data passed in by UMAC, it will be sent back when the above
4409 function pointer will be called */
4410 void* pUserData;
4411}WDI_SetRSSIThresholdsReqParamsType;
4412
4413/*---------------------------------------------------------------------------
4414 WDI_HostOffloadReqType
4415 host offload info passed to WDA form UMAC
4416---------------------------------------------------------------------------*/
4417#ifdef WLAN_NS_OFFLOAD
4418typedef struct
4419{
4420 wpt_uint8 srcIPv6Addr[16];
4421 wpt_uint8 selfIPv6Addr[16];
4422 //Only support 2 possible Network Advertisement IPv6 address
4423 wpt_uint8 targetIPv6Addr1[16];
4424 wpt_uint8 targetIPv6Addr2[16];
4425 wpt_uint8 selfMacAddr[6];
4426 wpt_uint8 srcIPv6AddrValid : 1;
4427 wpt_uint8 targetIPv6Addr1Valid : 1;
4428 wpt_uint8 targetIPv6Addr2Valid : 1;
Gopichand Nakkala746a9452013-06-11 12:45:54 +05304429 wpt_uint8 slotIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004430} WDI_NSOffloadParams;
4431#endif //WLAN_NS_OFFLOAD
4432
4433typedef struct
4434{
4435 wpt_uint8 ucOffloadType;
4436 wpt_uint8 ucEnableOrDisable;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004437 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004438 union
4439 {
4440 wpt_uint8 aHostIpv4Addr [4];
4441 wpt_uint8 aHostIpv6Addr [16];
4442 } params;
4443} WDI_HostOffloadReqType;
4444
4445/*---------------------------------------------------------------------------
4446 WDI_HostOffloadReqParamsType
4447 host offload info passed to WDI form WDA
4448---------------------------------------------------------------------------*/
4449typedef struct
4450{
4451 /*Host offload Info Type, same as tHalHostOffloadReq */
4452 WDI_HostOffloadReqType wdiHostOffloadInfo;
4453#ifdef WLAN_NS_OFFLOAD
4454 WDI_NSOffloadParams wdiNsOffloadParams;
4455#endif //WLAN_NS_OFFLOAD
4456 /*Request status callback offered by UMAC - it is called if the current req
4457 has returned PENDING as status; it delivers the status of sending the message
4458 over the BUS */
4459 WDI_ReqStatusCb wdiReqStatusCB;
4460 /*The user data passed in by UMAC, it will be sent back when the above
4461 function pointer will be called */
4462 void* pUserData;
4463}WDI_HostOffloadReqParamsType;
4464
4465/*---------------------------------------------------------------------------
4466 WDI_KeepAliveReqType
4467 Keep Alive info passed to WDA form UMAC
4468---------------------------------------------------------------------------*/
4469typedef struct
4470{
4471 wpt_uint8 ucPacketType;
4472 wpt_uint32 ucTimePeriod;
4473 wpt_uint8 aHostIpv4Addr[4];
4474 wpt_uint8 aDestIpv4Addr[4];
4475 wpt_uint8 aDestMacAddr[6];
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004476 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004477} WDI_KeepAliveReqType;
4478
4479/*---------------------------------------------------------------------------
4480 WDI_KeepAliveReqParamsType
4481 Keep Alive passed to WDI form WDA
4482---------------------------------------------------------------------------*/
4483typedef struct
4484{
4485 /* Keep Alive Info Type, same as tHalKeepAliveReq */
4486 WDI_KeepAliveReqType wdiKeepAliveInfo;
4487 /*Request status callback offered by UMAC - it is called if the current req
4488 has returned PENDING as status; it delivers the status of sending the message
4489 over the BUS */
4490 WDI_ReqStatusCb wdiReqStatusCB;
4491 /*The user data passed in by UMAC, it will be sent back when the above
4492 function pointer will be called */
4493 void* pUserData;
4494}WDI_KeepAliveReqParamsType;
4495
4496/*---------------------------------------------------------------------------
4497 WDI_WowlAddBcPtrnInfoType
4498 Wowl add ptrn info passed to WDA form UMAC
4499---------------------------------------------------------------------------*/
4500typedef struct
4501{
4502 wpt_uint8 ucPatternId; // Pattern ID
4503 // Pattern byte offset from beginning of the 802.11 packet to start of the
4504 // wake-up pattern
4505 wpt_uint8 ucPatternByteOffset;
4506 wpt_uint8 ucPatternSize; // Non-Zero Pattern size
4507 wpt_uint8 ucPattern[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern
4508 wpt_uint8 ucPatternMaskSize; // Non-zero pattern mask size
4509 wpt_uint8 ucPatternMask[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern mask
4510 wpt_uint8 ucPatternExt[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern
4511 wpt_uint8 ucPatternMaskExt[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern mask
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004512 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004513} WDI_WowlAddBcPtrnInfoType;
4514
4515/*---------------------------------------------------------------------------
4516 WDI_WowlAddBcPtrnReqParamsType
4517 Wowl add ptrn info passed to WDI form WDA
4518---------------------------------------------------------------------------*/
4519typedef struct
4520{
4521 /*Wowl add ptrn Info Type, same as tpSirWowlAddBcastPtrn */
4522 WDI_WowlAddBcPtrnInfoType wdiWowlAddBcPtrnInfo;
4523 /*Request status callback offered by UMAC - it is called if the current req
4524 has returned PENDING as status; it delivers the status of sending the message
4525 over the BUS */
4526 WDI_ReqStatusCb wdiReqStatusCB;
4527 /*The user data passed in by UMAC, it will be sent back when the above
4528 function pointer will be called */
4529 void* pUserData;
4530}WDI_WowlAddBcPtrnReqParamsType;
4531
4532/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004533 WDI_WowlAddBcPtrnRspParamsType
4534 Wowl add ptrn info passed from WDI to WDA
4535---------------------------------------------------------------------------*/
4536typedef struct
4537{
4538 /*Status of the response*/
4539 WDI_Status wdiStatus;
4540 /*BssIDX of the session*/
4541 wpt_uint8 bssIdx;
4542}WDI_WowlAddBcPtrnRspParamsType;
4543
4544/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004545 WDI_WowlDelBcPtrnInfoType
4546 Wowl add ptrn info passed to WDA form UMAC
4547---------------------------------------------------------------------------*/
4548typedef struct
4549{
4550 /* Pattern ID of the wakeup pattern to be deleted */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004551 wpt_uint8 ucPatternId;
4552 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004553} WDI_WowlDelBcPtrnInfoType;
4554
4555/*---------------------------------------------------------------------------
4556 WDI_WowlDelBcPtrnReqParamsType
4557 Wowl add ptrn info passed to WDI form WDA
4558---------------------------------------------------------------------------*/
4559typedef struct
4560{
4561 /*Wowl delete ptrn Info Type, same as WDI_WowlDelBcastPtrn */
4562 WDI_WowlDelBcPtrnInfoType wdiWowlDelBcPtrnInfo;
4563 /*Request status callback offered by UMAC - it is called if the current req
4564 has returned PENDING as status; it delivers the status of sending the message
4565 over the BUS */
4566 WDI_ReqStatusCb wdiReqStatusCB;
4567 /*The user data passed in by UMAC, it will be sent back when the above
4568 function pointer will be called */
4569 void* pUserData;
4570}WDI_WowlDelBcPtrnReqParamsType;
4571
4572/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004573 WDI_WowlDelBcPtrnRspParamsType
4574 Wowl Del ptrn info passed from WDI to WDA
4575---------------------------------------------------------------------------*/
4576typedef struct
4577{
4578 /*Status of the response*/
4579 WDI_Status wdiStatus;
4580 /*BssIDX of the session*/
4581 wpt_uint8 bssIdx;
4582}WDI_WowlDelBcPtrnRspParamsType;
4583
4584/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004585 WDI_WowlEnterInfoType
4586 Wowl enter info passed to WDA form UMAC
4587---------------------------------------------------------------------------*/
4588typedef struct
4589{
4590 /* Enables/disables magic packet filtering */
4591 wpt_uint8 ucMagicPktEnable;
4592
4593 /* Magic pattern */
4594 wpt_macAddr magicPtrn;
4595
4596 /* Enables/disables packet pattern filtering in firmware.
4597 Enabling this flag enables broadcast pattern matching
4598 in Firmware. If unicast pattern matching is also desired,
4599 ucUcastPatternFilteringEnable flag must be set tot true
4600 as well
4601 */
4602 wpt_uint8 ucPatternFilteringEnable;
4603
4604 /* Enables/disables unicast packet pattern filtering.
4605 This flag specifies whether we want to do pattern match
4606 on unicast packets as well and not just broadcast packets.
4607 This flag has no effect if the ucPatternFilteringEnable
4608 (main controlling flag) is set to false
4609 */
4610 wpt_uint8 ucUcastPatternFilteringEnable;
4611
4612 /* This configuration is valid only when magicPktEnable=1.
4613 * It requests hardware to wake up when it receives the
4614 * Channel Switch Action Frame.
4615 */
4616 wpt_uint8 ucWowChnlSwitchRcv;
4617
4618 /* This configuration is valid only when magicPktEnable=1.
4619 * It requests hardware to wake up when it receives the
4620 * Deauthentication Frame.
4621 */
4622 wpt_uint8 ucWowDeauthRcv;
4623
4624 /* This configuration is valid only when magicPktEnable=1.
4625 * It requests hardware to wake up when it receives the
4626 * Disassociation Frame.
4627 */
4628 wpt_uint8 ucWowDisassocRcv;
4629
4630 /* This configuration is valid only when magicPktEnable=1.
4631 * It requests hardware to wake up when it has missed
4632 * consecutive beacons. This is a hardware register
4633 * configuration (NOT a firmware configuration).
4634 */
4635 wpt_uint8 ucWowMaxMissedBeacons;
4636
4637 /* This configuration is valid only when magicPktEnable=1.
4638 * This is a timeout value in units of microsec. It requests
4639 * hardware to unconditionally wake up after it has stayed
4640 * in WoWLAN mode for some time. Set 0 to disable this feature.
4641 */
4642 wpt_uint8 ucWowMaxSleepUsec;
4643
4644#ifdef WLAN_WAKEUP_EVENTS
4645 /* This configuration directs the WoW packet filtering to look for EAP-ID
4646 * requests embedded in EAPOL frames and use this as a wake source.
4647 */
4648 wpt_uint8 ucWoWEAPIDRequestEnable;
4649
4650 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
4651 * requests and use this as a wake source.
4652 */
4653 wpt_uint8 ucWoWEAPOL4WayEnable;
4654
4655 /* This configuration allows a host wakeup on an network scan offload match.
4656 */
4657 wpt_uint8 ucWowNetScanOffloadMatch;
4658
4659 /* This configuration allows a host wakeup on any GTK rekeying error.
4660 */
4661 wpt_uint8 ucWowGTKRekeyError;
4662
4663 /* This configuration allows a host wakeup on BSS connection loss.
4664 */
4665 wpt_uint8 ucWoWBSSConnLoss;
4666#endif // WLAN_WAKEUP_EVENTS
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004667
4668 /* BSSIDX used to find the current session
4669 */
4670 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004671} WDI_WowlEnterInfoType;
4672
4673/*---------------------------------------------------------------------------
4674 WDI_WowlEnterReqParamsType
4675 Wowl enter info passed to WDI form WDA
4676---------------------------------------------------------------------------*/
4677typedef struct
4678{
4679 /*Wowl delete ptrn Info Type, same as WDI_SmeWowlEnterParams */
4680 WDI_WowlEnterInfoType wdiWowlEnterInfo;
4681 /*Request status callback offered by UMAC - it is called if the current req
4682 has returned PENDING as status; it delivers the status of sending the message
4683 over the BUS */
4684 WDI_ReqStatusCb wdiReqStatusCB;
4685 /*The user data passed in by UMAC, it will be sent back when the above
4686 function pointer will be called */
4687 void* pUserData;
4688}WDI_WowlEnterReqParamsType;
4689
4690/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004691 WDI_WowlEnterRsqParamsType
4692 Wowl enter info passed from WDI to WDA
4693---------------------------------------------------------------------------*/
4694typedef struct
4695{
4696 /*Status of the response message*/
4697 WDI_Status status;
4698
4699 /* BSSIDX used to find the current session
4700 */
4701 wpt_uint8 bssIdx;
4702}WDI_WowlEnterRspParamsType;
4703
4704/*---------------------------------------------------------------------------
4705 WDI_WowlExitInfoType
4706 Wowl exit info passed to WDA form UMAC
4707 ---------------------------------------------------------------------------*/
4708typedef struct
4709{
4710 /* BSSIDX used to find the current session
4711 */
4712 wpt_uint8 bssIdx;
4713} WDI_WowlExitInfoType;
4714
4715/*---------------------------------------------------------------------------
4716 WDI_WowlExitReqParamsType
4717 Wowl exit info passed to WDI form WDA
4718---------------------------------------------------------------------------*/
4719typedef struct
4720{
4721 /*Wowl delete ptrn Info Type, same as WDI_SmeWowlEnterParams */
4722 WDI_WowlExitInfoType wdiWowlExitInfo;
4723 /*Request status callback offered by UMAC - it is called if the current req
4724 has returned PENDING as status; it delivers the status of sending the message
4725 over the BUS */
4726 WDI_ReqStatusCb wdiReqStatusCB;
4727 /*The user data passed in by UMAC, it will be sent back when the above
4728 function pointer will be called */
4729 void* pUserData;
4730}WDI_WowlExitReqParamsType;
4731
4732/*---------------------------------------------------------------------------
4733 WDI_WowlExitRspParamsType
4734 Wowl exit info passed from WDI to WDA
4735---------------------------------------------------------------------------*/
4736typedef struct
4737{
4738 /*Status of the response message*/
4739 WDI_Status status;
4740
4741 /* BSSIDX used to find the current session
4742 */
4743 wpt_uint8 bssIdx;
4744}WDI_WowlExitRspParamsType;
4745
4746/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004747 WDI_ConfigureAppsCpuWakeupStateReqParamsType
4748 Apps Cpu Wakeup State parameters passed to WDI form WDA
4749---------------------------------------------------------------------------*/
4750typedef struct
4751{
4752 /*Depicts the state of the Apps CPU */
4753 wpt_boolean bIsAppsAwake;
4754 /*Request status callback offered by UMAC - it is called if the current req
4755 has returned PENDING as status; it delivers the status of sending the message
4756 over the BUS */
4757 WDI_ReqStatusCb wdiReqStatusCB;
4758 /*The user data passed in by UMAC, it will be sent back when the above
4759 function pointer will be called */
4760 void* pUserData;
4761}WDI_ConfigureAppsCpuWakeupStateReqParamsType;
4762/*---------------------------------------------------------------------------
4763 WDI_FlushAcReqinfoType
4764---------------------------------------------------------------------------*/
4765typedef struct
4766{
4767 // Message Type
4768 wpt_uint16 usMesgType;
4769
4770 // Message Length
4771 wpt_uint16 usMesgLen;
4772
4773 // Station Index. originates from HAL
4774 wpt_uint8 ucSTAId;
4775
4776 // TID for which the transmit queue is being flushed
4777 wpt_uint8 ucTid;
4778
4779}WDI_FlushAcReqinfoType;
4780
4781/*---------------------------------------------------------------------------
4782 WDI_FlushAcReqParamsType
4783---------------------------------------------------------------------------*/
4784typedef struct
4785{
4786 /*AC Info */
4787 WDI_FlushAcReqinfoType wdiFlushAcInfo;
4788
4789 /*Request status callback offered by UMAC - it is called if the current
4790 req has returned PENDING as status; it delivers the status of sending
4791 the message over the BUS */
4792 WDI_ReqStatusCb wdiReqStatusCB;
4793
4794 /*The user data passed in by UMAC, it will be sent back when the above
4795 function pointer will be called */
4796 void* pUserData;
4797}WDI_FlushAcReqParamsType;
4798
4799/*---------------------------------------------------------------------------
4800 WDI_BtAmpEventinfoType
4801 BT-AMP Event Structure
4802---------------------------------------------------------------------------*/
4803typedef struct
4804{
4805 wpt_uint8 ucBtAmpEventType;
4806
4807} WDI_BtAmpEventinfoType;
4808
4809/*---------------------------------------------------------------------------
4810 WDI_BtAmpEventParamsType
4811---------------------------------------------------------------------------*/
4812typedef struct
4813{
4814 /*BT AMP event Info */
4815 WDI_BtAmpEventinfoType wdiBtAmpEventInfo;
4816
4817 /*Request status callback offered by UMAC - it is called if the current
4818 req has returned PENDING as status; it delivers the status of sending
4819 the message over the BUS */
4820 WDI_ReqStatusCb wdiReqStatusCB;
4821
4822 /*The user data passed in by UMAC, it will be sent back when the above
4823 function pointer will be called */
4824 void* pUserData;
4825}WDI_BtAmpEventParamsType;
4826
Jeff Johnsone7245742012-09-05 17:12:55 -07004827#ifdef FEATURE_OEM_DATA_SUPPORT
4828
4829#ifndef OEM_DATA_REQ_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -08004830#define OEM_DATA_REQ_SIZE 134
Jeff Johnsone7245742012-09-05 17:12:55 -07004831#endif
4832#ifndef OEM_DATA_RSP_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -08004833#define OEM_DATA_RSP_SIZE 1968
Jeff Johnsone7245742012-09-05 17:12:55 -07004834#endif
4835
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304836#ifndef NEW_OEM_DATA_REQ_SIZE
4837#define NEW_OEM_DATA_REQ_SIZE 292
4838#endif
4839
4840#ifndef NEW_OEM_DATA_RSP_SIZE
4841#define NEW_OEM_DATA_RSP_SIZE 2100
4842#endif
4843
Jeff Johnsone7245742012-09-05 17:12:55 -07004844/*----------------------------------------------------------------------------
4845 WDI_oemDataReqInfoType
4846----------------------------------------------------------------------------*/
4847typedef struct
4848{
4849 wpt_macAddr selfMacAddr;
4850 wpt_uint8 oemDataReq[OEM_DATA_REQ_SIZE];
4851}WDI_oemDataReqInfoType;
4852
4853/*----------------------------------------------------------------------------
4854 WDI_oemDataReqParamsType
4855----------------------------------------------------------------------------*/
4856typedef struct
4857{
4858 /*Request status callback offered by UMAC - it is called if the current
4859 req has returned PENDING as status; it delivers the status of sending
4860 the message over the BUS */
4861 WDI_ReqStatusCb wdiReqStatusCB;
4862
4863 /*The user data passed in by UMAC, it will be sent back when the above
4864 function pointer will be called */
4865 void* pUserData;
4866
4867 /*OEM DATA REQ Info */
4868 WDI_oemDataReqInfoType wdiOemDataReqInfo;
4869
4870}WDI_oemDataReqParamsType;
4871
4872/*----------------------------------------------------------------------------
4873 WDI_oemDataRspParamsType
4874----------------------------------------------------------------------------*/
4875typedef struct
4876{
4877 wpt_uint8 oemDataRsp[OEM_DATA_RSP_SIZE];
4878}WDI_oemDataRspParamsType;
4879
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304880/*----------------------------------------------------------------------------
4881 OEM DATA REQ NEW/OEM DATA RSP NEW - DATA STRUCTURES
4882----------------------------------------------------------------------------*/
4883/* Structure for defining req sent to the PE */
4884typedef struct
4885{
Padma, Santhosh Kumar5d2f76b2016-01-11 18:42:20 +05304886 wpt_macAddr selfMacAddr;
4887 wpt_uint8 reserved[2];
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304888 wpt_uint8 oemDataReqNew[NEW_OEM_DATA_REQ_SIZE];
4889} WDI_OemDataReqNew, WDI_OemDataReqNewConfig;
4890
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304891/*************************************************************************************************************/
4892
Jeff Johnsone7245742012-09-05 17:12:55 -07004893#endif /* FEATURE_OEM_DATA_SUPPORT */
Jeff Johnson295189b2012-06-20 16:38:30 -07004894
4895#ifdef WLAN_FEATURE_VOWIFI_11R
4896/*---------------------------------------------------------------------------
4897 WDI_AggrAddTSReqInfoType
4898---------------------------------------------------------------------------*/
4899typedef struct
4900{
4901 /*STA Index*/
4902 wpt_uint8 ucSTAIdx;
4903
4904 /*Identifier for TSpec*/
4905 wpt_uint8 ucTspecIdx;
4906
4907 /*Tspec IE negotiated OTA*/
4908 WDI_TspecIEType wdiTspecIE[WDI_MAX_NO_AC];
4909
4910 /*UAPSD delivery and trigger enabled flags */
4911 wpt_uint8 ucUapsdFlags;
4912
4913 /*SI for each AC*/
4914 wpt_uint8 ucServiceInterval[WDI_MAX_NO_AC];
4915
4916 /*Suspend Interval for each AC*/
4917 wpt_uint8 ucSuspendInterval[WDI_MAX_NO_AC];
4918
4919 /*DI for each AC*/
4920 wpt_uint8 ucDelayedInterval[WDI_MAX_NO_AC];
4921
4922}WDI_AggrAddTSReqInfoType;
4923
4924
4925/*---------------------------------------------------------------------------
4926 WDI_AggrAddTSReqParamsType
4927---------------------------------------------------------------------------*/
4928typedef struct
4929{
4930 /*TSpec Info */
4931 WDI_AggrAddTSReqInfoType wdiAggrTsInfo;
4932
4933 /*Request status callback offered by UMAC - it is called if the current
4934 req has returned PENDING as status; it delivers the status of sending
4935 the message over the BUS */
4936 WDI_ReqStatusCb wdiReqStatusCB;
4937
4938 /*The user data passed in by UMAC, it will be sent back when the above
4939 function pointer will be called */
4940 void* pUserData;
4941}WDI_AggrAddTSReqParamsType;
4942
4943#endif /* WLAN_FEATURE_VOWIFI_11R */
4944
Jeff Johnson295189b2012-06-20 16:38:30 -07004945/*---------------------------------------------------------------------------
4946 WDI_FTMCommandReqType
4947---------------------------------------------------------------------------*/
4948typedef struct
4949{
4950 /* FTM Command Body length */
4951 wpt_uint32 bodyLength;
4952 /* Actual FTM Command body */
4953 void *FTMCommandBody;
4954}WDI_FTMCommandReqType;
Jeff Johnson295189b2012-06-20 16:38:30 -07004955
4956/*---------------------------------------------------------------------------
4957 WDI_WlanSuspendInfoType
4958---------------------------------------------------------------------------*/
4959typedef struct
4960{
4961 /* Mode of Mcast and Bcast filters configured */
4962 wpt_uint8 ucConfiguredMcstBcstFilterSetting;
4963}WDI_WlanSuspendInfoType;
4964
4965/*---------------------------------------------------------------------------
4966 WDI_SuspendParamsType
4967---------------------------------------------------------------------------*/
4968typedef struct
4969{
4970 WDI_WlanSuspendInfoType wdiSuspendParams;
4971
4972 /*Request status callback offered by UMAC - it is called if the current
4973 req has returned PENDING as status; it delivers the status of sending
4974 the message over the BUS */
4975 WDI_ReqStatusCb wdiReqStatusCB;
4976
4977 /*The user data passed in by UMAC, it will be sent back when the above
4978 function pointer will be called */
4979 void* pUserData;
4980
4981}WDI_SuspendParamsType;
4982
4983/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08004984 WDI_TrafficStatsType - This is collected for each STA
4985---------------------------------------------------------------------------*/
4986
4987typedef struct
4988{
4989 /* TX stats */
4990 wpt_uint32 txBytesPushed;
4991 wpt_uint32 txPacketsPushed;
4992
4993 /* RX stats */
4994 wpt_uint32 rxBytesRcvd;
4995 wpt_uint32 rxPacketsRcvd;
4996 wpt_uint32 rxTimeTotal;
4997}WDI_TrafficStatsType;
4998
4999typedef struct
5000{
5001 WDI_TrafficStatsType *pTrafficStats;
5002 wpt_uint32 length;
5003 wpt_uint32 duration;
5004
5005 /*Request status callback offered by UMAC - it is called if the current
5006 req has returned PENDING as status; it delivers the status of sending
5007 the message over the BUS */
5008 WDI_ReqStatusCb wdiReqStatusCB;
5009
5010 /*The user data passed in by UMAC, it will be sent back when the above
5011 function pointer will be called */
5012 void* pUserData;
5013}WDI_TrafficStatsIndType;
5014
Chet Lanctot186b5732013-03-18 10:26:30 -07005015#ifdef WLAN_FEATURE_11W
5016typedef struct
5017{
5018
5019 wpt_boolean bExcludeUnencrypt;
5020 wpt_macAddr bssid;
5021 /*Request status callback offered by UMAC - it is called if the current
5022 req has returned PENDING as status; it delivers the status of sending
5023 the message over the BUS */
5024 WDI_ReqStatusCb wdiReqStatusCB;
5025
5026 /*The user data passed in by UMAC, it will be sent back when the above
5027 function pointer will be called */
5028 void* pUserData;
5029}WDI_ExcludeUnencryptIndType;
5030#endif
5031
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08005032/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07005033 WDI_WlanResumeInfoType
5034---------------------------------------------------------------------------*/
5035typedef struct
5036{
5037 /* Mode of Mcast and Bcast filters configured */
5038 wpt_uint8 ucConfiguredMcstBcstFilterSetting;
5039}WDI_WlanResumeInfoType;
5040
5041/*---------------------------------------------------------------------------
5042 WDI_ResumeParamsType
5043---------------------------------------------------------------------------*/
5044typedef struct
5045{
5046 WDI_WlanResumeInfoType wdiResumeParams;
5047
5048 /*Request status callback offered by UMAC - it is called if the current
5049 req has returned PENDING as status; it delivers the status of sending
5050 the message over the BUS */
5051 WDI_ReqStatusCb wdiReqStatusCB;
5052
5053 /*The user data passed in by UMAC, it will be sent back when the above
5054 function pointer will be called */
5055 void* pUserData;
5056
5057}WDI_ResumeParamsType;
5058
5059#ifdef WLAN_FEATURE_GTK_OFFLOAD
5060/*---------------------------------------------------------------------------
5061 * WDI_GTK_OFFLOAD_REQ
5062 *--------------------------------------------------------------------------*/
5063
5064typedef struct
5065{
5066 wpt_uint32 ulFlags; /* optional flags */
5067 wpt_uint8 aKCK[16]; /* Key confirmation key */
5068 wpt_uint8 aKEK[16]; /* key encryption key */
5069 wpt_uint64 ullKeyReplayCounter; /* replay counter */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005070 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005071} WDI_GtkOffloadReqParams;
5072
5073typedef struct
5074{
5075 WDI_GtkOffloadReqParams gtkOffloadReqParams;
5076
5077 /*Request status callback offered by UMAC - it is called if the current
5078 req has returned PENDING as status; it delivers the status of sending
5079 the message over the BUS */
5080 WDI_ReqStatusCb wdiReqStatusCB;
5081
5082 /*The user data passed in by UMAC, it will be sent back when the above
5083 function pointer will be called */
5084 void* pUserData;
5085} WDI_GtkOffloadReqMsg;
5086
5087/*---------------------------------------------------------------------------
5088 * WDI_GTK_OFFLOAD_RSP
5089 *--------------------------------------------------------------------------*/
5090typedef struct
5091{
5092 /* success or failure */
5093 wpt_uint32 ulStatus;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005094 /*BssIdx of the response */
5095 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07005096} WDI_GtkOffloadRspParams;
5097
5098typedef struct
5099{
5100 WDI_GtkOffloadRspParams gtkOffloadRspParams;
5101
5102 /*Request status callback offered by UMAC - it is called if the current
5103 req has returned PENDING as status; it delivers the status of sending
5104 the message over the BUS */
5105 WDI_ReqStatusCb wdiReqStatusCB;
5106
5107 /*The user data passed in by UMAC, it will be sent back when the above
5108 function pointer will be called */
5109 void* pUserData;
5110} WDI_GtkOffloadRspMsg;
5111
5112
5113/*---------------------------------------------------------------------------
5114* WDI_GTK_OFFLOAD_GETINFO_REQ
5115*--------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005116typedef struct
5117{
5118 /*BssIdx of the response */
5119 wpt_macAddr bssId;
5120} WDI_GtkOffloadGetInfoReqParams;
Jeff Johnson295189b2012-06-20 16:38:30 -07005121
5122typedef struct
5123{
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005124
5125 WDI_GtkOffloadGetInfoReqParams WDI_GtkOffloadGetInfoReqParams;
Jeff Johnson295189b2012-06-20 16:38:30 -07005126 /*Request status callback offered by UMAC - it is called if the current
5127 req has returned PENDING as status; it delivers the status of sending
5128 the message over the BUS */
5129 WDI_ReqStatusCb wdiReqStatusCB;
5130
5131 /*The user data passed in by UMAC, it will be sent back when the above
5132 function pointer will be called */
5133 void* pUserData;
5134} WDI_GtkOffloadGetInfoReqMsg;
5135
5136/*---------------------------------------------------------------------------
5137* WDI_GTK_OFFLOAD_GETINFO_RSP
5138*--------------------------------------------------------------------------*/
5139typedef struct
5140{
5141 wpt_uint32 ulStatus; /* success or failure */
5142 wpt_uint64 ullKeyReplayCounter; /* current replay counter value */
5143 wpt_uint32 ulTotalRekeyCount; /* total rekey attempts */
5144 wpt_uint32 ulGTKRekeyCount; /* successful GTK rekeys */
5145 wpt_uint32 ulIGTKRekeyCount; /* successful iGTK rekeys */
Gopichand Nakkala870cbae2013-03-15 21:16:09 +05305146 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005147} WDI_GtkOffloadGetInfoRspParams;
5148
5149typedef struct
5150{
5151 WDI_GtkOffloadGetInfoRspParams gtkOffloadGetInfoRspParams;
5152
5153 /*Request status callback offered by UMAC - it is called if the current
5154 req has returned PENDING as status; it delivers the status of sending
5155 the message over the BUS */
5156 WDI_ReqStatusCb wdiReqStatusCB;
5157
5158 /*The user data passed in by UMAC, it will be sent back when the above
5159 function pointer will be called */
5160 void* pUserData;
5161} WDI_GtkOffloadGetInfoRspMsg;
5162#endif // WLAN_FEATURE_GTK_OFFLOAD
5163
5164/*---------------------------------------------------------------------------
5165 WDI_SuspendResumeRspParamsType
5166---------------------------------------------------------------------------*/
5167typedef struct
5168{
5169 /*Status of the response*/
5170 WDI_Status wdiStatus;
5171}WDI_SuspendResumeRspParamsType;
5172
Leo Chang9056f462013-08-01 19:21:11 -07005173#ifdef FEATURE_WLAN_LPHB
5174/*---------------------------------------------------------------------------
5175 WDI Low Power Heart Beat Config request
5176 Copy from sirApi.h to avoid compile error
5177---------------------------------------------------------------------------*/
5178#define WDI_LPHB_FILTER_LEN 64
5179
5180typedef enum
5181{
5182 WDI_LPHB_SET_EN_PARAMS_INDID = 0x0001,
5183 WDI_LPHB_SET_TCP_PARAMS_INDID,
5184 WDI_LPHB_SET_TCP_PKT_FILTER_INDID,
5185 WDI_LPHB_SET_UDP_PARAMS_INDID,
5186 WDI_LPHB_SET_UDP_PKT_FILTER_INDID,
5187 WDI_LPHB_SET_NETWORK_INFO_INDID,
5188} WDI_LPHBIndType;
5189
5190typedef struct
5191{
5192 wpt_uint8 enable;
5193 wpt_uint8 item;
5194 wpt_uint8 session;
5195} WDI_LPHBEnableStruct;
5196
5197typedef struct
5198{
5199 wpt_uint32 srv_ip;
5200 wpt_uint32 dev_ip;
5201 wpt_uint16 src_port;
5202 wpt_uint16 dst_port;
5203 wpt_uint16 timeout;
5204 wpt_uint8 session;
5205 wpt_uint8 gateway_mac[WDI_MAC_ADDR_LEN];
Leo Changd9df8aa2013-09-26 13:32:26 -07005206 wpt_uint16 timePeriodSec; // in seconds
5207 wpt_uint32 tcpSn;
Leo Chang9056f462013-08-01 19:21:11 -07005208} WDI_LPHBTcpParamStruct;
5209
5210typedef struct
5211{
5212 wpt_uint16 length;
5213 wpt_uint8 offset;
5214 wpt_uint8 session;
5215 wpt_uint8 filter[WDI_LPHB_FILTER_LEN];
5216} WDI_LPHBTcpFilterStruct;
5217
5218typedef struct
5219{
5220 wpt_uint32 srv_ip;
5221 wpt_uint32 dev_ip;
5222 wpt_uint16 src_port;
5223 wpt_uint16 dst_port;
5224 wpt_uint16 interval;
5225 wpt_uint16 timeout;
5226 wpt_uint8 session;
5227 wpt_uint8 gateway_mac[WDI_MAC_ADDR_LEN];
5228} WDI_LPHBUdpParamStruct;
5229
5230typedef struct
5231{
5232 wpt_uint16 length;
5233 wpt_uint8 offset;
5234 wpt_uint8 session;
5235 wpt_uint8 filter[WDI_LPHB_FILTER_LEN];
5236} WDI_LPHBUdpFilterStruct;
5237
5238typedef struct
5239{
5240 wpt_uint16 cmd;
5241 wpt_uint16 dummy;
5242 union
5243 {
5244 WDI_LPHBEnableStruct lphbEnableReq;
5245 WDI_LPHBTcpParamStruct lphbTcpParamReq;
5246 WDI_LPHBTcpFilterStruct lphbTcpFilterReq;
5247 WDI_LPHBUdpParamStruct lphbUdpParamReq;
5248 WDI_LPHBUdpFilterStruct lphbUdpFilterReq;
5249 } params;
5250} WDI_LPHBReq;
5251#endif /* FEATURE_WLAN_LPHB */
Jeff Johnson295189b2012-06-20 16:38:30 -07005252
Jeff Johnson295189b2012-06-20 16:38:30 -07005253/*---------------------------------------------------------------------------
5254 WDI_AuthType
5255---------------------------------------------------------------------------*/
5256typedef enum
5257{
5258 WDI_AUTH_TYPE_ANY = 0,
5259
5260 WDI_AUTH_TYPE_NONE,
5261 WDI_AUTH_TYPE_OPEN_SYSTEM,
5262 WDI_AUTH_TYPE_SHARED_KEY,
5263
5264 WDI_AUTH_TYPE_WPA,
5265 WDI_AUTH_TYPE_WPA_PSK,
5266 WDI_AUTH_TYPE_WPA_NONE,
5267
5268 WDI_AUTH_TYPE_RSN,
5269 WDI_AUTH_TYPE_RSN_PSK,
5270 WDI_AUTH_TYPE_FT_RSN,
5271 WDI_AUTH_TYPE_FT_RSN_PSK,
5272 WDI_AUTH_TYPE_WAPI_WAI_CERTIFICATE,
5273 WDI_AUTH_TYPE_WAPI_WAI_PSK,
5274 WDI_AUTH_TYPE_MAX = 0xFFFFFFFF /*expanding the type to UINT32*/
5275
5276}WDI_AuthType;
5277
5278/*---------------------------------------------------------------------------
5279 WDI_EdType
5280---------------------------------------------------------------------------*/
5281typedef enum
5282{
5283 WDI_ED_ANY = 0,
5284 WDI_ED_NONE,
5285 WDI_ED_WEP40,
5286 WDI_ED_WEP104,
5287 WDI_ED_TKIP,
5288 WDI_ED_CCMP,
5289 WDI_ED_WPI,
5290 WDI_ED_AES_128_CMAC,
5291 WDI_ED_MAX = 0xFFFFFFFF /*expanding the type to UINT32*/
5292} WDI_EdType;
5293
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005294#ifdef FEATURE_WLAN_SCAN_PNO
5295
5296/*Max number of channels for a given network supported by PNO*/
5297#define WDI_PNO_MAX_NETW_CHANNELS 26
5298
5299/*Max number of channels for a given network supported by PNO*/
5300#define WDI_PNO_MAX_NETW_CHANNELS_EX 60
5301
5302/*The max number of programable networks for PNO*/
5303#define WDI_PNO_MAX_SUPP_NETWORKS 16
5304
5305/*The max number of scan timers programable in Riva*/
5306#define WDI_PNO_MAX_SCAN_TIMERS 10
5307
5308#define WDI_PNO_MAX_PROBE_SIZE 450
Jeff Johnson295189b2012-06-20 16:38:30 -07005309
5310/*---------------------------------------------------------------------------
5311 WDI_PNOMode
5312---------------------------------------------------------------------------*/
5313typedef enum
5314{
5315 /*Network offload is to start immediately*/
5316 WDI_PNO_MODE_IMMEDIATE,
5317
5318 /*Network offload is to start on host suspend*/
5319 WDI_PNO_MODE_ON_SUSPEND,
5320
5321 /*Network offload is to start on host resume*/
5322 WDI_PNO_MODE_ON_RESUME,
5323 WDI_PNO_MODE_MAX = 0xFFFFFFFF
5324} WDI_PNOMode;
5325
5326/* SSID broadcast type */
5327typedef enum
5328{
5329 WDI_BCAST_UNKNOWN = 0,
5330 WDI_BCAST_NORMAL = 1,
5331 WDI_BCAST_HIDDEN = 2,
5332
5333 WDI_BCAST_TYPE_MAX = 0xFFFFFFFF
5334} WDI_SSIDBcastType;
5335
5336/*---------------------------------------------------------------------------
5337 WDI_NetworkType
5338---------------------------------------------------------------------------*/
5339typedef struct
5340{
5341 /*The SSID of the preferred network*/
5342 WDI_MacSSid ssId;
5343
5344 /*The authentication method of the preferred network*/
5345 WDI_AuthType wdiAuth;
5346
5347 /*The encryption method of the preferred network*/
5348 WDI_EdType wdiEncryption;
5349
5350 /*SSID broadcast type, normal, hidden or unknown*/
5351 WDI_SSIDBcastType wdiBcastNetworkType;
5352
5353 /*channel count - 0 for all channels*/
5354 wpt_uint8 ucChannelCount;
5355
5356 /*the actual channels*/
Madan Mohan Koyyalamudi4bb5d2e2013-09-26 17:36:46 +05305357 wpt_uint8 aChannels[WDI_PNO_MAX_NETW_CHANNELS_EX];
Jeff Johnson295189b2012-06-20 16:38:30 -07005358
5359 /*rssi threshold that a network must meet to be considered, 0 - for any*/
5360 wpt_uint8 rssiThreshold;
5361} WDI_NetworkType;
5362
5363
5364/*---------------------------------------------------------------------------
5365 WDI_ScanTimer
5366---------------------------------------------------------------------------*/
5367typedef struct
5368{
5369 /*The timer value*/
5370 wpt_uint32 uTimerValue;
5371
5372 /*The amount of time we should be repeating the interval*/
5373 wpt_uint32 uTimerRepeat;
5374} WDI_ScanTimer;
5375
5376/*---------------------------------------------------------------------------
5377 WDI_ScanTimersType
5378---------------------------------------------------------------------------*/
5379typedef struct
5380{
5381 /*The number of value pair intervals present in the array*/
5382 wpt_uint8 ucScanTimersCount;
5383
5384 /*The time-repeat value pairs*/
5385 WDI_ScanTimer aTimerValues[WDI_PNO_MAX_SCAN_TIMERS];
5386} WDI_ScanTimersType;
5387
5388/*---------------------------------------------------------------------------
5389 WDI_PNOScanReqType
5390---------------------------------------------------------------------------*/
5391typedef struct
5392{
5393 /*Enable or disable PNO feature*/
5394 wpt_uint8 bEnable;
5395
5396 /*PNO mode requested*/
5397 WDI_PNOMode wdiModePNO;
5398
5399 /*Network count*/
5400 wpt_uint8 ucNetworksCount;
5401
5402 /*The networks to look for*/
5403 WDI_NetworkType aNetworks[WDI_PNO_MAX_SUPP_NETWORKS];
5404
5405 /*Scan timer intervals*/
5406 WDI_ScanTimersType scanTimers;
5407
5408 /*Probe template for 2.4GHz band*/
5409 wpt_uint16 us24GProbeSize;
5410 wpt_uint8 a24GProbeTemplate[WDI_PNO_MAX_PROBE_SIZE];
5411
5412 /*Probe template for 5GHz band*/
5413 wpt_uint16 us5GProbeSize;
5414 wpt_uint8 a5GProbeTemplate[WDI_PNO_MAX_PROBE_SIZE];
5415} WDI_PNOScanReqType;
5416
5417/*---------------------------------------------------------------------------
5418 WDI_PNOScanReqParamsType
5419 PNO info passed to WDI form WDA
5420---------------------------------------------------------------------------*/
5421typedef struct
5422{
5423 /* PNO Info Type, same as tPrefNetwListParams */
5424 WDI_PNOScanReqType wdiPNOScanInfo;
5425 /* Request status callback offered by UMAC - it is called if the current req
5426 has returned PENDING as status; it delivers the status of sending the message
5427 over the BUS */
5428 WDI_ReqStatusCb wdiReqStatusCB;
5429 /* The user data passed in by UMAC, it will be sent back when the above
5430 function pointer will be called */
5431 void* pUserData;
5432} WDI_PNOScanReqParamsType;
5433
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005434/*---------------------------------------------------------------------------
5435 WDI_SetRssiFilterReqParamsType
5436 PNO info passed to WDI form WDA
5437---------------------------------------------------------------------------*/
5438typedef struct
5439{
5440 /* RSSI Threshold */
5441 wpt_uint8 rssiThreshold;
5442 /* Request status callback offered by UMAC - it is called if the current req
5443 has returned PENDING as status; it delivers the status of sending the message
5444 over the BUS */
5445 WDI_ReqStatusCb wdiReqStatusCB;
5446 /* The user data passed in by UMAC, it will be sent back when the above
5447 function pointer will be called */
5448 void* pUserData;
5449} WDI_SetRssiFilterReqParamsType;
5450
5451/*---------------------------------------------------------------------------
5452 WDI_UpdateScanParamsInfo
5453---------------------------------------------------------------------------*/
5454typedef struct
5455{
5456 /*Is 11d enabled*/
5457 wpt_uint8 b11dEnabled;
5458
5459 /*Was UMAc able to find the regulatory domain*/
5460 wpt_uint8 b11dResolved;
5461
5462 /*Number of channel allowed in the regulatory domain*/
5463 wpt_uint8 ucChannelCount;
5464
5465 /*The actual channels allowed in the regulatory domain*/
5466 wpt_uint8 aChannels[WDI_PNO_MAX_NETW_CHANNELS_EX];
5467
5468 /*Passive min channel time*/
5469 wpt_uint16 usPassiveMinChTime;
5470
5471 /*Passive max channel time*/
5472 wpt_uint16 usPassiveMaxChTime;
5473
5474 /*Active min channel time*/
5475 wpt_uint16 usActiveMinChTime;
5476
5477 /*Active max channel time*/
5478 wpt_uint16 usActiveMaxChTime;
5479
5480 /*channel bonding info*/
5481 wpt_uint8 cbState;
5482} WDI_UpdateScanParamsInfo;
5483
5484/*---------------------------------------------------------------------------
5485 WDI_UpdateScanParamsInfoType
5486 UpdateScanParams info passed to WDI form WDA
5487---------------------------------------------------------------------------*/
5488typedef struct
5489{
5490 /* PNO Info Type, same as tUpdateScanParams */
5491 WDI_UpdateScanParamsInfo wdiUpdateScanParamsInfo;
5492 /* Request status callback offered by UMAC - it is called if the current req
5493 has returned PENDING as status; it delivers the status of sending the message
5494 over the BUS */
5495 WDI_ReqStatusCb wdiReqStatusCB;
5496 /* The user data passed in by UMAC, it will be sent back when the above
5497 function pointer will be called */
5498 void* pUserData;
5499} WDI_UpdateScanParamsInfoType;
5500#endif //FEATURE_WLAN_SCAN_PNO
5501
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005502#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
5503
Varun Reddy Yeturu52231ea2014-02-06 12:00:56 -08005504#define WDI_ROAM_SCAN_MAX_CHANNELS 80
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005505#define WDI_ROAM_SCAN_MAX_PROBE_SIZE 450
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005506
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005507typedef struct
5508{
5509 /*The SSID of the preferred network*/
5510 WDI_MacSSid ssId;
5511 wpt_uint8 currAPbssid[WDI_MAC_ADDR_LEN];
5512
5513 /*The authentication method of the preferred network*/
5514 WDI_AuthType authentication;
5515
5516 /*The encryption method of the preferred network*/
5517 WDI_EdType encryption;
5518 WDI_EdType mcencryption;
5519
5520 /*SSID broadcast type, normal, hidden or unknown*/
5521 //WDI_SSIDBcastType wdiBcastNetworkType;
5522
5523 /*channel count - 0 for all channels*/
5524 wpt_uint8 ChannelCount;
5525
5526 /*the actual channels*/
5527 wpt_uint8 ChannelCache[WDI_ROAM_SCAN_MAX_CHANNELS];
5528
5529} WDI_RoamNetworkType;
5530
5531typedef struct WDIMobilityDomainInfo
5532{
5533 wpt_uint8 mdiePresent;
5534 wpt_uint16 mobilityDomain;
5535} WDI_MobilityDomainInfo;
5536
5537/*---------------------------------------------------------------------------
5538 WDI_RoamOffloadScanInfo
5539---------------------------------------------------------------------------*/
5540typedef struct
5541{
5542 wpt_boolean RoamScanOffloadEnabled;
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08005543 wpt_boolean MAWCEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005544 wpt_uint8 LookupThreshold;
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08005545 wpt_uint8 RxSensitivityThreshold;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005546 wpt_uint8 RoamRssiDiff;
5547 wpt_uint8 ChannelCacheType;
5548 wpt_uint8 Command;
5549 wpt_uint8 StartScanReason;
5550 wpt_uint16 NeighborScanTimerPeriod;
5551 wpt_uint16 NeighborRoamScanRefreshPeriod;
5552 wpt_uint16 NeighborScanChannelMinTime;
5553 wpt_uint16 NeighborScanChannelMaxTime;
5554 wpt_uint16 EmptyRefreshScanPeriod;
5555 wpt_uint8 ValidChannelCount;
5556 wpt_uint8 ValidChannelList[WDI_ROAM_SCAN_MAX_CHANNELS];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005557 wpt_boolean IsESEEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005558 /*Probe template for 2.4GHz band*/
5559 wpt_uint16 us24GProbeSize;
5560 wpt_uint8 a24GProbeTemplate[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
5561
5562 /*Probe template for 5GHz band*/
5563 wpt_uint16 us5GProbeSize;
5564 wpt_uint8 a5GProbeTemplate[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005565 /*LFR BG Scan will currently look for only one network to which it is initially connected.
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005566 * As per requirement, later, the following structure can be used as an array of networks.*/
5567 WDI_RoamNetworkType ConnectedNetwork;
5568 WDI_MobilityDomainInfo MDID;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005569 wpt_uint8 nProbes;
5570 wpt_uint16 HomeAwayTime;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005571} WDI_RoamOffloadScanInfo;
5572
5573typedef struct
5574{
5575 /* Start Roam Candidate Lookup Offload Back Ground Info Type */
5576 WDI_RoamOffloadScanInfo wdiRoamOffloadScanInfo;
5577 /* Request status callback offered by UMAC - it is called if the current req
5578 has returned PENDING as status; it delivers the status of sending the message
5579 over the BUS */
5580 WDI_ReqStatusCb wdiReqStatusCB;
5581 /* The user data passed in by UMAC, it will be sent back when the above
5582 function pointer will be called */
5583 void* pUserData;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005584} WDI_RoamScanOffloadReqParamsType;
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005585#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07005586
5587/*---------------------------------------------------------------------------
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +05305588 WDI_HT40ObssScanIndType
5589---------------------------------------------------------------------------*/
5590typedef struct
5591{
5592 wpt_uint8 cmdType;
5593 wpt_uint8 scanType;
5594 wpt_uint16 OBSSScanPassiveDwellTime; // In TUs
5595 wpt_uint16 OBSSScanActiveDwellTime; // In TUs
5596 wpt_uint16 BSSChannelWidthTriggerScanInterval; // In seconds
5597 wpt_uint16 OBSSScanPassiveTotalPerChannel; // In TUs
5598 wpt_uint16 OBSSScanActiveTotalPerChannel; // In TUs
5599 wpt_uint16 BSSWidthChannelTransitionDelayFactor;
5600 wpt_uint16 OBSSScanActivityThreshold;
5601 wpt_uint8 selfStaIdx;
5602 wpt_uint8 bssIdx;
5603 wpt_uint8 fortyMHZIntolerent;
5604 wpt_uint8 channelCount;
5605 wpt_uint8 channels[WDI_ROAM_SCAN_MAX_CHANNELS];
5606 wpt_uint8 currentOperatingClass;
5607 wpt_uint16 ieFieldLen;
5608 wpt_uint8 ieField[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
5609} WDI_HT40ObssScanIndType;
5610
5611
5612/*---------------------------------------------------------------------------
5613 WDI_OBSSScanIndParamsType
5614---------------------------------------------------------------------------*/
5615typedef struct
5616{
5617 WDI_HT40ObssScanIndType wdiHT40ObssScanParam;
5618
5619 /*Request status callback offered by UMAC - it is called if the current
5620 req has returned PENDING as status; it delivers the status of sending
5621 the message over the BUS */
5622 WDI_ReqStatusCb wdiReqStatusCB;
5623
5624 /*The user data passed in by UMAC, it will be sent back when the above
5625 function pointer will be called */
5626 void* pUserData;
5627
5628}WDI_HT40ObssScanParamsType;
5629
5630/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07005631 WDI_UpdateScanParamsInfo
5632---------------------------------------------------------------------------*/
5633typedef struct
5634{
5635 /* Ignore DTIM */
5636 wpt_uint32 uIgnoreDTIM;
5637
5638 /*DTIM Period*/
5639 wpt_uint32 uDTIMPeriod;
5640
5641 /* Listen Interval */
5642 wpt_uint32 uListenInterval;
5643
5644 /* Broadcast Multicas Filter */
5645 wpt_uint32 uBcastMcastFilter;
5646
5647 /* Beacon Early Termination */
5648 wpt_uint32 uEnableBET;
5649
5650 /* Beacon Early Termination Interval */
5651 wpt_uint32 uBETInterval;
5652
Yue Mac24062f2013-05-13 17:01:29 -07005653 /* MAX LI for modulated DTIM */
5654 wpt_uint32 uMaxLIModulatedDTIM;
5655
Jeff Johnson295189b2012-06-20 16:38:30 -07005656} WDI_SetPowerParamsInfo;
5657
5658/*---------------------------------------------------------------------------
5659 WDI_UpdateScanParamsInfoType
5660 UpdateScanParams info passed to WDI form WDA
5661---------------------------------------------------------------------------*/
5662typedef struct
5663{
5664 /* Power params Info Type, same as tSetPowerParamsReq */
5665 WDI_SetPowerParamsInfo wdiSetPowerParamsInfo;
5666 /* Request status callback offered by UMAC - it is called if the current req
5667 has returned PENDING as status; it delivers the status of sending the message
5668 over the BUS */
5669 WDI_ReqStatusCb wdiReqStatusCB;
5670 /* The user data passed in by UMAC, it will be sent back when the above
5671 function pointer will be called */
5672 void* pUserData;
5673}WDI_SetPowerParamsReqParamsType;
5674
5675/*---------------------------------------------------------------------------
5676 WDI_SetTxPerTrackingConfType
5677 Wowl add ptrn info passed to WDA form UMAC
5678---------------------------------------------------------------------------*/
5679typedef struct
5680{
5681 wpt_uint8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */
5682 wpt_uint8 ucTxPerTrackingPeriod; /* Check period, unit is sec. */
5683 wpt_uint8 ucTxPerTrackingRatio; /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. */
5684 wpt_uint32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */
5685} WDI_TxPerTrackingParamType;
5686
5687/*---------------------------------------------------------------------------
5688 WDI_SetTxPerTrackingReqParamsType
5689 Tx PER Tracking parameters passed to WDI from WDA
5690---------------------------------------------------------------------------*/
5691typedef struct
5692{
5693 /* Configurations for Tx PER Tracking */
5694 WDI_TxPerTrackingParamType wdiTxPerTrackingParam;
5695 /*Request status callback offered by UMAC - it is called if the current req
5696 has returned PENDING as status; it delivers the status of sending the message
5697 over the BUS */
5698 WDI_ReqStatusCb wdiReqStatusCB;
5699 /*The user data passed in by UMAC, it will be sent back when the above
5700 function pointer will be called */
5701 void* pUserData;
5702}WDI_SetTxPerTrackingReqParamsType;
5703
5704#ifdef WLAN_FEATURE_PACKET_FILTERING
5705/*---------------------------------------------------------------------------
5706 Packet Filtering Parameters
5707---------------------------------------------------------------------------*/
5708
5709#define WDI_IPV4_ADDR_LEN 4
5710#define WDI_MAC_ADDR_LEN 6
5711#define WDI_MAX_FILTER_TEST_DATA_LEN 8
5712#define WDI_MAX_NUM_MULTICAST_ADDRESS 240
5713#define WDI_MAX_NUM_FILTERS 20
5714#define WDI_MAX_NUM_TESTS_PER_FILTER 10
5715
5716//
5717// Receive Filter Parameters
5718//
5719typedef enum
5720{
5721 WDI_RCV_FILTER_TYPE_INVALID,
5722 WDI_RCV_FILTER_TYPE_FILTER_PKT,
5723 WDI_RCV_FILTER_TYPE_BUFFER_PKT,
5724 WDI_RCV_FILTER_TYPE_MAX_ENUM_SIZE
5725}WDI_ReceivePacketFilterType;
5726
5727typedef enum
5728{
5729 WDI_FILTER_HDR_TYPE_INVALID,
5730 WDI_FILTER_HDR_TYPE_MAC,
5731 WDI_FILTER_HDR_TYPE_ARP,
5732 WDI_FILTER_HDR_TYPE_IPV4,
5733 WDI_FILTER_HDR_TYPE_IPV6,
5734 WDI_FILTER_HDR_TYPE_UDP,
5735 WDI_FILTER_HDR_TYPE_MAX
5736}WDI_RcvPktFltProtocolType;
5737
5738typedef enum
5739{
5740 WDI_FILTER_CMP_TYPE_INVALID,
5741 WDI_FILTER_CMP_TYPE_EQUAL,
5742 WDI_FILTER_CMP_TYPE_MASK_EQUAL,
5743 WDI_FILTER_CMP_TYPE_NOT_EQUAL,
5744 WDI_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
5745 WDI_FILTER_CMP_TYPE_MAX
5746}WDI_RcvPktFltCmpFlagType;
5747
5748typedef struct
5749{
5750 WDI_RcvPktFltProtocolType protocolLayer;
5751 WDI_RcvPktFltCmpFlagType cmpFlag;
5752/* Length of the data to compare */
5753 wpt_uint16 dataLength;
5754/* from start of the respective frame header */
5755 wpt_uint8 dataOffset;
5756 wpt_uint8 reserved; /* Reserved field */
5757/* Data to compare */
5758 wpt_uint8 compareData[WDI_MAX_FILTER_TEST_DATA_LEN];
5759/* Mask to be applied on the received packet data before compare */
5760 wpt_uint8 dataMask[WDI_MAX_FILTER_TEST_DATA_LEN];
5761}WDI_RcvPktFilterFieldParams;
5762
5763typedef struct
5764{
5765 wpt_uint8 filterId;
5766 wpt_uint8 filterType;
5767 wpt_uint32 numFieldParams;
5768 wpt_uint32 coalesceTime;
Jeff Johnsone7245742012-09-05 17:12:55 -07005769 wpt_macAddr selfMacAddr;
5770 wpt_macAddr bssId;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005771 WDI_RcvPktFilterFieldParams paramsData[1];
5772
Jeff Johnson295189b2012-06-20 16:38:30 -07005773}WDI_RcvPktFilterCfgType;
5774
5775typedef struct
5776{
5777 /*Request status callback offered by UMAC - it is called if the current
5778 req has returned PENDING as status; it delivers the status of sending
5779 the message over the BUS */
5780 WDI_ReqStatusCb wdiReqStatusCB;
5781
5782 /*The user data passed in by UMAC, it will be sent back when the above
5783 function pointer will be called */
5784 void* pUserData;
5785
5786 // Variable length packet filter field params
5787 WDI_RcvPktFilterCfgType wdiPktFilterCfg;
5788} WDI_SetRcvPktFilterReqParamsType;
5789
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005790typedef struct
5791{
5792 /*Result of the operation*/
5793 WDI_Status wdiStatus;
5794 /* BSSIDX of the Set Receive Filter
5795 */
5796 wpt_uint8 bssIdx;
5797} WDI_SetRcvPktFilterRspParamsType;
5798
Jeff Johnson295189b2012-06-20 16:38:30 -07005799//
5800// Filter Packet Match Count Parameters
5801//
5802typedef struct
5803{
5804 /*Request status callback offered by UMAC - it is called if the current
5805 req has returned PENDING as status; it delivers the status of sending
5806 the message over the BUS */
5807 WDI_ReqStatusCb wdiReqStatusCB;
5808
5809 /*The user data passed in by UMAC, it will be sent back when the above
5810 function pointer will be called */
5811 void* pUserData;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005812
5813 /* BSSID of the Match count
5814 */
5815 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005816} WDI_RcvFltPktMatchCntReqParamsType;
5817
5818typedef struct
5819{
5820 wpt_uint8 filterId;
5821 wpt_uint32 matchCnt;
5822} WDI_RcvFltPktMatchCnt;
5823
5824typedef struct
5825{
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005826 /*Result of the operation*/
5827 WDI_Status wdiStatus;
Jeff Johnson295189b2012-06-20 16:38:30 -07005828
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005829 /* BSSIDX of the Match count response
5830 */
5831 wpt_uint8 bssIdx;
5832
Jeff Johnson295189b2012-06-20 16:38:30 -07005833} WDI_RcvFltPktMatchCntRspParamsType;
5834
Jeff Johnson295189b2012-06-20 16:38:30 -07005835//
5836// Receive Filter Clear Parameters
5837//
5838typedef struct
5839{
5840 wpt_uint32 status; /* only valid for response message */
5841 wpt_uint8 filterId;
Jeff Johnsone7245742012-09-05 17:12:55 -07005842 wpt_macAddr selfMacAddr;
5843 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005844}WDI_RcvFltPktClearParam;
5845
5846typedef struct
5847{
5848 WDI_RcvFltPktClearParam filterClearParam;
5849 /*Request status callback offered by UMAC - it is called if the current
5850 req has returned PENDING as status; it delivers the status of sending
5851 the message over the BUS */
5852 WDI_ReqStatusCb wdiReqStatusCB;
5853
5854 /*The user data passed in by UMAC, it will be sent back when the above
5855 function pointer will be called */
5856 void* pUserData;
5857} WDI_RcvFltPktClearReqParamsType;
5858
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005859typedef struct
5860{
5861 /*Result of the operation*/
5862 WDI_Status wdiStatus;
5863 /* BSSIDX of the Match count response
5864 */
5865 wpt_uint8 bssIdx;
5866
5867} WDI_RcvFltPktClearRspParamsType;
5868
Jeff Johnson295189b2012-06-20 16:38:30 -07005869//
5870// Multicast Address List Parameters
5871//
5872typedef struct
5873{
5874 wpt_uint32 ulMulticastAddrCnt;
5875 wpt_macAddr multicastAddr[WDI_MAX_NUM_MULTICAST_ADDRESS];
Jeff Johnsone7245742012-09-05 17:12:55 -07005876 wpt_macAddr selfMacAddr;
5877 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005878} WDI_RcvFltMcAddrListType;
5879
5880typedef struct
5881{
5882 WDI_RcvFltMcAddrListType mcAddrList;
5883 /*Request status callback offered by UMAC - it is called if the current
5884 req has returned PENDING as status; it delivers the status of sending
5885 the message over the BUS */
5886 WDI_ReqStatusCb wdiReqStatusCB;
5887
5888 /*The user data passed in by UMAC, it will be sent back when the above
5889 function pointer will be called */
5890 void* pUserData;
5891} WDI_RcvFltPktSetMcListReqParamsType;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005892
5893typedef struct
5894{
5895 /*Result of the operation*/
5896 WDI_Status wdiStatus;
5897 /* BSSIDX of the Match count response
5898 */
5899 wpt_uint8 bssIdx;
5900} WDI_RcvFltPktSetMcListRspParamsType;
5901
Jeff Johnson295189b2012-06-20 16:38:30 -07005902#endif // WLAN_FEATURE_PACKET_FILTERING
5903
5904/*---------------------------------------------------------------------------
5905 WDI_HALDumpCmdReqInfoType
5906---------------------------------------------------------------------------*/
5907typedef struct
5908{
5909 /*command*/
5910 wpt_uint32 command;
5911
5912 /*Arguments*/
5913 wpt_uint32 argument1;
5914 wpt_uint32 argument2;
5915 wpt_uint32 argument3;
5916 wpt_uint32 argument4;
5917
5918}WDI_HALDumpCmdReqInfoType;
5919
5920/*---------------------------------------------------------------------------
5921 WDI_HALDumpCmdReqParamsType
5922---------------------------------------------------------------------------*/
5923typedef struct
5924{
5925 /*NV Blob Info*/
5926 WDI_HALDumpCmdReqInfoType wdiHALDumpCmdInfoType;
5927
5928 /*Request status callback offered by UMAC - it is called if the current
5929 req has returned PENDING as status; it delivers the status of sending
5930 the message over the BUS */
5931 WDI_ReqStatusCb wdiReqStatusCB;
5932
5933 /*The user data passed in by UMAC, it will be sent back when the above
5934 function pointer will be called */
5935 void* pUserData;
5936
5937}WDI_HALDumpCmdReqParamsType;
5938
5939
5940/*---------------------------------------------------------------------------
5941 WDI_HALDumpCmdRspParamsType
5942---------------------------------------------------------------------------*/
5943typedef struct
5944{
5945 /*Result of the operation*/
5946 WDI_Status wdiStatus;
5947
5948 /* length of the buffer */
5949 wpt_uint16 usBufferLen;
5950
5951 /* Buffer */
5952 wpt_uint8 *pBuffer;
5953}WDI_HALDumpCmdRspParamsType;
5954
5955
5956/*---------------------------------------------------------------------------
5957 WDI_SetTmLevelReqType
5958---------------------------------------------------------------------------*/
5959typedef struct
5960{
5961 wpt_uint16 tmMode;
5962 wpt_uint16 tmLevel;
5963 void* pUserData;
5964}WDI_SetTmLevelReqType;
5965
5966/*---------------------------------------------------------------------------
5967 WDI_SetTmLevelRspType
5968---------------------------------------------------------------------------*/
5969typedef struct
5970{
5971 WDI_Status wdiStatus;
5972 void* pUserData;
5973}WDI_SetTmLevelRspType;
5974
Leo Chang9056f462013-08-01 19:21:11 -07005975#ifdef FEATURE_WLAN_LPHB
5976/*---------------------------------------------------------------------------
5977 WDI_LPHBConfigParamsType
5978---------------------------------------------------------------------------*/
5979typedef struct
5980{
5981 void* pLphsConfIndData;
5982}WDI_LPHBConfigParamsType;
5983#endif /* FEATURE_WLAN_LPHB */
5984
Yue Mab9c86f42013-08-14 15:59:08 -07005985/*---------------------------------------------------------------------------
5986 WDI_AddPeriodicTxPtrnInfoType
5987---------------------------------------------------------------------------*/
5988typedef struct
5989{
5990 /* MAC Address for the adapter */
5991 wpt_macAddr macAddr;
5992
5993 wpt_uint8 ucPtrnId; // Pattern ID
5994 wpt_uint16 ucPtrnSize; // Pattern size
5995 wpt_uint32 usPtrnIntervalMs; // In msec
5996 wpt_uint8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
5997} WDI_AddPeriodicTxPtrnInfoType;
5998
5999/*---------------------------------------------------------------------------
6000 WDI_DelPeriodicTxPtrnInfoType
6001---------------------------------------------------------------------------*/
6002typedef struct
6003{
6004 /* MAC Address for the adapter */
6005 wpt_macAddr macAddr;
6006
6007 /* Bitmap of pattern IDs that needs to be deleted */
6008 wpt_uint32 ucPatternIdBitmap;
6009} WDI_DelPeriodicTxPtrnInfoType;
6010
6011/*---------------------------------------------------------------------------
6012 WDI_AddPeriodicTxPtrnParamsType
6013---------------------------------------------------------------------------*/
6014typedef struct
6015{
6016 WDI_AddPeriodicTxPtrnInfoType wdiAddPeriodicTxPtrnParams;
6017
6018 /*Request status callback offered by UMAC - it is called if the current
6019 req has returned PENDING as status; it delivers the status of sending
6020 the message over the BUS */
6021 WDI_ReqStatusCb wdiReqStatusCB;
6022
6023 /*The user data passed in by UMAC, it will be sent back when the above
6024 function pointer will be called */
6025 void* pUserData;
6026} WDI_AddPeriodicTxPtrnParamsType;
6027
6028/*---------------------------------------------------------------------------
Srinivas Dasari32a79262015-02-19 13:04:49 +05306029 WDI_NanRequestType
6030---------------------------------------------------------------------------*/
6031typedef struct
6032{
6033 wpt_uint16 request_data_len;
6034 wpt_uint8 request_data[1];
6035} WDI_NanRequestType;
6036
6037
6038/*---------------------------------------------------------------------------
Yue Mab9c86f42013-08-14 15:59:08 -07006039 WDI_DelPeriodicTxPtrnParamsType
6040---------------------------------------------------------------------------*/
6041typedef struct
6042{
6043 WDI_DelPeriodicTxPtrnInfoType wdiDelPeriodicTxPtrnParams;
6044
6045 /*Request status callback offered by UMAC - it is called if the current
6046 req has returned PENDING as status; it delivers the status of sending
6047 the message over the BUS */
6048 WDI_ReqStatusCb wdiReqStatusCB;
6049
6050 /*The user data passed in by UMAC, it will be sent back when the above
6051 function pointer will be called */
6052 void* pUserData;
6053} WDI_DelPeriodicTxPtrnParamsType;
6054
Abhishek Singh7cd040e2016-01-07 10:51:04 +05306055#ifdef WLAN_FEATURE_RMC
6056/*---------------------------------------------------------------------------
6057 WDI_IbssPeerInfoParams
6058---------------------------------------------------------------------------*/
6059typedef struct
6060{
6061 wpt_uint8 wdiStaIdx; //StaIdx
6062 wpt_uint32 wdiTxRate; //Tx Rate
6063 wpt_uint32 wdiMcsIndex; //MCS Index
6064 wpt_uint32 wdiTxRateFlags; //TxRate Flags
6065 wpt_int8 wdiRssi; //RSSI
6066}WDI_IbssPeerInfoParams;
6067
6068/*---------------------------------------------------------------------------
6069 WDI_IbssPeerInfoRspParams
6070---------------------------------------------------------------------------*/
6071typedef struct
6072{
6073 wpt_uint32 wdiStatus; // Return status
6074 wpt_uint8 wdiNumPeers; // Number of peers
6075 WDI_IbssPeerInfoParams *wdiPeerInfoParams; // Peer Info parameters
6076}WDI_IbssPeerInfoRspParams;
6077
6078/*---------------------------------------------------------------------------
6079 WDI_GetIbssPeerInfoRspType
6080---------------------------------------------------------------------------*/
6081typedef struct
6082{
6083 WDI_IbssPeerInfoRspParams wdiPeerInfoRspParams;
6084
6085 /*Request status callback offered by UMAC - it is called if the current
6086 req has returned PENDING as status; it delivers the status of sending
6087 the message over the BUS */
6088 WDI_ReqStatusCb wdiReqStatusCB;
6089
6090 /*The user data passed in by UMAC, it will be sent back when the above
6091 function pointer will be called */
6092 void* pUserData;
6093}WDI_GetIbssPeerInfoRspType;
6094
6095/*---------------------------------------------------------------------------
6096 WDI_IbssPeerInfoReqType
6097---------------------------------------------------------------------------*/
6098typedef struct
6099{
6100 wpt_boolean wdiAllPeerInfoReqd; // Request info for all peers
6101 wpt_uint8 wdiStaIdx; // STA Index
6102 wpt_uint8 wdiBssIdx; // BSS Index
6103}WDI_IbssPeerInfoReqType;
6104
6105#endif /* WLAN_FEATURE_RMC */
6106
Dino Mycle41bdc942014-06-10 11:30:24 +05306107#ifdef WLAN_FEATURE_EXTSCAN
6108
6109#define WDI_WLAN_EXTSCAN_MAX_CHANNELS 16
6110#define WDI_WLAN_EXTSCAN_MAX_BUCKETS 16
6111#define WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS 128
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306112#define WDI_WLAN_EXTSCAN_MAX_HOTLIST_SSID 8
Dino Mycle41bdc942014-06-10 11:30:24 +05306113
6114typedef enum
6115{
6116 WDI_WIFI_BAND_UNSPECIFIED,
6117 WDI_WIFI_BAND_BG = 1, // 2.4 GHz
6118 WDI_WIFI_BAND_A = 2, // 5 GHz without DFS
6119 WDI_WIFI_BAND_ABG = 3, // 2.4 GHz + 5 GHz; no DFS
6120 WDI_WIFI_BAND_A_DFS = 4, // 5 GHz DFS only
6121 WDI_WIFI_BAND_A_WITH_DFS = 6, // 5 GHz with DFS
6122 WDI_WIFI_BAND_ABG_WITH_DFS = 7, // 2.4 GHz + 5 GHz with DFS
6123
6124 /* Keep it last */
6125 WDI_WIFI_BAND_MAX
6126} WDI_WifiBand;
6127
6128typedef struct
6129{
6130 wpt_uint32 channel; // frequency
6131 wpt_uint32 dwellTimeMs; // dwell time hint
6132 wpt_uint8 passive; // 0 => active,
6133 // 1 => passive scan; ignored for DFS
6134 wpt_uint8 chnlClass;
6135} WDI_WifiScanChannelSpec;
6136
6137typedef struct
6138{
6139 wpt_uint8 bucket; // bucket index, 0 based
6140 WDI_WifiBand band; // when UNSPECIFIED, use channel list
6141
6142 /*
6143 * desired period, in millisecond; if this is too
6144 * low, the firmware should choose to generate results as fast as
6145 * it can instead of failing the command byte
6146 */
6147 wpt_uint32 period;
6148
6149 /*
6150 * 0 => normal reporting (reporting rssi history
6151 * only, when rssi history buffer is % full)
6152 * 1 => same as 0 + report a scan completion event after scanning
6153 * this bucket
6154 * 2 => same as 1 + forward scan results (beacons/probe responses + IEs)
6155 * in real time to HAL
6156 */
6157 wpt_uint8 reportEvents;
6158
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306159 wpt_uint32 max_period;
6160 wpt_uint32 exponent;
6161 wpt_uint32 step_count;
6162
Dino Mycle41bdc942014-06-10 11:30:24 +05306163 wpt_uint8 numChannels;
6164
6165 /*
6166 * channels to scan; these may include DFS channels
6167 */
6168 WDI_WifiScanChannelSpec channels[WDI_WLAN_EXTSCAN_MAX_CHANNELS];
6169} WDI_WifiScanBucketSpec;
6170
6171typedef struct
6172{
6173 wpt_uint32 requestId;
6174 wpt_uint8 sessionId;
6175 wpt_uint32 basePeriod; // base timer period
6176 wpt_uint32 maxAPperScan;
6177
6178 /* in %, when buffer is this much full, wake up host */
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306179 wpt_uint32 reportThresholdPercent;
6180 wpt_uint32 reportThresholdNumScans;
Dino Mycle41bdc942014-06-10 11:30:24 +05306181
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306182 wpt_uint32 homeAwayTime; //in units of milliseconds
Dino Mycle41bdc942014-06-10 11:30:24 +05306183 wpt_uint8 numBuckets;
6184 WDI_WifiScanBucketSpec buckets[WDI_WLAN_EXTSCAN_MAX_BUCKETS];
6185} WDI_EXTScanStartReqParams;
6186
6187typedef struct
6188{
6189 wpt_uint32 requestId;
6190 wpt_uint8 sessionId;
6191} WDI_EXTScanStopReqParams;
6192
6193typedef struct
6194{
6195 wpt_uint32 requestId;
6196 wpt_uint8 sessionId;
6197
6198 /*
6199 * 1 return cached results and flush it
6200 * 0 return cached results and do not flush
6201 */
6202 wpt_boolean flush;
6203} WDI_EXTScanGetCachedResultsReqParams;
6204
6205typedef struct
6206{
6207 wpt_uint32 requestId;
6208 wpt_uint8 sessionId;
6209} WDI_EXTScanGetCapabilitiesReqParams;
6210
6211typedef struct
6212{
6213 wpt_uint8 bssid[6]; /* BSSID */
6214 wpt_int32 low; // low threshold
6215 wpt_int32 high; // high threshold
Dino Mycle41bdc942014-06-10 11:30:24 +05306216} WDI_APThresholdParam;
6217
6218typedef struct
6219{
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306220 WDI_MacSSid ssid; /* SSID */
6221 wpt_uint8 band; /* band */
6222 wpt_int32 lowRssiThreshold; /* low threshold */
6223 wpt_int32 highRssiThreshold; /* high threshold */
6224} WDI_SSIDThresholdParam;
6225
6226typedef struct
6227{
Dino Mycle41bdc942014-06-10 11:30:24 +05306228 wpt_int32 requestId;
6229 wpt_int8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar37f4fd12015-08-19 14:37:37 +05306230 wpt_uint32 lostBssidSampleSize;
6231 wpt_int32 numBssid; // number of hotlist APs
Dino Mycle41bdc942014-06-10 11:30:24 +05306232 WDI_APThresholdParam ap[WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS]; // hotlist APs
6233} WDI_EXTScanSetBSSIDHotlistReqParams;
6234
6235typedef struct
6236{
6237 wpt_uint32 requestId;
6238 wpt_uint8 sessionId;
6239} WDI_EXTScanResetBSSIDHotlistReqParams;
6240
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306241typedef struct
6242{
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +05306243 wpt_boolean pause;
6244 wpt_uint32 reserved;
6245} WDI_HighPriorityDataInfoIndParams;
6246
6247typedef struct
6248{
6249 wpt_int32 requestId;
6250 wpt_int8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306251 wpt_uint32 lostSsidSampleSize;
6252 wpt_uint32 numSsid; // number of hotlist APs
6253 WDI_SSIDThresholdParam ssid[WDI_WLAN_EXTSCAN_MAX_HOTLIST_SSID]; // hotlist SSIDs
6254} WDI_EXTScanSetSSIDHotlistReqParams;
6255
6256typedef struct
6257{
6258 wpt_uint32 requestId;
6259 wpt_uint8 sessionId;
6260} WDI_EXTScanResetSSIDHotlistReqParams;
6261
Dino Mycle41bdc942014-06-10 11:30:24 +05306262#endif /* WLAN_FEATURE_EXTSCAN */
6263
Sunil Duttbd736ed2014-05-26 21:19:41 +05306264#ifdef WLAN_FEATURE_LINK_LAYER_STATS
6265typedef struct
6266{
6267 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306268 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306269 wpt_uint32 mpduSizeThreshold;
6270 wpt_uint32 aggressiveStatisticsGathering;
6271}WDI_LLStatsSetReqType;
6272
6273typedef struct
6274{
6275 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306276 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306277 wpt_uint32 paramIdMask;
6278}WDI_LLStatsGetReqType;
6279
6280typedef struct
6281{
6282 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306283 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306284 wpt_uint32 statsClearReqMask;
6285 wpt_uint8 stopReq;
6286}WDI_LLStatsClearReqType;
Dino Mycled3d50022014-07-07 12:58:25 +05306287
Sunil Duttbd736ed2014-05-26 21:19:41 +05306288#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
6289
Siddharth Bhal171788a2014-09-29 21:02:40 +05306290/*---------------------------------------------------------------------------
6291 WDI_SPOOF_MAC_ADDR_REQ
6292---------------------------------------------------------------------------*/
6293typedef struct
6294{
6295 /* Spoof MAC Address for FW */
6296 wpt_macAddr macAddr;
6297
6298 /* Reserved Params/fields */
6299 wpt_uint32 params;
6300 wpt_uint32 reserved;
6301} WDI_SpoofMacAddrInfoType;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306302
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05306303//This is to force compiler to use the maximum of an int for enum
6304#define SIR_MAX_ENUM_SIZE 0x7FFFFFFF
6305// Enum to specify whether key is used
6306// for TX only, RX only or both
6307typedef enum
6308{
6309 eWDI_TX_ONLY,
6310 eWDI_RX_ONLY,
6311 eWDI_TX_RX,
6312 eWDI_TX_DEFAULT,
6313 eWDI_DONOT_USE_KEY_DIRECTION = SIR_MAX_ENUM_SIZE
6314} tWDIKeyDirection;
6315
6316// MAX key length when ULA is used
6317#define SIR_MAC_MAX_KEY_LENGTH 32
6318/* Max key size including the WAPI and TKIP */
6319#define WLAN_MAX_KEY_RSC_LEN 16
6320// Definition for Encryption Keys
6321//typedef struct sSirKeys
6322typedef struct
6323{
6324 wpt_uint8 keyId;
6325 wpt_uint8 unicast; // 0 for multicast
6326 tWDIKeyDirection keyDirection;
6327 wpt_uint8 keyRsc[WLAN_MAX_KEY_RSC_LEN]; // Usage is unknown
6328 wpt_uint8 paeRole; // =1 for authenticator,
6329 // =0 for supplicant
6330 wpt_uint16 keyLength;
6331 wpt_uint8 key[SIR_MAC_MAX_KEY_LENGTH];
6332} tWDIKeys, *tpWDIKeys;
6333
6334typedef enum
6335{
6336 eWDI_WEP_STATIC,
6337 eWDI_WEP_DYNAMIC,
6338} tWDIWepType;
6339
6340// Encryption type enum used with peer
6341typedef enum
6342{
6343 eWDI_ED_NONE,
6344 eWDI_ED_WEP40,
6345 eWDI_ED_WEP104,
6346 eWDI_ED_TKIP,
6347 eWDI_ED_CCMP,
6348#if defined(FEATURE_WLAN_WAPI)
6349 eWDI_ED_WPI,
6350#endif
6351 /* DPU HW treats encryption mode 4 plus RMF bit set in TX BD as BIP.
6352 * Thus while setting BIP encryption mode in corresponding DPU Desc
6353 * eSIR_ED_AES_128_CMAC should be set to eSIR_ED_CCMP
6354 */
6355 eWDI_ED_AES_128_CMAC,
6356 eWDI_ED_NOT_IMPLEMENTED = SIR_MAX_ENUM_SIZE
6357} tWDIEdType;
6358#define SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS 4
6359/*
6360 * This is used by PE to configure the key information on a given station.
6361 * When the secType is WEP40 or WEP104, the defWEPIdx is used to locate
6362 * a preconfigured key from a BSS the station assoicated with; otherwise
6363 * a new key descriptor is created based on the key field.
6364 */
6365typedef struct
6366{
6367 wpt_uint16 staIdx;
6368 tWDIEdType encType; // Encryption/Decryption type
6369 tWDIWepType wepType; // valid only for WEP
6370 wpt_uint8 defWEPIdx; // Default WEP key, valid only for static WEP, must between 0 and 3
6371 tWDIKeys key[SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS]; // valid only for non-static WEP encyrptions
6372 wpt_uint8 singleTidRc; // 1=Single TID based Replay Count, 0=Per TID based RC
6373 wpt_uint8 sessionId; // PE session id for PE<->HAL interface
6374} tWDISetStaKeyParams, *tpWDISetStaKeyParams;
6375
6376typedef struct
6377{
6378 tWDISetStaKeyParams keyParams;
6379 wpt_uint8 pn[6];
6380}wpt_encConfigParams;
6381
6382typedef struct
6383{
6384 wpt_uint16 length;
6385 wpt_uint8 data[WDI_DISA_MAX_PAYLOAD_SIZE];
6386}wpt_payload;
6387
6388typedef struct
6389{
6390 wpt_80211Header macHeader;
6391 wpt_encConfigParams encParams;
6392 wpt_payload data;
6393}wpt_pkt80211;
6394
Katya Nigamf0511f62015-05-05 16:40:57 +05306395#define NUM_FILTERS_SUPPORTED 1
6396typedef struct
6397{
6398 wpt_macAddr macAddr;
6399 wpt_uint8 isA1filter;
6400 wpt_uint8 isA2filter;
6401 wpt_uint8 isA3filter;
6402}WDI_filter;
6403
6404typedef struct
6405{
6406 /* start or stop */
6407 wpt_uint8 state;
6408 /*Conversion of packet required or not*/
6409 wpt_uint8 is80211to803ConReq;
6410 wpt_uint32 ChannelNo;
6411 wpt_uint32 ChannelBW;
6412 wpt_uint8 crcCheckEnabled;
6413 wpt_uint8 numOfMacFilters;
6414 WDI_filter mmFilters[NUM_FILTERS_SUPPORTED];
6415 wpt_uint64 typeSubtypeBitmap;
6416 wpt_uint64 rsvd;
6417
6418}WDI_MonStartReqType;
6419
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306420typedef struct
6421{
6422 wpt_uint8 paramType;
6423 wpt_uint32 paramValue;
6424 wpt_macAddr bssId;
6425}WDI_WifiConfigSetReqType;
6426
c_manjeecfd1efb2015-09-25 19:32:34 +05306427/**
6428 * struct WDI_FwrMemDumpReqType - firmware memory dump request details.
6429.*.@FWMemDumpReqCb - Associated Callback
6430 *.@fwMemDumpReqContext - Callback context
6431 * @reserved - reserved field 1.
6432 *
6433 * This structure carries information about the firmware
6434 * memory dump request.
6435 */
6436typedef struct
6437{
6438 wpt_uint32 reserved1;
6439}WDI_FwrMemDumpReqType;
6440
6441/**
6442 * struct WDI_FwrMemDumpRsp - firmware dump response details.
6443 *
6444 * This structure is used to store the firmware dump
6445 * response from the firmware.
6446 */
6447typedef struct
6448{
6449 wpt_uint32 dump_status;
6450}WDI_FwrMemDumpRsp;
6451
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306452typedef struct
6453{
6454 wpt_uint32 wificonfigset_status;
6455}WDI_WifconfigSetRsp;
c_manjeecfd1efb2015-09-25 19:32:34 +05306456
Mahesh A Saptasagar41f9ddd2016-02-09 14:01:03 +05306457/**
6458 * struct WDI_ModifyRoamParamsReqType - Modified roam parameter details.
6459 *
6460 */
6461
6462typedef struct {
6463 wpt_uint8 param;
6464 wpt_uint32 value;
6465}WDI_ModifyRoamParamsReqType;
6466
Selvaraj, Sridharbb07d5b2016-04-06 12:22:35 +05306467/**
6468 * struct WDI_AllowedActionFramesInd - Allowed Action frames details
6469 *
6470 */
6471struct WDI_AllowedActionFramesInd {
6472 wpt_uint32 bitmask;
6473 wpt_uint32 reserved;
6474};
Jeff Johnson295189b2012-06-20 16:38:30 -07006475/*----------------------------------------------------------------------------
6476 * WDI callback types
6477 *--------------------------------------------------------------------------*/
6478
6479/*---------------------------------------------------------------------------
6480 WDI_StartRspCb
6481
6482 DESCRIPTION
6483
6484 This callback is invoked by DAL when it has received a Start response from
6485 the underlying device.
6486
6487 PARAMETERS
6488
6489 IN
6490 wdiRspParams: response parameters received from HAL
6491 pUserData: user data
6492
6493
6494 RETURN VALUE
6495 The result code associated with performing the operation
6496---------------------------------------------------------------------------*/
6497typedef void (*WDI_StartRspCb)(WDI_StartRspParamsType* pwdiRspParams,
6498 void* pUserData);
6499
6500/*---------------------------------------------------------------------------
6501 WDI_StartRspCb
6502
6503 DESCRIPTION
6504
6505 This callback is invoked by DAL when it has received a Stop response from
6506 the underlying device.
6507
6508 PARAMETERS
6509
6510 IN
6511 wdiStatus: response status received from HAL
6512 pUserData: user data
6513
6514
6515
6516 RETURN VALUE
6517 The result code associated with performing the operation
6518---------------------------------------------------------------------------*/
6519typedef void (*WDI_StopRspCb)(WDI_Status wdiStatus,
6520 void* pUserData);
6521
6522/*---------------------------------------------------------------------------
6523 WDI_StartRspCb
6524
6525 DESCRIPTION
6526
6527 This callback is invoked by DAL when it has received an Init Scan response
6528 from the underlying device.
6529
6530 PARAMETERS
6531
6532 IN
6533 wdiStatus: response status received from HAL
6534 pUserData: user data
6535
6536
6537
6538 RETURN VALUE
6539 The result code associated with performing the operation
6540---------------------------------------------------------------------------*/
6541typedef void (*WDI_InitScanRspCb)(WDI_Status wdiStatus,
6542 void* pUserData);
6543
6544
6545/*---------------------------------------------------------------------------
6546 WDI_StartRspCb
6547
6548 DESCRIPTION
6549
6550 This callback is invoked by DAL when it has received a StartScan response
6551 from the underlying device.
6552
6553 PARAMETERS
6554
6555 IN
6556 wdiParams: response params received from HAL
6557 pUserData: user data
6558
6559
6560
6561 RETURN VALUE
6562 The result code associated with performing the operation
6563---------------------------------------------------------------------------*/
6564typedef void (*WDI_StartScanRspCb)(WDI_StartScanRspParamsType* wdiParams,
6565 void* pUserData);
6566
6567
6568/*---------------------------------------------------------------------------
6569 WDI_StartRspCb
6570
6571 DESCRIPTION
6572
6573 This callback is invoked by DAL when it has received a End Scan response
6574 from the underlying device.
6575
6576 PARAMETERS
6577
6578 IN
6579 wdiStatus: response status received from HAL
6580 pUserData: user data
6581
6582
6583
6584 RETURN VALUE
6585 The result code associated with performing the operation
6586---------------------------------------------------------------------------*/
6587typedef void (*WDI_EndScanRspCb)(WDI_Status wdiStatus,
6588 void* pUserData);
6589
6590
6591/*---------------------------------------------------------------------------
6592 WDI_StartRspCb
6593
6594 DESCRIPTION
6595
6596 This callback is invoked by DAL when it has received a Finish Scan response
6597 from the underlying device.
6598
6599 PARAMETERS
6600
6601 IN
6602 wdiStatus: response status received from HAL
6603 pUserData: user data
6604
6605
6606
6607 RETURN VALUE
6608 The result code associated with performing the operation
6609---------------------------------------------------------------------------*/
6610typedef void (*WDI_FinishScanRspCb)(WDI_Status wdiStatus,
6611 void* pUserData);
6612
6613
6614/*---------------------------------------------------------------------------
6615 WDI_StartRspCb
6616
6617 DESCRIPTION
6618
6619 This callback is invoked by DAL when it has received a Join response from
6620 the underlying device.
6621
6622 PARAMETERS
6623
6624 IN
6625 wdiStatus: response status received from HAL
6626 pUserData: user data
6627
6628
6629
6630 RETURN VALUE
6631 The result code associated with performing the operation
6632---------------------------------------------------------------------------*/
6633typedef void (*WDI_JoinRspCb)(WDI_Status wdiStatus,
6634 void* pUserData);
6635
6636
6637/*---------------------------------------------------------------------------
6638 WDI_StartRspCb
6639
6640 DESCRIPTION
6641
6642 This callback is invoked by DAL when it has received a Config BSS response
6643 from the underlying device.
6644
6645 PARAMETERS
6646
6647 IN
6648 wdiConfigBSSRsp: response parameters received from HAL
6649 pUserData: user data
6650
6651
6652 RETURN VALUE
6653 The result code associated with performing the operation
6654---------------------------------------------------------------------------*/
6655typedef void (*WDI_ConfigBSSRspCb)(
6656 WDI_ConfigBSSRspParamsType* pwdiConfigBSSRsp,
6657 void* pUserData);
6658
6659
6660/*---------------------------------------------------------------------------
6661 WDI_StartRspCb
6662
6663 DESCRIPTION
6664
6665 This callback is invoked by DAL when it has received a Del BSS response from
6666 the underlying device.
6667
6668 PARAMETERS
6669
6670 IN
6671 wdiDelBSSRsp: response parameters received from HAL
6672 pUserData: user data
6673
6674
6675 RETURN VALUE
6676 The result code associated with performing the operation
6677---------------------------------------------------------------------------*/
6678typedef void (*WDI_DelBSSRspCb)(WDI_DelBSSRspParamsType* pwdiDelBSSRsp,
6679 void* pUserData);
6680
6681
6682/*---------------------------------------------------------------------------
6683 WDI_StartRspCb
6684
6685 DESCRIPTION
6686
6687 This callback is invoked by DAL when it has received a Post Assoc response
6688 from the underlying device.
6689
6690 PARAMETERS
6691
6692 IN
6693 wdiRspParams: response parameters received from HAL
6694 pUserData: user data
6695
6696
6697 RETURN VALUE
6698 The result code associated with performing the operation
6699---------------------------------------------------------------------------*/
6700typedef void (*WDI_PostAssocRspCb)(
6701 WDI_PostAssocRspParamsType* pwdiPostAssocRsp,
6702 void* pUserData);
6703
6704
6705/*---------------------------------------------------------------------------
6706 WDI_StartRspCb
6707
6708 DESCRIPTION
6709
6710 This callback is invoked by DAL when it has received a Del STA response from
6711 the underlying device.
6712
6713 PARAMETERS
6714
6715 IN
6716 wdiDelSTARsp: response parameters received from HAL
6717 pUserData: user data
6718
6719
6720 RETURN VALUE
6721 The result code associated with performing the operation
6722---------------------------------------------------------------------------*/
6723typedef void (*WDI_DelSTARspCb)(WDI_DelSTARspParamsType* pwdiDelSTARsp,
6724 void* pUserData);
6725
6726
6727
6728/*---------------------------------------------------------------------------
6729 WDI_StartRspCb
6730
6731 DESCRIPTION
6732
6733 This callback is invoked by DAL when it has received a Set BSS Key response
6734 from the underlying device.
6735
6736 PARAMETERS
6737
6738 IN
6739 wdiStatus: response status received from HAL
6740 pUserData: user data
6741
6742
6743
6744 RETURN VALUE
6745 The result code associated with performing the operation
6746---------------------------------------------------------------------------*/
6747typedef void (*WDI_SetBSSKeyRspCb)(WDI_Status wdiStatus,
6748 void* pUserData);
6749
6750/*---------------------------------------------------------------------------
6751 WDI_StartRspCb
6752
6753 DESCRIPTION
6754
6755 This callback is invoked by DAL when it has received a Remove BSS Key
6756 response from the underlying device.
6757
6758 PARAMETERS
6759
6760 IN
6761 wdiStatus: response status received from HAL
6762 pUserData: user data
6763
6764
6765
6766 RETURN VALUE
6767 The result code associated with performing the operation
6768---------------------------------------------------------------------------*/
6769typedef void (*WDI_RemoveBSSKeyRspCb)(WDI_Status wdiStatus,
6770 void* pUserData);
6771
6772/*---------------------------------------------------------------------------
6773 WDI_StartRspCb
6774
6775 DESCRIPTION
6776
6777 This callback is invoked by DAL when it has received a Set STA Key response
6778 from the underlying device.
6779
6780 PARAMETERS
6781
6782 IN
6783 wdiStatus: response status received from HAL
6784 pUserData: user data
6785
6786
Jeff Johnson295189b2012-06-20 16:38:30 -07006787 RETURN VALUE
6788 The result code associated with performing the operation
6789---------------------------------------------------------------------------*/
6790typedef void (*WDI_SetSTAKeyRspCb)(WDI_Status wdiStatus,
6791 void* pUserData);
6792
Jeff Johnson295189b2012-06-20 16:38:30 -07006793/*---------------------------------------------------------------------------
6794 WDI_StartRspCb
6795
6796 DESCRIPTION
6797
6798 This callback is invoked by DAL when it has received a Remove STA Key
6799 response from the underlying device.
6800
6801 PARAMETERS
6802
6803 IN
6804 wdiStatus: response status received from HAL
6805 pUserData: user data
6806
Siddharth Bhal171788a2014-09-29 21:02:40 +05306807
Jeff Johnson295189b2012-06-20 16:38:30 -07006808 RETURN VALUE
6809 The result code associated with performing the operation
6810---------------------------------------------------------------------------*/
6811typedef void (*WDI_RemoveSTAKeyRspCb)(WDI_Status wdiStatus,
6812 void* pUserData);
6813
6814
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006815#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07006816/*---------------------------------------------------------------------------
6817 WDI_TsmRspCb
6818
6819 DESCRIPTION
6820
6821 This callback is invoked by DAL when it has received a TSM Stats response from the underlying device.
6822
6823 PARAMETERS
6824
6825 IN
6826 pTSMStats: response status received from HAL
6827 pUserData: user data
6828
6829
6830
6831 RETURN VALUE
6832 The result code associated with performing the operation
6833---------------------------------------------------------------------------*/
6834typedef void (*WDI_TsmRspCb)(WDI_TSMStatsRspParamsType *pTSMStats,
6835 void* pUserData);
6836#endif
6837
6838/*---------------------------------------------------------------------------
6839 WDI_StartRspCb
6840
6841 DESCRIPTION
6842
6843 This callback is invoked by DAL when it has received a Add TS response from
6844 the underlying device.
6845
6846 PARAMETERS
6847
6848 IN
6849 wdiStatus: response status received from HAL
6850 pUserData: user data
6851
6852
6853
6854 RETURN VALUE
6855 The result code associated with performing the operation
6856---------------------------------------------------------------------------*/
6857typedef void (*WDI_AddTsRspCb)(WDI_Status wdiStatus,
6858 void* pUserData);
6859
6860/*---------------------------------------------------------------------------
6861 WDI_StartRspCb
6862
6863 DESCRIPTION
6864
6865 This callback is invoked by DAL when it has received a Del TS response from
6866 the underlying device.
6867
6868 PARAMETERS
6869
6870 IN
6871 wdiStatus: response status received from HAL
6872 pUserData: user data
6873
6874
6875
6876 RETURN VALUE
6877 The result code associated with performing the operation
6878---------------------------------------------------------------------------*/
6879typedef void (*WDI_DelTsRspCb)(WDI_Status wdiStatus,
6880 void* pUserData);
6881
6882/*---------------------------------------------------------------------------
6883 WDI_StartRspCb
6884
6885 DESCRIPTION
6886
6887 This callback is invoked by DAL when it has received an Update EDCA Params
6888 response from the underlying device.
6889
6890 PARAMETERS
6891
6892 IN
6893 wdiStatus: response status received from HAL
6894 pUserData: user data
6895
6896
6897
6898 RETURN VALUE
6899 The result code associated with performing the operation
6900---------------------------------------------------------------------------*/
6901typedef void (*WDI_UpdateEDCAParamsRspCb)(WDI_Status wdiStatus,
6902 void* pUserData);
6903
6904/*---------------------------------------------------------------------------
6905 WDI_StartRspCb
6906
6907 DESCRIPTION
6908
6909 This callback is invoked by DAL when it has received a Add BA response from
6910 the underlying device.
6911
6912 PARAMETERS
6913
6914 IN
6915 wdiStatus: response status received from HAL
6916 pUserData: user data
6917
6918
6919
6920 RETURN VALUE
6921 The result code associated with performing the operation
6922---------------------------------------------------------------------------*/
6923typedef void (*WDI_AddBASessionRspCb)(
6924 WDI_AddBASessionRspParamsType* wdiAddBASessionRsp,
6925 void* pUserData);
6926
6927
6928/*---------------------------------------------------------------------------
6929 WDI_StartRspCb
6930
6931 DESCRIPTION
6932
6933 This callback is invoked by DAL when it has received a Del BA response from
6934 the underlying device.
6935
6936 PARAMETERS
6937
6938 IN
6939 wdiStatus: response status received from HAL
6940 pUserData: user data
6941
6942
6943
6944 RETURN VALUE
6945 The result code associated with performing the operation
6946---------------------------------------------------------------------------*/
6947typedef void (*WDI_DelBARspCb)(WDI_Status wdiStatus,
6948 void* pUserData);
6949
6950
6951/*---------------------------------------------------------------------------
6952 WDI_StartRspCb
6953
6954 DESCRIPTION
6955
6956 This callback is invoked by DAL when it has received a Switch Ch response
6957 from the underlying device.
6958
6959 PARAMETERS
6960
6961 IN
6962 wdiRspParams: response parameters received from HAL
6963 pUserData: user data
6964
6965
6966 RETURN VALUE
6967 The result code associated with performing the operation
6968---------------------------------------------------------------------------*/
6969typedef void (*WDI_SwitchChRspCb)(WDI_SwitchCHRspParamsType* pwdiSwitchChRsp,
6970 void* pUserData);
6971
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08006972typedef void (*WDI_SwitchChRspCb_V1)(WDI_SwitchChRspParamsType_V1* pwdiSwitchChRsp,
6973 void* pUserData);
6974
Jeff Johnson295189b2012-06-20 16:38:30 -07006975
6976/*---------------------------------------------------------------------------
6977 WDI_StartRspCb
6978
6979 DESCRIPTION
6980
6981 This callback is invoked by DAL when it has received a Config STA response
6982 from the underlying device.
6983
6984 PARAMETERS
6985
6986 IN
6987 wdiRspParams: response parameters received from HAL
6988 pUserData: user data
6989
6990
6991 RETURN VALUE
6992 The result code associated with performing the operation
6993---------------------------------------------------------------------------*/
6994typedef void (*WDI_ConfigSTARspCb)(
6995 WDI_ConfigSTARspParamsType* pwdiConfigSTARsp,
6996 void* pUserData);
6997
6998
6999/*---------------------------------------------------------------------------
7000 WDI_StartRspCb
7001
7002 DESCRIPTION
7003
7004 This callback is invoked by DAL when it has received a Set Link State
7005 response from the underlying device.
7006
7007 PARAMETERS
7008
7009 IN
7010 wdiRspParams: response parameters received from HAL
7011 pUserData: user data
7012
7013
7014 RETURN VALUE
7015 The result code associated with performing the operation
7016---------------------------------------------------------------------------*/
7017typedef void (*WDI_SetLinkStateRspCb)( WDI_Status wdiStatus,
7018 void* pUserData);
7019
7020
7021/*---------------------------------------------------------------------------
7022 WDI_StartRspCb
7023
7024 DESCRIPTION
7025
7026 This callback is invoked by DAL when it has received a Get Stats response
7027 from the underlying device.
7028
7029 PARAMETERS
7030
7031 IN
7032 wdiRspParams: response parameters received from HAL
7033 pUserData: user data
7034
7035
7036 RETURN VALUE
7037 The result code associated with performing the operation
7038---------------------------------------------------------------------------*/
7039typedef void (*WDI_GetStatsRspCb)(WDI_GetStatsRspParamsType* pwdiGetStatsRsp,
7040 void* pUserData);
7041
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08007042#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08007043/*---------------------------------------------------------------------------
7044 WDI_GetRoamRssiRspCb
7045
7046 DESCRIPTION
7047
7048 This callback is invoked by DAL when it has received a Get Roam Rssi response
7049 from the underlying device.
7050
7051 PARAMETERS
7052
7053 IN
7054 wdiRspParams: response parameters received from HAL
7055 pUserData: user data
7056
7057
7058 RETURN VALUE
7059 The result code associated with performing the operation
7060---------------------------------------------------------------------------*/
7061typedef void (*WDI_GetRoamRssiRspCb)(WDI_GetRoamRssiRspParamsType* pwdiGetRoamRssiRsp,
7062 void* pUserData);
7063#endif
7064
Jeff Johnson295189b2012-06-20 16:38:30 -07007065
7066/*---------------------------------------------------------------------------
7067 WDI_StartRspCb
7068
7069 DESCRIPTION
7070
7071 This callback is invoked by DAL when it has received a Update Cfg response
7072 from the underlying device.
7073
7074 PARAMETERS
7075
7076 IN
7077 wdiStatus: response status received from HAL
7078 pUserData: user data
7079
7080
7081 RETURN VALUE
7082 The result code associated with performing the operation
7083---------------------------------------------------------------------------*/
7084typedef void (*WDI_UpdateCfgRspCb)(WDI_Status wdiStatus,
7085 void* pUserData);
7086
7087/*---------------------------------------------------------------------------
7088 WDI_AddBARspCb
7089
7090 DESCRIPTION
7091
7092 This callback is invoked by DAL when it has received a ADD BA response
7093 from the underlying device.
7094
7095 PARAMETERS
7096
7097 IN
7098 wdiStatus: response status received from HAL
7099 pUserData: user data
7100
7101
7102 RETURN VALUE
7103 The result code associated with performing the operation
7104---------------------------------------------------------------------------*/
7105typedef void (*WDI_AddBARspCb)(WDI_AddBARspinfoType* wdiAddBARsp,
7106 void* pUserData);
7107
7108/*---------------------------------------------------------------------------
7109 WDI_TriggerBARspCb
7110
7111 DESCRIPTION
7112
7113 This callback is invoked by DAL when it has received a ADD BA response
7114 from the underlying device.
7115
7116 PARAMETERS
7117
7118 IN
7119 wdiStatus: response status received from HAL
7120 pUserData: user data
7121
7122
7123 RETURN VALUE
7124 The result code associated with performing the operation
7125---------------------------------------------------------------------------*/
7126typedef void (*WDI_TriggerBARspCb)(WDI_TriggerBARspParamsType* wdiTriggerBARsp,
7127 void* pUserData);
7128
7129
7130/*---------------------------------------------------------------------------
7131 WDI_UpdateBeaconParamsRspCb
7132
7133 DESCRIPTION
7134
7135 This callback is invoked by DAL when it has received a Update Beacon Params response from
7136 the underlying device.
7137
7138 PARAMETERS
7139
7140 IN
7141 wdiStatus: response status received from HAL
7142 pUserData: user data
7143
7144
7145
7146 RETURN VALUE
7147 The result code associated with performing the operation
7148---------------------------------------------------------------------------*/
7149typedef void (*WDI_UpdateBeaconParamsRspCb)(WDI_Status wdiStatus,
7150 void* pUserData);
7151
7152/*---------------------------------------------------------------------------
7153 WDI_SendBeaconParamsRspCb
7154
7155 DESCRIPTION
7156
7157 This callback is invoked by DAL when it has received a Send Beacon Params response from
7158 the underlying device.
7159
7160 PARAMETERS
7161
7162 IN
7163 wdiStatus: response status received from HAL
7164 pUserData: user data
7165
7166
7167
7168 RETURN VALUE
7169 The result code associated with performing the operation
7170---------------------------------------------------------------------------*/
7171typedef void (*WDI_SendBeaconParamsRspCb)(WDI_Status wdiStatus,
7172 void* pUserData);
7173
7174/*---------------------------------------------------------------------------
7175 WDA_SetMaxTxPowerRspCb
7176
7177 DESCRIPTION
7178
7179 This callback is invoked by DAL when it has received a set max Tx Power response from
7180 the underlying device.
7181
7182 PARAMETERS
7183
7184 IN
7185 wdiStatus: response status received from HAL
7186 pUserData: user data
7187
7188
7189
7190 RETURN VALUE
7191 The result code associated with performing the operation
7192---------------------------------------------------------------------------*/
7193typedef void (*WDA_SetMaxTxPowerRspCb)(WDI_SetMaxTxPowerRspMsg *wdiSetMaxTxPowerRsp,
7194 void* pUserData);
7195
7196/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07007197 WDA_SetMaxTxPowerPerBandRspCb
7198
7199 DESCRIPTION
7200
7201 This callback is invoked by DAL when it has received a
7202 set max Tx Power Per Band response from the underlying device.
7203
7204 PARAMETERS
7205
7206 IN
7207 wdiSetMaxTxPowerPerBandRsp: response status received from HAL
7208 pUserData: user data
7209
7210 RETURN VALUE
7211 The result code associated with performing the operation
7212---------------------------------------------------------------------------*/
7213typedef void (*WDA_SetMaxTxPowerPerBandRspCb)(WDI_SetMaxTxPowerPerBandRspMsg
7214 *wdiSetMaxTxPowerPerBandRsp,
7215 void* pUserData);
7216
7217/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07007218 WDA_SetTxPowerRspCb
7219
7220 DESCRIPTION
7221
7222 This callback is invoked by DAL when it has received a set max Tx Power response from
7223 the underlying device.
7224
7225 PARAMETERS
7226
7227 IN
7228 wdiStatus: response status received from HAL
7229 pUserData: user data
7230
7231 RETURN VALUE
7232 The result code associated with performing the operation
7233---------------------------------------------------------------------------*/
7234typedef void (*WDA_SetTxPowerRspCb)(WDI_SetTxPowerRspMsg *wdiSetTxPowerRsp,
7235 void* pUserData);
7236
7237/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007238 WDI_UpdateProbeRspTemplateRspCb
7239
7240 DESCRIPTION
7241
7242 This callback is invoked by DAL when it has received a Probe RSP Template
7243 Update response from the underlying device.
7244
7245 PARAMETERS
7246
7247 IN
7248 wdiStatus: response status received from HAL
7249 pUserData: user data
7250
7251
7252
7253 RETURN VALUE
7254 The result code associated with performing the operation
7255---------------------------------------------------------------------------*/
7256typedef void (*WDI_UpdateProbeRspTemplateRspCb)(WDI_Status wdiStatus,
7257 void* pUserData);
7258
Jeff Johnson295189b2012-06-20 16:38:30 -07007259/*---------------------------------------------------------------------------
7260 WDI_SetP2PGONOAReqParamsRspCb
7261
7262 DESCRIPTION
7263
7264 This callback is invoked by DAL when it has received a P2P GO NOA Params response from
7265 the underlying device.
7266
7267 PARAMETERS
7268
7269 IN
7270 wdiStatus: response status received from HAL
7271 pUserData: user data
7272
7273
7274
7275 RETURN VALUE
7276 The result code associated with performing the operation
7277---------------------------------------------------------------------------*/
7278typedef void (*WDI_SetP2PGONOAReqParamsRspCb)(WDI_Status wdiStatus,
7279 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007280
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307281/*---------------------------------------------------------------------------
7282 WDI_SetTDLSLinkEstablishReqParamsRspCb
7283
7284 DESCRIPTION
7285
7286 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7287 the underlying device.
7288
7289 PARAMETERS
7290
7291 IN
7292 wdiStatus: response status received from HAL
7293 pUserData: user data
7294
7295
7296
7297 RETURN VALUE
7298 The result code associated with performing the operation
7299---------------------------------------------------------------------------*/
Gopichand Nakkala574f6d12013-06-27 19:38:43 +05307300typedef void (*WDI_SetTDLSLinkEstablishReqParamsRspCb)(WDI_SetTdlsLinkEstablishReqResp *
7301 wdiSetTdlsLinkEstablishReqRsp,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307302 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007303
7304/*---------------------------------------------------------------------------
Atul Mittalc0f739f2014-07-31 13:47:47 +05307305 WDI_SetTDLSChanSwitchReqParamsRspCb
7306
7307 DESCRIPTION
7308
7309 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7310 the underlying device.
7311
7312 PARAMETERS
7313
7314 IN
7315 wdiStatus: response status received from HAL
7316 pUserData: user data
7317
7318
7319
7320 RETURN VALUE
7321 The result code associated with performing the operation
7322---------------------------------------------------------------------------*/
7323typedef void (*WDI_SetTDLSChanSwitchReqParamsRspCb)(WDI_SetTdlsChanSwitchReqResp *
7324 wdiSetTdlsChanSwitchReqRsp,
7325 void* pUserData);
7326/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007327 WDI_SetPwrSaveCfgCb
7328
7329 DESCRIPTION
7330
7331 This callback is invoked by DAL when it has received a set Power Save CFG
7332 response from the underlying device.
7333
7334 PARAMETERS
7335
7336 IN
7337 wdiStatus: response status received from HAL
7338 pUserData: user data
7339
7340
7341
7342 RETURN VALUE
7343 The result code associated with performing the operation
7344---------------------------------------------------------------------------*/
7345typedef void (*WDI_SetPwrSaveCfgCb)(WDI_Status wdiStatus,
7346 void* pUserData);
7347
7348/*---------------------------------------------------------------------------
7349 WDI_SetUapsdAcParamsCb
7350
7351 DESCRIPTION
7352
7353 This callback is invoked by DAL when it has received a set UAPSD params
7354 response from the underlying device.
7355
7356 PARAMETERS
7357
7358 IN
7359 wdiStatus: response status received from HAL
7360 pUserData: user data
7361
7362
7363
7364 RETURN VALUE
7365 The result code associated with performing the operation
7366---------------------------------------------------------------------------*/
7367typedef void (*WDI_SetUapsdAcParamsCb)(WDI_Status wdiStatus,
7368 void* pUserData);
7369
7370/*---------------------------------------------------------------------------
7371 WDI_EnterImpsRspCb
7372
7373 DESCRIPTION
7374
7375 This callback is invoked by DAL when it has received a Enter IMPS response
7376 from the underlying device.
7377
7378 PARAMETERS
7379
7380 IN
7381 wdiStatus: response status received from HAL
7382 pUserData: user data
7383
7384
7385
7386 RETURN VALUE
7387 The result code associated with performing the operation
7388---------------------------------------------------------------------------*/
7389typedef void (*WDI_EnterImpsRspCb)(WDI_Status wdiStatus,
7390 void* pUserData);
7391
7392/*---------------------------------------------------------------------------
7393 WDI_ExitImpsRspCb
7394
7395 DESCRIPTION
7396
7397 This callback is invoked by DAL when it has received a Exit IMPS response
7398 from the underlying device.
7399
7400 PARAMETERS
7401
7402 IN
7403 wdiStatus: response status received from HAL
7404 pUserData: user data
7405
7406
7407
7408 RETURN VALUE
7409 The result code associated with performing the operation
7410---------------------------------------------------------------------------*/
7411typedef void (*WDI_ExitImpsRspCb)(WDI_Status wdiStatus,
7412 void* pUserData);
7413
7414/*---------------------------------------------------------------------------
7415 WDI_EnterBmpsRspCb
7416
7417 DESCRIPTION
7418
7419 This callback is invoked by DAL when it has received a enter BMPS response
7420 from the underlying device.
7421
7422 PARAMETERS
7423
7424 IN
7425 wdiStatus: response status received from HAL
7426 pUserData: user data
7427
7428
7429
7430 RETURN VALUE
7431 The result code associated with performing the operation
7432---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007433typedef void (*WDI_EnterBmpsRspCb)(WDI_EnterBmpsRspParamsType *pwdiEnterBmpsRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007434 void* pUserData);
7435
7436/*---------------------------------------------------------------------------
7437 WDI_ExitBmpsRspCb
7438
7439 DESCRIPTION
7440
7441 This callback is invoked by DAL when it has received a exit BMPS response
7442 from the underlying device.
7443
7444 PARAMETERS
7445
7446 IN
7447 wdiStatus: response status received from HAL
7448 pUserData: user data
7449
7450
7451
7452 RETURN VALUE
7453 The result code associated with performing the operation
7454---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007455typedef void (*WDI_ExitBmpsRspCb)( WDI_ExitBmpsRspParamsType *pwdiExitBmpsRspParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007456 void* pUserData);
7457
7458/*---------------------------------------------------------------------------
7459 WDI_EnterUapsdRspCb
7460
7461 DESCRIPTION
7462
7463 This callback is invoked by DAL when it has received a enter UAPSD response
7464 from the underlying device.
7465
7466 PARAMETERS
7467
7468 IN
7469 wdiStatus: response status received from HAL
7470 pUserData: user data
7471
7472
7473
7474 RETURN VALUE
7475 The result code associated with performing the operation
7476---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007477typedef void (*WDI_EnterUapsdRspCb)( WDI_EnterUapsdRspParamsType *pwdiEnterUapsdRspParam,
Jeff Johnson295189b2012-06-20 16:38:30 -07007478 void* pUserData);
7479
7480/*---------------------------------------------------------------------------
7481 WDI_ExitUapsdRspCb
7482
7483 DESCRIPTION
7484
7485 This callback is invoked by DAL when it has received a exit UAPSD response
7486 from the underlying device.
7487
7488 PARAMETERS
7489
7490 IN
7491 wdiStatus: response status received from HAL
7492 pUserData: user data
7493
7494
7495
7496 RETURN VALUE
7497 The result code associated with performing the operation
7498---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007499typedef void (*WDI_ExitUapsdRspCb)(WDI_ExitUapsdRspParamsType *pwidExitUapsdRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007500 void* pUserData);
7501
7502/*---------------------------------------------------------------------------
7503 WDI_UpdateUapsdParamsCb
7504
7505 DESCRIPTION
7506
7507 This callback is invoked by DAL when it has received a update UAPSD params
7508 response from the underlying device.
7509
7510 PARAMETERS
7511
7512 IN
7513 wdiStatus: response status received from HAL
7514 pUserData: user data
7515
7516
7517
7518 RETURN VALUE
7519 The result code associated with performing the operation
7520---------------------------------------------------------------------------*/
7521typedef void (*WDI_UpdateUapsdParamsCb)(WDI_Status wdiStatus,
7522 void* pUserData);
7523
7524/*---------------------------------------------------------------------------
7525 WDI_ConfigureRxpFilterCb
7526
7527 DESCRIPTION
7528
7529 This callback is invoked by DAL when it has received a config RXP filter
7530 response from the underlying device.
7531
7532 PARAMETERS
7533
7534 IN
7535 wdiStatus: response status received from HAL
7536 pUserData: user data
7537
7538
7539
7540 RETURN VALUE
7541 The result code associated with performing the operation
7542---------------------------------------------------------------------------*/
7543typedef void (*WDI_ConfigureRxpFilterCb)(WDI_Status wdiStatus,
7544 void* pUserData);
7545
7546/*---------------------------------------------------------------------------
7547 WDI_SetBeaconFilterCb
7548
7549 DESCRIPTION
7550
7551 This callback is invoked by DAL when it has received a set beacon filter
7552 response from the underlying device.
7553
7554 PARAMETERS
7555
7556 IN
7557 wdiStatus: response status received from HAL
7558 pUserData: user data
7559
7560
7561
7562 RETURN VALUE
7563 The result code associated with performing the operation
7564---------------------------------------------------------------------------*/
7565typedef void (*WDI_SetBeaconFilterCb)(WDI_Status wdiStatus,
7566 void* pUserData);
7567
7568/*---------------------------------------------------------------------------
7569 WDI_RemBeaconFilterCb
7570
7571 DESCRIPTION
7572
7573 This callback is invoked by DAL when it has received a remove beacon filter
7574 response from the underlying device.
7575
7576 PARAMETERS
7577
7578 IN
7579 wdiStatus: response status received from HAL
7580 pUserData: user data
7581
7582
7583
7584 RETURN VALUE
7585 The result code associated with performing the operation
7586---------------------------------------------------------------------------*/
7587typedef void (*WDI_RemBeaconFilterCb)(WDI_Status wdiStatus,
7588 void* pUserData);
7589
7590/*---------------------------------------------------------------------------
7591 WDI_SetRSSIThresholdsCb
7592
7593 DESCRIPTION
7594
7595 This callback is invoked by DAL when it has received a set RSSI thresholds
7596 response from the underlying device.
7597
7598 PARAMETERS
7599
7600 IN
7601 wdiStatus: response status received from HAL
7602 pUserData: user data
7603
7604
7605
7606 RETURN VALUE
7607 The result code associated with performing the operation
7608---------------------------------------------------------------------------*/
7609typedef void (*WDI_SetRSSIThresholdsCb)(WDI_Status wdiStatus,
7610 void* pUserData);
7611
7612/*---------------------------------------------------------------------------
7613 WDI_HostOffloadCb
7614
7615 DESCRIPTION
7616
7617 This callback is invoked by DAL when it has received a host offload
7618 response from the underlying device.
7619
7620 PARAMETERS
7621
7622 IN
7623 wdiStatus: response status received from HAL
7624 pUserData: user data
7625
7626
7627
7628 RETURN VALUE
7629 The result code associated with performing the operation
7630---------------------------------------------------------------------------*/
7631typedef void (*WDI_HostOffloadCb)(WDI_Status wdiStatus,
7632 void* pUserData);
7633
7634/*---------------------------------------------------------------------------
7635 WDI_KeepAliveCb
7636
7637 DESCRIPTION
7638
7639 This callback is invoked by DAL when it has received a Keep Alive
7640 response from the underlying device.
7641
7642 PARAMETERS
7643
7644 IN
7645 wdiStatus: response status received from HAL
7646 pUserData: user data
7647
7648
7649
7650 RETURN VALUE
7651 The result code associated with performing the operation
7652---------------------------------------------------------------------------*/
7653typedef void (*WDI_KeepAliveCb)(WDI_Status wdiStatus,
7654 void* pUserData);
7655
7656/*---------------------------------------------------------------------------
7657 WDI_WowlAddBcPtrnCb
7658
7659 DESCRIPTION
7660
7661 This callback is invoked by DAL when it has received a Wowl add Bcast ptrn
7662 response from the underlying device.
7663
7664 PARAMETERS
7665
7666 IN
7667 wdiStatus: response status received from HAL
7668 pUserData: user data
7669
7670
7671
7672 RETURN VALUE
7673 The result code associated with performing the operation
7674---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007675typedef void (*WDI_WowlAddBcPtrnCb)( WDI_WowlAddBcPtrnRspParamsType *pwdiWowlAddBcPtrnParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007676 void* pUserData);
7677
7678/*---------------------------------------------------------------------------
7679 WDI_WowlDelBcPtrnCb
7680
7681 DESCRIPTION
7682
7683 This callback is invoked by DAL when it has received a Wowl delete Bcast ptrn
7684 response from the underlying device.
7685
7686 PARAMETERS
7687
7688 IN
7689 wdiStatus: response status received from HAL
7690 pUserData: user data
7691
7692
7693
7694 RETURN VALUE
7695 The result code associated with performing the operation
7696---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007697typedef void (*WDI_WowlDelBcPtrnCb)( WDI_WowlDelBcPtrnRspParamsType *pwdiWowlDelBcstPtrRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007698 void* pUserData);
7699
7700/*---------------------------------------------------------------------------
7701 WDI_WowlEnterReqCb
7702
7703 DESCRIPTION
7704
7705 This callback is invoked by DAL when it has received a Wowl enter
7706 response from the underlying device.
7707
7708 PARAMETERS
7709
7710 IN
7711 wdiStatus: response status received from HAL
7712 pUserData: user data
7713
7714
7715
7716 RETURN VALUE
7717 The result code associated with performing the operation
7718---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007719typedef void (*WDI_WowlEnterReqCb)( WDI_WowlEnterRspParamsType *pwdiwowlEnterRsp,
7720 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007721
7722/*---------------------------------------------------------------------------
7723 WDI_WowlExitReqCb
7724
7725 DESCRIPTION
7726
7727 This callback is invoked by DAL when it has received a Wowl exit
7728 response from the underlying device.
7729
7730 PARAMETERS
7731
7732 IN
7733 wdiStatus: response status received from HAL
7734 pUserData: user data
7735
7736
7737
7738 RETURN VALUE
7739 The result code associated with performing the operation
7740---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007741typedef void (*WDI_WowlExitReqCb)( WDI_WowlExitRspParamsType *pwdiWowlExitRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007742 void* pUserData);
7743
7744/*---------------------------------------------------------------------------
7745 WDI_ConfigureAppsCpuWakeupStateCb
7746
7747 DESCRIPTION
7748
7749 This callback is invoked by DAL when it has received a config Apps Cpu Wakeup
7750 State response from the underlying device.
7751
7752 PARAMETERS
7753
7754 IN
7755 wdiStatus: response status received from HAL
7756 pUserData: user data
7757
7758
7759
7760 RETURN VALUE
7761 The result code associated with performing the operation
7762---------------------------------------------------------------------------*/
7763typedef void (*WDI_ConfigureAppsCpuWakeupStateCb)(WDI_Status wdiStatus,
7764 void* pUserData);
7765/*---------------------------------------------------------------------------
7766 WDI_NvDownloadRspCb
7767
7768 DESCRIPTION
7769
7770 This callback is invoked by DAL when it has received a NV Download response
7771 from the underlying device.
7772
7773 PARAMETERS
7774
7775 IN
7776 wdiStatus:response status received from HAL
7777 pUserData:user data
7778
7779 RETURN VALUE
7780 The result code associated with performing the operation
7781---------------------------------------------------------------------------*/
7782typedef void (*WDI_NvDownloadRspCb)(WDI_NvDownloadRspInfoType* wdiNvDownloadRsp,
7783 void* pUserData);
7784/*---------------------------------------------------------------------------
7785 WDI_FlushAcRspCb
7786
7787 DESCRIPTION
7788
7789 This callback is invoked by DAL when it has received a Flush AC response from
7790 the underlying device.
7791
7792 PARAMETERS
7793
7794 IN
7795 wdiStatus: response status received from HAL
7796 pUserData: user data
7797
7798
7799
7800 RETURN VALUE
7801 The result code associated with performing the operation
7802---------------------------------------------------------------------------*/
7803typedef void (*WDI_FlushAcRspCb)(WDI_Status wdiStatus,
7804 void* pUserData);
7805
7806/*---------------------------------------------------------------------------
7807 WDI_BtAmpEventRspCb
7808
7809 DESCRIPTION
7810
7811 This callback is invoked by DAL when it has received a Bt AMP event response
7812 from the underlying device.
7813
7814 PARAMETERS
7815
7816 IN
7817 wdiStatus: response status received from HAL
7818 pUserData: user data
7819
7820
7821
7822 RETURN VALUE
7823 The result code associated with performing the operation
7824---------------------------------------------------------------------------*/
7825typedef void (*WDI_BtAmpEventRspCb)(WDI_Status wdiStatus,
7826 void* pUserData);
7827
Jeff Johnsone7245742012-09-05 17:12:55 -07007828#ifdef FEATURE_OEM_DATA_SUPPORT
7829/*---------------------------------------------------------------------------
7830 WDI_oemDataRspCb
7831
7832 DESCRIPTION
7833
7834 This callback is invoked by DAL when it has received a Start oem data response from
7835 the underlying device.
7836
7837 PARAMETERS
7838
7839 IN
7840 wdiStatus: response status received from HAL
7841 pUserData: user data
7842
7843
7844
7845 RETURN VALUE
7846 The result code associated with performing the operation
7847---------------------------------------------------------------------------*/
7848typedef void (*WDI_oemDataRspCb)(WDI_oemDataRspParamsType* wdiOemDataRspParams,
7849 void* pUserData);
7850
7851#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07007852
7853/*---------------------------------------------------------------------------
7854 WDI_HostResumeEventRspCb
7855
7856 DESCRIPTION
7857
7858 This callback is invoked by DAL when it has received a Bt AMP event response
7859 from the underlying device.
7860
7861 PARAMETERS
7862
7863 IN
7864 wdiStatus: response status received from HAL
7865 pUserData: user data
7866
7867
7868
7869 RETURN VALUE
7870 The result code associated with performing the operation
7871---------------------------------------------------------------------------*/
7872typedef void (*WDI_HostResumeEventRspCb)(
7873 WDI_SuspendResumeRspParamsType *resumeRspParams,
7874 void* pUserData);
7875
7876
7877#ifdef WLAN_FEATURE_VOWIFI_11R
7878/*---------------------------------------------------------------------------
7879 WDI_AggrAddTsRspCb
7880
7881 DESCRIPTION
7882
7883 This callback is invoked by DAL when it has received a Aggregated Add TS
7884 response from the underlying device.
7885
7886 PARAMETERS
7887
7888 IN
7889 wdiStatus: response status received from HAL
7890 pUserData: user data
7891
7892
7893
7894 RETURN VALUE
7895 The result code associated with performing the operation
7896---------------------------------------------------------------------------*/
7897typedef void (*WDI_AggrAddTsRspCb)(WDI_Status wdiStatus,
7898 void* pUserData);
7899#endif /* WLAN_FEATURE_VOWIFI_11R */
7900
Jeff Johnson295189b2012-06-20 16:38:30 -07007901/*---------------------------------------------------------------------------
7902 WDI_FTMCommandRspCb
7903
7904 DESCRIPTION
7905
7906 FTM Command response CB
7907
7908 PARAMETERS
7909
7910 IN
7911 ftmCMDRspdata: FTM response data from HAL
7912 pUserData: user data
7913
7914
7915 RETURN VALUE
7916 NONE
7917---------------------------------------------------------------------------*/
7918typedef void (*WDI_FTMCommandRspCb)(void *ftmCMDRspdata,
7919 void *pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007920
7921/*---------------------------------------------------------------------------
7922 WDI_AddSTASelfParamsRspCb
7923
7924 DESCRIPTION
7925
7926 This callback is invoked by DAL when it has received a Add Sta Self Params
7927 response from the underlying device.
7928
7929 PARAMETERS
7930
7931 IN
7932 wdiAddSelfSTARsp: response status received from HAL
7933 pUserData: user data
7934
7935
7936
7937 RETURN VALUE
7938 The result code associated with performing the operation
7939---------------------------------------------------------------------------*/
7940typedef void (*WDI_AddSTASelfParamsRspCb)(
7941 WDI_AddSTASelfRspParamsType* pwdiAddSelfSTARsp,
7942 void* pUserData);
7943
7944
7945/*---------------------------------------------------------------------------
7946 WDI_DelSTASelfRspCb
7947
7948 DESCRIPTION
7949
7950 This callback is invoked by DAL when it has received a host offload
7951 response from the underlying device.
7952
7953 PARAMETERS
7954
7955 IN
7956 wdiStatus: response status received from HAL
7957 pUserData: user data
7958
7959
7960
7961 RETURN VALUE
7962 The result code associated with performing the operation
7963---------------------------------------------------------------------------*/
7964typedef void (*WDI_DelSTASelfRspCb)
7965(
7966WDI_DelSTASelfRspParamsType* wdiDelStaSelfRspParams,
7967void* pUserData
7968);
7969
7970#ifdef FEATURE_WLAN_SCAN_PNO
7971/*---------------------------------------------------------------------------
7972 WDI_PNOScanCb
7973
7974 DESCRIPTION
7975
7976 This callback is invoked by DAL when it has received a Set PNO
7977 response from the underlying device.
7978
7979 PARAMETERS
7980
7981 IN
7982 wdiStatus: response status received from HAL
7983 pUserData: user data
7984
7985
7986
7987 RETURN VALUE
7988 The result code associated with performing the operation
7989---------------------------------------------------------------------------*/
7990typedef void (*WDI_PNOScanCb)(WDI_Status wdiStatus,
7991 void* pUserData);
7992
7993/*---------------------------------------------------------------------------
7994 WDI_PNOScanCb
7995
7996 DESCRIPTION
7997
7998 This callback is invoked by DAL when it has received a Set PNO
7999 response from the underlying device.
8000
8001 PARAMETERS
8002
8003 IN
8004 wdiStatus: response status received from HAL
8005 pUserData: user data
8006
8007
8008
8009 RETURN VALUE
8010 The result code associated with performing the operation
8011---------------------------------------------------------------------------*/
8012typedef void (*WDI_RssiFilterCb)(WDI_Status wdiStatus,
8013 void* pUserData);
8014
8015/*---------------------------------------------------------------------------
8016 WDI_UpdateScanParamsCb
8017
8018 DESCRIPTION
8019
8020 This callback is invoked by DAL when it has received a Update Scan Params
8021 response from the underlying device.
8022
8023 PARAMETERS
8024
8025 IN
8026 wdiStatus: response status received from HAL
8027 pUserData: user data
8028
8029
8030
8031 RETURN VALUE
8032 The result code associated with performing the operation
8033---------------------------------------------------------------------------*/
8034typedef void (*WDI_UpdateScanParamsCb)(WDI_Status wdiStatus,
8035 void* pUserData);
8036#endif // FEATURE_WLAN_SCAN_PNO
8037
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -08008038typedef void (*WDI_UpdateChannelRspCb)(WDI_Status wdiStatus,
8039 void* pUserData);
8040
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07008041#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
8042/*---------------------------------------------------------------------------
8043 WDI_RoamOffloadScanCb
8044
8045 DESCRIPTION
8046
8047 This callback is invoked by DAL when it has received a Start Roam Candidate Lookup Req
8048 response from the underlying device.
8049
8050 PARAMETERS
8051
8052 IN
8053 wdiStatus: response status received from HAL
8054 pUserData: user data
8055
8056
8057
8058 RETURN VALUE
8059 The result code associated with performing the operation
8060---------------------------------------------------------------------------*/
8061typedef void (*WDI_RoamOffloadScanCb)(WDI_Status wdiStatus,
8062 void* pUserData);
8063
8064#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07008065/*---------------------------------------------------------------------------
8066 WDI_SetTxPerTrackingRspCb
8067
8068 DESCRIPTION
8069
8070 This callback is invoked by DAL when it has received a Tx PER Tracking
8071 response from the underlying device.
8072
8073 PARAMETERS
8074
8075 IN
8076 wdiStatus: response status received from HAL
8077 pUserData: user data
8078
8079
8080
8081 RETURN VALUE
8082 The result code associated with performing the operation
8083---------------------------------------------------------------------------*/
8084typedef void (*WDI_SetTxPerTrackingRspCb)(WDI_Status wdiStatus,
8085 void* pUserData);
8086
8087#ifdef WLAN_FEATURE_PACKET_FILTERING
8088/*---------------------------------------------------------------------------
8089 WDI_8023MulticastListCb
8090
8091 DESCRIPTION
8092
8093 This callback is invoked by DAL when it has received a 8023 Multicast List
8094 response from the underlying device.
8095
8096 PARAMETERS
8097
8098 IN
8099 wdiStatus: response status received from HAL
8100 pUserData: user data
8101
8102
8103
8104 RETURN VALUE
8105 The result code associated with performing the operation
8106---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008107typedef void (*WDI_8023MulticastListCb)(
8108 WDI_RcvFltPktSetMcListRspParamsType *pwdiRcvFltPktSetMcListRspInfo,
8109 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008110
8111/*---------------------------------------------------------------------------
8112 WDI_ReceiveFilterSetFilterCb
8113
8114 DESCRIPTION
8115
8116 This callback is invoked by DAL when it has received a Receive Filter Set Filter
8117 response from the underlying device.
8118
8119 PARAMETERS
8120
8121 IN
8122 wdiStatus: response status received from HAL
8123 pUserData: user data
8124
8125
8126
8127 RETURN VALUE
8128 The result code associated with performing the operation
8129---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008130typedef void (*WDI_ReceiveFilterSetFilterCb)(
8131 WDI_SetRcvPktFilterRspParamsType *pwdiSetRcvPktFilterRspInfo,
8132 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008133
8134/*---------------------------------------------------------------------------
8135 WDI_FilterMatchCountCb
8136
8137 DESCRIPTION
8138
8139 This callback is invoked by DAL when it has received a Do PC Filter Match Count
8140 response from the underlying device.
8141
8142 PARAMETERS
8143
8144 IN
8145 wdiStatus: response status received from HAL
8146 pUserData: user data
8147
8148
8149
8150 RETURN VALUE
8151 The result code associated with performing the operation
8152---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008153typedef void (*WDI_FilterMatchCountCb)(
8154 WDI_RcvFltPktMatchCntRspParamsType *pwdiRcvFltPktMatchRspParams,
8155 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008156
8157/*---------------------------------------------------------------------------
8158 WDI_ReceiveFilterClearFilterCb
8159
8160 DESCRIPTION
8161
8162 This callback is invoked by DAL when it has received a Receive Filter Clear Filter
8163 response from the underlying device.
8164
8165 PARAMETERS
8166
8167 IN
8168 wdiStatus: response status received from HAL
8169 pUserData: user data
8170
8171
8172
8173 RETURN VALUE
8174 The result code associated with performing the operation
8175---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008176typedef void (*WDI_ReceiveFilterClearFilterCb)(
8177 WDI_RcvFltPktClearRspParamsType *pwdiRcvFltPktClearRspParamsType,
8178 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008179#endif // WLAN_FEATURE_PACKET_FILTERING
8180
8181/*---------------------------------------------------------------------------
8182 WDI_HALDumpCmdRspCb
8183
8184 DESCRIPTION
8185
8186 This callback is invoked by DAL when it has received a HAL DUMP Command
8187response from
8188 the HAL layer.
8189
8190 PARAMETERS
8191
8192 IN
8193 wdiHalDumpCmdRsp: response status received from HAL
8194 pUserData: user data
8195
8196
8197
8198 RETURN VALUE
8199 The result code associated with performing the operation
8200---------------------------------------------------------------------------*/
8201typedef void (*WDI_HALDumpCmdRspCb)(WDI_HALDumpCmdRspParamsType* wdiHalDumpCmdRsp,
8202 void* pUserData);
8203
8204/*---------------------------------------------------------------------------
8205 WDI_SetPowerParamsCb
8206
8207 DESCRIPTION
8208
8209 This callback is invoked by DAL when it has received a Set Power Param
8210 response from the underlying device.
8211
8212 PARAMETERS
8213
8214 IN
8215 wdiStatus: response status received from HAL
8216 pUserData: user data
8217
8218
8219
8220 RETURN VALUE
8221 The result code associated with performing the operation
8222---------------------------------------------------------------------------*/
8223typedef void (*WDI_SetPowerParamsCb)(WDI_Status wdiStatus,
8224 void* pUserData);
8225
c_manjeecfd1efb2015-09-25 19:32:34 +05308226
8227/*---------------------------------------------------------------------------
8228 WDA_FwrMemDumpRespCallback
8229
8230 DESCRIPTION
8231
8232 This callback is invoked by DAL when it has received a Fwr Mem dump
8233 response from the underlying device.
8234
8235 PARAMETERS
8236
8237 IN
8238 wdiStatus: response status received from HAL
8239 pUserData: user data
8240 ---------------------------------------------------------------------------*/
8241typedef void (* WDI_FwrMemDumpCb) (WDI_FwrMemDumpRsp* wdiRsp,
8242 void* pUserData);
8243
8244
Jeff Johnson295189b2012-06-20 16:38:30 -07008245#ifdef WLAN_FEATURE_GTK_OFFLOAD
8246/*---------------------------------------------------------------------------
8247 WDI_GtkOffloadCb
8248
8249 DESCRIPTION
8250
8251 This callback is invoked by DAL when it has received a GTK offload
8252 response from the underlying device.
8253
8254 PARAMETERS
8255
8256 IN
8257 wdiStatus: response status received from HAL
8258 pUserData: user data
8259
8260
8261
8262 RETURN VALUE
8263 The result code associated with performing the operation
8264---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008265typedef void (*WDI_GtkOffloadCb)( WDI_GtkOffloadRspParams *pwdiGtkOffloadRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008266 void* pUserData);
8267
8268/*---------------------------------------------------------------------------
8269 WDI_GtkOffloadGetInfoCb
8270
8271 DESCRIPTION
8272
8273 This callback is invoked by DAL when it has received a GTK offload
8274 information response from the underlying device.
8275
8276 PARAMETERS
8277
8278 IN
8279 wdiStatus: response status received from HAL
8280 pUserData: user data
8281
8282
8283
8284 RETURN VALUE
8285 The result code associated with performing the operation
8286---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008287typedef void (*WDI_GtkOffloadGetInfoCb)( WDI_GtkOffloadGetInfoRspParams *pwdiGtkOffloadGetInfoRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008288 void* pUserData);
8289#endif // WLAN_FEATURE_GTK_OFFLOAD
8290
8291/*---------------------------------------------------------------------------
8292 WDI_SetTmLevelCb
8293
8294 DESCRIPTION
8295
8296 This callback is invoked by DAL when it has received a Set New TM Level
8297 done response from the underlying device.
8298
8299 PARAMETERS
8300
8301 IN
8302 wdiStatus: response status received from HAL
8303 pUserData: user data
8304
8305
8306
8307 RETURN VALUE
8308 The result code associated with performing the operation
8309---------------------------------------------------------------------------*/
8310typedef void (*WDI_SetTmLevelCb)(WDI_Status wdiStatus,
8311 void* pUserData);
8312
8313/*---------------------------------------------------------------------------
8314 WDI_featureCapsExchangeCb
8315
8316 DESCRIPTION
8317
8318 This callback is invoked by DAL when it has received a HAL Feature Capbility
8319 Exchange Response the HAL layer. This callback is put to mantain code
8320 similarity and is not being used right now.
8321
8322 PARAMETERS
8323
8324 IN
8325 wdiFeatCapRspParams: response parameters received from HAL
8326 pUserData: user data
8327
8328 RETURN VALUE
8329 The result code associated with performing the operation
8330---------------------------------------------------------------------------*/
8331typedef void (*WDI_featureCapsExchangeCb)(void* wdiFeatCapRspParams,
8332 void* pUserData);
8333
Mohit Khanna4a70d262012-09-11 16:30:12 -07008334#ifdef WLAN_FEATURE_11AC
8335typedef void (*WDI_UpdateVHTOpModeCb)(WDI_Status wdiStatus,
8336 void* pUserData);
8337#endif
8338
Leo Chang9056f462013-08-01 19:21:11 -07008339#ifdef FEATURE_WLAN_LPHB
8340typedef void (*WDI_LphbCfgCb)(WDI_Status wdiStatus,
8341 void* pUserData);
8342#endif /* FEATURE_WLAN_LPHB */
Mohit Khanna4a70d262012-09-11 16:30:12 -07008343
Abhishek Singh7cd040e2016-01-07 10:51:04 +05308344#ifdef WLAN_FEATURE_RMC
8345typedef void (*WDI_RmcRulerRspCb)(WDI_RmcRspParamsType *wdiRmcResponse,
8346 void* pUserData);
8347
8348typedef void (*WDI_IbssPeerInfoReqCb)(WDI_IbssPeerInfoRspParams *pInfoRspParams,
8349 void* pUserData);
8350
8351#endif /* WLAN_FEATURE_RMC */
8352
Rajeev79dbe4c2013-10-05 11:03:42 +05308353#ifdef FEATURE_WLAN_BATCH_SCAN
8354/*---------------------------------------------------------------------------
8355 WDI_SetBatchScanCb
8356
8357 DESCRIPTION
8358
8359 This callback is invoked by DAL when it has received a get batch scan
8360 response from the underlying device.
8361
8362 PARAMETERS
8363
8364 IN
8365 wdiStatus: response status received from HAL
8366 pUserData: user data
8367
8368
8369
8370 RETURN VALUE
8371 The result code associated with performing the operation
8372---------------------------------------------------------------------------*/
8373typedef void (*WDI_SetBatchScanCb)(void *pData, WDI_SetBatchScanRspType *pRsp);
8374
8375#endif
8376
c_hpothu92367912014-05-01 15:18:17 +05308377typedef void (*WDI_GetBcnMissRateCb)(wpt_uint8 status, wpt_uint32 bcnMissRate,
8378 void* pUserData);
Rajeev79dbe4c2013-10-05 11:03:42 +05308379
Dino Mycle41bdc942014-06-10 11:30:24 +05308380#ifdef WLAN_FEATURE_EXTSCAN
8381typedef void (*WDI_EXTScanStartRspCb)(void *pEventData,
8382 void *pUserData);
8383typedef void (*WDI_EXTScanStopRspCb)(void *pEventData,
8384 void *pUserData);
8385typedef void (*WDI_EXTScanGetCachedResultsRspCb)(void *pEventData,
8386 void *pUserData);
8387typedef void (*WDI_EXTScanGetCapabilitiesRspCb)(void *pEventData,
8388 void *pUserData);
8389typedef void (*WDI_EXTScanSetBSSIDHotlistRspCb)(void *pEventData,
8390 void *pUserData);
8391typedef void (*WDI_EXTScanResetBSSIDHotlistRspCb)(void *pEventData,
8392 void *pUserData);
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05308393typedef void (*WDI_EXTScanSetSSIDHotlistRspCb)(void *pEventData,
8394 void *pUserData);
8395typedef void (*WDI_EXTScanResetSSIDHotlistRspCb)(void *pEventData,
8396 void *pUserData);
Dino Mycle41bdc942014-06-10 11:30:24 +05308397#endif /* WLAN_FEATURE_EXTSCAN */
Sunil Duttbd736ed2014-05-26 21:19:41 +05308398
8399#ifdef WLAN_FEATURE_LINK_LAYER_STATS
8400typedef void (*WDI_LLStatsSetRspCb)(void *pEventData,
8401 void *pUserData);
8402typedef void (*WDI_LLStatsGetRspCb)(void *pEventData,
8403 void *pUserData);
8404typedef void (*WDI_LLStatsClearRspCb)(void *pEventData,
8405 void *pUserData);
8406#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
Siddharth Bhal171788a2014-09-29 21:02:40 +05308407
8408typedef void (*WDI_SetSpoofMacAddrRspCb)(
8409 WDI_SpoofMacAddrRspParamType* wdiRsp, void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308410
Abhishek Singh85b74712014-10-08 11:38:19 +05308411typedef void (*WDI_FWStatsGetRspCb)(WDI_Status status,void *fwStatsResp,
8412 void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308413
8414typedef void (*WDI_EncryptMsgRspCb)(wpt_uint8 status, void *pEventData, void* pUserData);
Siddharth Bhald1be97f2015-05-27 22:39:59 +05308415typedef void (*WDI_FWLoggingInitRspCb)(
8416 WDI_FWLoggingInitRspParamType *wdiRsp, void *pUserData);
Siddharth Bhal64246172015-02-27 01:04:37 +05308417typedef void (*WDI_GetFrameLogRspCb)(
8418 WDI_GetFrameLogRspParamType *wdiRsp, void *pUserData);
Sachin Ahuja715aafc2015-07-21 23:35:10 +05308419typedef void (*WDI_FatalEventLogsRspCb)(
8420 WDI_FatalEventLogsRspParamType *wdiRsp, void *pUserData);
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05308421
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +05308422typedef void (*WDI_MonModeRspCb)(void *pEventData,void *pUserData);
Gupta, Kapil7c34b322015-09-30 13:12:35 +05308423typedef void (*WDI_RssiMonitorStartRspCb)(void *pEventData,void *pUserData);
8424typedef void (*WDI_RssiMonitorStopRspCb)(void *pEventData,void *pUserData);
Katya Nigamf0511f62015-05-05 16:40:57 +05308425
c_manjeecfd1efb2015-09-25 19:32:34 +05308426typedef void (*WDI_FwrMemDumpRspCb)(WDI_FwrMemDumpRsp *wdiRsp, void *pUserData);
8427
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05308428typedef void (*WDI_WifiConfigSetRspCb) (WDI_WifconfigSetRsp *wdiRsp, void *pUserData);
c_manjeecfd1efb2015-09-25 19:32:34 +05308429
Mahesh A Saptasagarb63b3e22015-12-22 15:06:10 +05308430typedef void (*WDI_AntennaDivSelRspCb)(WDI_Status status,
8431 void *resp, void *pUserData);
8432
Jeff Johnson295189b2012-06-20 16:38:30 -07008433/*========================================================================
8434 * Function Declarations and Documentation
8435 ==========================================================================*/
8436
8437/*========================================================================
8438
8439 INITIALIZATION APIs
8440
8441==========================================================================*/
8442
8443/**
8444 @brief WDI_Init is used to initialize the DAL.
8445
8446 DAL will allocate all the resources it needs. It will open PAL, it will also
8447 open both the data and the control transport which in their turn will open
8448 DXE/SMD or any other drivers that they need.
8449
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308450 @param devHandle: pointer to the OS specific device handle
Jeff Johnson295189b2012-06-20 16:38:30 -07008451 ppWDIGlobalCtx: output pointer of Global Context
8452 pWdiDevCapability: output pointer of device capability
8453
8454 @return Result of the function call
8455*/
8456WDI_Status
8457WDI_Init
8458(
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308459 void* devHandle,
Jeff Johnson295189b2012-06-20 16:38:30 -07008460 void** ppWDIGlobalCtx,
8461 WDI_DeviceCapabilityType* pWdiDevCapability,
8462 unsigned int driverType
8463);
8464
8465/**
8466 @brief WDI_Start will be called when the upper MAC is ready to
8467 commence operation with the WLAN Device. Upon the call
8468 of this API the WLAN DAL will pack and send a HAL Start
8469 message to the lower RIVA sub-system if the SMD channel
8470 has been fully opened and the RIVA subsystem is up.
8471
8472 If the RIVA sub-system is not yet up and running DAL
8473 will queue the request for Open and will wait for the
8474 SMD notification before attempting to send down the
8475 message to HAL.
8476
8477 WDI_Init must have been called.
8478
8479 @param wdiStartParams: the start parameters as specified by
8480 the Device Interface
8481
8482 wdiStartRspCb: callback for passing back the response of
8483 the start operation received from the device
8484
8485 pUserData: user data will be passed back with the
8486 callback
8487
8488 @see WDI_Start
8489 @return Result of the function call
8490*/
8491WDI_Status
8492WDI_Start
8493(
8494 WDI_StartReqParamsType* pwdiStartParams,
8495 WDI_StartRspCb wdiStartRspCb,
8496 void* pUserData
8497);
8498
8499
8500/**
8501 @brief WDI_Stop will be called when the upper MAC is ready to
8502 stop any operation with the WLAN Device. Upon the call
8503 of this API the WLAN DAL will pack and send a HAL Stop
8504 message to the lower RIVA sub-system if the DAL Core is
8505 in started state.
8506
8507 In state BUSY this request will be queued.
8508
8509 Request will not be accepted in any other state.
8510
8511 WDI_Start must have been called.
8512
8513 @param wdiStopParams: the stop parameters as specified by
8514 the Device Interface
8515
8516 wdiStopRspCb: callback for passing back the response of
8517 the stop operation received from the device
8518
8519 pUserData: user data will be passed back with the
8520 callback
8521
8522 @see WDI_Start
8523 @return Result of the function call
8524*/
8525WDI_Status
8526WDI_Stop
8527(
8528 WDI_StopReqParamsType* pwdiStopParams,
8529 WDI_StopRspCb wdiStopRspCb,
8530 void* pUserData
8531);
8532
8533/**
8534 @brief WDI_Close will be called when the upper MAC no longer
8535 needs to interract with DAL. DAL will free its control
8536 block.
8537
8538 It is only accepted in state STOPPED.
8539
8540 WDI_Stop must have been called.
8541
8542 @param none
8543
8544 @see WDI_Stop
8545 @return Result of the function call
8546*/
8547WDI_Status
8548WDI_Close
8549(
8550 void
8551);
8552
8553
8554/**
8555 @brief WDI_Shutdown will be called during 'SSR shutdown' operation.
8556 This will do most of the WDI stop & close
8557 operations without doing any handshake with Riva
8558
8559 This will also make sure that the control transport
8560 will NOT be closed.
8561
8562 This request will not be queued.
8563
8564
8565 WDI_Start must have been called.
8566
8567 @param closeTransport: Close control channel if this is set
8568
8569 @return Result of the function call
8570*/
8571WDI_Status
8572WDI_Shutdown
8573(
8574 wpt_boolean closeTransport
8575);
8576
8577/*========================================================================
8578
8579 SCAN APIs
8580
8581==========================================================================*/
8582
8583/**
8584 @brief WDI_InitScanReq will be called when the upper MAC wants
8585 the WLAN Device to get ready for a scan procedure. Upon
8586 the call of this API the WLAN DAL will pack and send a
8587 HAL Init Scan request message to the lower RIVA
8588 sub-system if DAL is in state STARTED.
8589
8590 In state BUSY this request will be queued. Request won't
8591 be allowed in any other state.
8592
8593 WDI_Start must have been called.
8594
8595 @param wdiInitScanParams: the init scan parameters as specified
8596 by the Device Interface
8597
8598 wdiInitScanRspCb: callback for passing back the response
8599 of the init scan operation received from the device
8600
8601 pUserData: user data will be passed back with the
8602 callback
8603
8604 @see WDI_Start
8605 @return Result of the function call
8606*/
8607WDI_Status
8608WDI_InitScanReq
8609(
8610 WDI_InitScanReqParamsType* pwdiInitScanParams,
8611 WDI_InitScanRspCb wdiInitScanRspCb,
8612 void* pUserData
8613);
8614
8615/**
8616 @brief WDI_StartScanReq will be called when the upper MAC
8617 wishes to change the Scan channel on the WLAN Device.
8618 Upon the call of this API the WLAN DAL will pack and
8619 send a HAL Start Scan request message to the lower RIVA
8620 sub-system if DAL is in state STARTED.
8621
8622 In state BUSY this request will be queued. Request won't
8623 be allowed in any other state.
8624
8625 WDI_InitScanReq must have been called.
8626
8627 @param wdiStartScanParams: the start scan parameters as
8628 specified by the Device Interface
8629
8630 wdiStartScanRspCb: callback for passing back the
8631 response of the start scan operation received from the
8632 device
8633
8634 pUserData: user data will be passed back with the
8635 callback
8636
8637 @see WDI_InitScanReq
8638 @return Result of the function call
8639*/
8640WDI_Status
8641WDI_StartScanReq
8642(
8643 WDI_StartScanReqParamsType* pwdiStartScanParams,
8644 WDI_StartScanRspCb wdiStartScanRspCb,
8645 void* pUserData
8646);
8647
8648
8649/**
8650 @brief WDI_EndScanReq will be called when the upper MAC is
8651 wants to end scanning for a particular channel that it
8652 had set before by calling Scan Start on the WLAN Device.
8653 Upon the call of this API the WLAN DAL will pack and
8654 send a HAL End Scan request message to the lower RIVA
8655 sub-system if DAL is in state STARTED.
8656
8657 In state BUSY this request will be queued. Request won't
8658 be allowed in any other state.
8659
8660 WDI_StartScanReq must have been called.
8661
8662 @param wdiEndScanParams: the end scan parameters as specified
8663 by the Device Interface
8664
8665 wdiEndScanRspCb: callback for passing back the response
8666 of the end scan operation received from the device
8667
8668 pUserData: user data will be passed back with the
8669 callback
8670
8671 @see WDI_StartScanReq
8672 @return Result of the function call
8673*/
8674WDI_Status
8675WDI_EndScanReq
8676(
8677 WDI_EndScanReqParamsType* pwdiEndScanParams,
8678 WDI_EndScanRspCb wdiEndScanRspCb,
8679 void* pUserData
8680);
8681
8682
8683/**
8684 @brief WDI_FinishScanReq will be called when the upper MAC has
8685 completed the scan process on the WLAN Device. Upon the
8686 call of this API the WLAN DAL will pack and send a HAL
8687 Finish Scan Request request message to the lower RIVA
8688 sub-system if DAL is in state STARTED.
8689
8690 In state BUSY this request will be queued. Request won't
8691 be allowed in any other state.
8692
8693 WDI_InitScanReq must have been called.
8694
8695 @param wdiFinishScanParams: the finish scan parameters as
8696 specified by the Device Interface
8697
8698 wdiFinishScanRspCb: callback for passing back the
8699 response of the finish scan operation received from the
8700 device
8701
8702 pUserData: user data will be passed back with the
8703 callback
8704
8705 @see WDI_InitScanReq
8706 @return Result of the function call
8707*/
8708WDI_Status
8709WDI_FinishScanReq
8710(
8711 WDI_FinishScanReqParamsType* pwdiFinishScanParams,
8712 WDI_FinishScanRspCb wdiFinishScanRspCb,
8713 void* pUserData
8714);
8715
8716/*========================================================================
8717
8718 ASSOCIATION APIs
8719
8720==========================================================================*/
8721
8722/**
8723 @brief WDI_JoinReq will be called when the upper MAC is ready
8724 to start an association procedure to a BSS. Upon the
8725 call of this API the WLAN DAL will pack and send a HAL
8726 Join request message to the lower RIVA sub-system if
8727 DAL is in state STARTED.
8728
8729 In state BUSY this request will be queued. Request won't
8730 be allowed in any other state.
8731
8732 WDI_Start must have been called.
8733
8734 @param wdiJoinParams: the join parameters as specified by
8735 the Device Interface
8736
8737 wdiJoinRspCb: callback for passing back the response of
8738 the join operation received from the device
8739
8740 pUserData: user data will be passed back with the
8741 callback
8742
8743 @see WDI_Start
8744 @return Result of the function call
8745*/
8746WDI_Status
8747WDI_JoinReq
8748(
8749 WDI_JoinReqParamsType* pwdiJoinParams,
8750 WDI_JoinRspCb wdiJoinRspCb,
8751 void* pUserData
8752);
8753
8754/**
8755 @brief WDI_ConfigBSSReq will be called when the upper MAC
8756 wishes to configure the newly acquired or in process of
8757 being acquired BSS to the HW . Upon the call of this API
8758 the WLAN DAL will pack and send a HAL Config BSS request
8759 message to the lower RIVA sub-system if DAL is in state
8760 STARTED.
8761
8762 In state BUSY this request will be queued. Request won't
8763 be allowed in any other state.
8764
8765 WDI_JoinReq must have been called.
8766
8767 @param wdiConfigBSSParams: the config BSS parameters as
8768 specified by the Device Interface
8769
8770 wdiConfigBSSRspCb: callback for passing back the
8771 response of the config BSS operation received from the
8772 device
8773
8774 pUserData: user data will be passed back with the
8775 callback
8776
8777 @see WDI_JoinReq
8778 @return Result of the function call
8779*/
8780WDI_Status
8781WDI_ConfigBSSReq
8782(
8783 WDI_ConfigBSSReqParamsType* pwdiConfigBSSParams,
8784 WDI_ConfigBSSRspCb wdiConfigBSSRspCb,
8785 void* pUserData
8786);
8787
8788/**
8789 @brief WDI_DelBSSReq will be called when the upper MAC is
8790 dissasociating from the BSS and wishes to notify HW.
8791 Upon the call of this API the WLAN DAL will pack and
8792 send a HAL Del BSS request message to the lower RIVA
8793 sub-system if DAL is in state STARTED.
8794
8795 In state BUSY this request will be queued. Request won't
8796 be allowed in any other state.
8797
8798 WDI_ConfigBSSReq or WDI_PostAssocReq must have been called.
8799
8800 @param wdiDelBSSParams: the del BSS parameters as specified by
8801 the Device Interface
8802
8803 wdiDelBSSRspCb: callback for passing back the response
8804 of the del bss operation received from the device
8805
8806 pUserData: user data will be passed back with the
8807 callback
8808
8809 @see WDI_ConfigBSSReq, WDI_PostAssocReq
8810 @return Result of the function call
8811*/
8812WDI_Status
8813WDI_DelBSSReq
8814(
8815 WDI_DelBSSReqParamsType* pwdiDelBSSParams,
8816 WDI_DelBSSRspCb wdiDelBSSRspCb,
8817 void* pUserData
8818);
8819
8820/**
8821 @brief WDI_PostAssocReq will be called when the upper MAC has
8822 associated to a BSS and wishes to configure HW for
8823 associated state. Upon the call of this API the WLAN DAL
8824 will pack and send a HAL Post Assoc request message to
8825 the lower RIVA sub-system if DAL is in state STARTED.
8826
8827 In state BUSY this request will be queued. Request won't
8828 be allowed in any other state.
8829
8830 WDI_JoinReq must have been called.
8831
8832 @param wdiPostAssocReqParams: the assoc parameters as specified
8833 by the Device Interface
8834
8835 wdiPostAssocRspCb: callback for passing back the
8836 response of the post assoc operation received from the
8837 device
8838
8839 pUserData: user data will be passed back with the
8840 callback
8841
8842 @see WDI_JoinReq
8843 @return Result of the function call
8844*/
8845WDI_Status
8846WDI_PostAssocReq
8847(
8848 WDI_PostAssocReqParamsType* pwdiPostAssocReqParams,
8849 WDI_PostAssocRspCb wdiPostAssocRspCb,
8850 void* pUserData
8851);
8852
8853/**
8854 @brief WDI_DelSTAReq will be called when the upper MAC when an
8855 association with another STA has ended and the station
8856 must be deleted from HW. Upon the call of this API the
8857 WLAN DAL will pack and send a HAL Del STA request
8858 message to the lower RIVA sub-system if DAL is in state
8859 STARTED.
8860
8861 In state BUSY this request will be queued. Request won't
8862 be allowed in any other state.
8863
8864 WDI_PostAssocReq must have been called.
8865
8866 @param wdiDelSTAParams: the Del STA parameters as specified by
8867 the Device Interface
8868
8869 wdiDelSTARspCb: callback for passing back the response
8870 of the del STA operation received from the device
8871
8872 pUserData: user data will be passed back with the
8873 callback
8874
8875 @see WDI_PostAssocReq
8876 @return Result of the function call
8877*/
8878WDI_Status
8879WDI_DelSTAReq
8880(
8881 WDI_DelSTAReqParamsType* pwdiDelSTAParams,
8882 WDI_DelSTARspCb wdiDelSTARspCb,
8883 void* pUserData
8884);
8885
8886/*========================================================================
8887
8888 SECURITY APIs
8889
8890==========================================================================*/
8891
8892/**
8893 @brief WDI_SetBSSKeyReq will be called when the upper MAC ito
8894 install a BSS encryption key on the HW. Upon the call of
8895 this API the WLAN DAL will pack and send a HAL Start
8896 request message to the lower RIVA sub-system if DAL is
8897 in state STARTED.
8898
8899 In state BUSY this request will be queued. Request won't
8900 be allowed in any other state.
8901
8902 WDI_PostAssocReq must have been called.
8903
8904 @param wdiSetBSSKeyParams: the BSS Key set parameters as
8905 specified by the Device Interface
8906
8907 wdiSetBSSKeyRspCb: callback for passing back the
8908 response of the set BSS Key operation received from the
8909 device
8910
8911 pUserData: user data will be passed back with the
8912 callback
8913
8914 @see WDI_PostAssocReq
8915 @return Result of the function call
8916*/
8917WDI_Status
8918WDI_SetBSSKeyReq
8919(
8920 WDI_SetBSSKeyReqParamsType* pwdiSetBSSKeyParams,
8921 WDI_SetBSSKeyRspCb wdiSetBSSKeyRspCb,
8922 void* pUserData
8923);
8924
8925
8926/**
8927 @brief WDI_RemoveBSSKeyReq will be called when the upper MAC to
8928 uninstall a BSS key from HW. Upon the call of this API
8929 the WLAN DAL will pack and send a HAL Remove BSS Key
8930 request message to the lower RIVA sub-system if DAL is
8931 in state STARTED.
8932
8933 In state BUSY this request will be queued. Request won't
8934 be allowed in any other state.
8935
8936 WDI_SetBSSKeyReq must have been called.
8937
8938 @param wdiRemoveBSSKeyParams: the remove BSS key parameters as
8939 specified by the Device Interface
8940
8941 wdiRemoveBSSKeyRspCb: callback for passing back the
8942 response of the remove BSS key operation received from
8943 the device
8944
8945 pUserData: user data will be passed back with the
8946 callback
8947
8948 @see WDI_SetBSSKeyReq
8949 @return Result of the function call
8950*/
8951WDI_Status
8952WDI_RemoveBSSKeyReq
8953(
8954 WDI_RemoveBSSKeyReqParamsType* pwdiRemoveBSSKeyParams,
8955 WDI_RemoveBSSKeyRspCb wdiRemoveBSSKeyRspCb,
8956 void* pUserData
8957);
8958
8959
8960/**
8961 @brief WDI_SetSTAKeyReq will be called when the upper MAC is
8962 ready to install a STA(ast) encryption key in HW. Upon
8963 the call of this API the WLAN DAL will pack and send a
8964 HAL Set STA Key request message to the lower RIVA
8965 sub-system if DAL is in state STARTED.
8966
8967 In state BUSY this request will be queued. Request won't
8968 be allowed in any other state.
8969
8970 WDI_PostAssocReq must have been called.
8971
8972 @param wdiSetSTAKeyParams: the set STA key parameters as
8973 specified by the Device Interface
8974
8975 wdiSetSTAKeyRspCb: callback for passing back the
8976 response of the set STA key operation received from the
8977 device
8978
8979 pUserData: user data will be passed back with the
8980 callback
8981
8982 @see WDI_PostAssocReq
8983 @return Result of the function call
8984*/
8985WDI_Status
8986WDI_SetSTAKeyReq
8987(
8988 WDI_SetSTAKeyReqParamsType* pwdiSetSTAKeyParams,
8989 WDI_SetSTAKeyRspCb wdiSetSTAKeyRspCb,
8990 void* pUserData
8991);
8992
8993
8994/**
8995 @brief WDI_RemoveSTAKeyReq will be called when the upper MAC
8996 wants to unistall a previously set STA key in HW. Upon
8997 the call of this API the WLAN DAL will pack and send a
8998 HAL Remove STA Key request message to the lower RIVA
8999 sub-system if DAL is in state STARTED.
9000
9001 In state BUSY this request will be queued. Request won't
9002 be allowed in any other state.
9003
9004 WDI_SetSTAKeyReq must have been called.
9005
9006 @param wdiRemoveSTAKeyParams: the remove STA key parameters as
9007 specified by the Device Interface
9008
9009 wdiRemoveSTAKeyRspCb: callback for passing back the
9010 response of the remove STA key operation received from
9011 the device
9012
9013 pUserData: user data will be passed back with the
9014 callback
9015
9016 @see WDI_SetSTAKeyReq
9017 @return Result of the function call
9018*/
9019WDI_Status
9020WDI_RemoveSTAKeyReq
9021(
9022 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTAKeyParams,
9023 WDI_RemoveSTAKeyRspCb wdiRemoveSTAKeyRspCb,
9024 void* pUserData
9025);
9026
9027/**
9028 @brief WDI_SetSTABcastKeyReq will be called when the upper MAC
9029 wants to install a STA Bcast encryption key on the HW.
9030 Upon the call of this API the WLAN DAL will pack and
9031 send a HAL Start request message to the lower RIVA
9032 sub-system if DAL is in state STARTED.
9033
9034 In state BUSY this request will be queued. Request won't
9035 be allowed in any other state.
9036
9037 WDI_PostAssocReq must have been called.
9038
9039 @param pwdiSetSTABcastKeyParams: the BSS Key set parameters as
9040 specified by the Device Interface
9041
9042 wdiSetSTABcastKeyRspCb: callback for passing back the
9043 response of the set BSS Key operation received from the
9044 device
9045
9046 pUserData: user data will be passed back with the
9047 callback
9048
9049 @see WDI_PostAssocReq
9050 @return Result of the function call
9051*/
9052WDI_Status
9053WDI_SetSTABcastKeyReq
9054(
9055 WDI_SetSTAKeyReqParamsType* pwdiSetSTABcastKeyParams,
9056 WDI_SetSTAKeyRspCb wdiSetSTABcastKeyRspCb,
9057 void* pUserData
9058);
9059
9060
9061/**
9062 @brief WDI_RemoveSTABcastKeyReq will be called when the upper
9063 MAC to uninstall a STA Bcast key from HW. Upon the call
9064 of this API the WLAN DAL will pack and send a HAL Remove
9065 STA Bcast Key request message to the lower RIVA
9066 sub-system if DAL is in state STARTED.
9067
9068 In state BUSY this request will be queued. Request won't
9069 be allowed in any other state.
9070
9071 WDI_SetSTABcastKeyReq must have been called.
9072
9073 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9074 parameters as specified by the Device
9075 Interface
9076
9077 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9078 response of the remove STA Bcast key operation received
9079 from the device
9080
9081 pUserData: user data will be passed back with the
9082 callback
9083
9084 @see WDI_SetSTABcastKeyReq
9085 @return Result of the function call
9086*/
9087WDI_Status
9088WDI_RemoveSTABcastKeyReq
9089(
9090 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTABcastKeyParams,
9091 WDI_RemoveSTAKeyRspCb wdiRemoveSTABcastKeyRspCb,
9092 void* pUserData
9093);
9094
schang86c22c42013-03-13 18:41:24 -07009095
9096/**
9097 @brief WDI_SetTxPowerReq will be called when the upper
9098 MAC wants to set Tx Power to HW.
9099 In state BUSY this request will be queued. Request won't
9100 be allowed in any other state.
9101
9102
9103 @param pwdiSetTxPowerParams: set TS Power parameters
9104 BSSID and target TX Power with dbm included
9105
9106 wdiReqStatusCb: callback for passing back the response
9107
9108 pUserData: user data will be passed back with the
9109 callback
9110
9111 @return Result of the function call
9112*/
9113WDI_Status
9114WDI_SetTxPowerReq
9115(
9116 WDI_SetTxPowerParamsType* pwdiSetTxPowerParams,
9117 WDA_SetTxPowerRspCb wdiReqStatusCb,
9118 void* pUserData
9119);
9120
Jeff Johnson295189b2012-06-20 16:38:30 -07009121/**
9122 @brief WDI_SetMaxTxPowerReq will be called when the upper
9123 MAC wants to set Max Tx Power to HW. Upon the
9124 call of this API the WLAN DAL will pack and send a HAL
9125 Remove STA Bcast Key request message to the lower RIVA
9126 sub-system if DAL is in state STARTED.
9127
9128 In state BUSY this request will be queued. Request won't
9129 be allowed in any other state.
9130
9131 WDI_SetSTABcastKeyReq must have been called.
9132
9133 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9134 parameters as specified by the Device
9135 Interface
9136
9137 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9138 response of the remove STA Bcast key operation received
9139 from the device
9140
9141 pUserData: user data will be passed back with the
9142 callback
9143
9144 @see WDI_SetMaxTxPowerReq
9145 @return Result of the function call
9146*/
9147WDI_Status
9148WDI_SetMaxTxPowerReq
9149(
9150 WDI_SetMaxTxPowerParamsType* pwdiSetMaxTxPowerParams,
9151 WDA_SetMaxTxPowerRspCb wdiReqStatusCb,
9152 void* pUserData
9153);
9154
Arif Hussaina5ebce02013-08-09 15:09:58 -07009155/**
9156 @brief WDI_SetMaxTxPowerPerBandReq will be called when the upper
9157 MAC wants to set Max Tx Power to HW for specific band. Upon the
9158 call of this API the WLAN DAL will pack and send a HAL
9159 Set Max Tx Power Per Band request message to the lower RIVA
9160 sub-system if DAL is in state STARTED.
9161
9162 In state BUSY this request will be queued. Request won't
9163 be allowed in any other state.
9164
9165
9166 @param WDI_SetMaxTxPowerPerBandParamsType: Max Tx Per Band Info
9167
9168 WDA_SetMaxTxPowerPerBandRspCb: This callback is invoked by DAL
9169 when it has received a set max Tx Power Per Band response from
9170 the underlying device.
9171
9172 pUserData: user data will be passed back with the
9173 callback
9174
9175 @see WDI_SetMaxTxPowerPerBandReq
9176 @return Result of the function call
9177*/
9178WDI_Status
9179WDI_SetMaxTxPowerPerBandReq
9180(
9181 WDI_SetMaxTxPowerPerBandParamsType* pwdiSetMaxTxPowerPerBandParams,
9182 WDA_SetMaxTxPowerPerBandRspCb wdiReqStatusCb,
9183 void* pUserData
9184);
9185
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08009186#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07009187/**
9188 @brief WDI_TSMStatsReq will be called by the upper MAC to fetch
9189 Traffic Stream metrics.
9190 In state BUSY this request will be queued. Request won't
9191 be allowed in any other state.
9192
9193 @param wdiAddTsReqParams: the add TS parameters as specified by
9194 the Device Interface
9195
9196 wdiAddTsRspCb: callback for passing back the response of
9197 the add TS operation received from the device
9198
9199 pUserData: user data will be passed back with the
9200 callback
9201
9202 @see WDI_PostAssocReq
9203 @return Result of the function call
9204*/
9205WDI_Status
9206WDI_TSMStatsReq
9207(
9208 WDI_TSMStatsReqParamsType* pwdiTsmStatsReqParams,
9209 WDI_TsmRspCb wdiTsmStatsRspCb,
9210 void* pUserData
9211);
9212
9213
9214#endif
9215
9216/*========================================================================
9217
9218 QoS and BA APIs
9219
9220==========================================================================*/
9221
9222/**
9223 @brief WDI_AddTSReq will be called when the upper MAC to inform
9224 the device of a successful add TSpec negotiation. HW
9225 needs to receive the TSpec Info from the UMAC in order
9226 to configure properly the QoS data traffic. Upon the
9227 call of this API the WLAN DAL will pack and send a HAL
9228 Add TS request message to the lower RIVA sub-system if
9229 DAL is in state STARTED.
9230
9231 In state BUSY this request will be queued. Request won't
9232 be allowed in any other state.
9233
9234 WDI_PostAssocReq must have been called.
9235
9236 @param wdiAddTsReqParams: the add TS parameters as specified by
9237 the Device Interface
9238
9239 wdiAddTsRspCb: callback for passing back the response of
9240 the add TS operation received from the device
9241
9242 pUserData: user data will be passed back with the
9243 callback
9244
9245 @see WDI_PostAssocReq
9246 @return Result of the function call
9247*/
9248WDI_Status
9249WDI_AddTSReq
9250(
9251 WDI_AddTSReqParamsType* pwdiAddTsReqParams,
9252 WDI_AddTsRspCb wdiAddTsRspCb,
9253 void* pUserData
9254);
9255
9256
9257
9258/**
9259 @brief WDI_DelTSReq will be called when the upper MAC has ended
9260 admission on a specific AC. This is to inform HW that
9261 QoS traffic parameters must be rest. Upon the call of
9262 this API the WLAN DAL will pack and send a HAL Del TS
9263 request message to the lower RIVA sub-system if DAL is
9264 in state STARTED.
9265
9266 In state BUSY this request will be queued. Request won't
9267 be allowed in any other state.
9268
9269 WDI_AddTSReq must have been called.
9270
9271 @param wdiDelTsReqParams: the del TS parameters as specified by
9272 the Device Interface
9273
9274 wdiDelTsRspCb: callback for passing back the response of
9275 the del TS operation received from the device
9276
9277 pUserData: user data will be passed back with the
9278 callback
9279
9280 @see WDI_AddTSReq
9281 @return Result of the function call
9282*/
9283WDI_Status
9284WDI_DelTSReq
9285(
9286 WDI_DelTSReqParamsType* pwdiDelTsReqParams,
9287 WDI_DelTsRspCb wdiDelTsRspCb,
9288 void* pUserData
9289);
9290
9291
9292
9293/**
9294 @brief WDI_UpdateEDCAParams will be called when the upper MAC
9295 wishes to update the EDCA parameters used by HW for QoS
9296 data traffic. Upon the call of this API the WLAN DAL
9297 will pack and send a HAL Update EDCA Params request
9298 message to the lower RIVA sub-system if DAL is in state
9299 STARTED.
9300
9301 In state BUSY this request will be queued. Request won't
9302 be allowed in any other state.
9303
9304 WDI_PostAssocReq must have been called.
9305
9306 @param wdiUpdateEDCAParams: the start parameters as specified
9307 by the Device Interface
9308
9309 wdiUpdateEDCAParamsRspCb: callback for passing back the
9310 response of the start operation received from the device
9311
9312 pUserData: user data will be passed back with the
9313 callback
9314
9315 @see WDI_PostAssocReq
9316 @return Result of the function call
9317*/
9318WDI_Status
9319WDI_UpdateEDCAParams
9320(
9321 WDI_UpdateEDCAParamsType* pwdiUpdateEDCAParams,
9322 WDI_UpdateEDCAParamsRspCb wdiUpdateEDCAParamsRspCb,
9323 void* pUserData
9324);
9325
9326
9327
9328/**
9329 @brief WDI_AddBASessionReq will be called when the upper MAC has setup
9330 successfully a BA session and needs to notify the HW for
9331 the appropriate settings to take place. Upon the call of
9332 this API the WLAN DAL will pack and send a HAL Add BA
9333 request message to the lower RIVA sub-system if DAL is
9334 in state STARTED.
9335
9336 In state BUSY this request will be queued. Request won't
9337 be allowed in any other state.
9338
9339 WDI_PostAssocReq must have been called.
9340
9341 @param wdiAddBAReqParams: the add BA parameters as specified by
9342 the Device Interface
9343
9344 wdiAddBARspCb: callback for passing back the response of
9345 the add BA operation received from the device
9346
9347 pUserData: user data will be passed back with the
9348 callback
9349
9350 @see WDI_PostAssocReq
9351 @return Result of the function call
9352*/
9353WDI_Status
9354WDI_AddBASessionReq
9355(
9356 WDI_AddBASessionReqParamsType* pwdiAddBASessionReqParams,
9357 WDI_AddBASessionRspCb wdiAddBASessionRspCb,
9358 void* pUserData
9359);
9360
9361
9362/**
9363 @brief WDI_DelBAReq will be called when the upper MAC wants to
9364 inform HW that it has deleted a previously created BA
9365 session. Upon the call of this API the WLAN DAL will
9366 pack and send a HAL Del BA request message to the lower
9367 RIVA sub-system if DAL is in state STARTED.
9368
9369 In state BUSY this request will be queued. Request won't
9370 be allowed in any other state.
9371
9372 WDI_AddBAReq must have been called.
9373
9374 @param wdiDelBAReqParams: the del BA parameters as specified by
9375 the Device Interface
9376
9377 wdiDelBARspCb: callback for passing back the response of
9378 the del BA operation received from the device
9379
9380 pUserData: user data will be passed back with the
9381 callback
9382
9383 @see WDI_AddBAReq
9384 @return Result of the function call
9385*/
9386WDI_Status
9387WDI_DelBAReq
9388(
9389 WDI_DelBAReqParamsType* pwdiDelBAReqParams,
9390 WDI_DelBARspCb wdiDelBARspCb,
9391 void* pUserData
9392);
9393
9394/**
9395 @brief WDI_UpdateBeaconParamsReq will be called when the upper MAC wants to
9396 inform HW that there is a change in the beacon parameters
9397 Upon the call of this API the WLAN DAL will
9398 pack and send a UpdateBeacon Params message to the lower
9399 RIVA sub-system if DAL is in state STARTED.
9400
9401 In state BUSY this request will be queued. Request won't
9402 be allowed in any other state.
9403
9404 WDI_UpdateBeaconParamsReq must have been called.
9405
9406 @param WDI_UpdateBeaconParamsType: the Update Beacon parameters as specified by
9407 the Device Interface
9408
9409 WDI_UpdateBeaconParamsRspCb: callback for passing back the response of
9410 the Update Beacon Params operation received from the device
9411
9412 pUserData: user data will be passed back with the
9413 callback
9414
9415 @see WDI_AddBAReq
9416 @return Result of the function call
9417*/
9418
9419WDI_Status
9420WDI_UpdateBeaconParamsReq
9421(
9422 WDI_UpdateBeaconParamsType * pwdiUpdateBeaconParams,
9423 WDI_UpdateBeaconParamsRspCb wdiUpdateBeaconParamsRspCb,
9424 void* pUserData
9425);
9426
9427
9428/**
9429 @brief WDI_SendBeaconParamsReq will be called when the upper MAC wants to
9430 update the beacon template to be transmitted as BT MAP STA/IBSS/Soft AP
9431 Upon the call of this API the WLAN DAL will
9432 pack and send the beacon Template message to the lower
9433 RIVA sub-system if DAL is in state STARTED.
9434
9435 In state BUSY this request will be queued. Request won't
9436 be allowed in any other state.
9437
9438 WDI_SendBeaconParamsReq must have been called.
9439
9440 @param WDI_SendBeaconParamsType: the Update Beacon parameters as specified by
9441 the Device Interface
9442
9443 WDI_SendBeaconParamsRspCb: callback for passing back the response of
9444 the Send Beacon Params operation received from the device
9445
9446 pUserData: user data will be passed back with the
9447 callback
9448
9449 @see WDI_AddBAReq
9450 @return Result of the function call
9451*/
9452
9453WDI_Status
9454WDI_SendBeaconParamsReq
9455(
9456 WDI_SendBeaconParamsType* pwdiSendBeaconParams,
9457 WDI_SendBeaconParamsRspCb wdiSendBeaconParamsRspCb,
9458 void* pUserData
9459);
9460
9461
9462/**
9463 @brief WDI_UpdateProbeRspTemplateReq will be called when the
9464 upper MAC wants to update the probe response template to
9465 be transmitted as Soft AP
9466 Upon the call of this API the WLAN DAL will
9467 pack and send the probe rsp template message to the
9468 lower RIVA sub-system if DAL is in state STARTED.
9469
9470 In state BUSY this request will be queued. Request won't
9471 be allowed in any other state.
9472
9473
9474 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9475 specified by the Device Interface
9476
9477 wdiSendBeaconParamsRspCb: callback for passing back the
9478 response of the Send Beacon Params operation received
9479 from the device
9480
9481 pUserData: user data will be passed back with the
9482 callback
9483
9484 @see WDI_AddBAReq
9485 @return Result of the function call
9486*/
9487
9488WDI_Status
9489WDI_UpdateProbeRspTemplateReq
9490(
9491 WDI_UpdateProbeRspTemplateParamsType* pwdiUpdateProbeRspParams,
9492 WDI_UpdateProbeRspTemplateRspCb wdiSendBeaconParamsRspCb,
9493 void* pUserData
9494);
9495
Jeff Johnson295189b2012-06-20 16:38:30 -07009496/**
9497 @brief WDI_SetP2PGONOAReq will be called when the
9498 upper MAC wants to send Notice of Absence
9499 Upon the call of this API the WLAN DAL will
9500 pack and send the probe rsp template message to the
9501 lower RIVA sub-system if DAL is in state STARTED.
9502
9503 In state BUSY this request will be queued. Request won't
9504 be allowed in any other state.
9505
9506
9507 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9508 specified by the Device Interface
9509
9510 wdiSendBeaconParamsRspCb: callback for passing back the
9511 response of the Send Beacon Params operation received
9512 from the device
9513
9514 pUserData: user data will be passed back with the
9515 callback
9516
9517 @see WDI_AddBAReq
9518 @return Result of the function call
9519*/
9520WDI_Status
9521WDI_SetP2PGONOAReq
9522(
9523 WDI_SetP2PGONOAReqParamsType* pwdiP2PGONOAReqParams,
9524 WDI_SetP2PGONOAReqParamsRspCb wdiP2PGONOAReqParamsRspCb,
9525 void* pUserData
9526);
Jeff Johnson295189b2012-06-20 16:38:30 -07009527
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05309528/**
9529 @brief WDI_SetTDLSLinkEstablishReq will be called when the
9530 upper MAC wants to send TDLS Link Establish Request Parameters
9531 Upon the call of this API the WLAN DAL will
9532 pack and send the TDLS Link Establish Request message to the
9533 lower RIVA sub-system if DAL is in state STARTED.
9534
9535 In state BUSY this request will be queued. Request won't
9536 be allowed in any other state.
9537
9538
9539 @param pwdiTDLSLinkEstablishReqParams: TDLS Peer Parameters
9540 for Link Establishment (Used for PUAPSD , TDLS Off Channel ...)
9541
9542 wdiTDLSLinkEstablishReqRspCb: callback for passing back the
9543 response of the TDLS Link Establish request received
9544 from the device
9545
9546 pUserData: user data will be passed back with the
9547 callback
9548
9549 @see
9550 @return Result of the function call
9551*/
9552WDI_Status
9553WDI_SetTDLSLinkEstablishReq
9554(
9555 WDI_SetTDLSLinkEstablishReqParamsType* pwdiTDLSLinkEstablishReqParams,
9556 WDI_SetTDLSLinkEstablishReqParamsRspCb wdiTDLSLinkEstablishReqRspCb,
9557 void* pUserData
9558);
Jeff Johnson295189b2012-06-20 16:38:30 -07009559
Atul Mittalc0f739f2014-07-31 13:47:47 +05309560WDI_Status
9561WDI_SetTDLSChanSwitchReq
9562(
9563 WDI_SetTDLSChanSwitchReqParamsType* pwdiTDLSChanSwitchReqParams,
9564 WDI_SetTDLSChanSwitchReqParamsRspCb wdiTDLSChanSwitchRReqRspCb,
9565 void* pUserData
9566);
Jeff Johnson295189b2012-06-20 16:38:30 -07009567/*========================================================================
9568
9569 Power Save APIs
9570
9571==========================================================================*/
9572
9573/**
9574 @brief WDI_SetPwrSaveCfgReq will be called when the upper MAC
9575 wants to set the power save related configurations of
9576 the WLAN Device. Upon the call of this API the WLAN DAL
9577 will pack and send a HAL Update CFG request message to
9578 the lower RIVA sub-system if DAL is in state STARTED.
9579
9580 In state BUSY this request will be queued. Request won't
9581 be allowed in any other state.
9582
9583 WDI_Start must have been called.
9584
9585 @param pwdiPowerSaveCfg: the power save cfg parameters as
9586 specified by the Device Interface
9587
9588 wdiSetPwrSaveCfgCb: callback for passing back the
9589 response of the set power save cfg operation received
9590 from the device
9591
9592 pUserData: user data will be passed back with the
9593 callback
9594
9595 @see WDI_Start
9596 @return Result of the function call
9597*/
9598WDI_Status
9599WDI_SetPwrSaveCfgReq
9600(
9601 WDI_UpdateCfgReqParamsType* pwdiPowerSaveCfg,
9602 WDI_SetPwrSaveCfgCb wdiSetPwrSaveCfgCb,
9603 void* pUserData
9604);
9605
9606/**
9607 @brief WDI_EnterImpsReq will be called when the upper MAC to
9608 request the device to get into IMPS power state. Upon
9609 the call of this API the WLAN DAL will send a HAL Enter
9610 IMPS request message to the lower RIVA sub-system if DAL
9611 is in state STARTED.
9612
9613 In state BUSY this request will be queued. Request won't
9614 be allowed in any other state.
9615
9616
9617 @param wdiEnterImpsRspCb: callback for passing back the
9618 response of the Enter IMPS operation received from the
9619 device
9620
9621 pUserData: user data will be passed back with the
9622 callback
9623
9624 @see WDI_Start
9625 @return Result of the function call
9626*/
9627WDI_Status
9628WDI_EnterImpsReq
9629(
Mihir Shetea4306052014-03-25 00:02:54 +05309630 WDI_EnterImpsReqParamsType *pwdiEnterImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009631 WDI_EnterImpsRspCb wdiEnterImpsRspCb,
9632 void* pUserData
9633);
9634
9635/**
9636 @brief WDI_ExitImpsReq will be called when the upper MAC to
9637 request the device to get out of IMPS power state. Upon
9638 the call of this API the WLAN DAL will send a HAL Exit
9639 IMPS request message to the lower RIVA sub-system if DAL
9640 is in state STARTED.
9641
9642 In state BUSY this request will be queued. Request won't
9643 be allowed in any other state.
9644
9645
9646
9647 @param wdiExitImpsRspCb: callback for passing back the response
9648 of the Exit IMPS operation received from the device
9649
9650 pUserData: user data will be passed back with the
9651 callback
9652
9653 @see WDI_Start
9654 @return Result of the function call
9655*/
9656WDI_Status
9657WDI_ExitImpsReq
9658(
Mahesh A Saptasagar329813b2014-12-15 12:16:51 +05309659 WDI_ExitImpsReqParamsType *pwdiExitImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009660 WDI_ExitImpsRspCb wdiExitImpsRspCb,
9661 void* pUserData
9662);
9663
9664/**
9665 @brief WDI_EnterBmpsReq will be called when the upper MAC to
9666 request the device to get into BMPS power state. Upon
9667 the call of this API the WLAN DAL will pack and send a
9668 HAL Enter BMPS request message to the lower RIVA
9669 sub-system if DAL is in state STARTED.
9670
9671 In state BUSY this request will be queued. Request won't
9672 be allowed in any other state.
9673
9674 WDI_PostAssocReq must have been called.
9675
9676 @param pwdiEnterBmpsReqParams: the Enter BMPS parameters as
9677 specified by the Device Interface
9678
9679 wdiEnterBmpsRspCb: callback for passing back the
9680 response of the Enter BMPS operation received from the
9681 device
9682
9683 pUserData: user data will be passed back with the
9684 callback
9685
9686 @see WDI_PostAssocReq
9687 @return Result of the function call
9688*/
9689WDI_Status
9690WDI_EnterBmpsReq
9691(
9692 WDI_EnterBmpsReqParamsType *pwdiEnterBmpsReqParams,
9693 WDI_EnterBmpsRspCb wdiEnterBmpsRspCb,
9694 void* pUserData
9695);
9696
9697/**
9698 @brief WDI_ExitBmpsReq will be called when the upper MAC to
9699 request the device to get out of BMPS power state. Upon
9700 the call of this API the WLAN DAL will pack and send a
9701 HAL Exit BMPS request message to the lower RIVA
9702 sub-system if DAL is in state STARTED.
9703
9704 In state BUSY this request will be queued. Request won't
9705 be allowed in any other state.
9706
9707 WDI_PostAssocReq must have been called.
9708
9709 @param pwdiExitBmpsReqParams: the Exit BMPS parameters as
9710 specified by the Device Interface
9711
9712 wdiExitBmpsRspCb: callback for passing back the response
9713 of the Exit BMPS operation received from the device
9714
9715 pUserData: user data will be passed back with the
9716 callback
9717
9718 @see WDI_PostAssocReq
9719 @return Result of the function call
9720*/
9721WDI_Status
9722WDI_ExitBmpsReq
9723(
9724 WDI_ExitBmpsReqParamsType *pwdiExitBmpsReqParams,
9725 WDI_ExitBmpsRspCb wdiExitBmpsRspCb,
9726 void* pUserData
9727);
9728
9729/**
9730 @brief WDI_EnterUapsdReq will be called when the upper MAC to
9731 request the device to get into UAPSD power state. Upon
9732 the call of this API the WLAN DAL will pack and send a
9733 HAL Enter UAPSD request message to the lower RIVA
9734 sub-system if DAL is in state STARTED.
9735
9736 In state BUSY this request will be queued. Request won't
9737 be allowed in any other state.
9738
9739 WDI_PostAssocReq must have been called.
9740 WDI_SetUapsdAcParamsReq must have been called.
9741
9742 @param pwdiEnterUapsdReqParams: the Enter UAPSD parameters as
9743 specified by the Device Interface
9744
9745 wdiEnterUapsdRspCb: callback for passing back the
9746 response of the Enter UAPSD operation received from the
9747 device
9748
9749 pUserData: user data will be passed back with the
9750 callback
9751
9752 @see WDI_PostAssocReq, WDI_SetUapsdAcParamsReq
9753 @return Result of the function call
9754*/
9755WDI_Status
9756WDI_EnterUapsdReq
9757(
9758 WDI_EnterUapsdReqParamsType *pwdiEnterUapsdReqParams,
9759 WDI_EnterUapsdRspCb wdiEnterUapsdRspCb,
9760 void* pUserData
9761);
9762
9763/**
9764 @brief WDI_ExitUapsdReq will be called when the upper MAC to
9765 request the device to get out of UAPSD power state. Upon
9766 the call of this API the WLAN DAL will send a HAL Exit
9767 UAPSD request message to the lower RIVA sub-system if
9768 DAL is in state STARTED.
9769
9770 In state BUSY this request will be queued. Request won't
9771 be allowed in any other state.
9772
9773 WDI_PostAssocReq must have been called.
9774
9775 @param wdiExitUapsdRspCb: callback for passing back the
9776 response of the Exit UAPSD operation received from the
9777 device
9778
9779 pUserData: user data will be passed back with the
9780 callback
9781
9782 @see WDI_PostAssocReq
9783 @return Result of the function call
9784*/
9785WDI_Status
9786WDI_ExitUapsdReq
9787(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07009788 WDI_ExitUapsdReqParamsType *pwdiExitUapsdReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009789 WDI_ExitUapsdRspCb wdiExitUapsdRspCb,
9790 void* pUserData
9791);
9792
9793/**
9794 @brief WDI_UpdateUapsdParamsReq will be called when the upper
9795 MAC wants to set the UAPSD related configurations
9796 of an associated STA (while acting as an AP) to the WLAN
9797 Device. Upon the call of this API the WLAN DAL will pack
9798 and send a HAL Update UAPSD params request message to
9799 the lower RIVA sub-system if DAL is in state STARTED.
9800
9801 In state BUSY this request will be queued. Request won't
9802 be allowed in any other state.
9803
9804 WDI_ConfigBSSReq must have been called.
9805
9806 @param pwdiUpdateUapsdReqParams: the UAPSD parameters
9807 as specified by the Device Interface
9808
9809 wdiUpdateUapsdParamsCb: callback for passing back the
9810 response of the update UAPSD params operation received
9811 from the device
9812
9813 pUserData: user data will be passed back with the
9814 callback
9815
9816 @see WDI_ConfigBSSReq
9817 @return Result of the function call
9818*/
9819WDI_Status
9820WDI_UpdateUapsdParamsReq
9821(
9822 WDI_UpdateUapsdReqParamsType *pwdiUpdateUapsdReqParams,
9823 WDI_UpdateUapsdParamsCb wdiUpdateUapsdParamsCb,
9824 void* pUserData
9825);
9826
9827/**
9828 @brief WDI_SetUapsdAcParamsReq will be called when the upper
9829 MAC wants to set the UAPSD related configurations before
9830 requesting for enter UAPSD power state to the WLAN
9831 Device. Upon the call of this API the WLAN DAL will pack
9832 and send a HAL Set UAPSD params request message to
9833 the lower RIVA sub-system if DAL is in state STARTED.
9834
9835 In state BUSY this request will be queued. Request won't
9836 be allowed in any other state.
9837
9838 WDI_PostAssocReq must have been called.
9839
9840 @param pwdiUapsdInfo: the UAPSD parameters as specified by
9841 the Device Interface
9842
9843 wdiSetUapsdAcParamsCb: callback for passing back the
9844 response of the set UAPSD params operation received from
9845 the device
9846
9847 pUserData: user data will be passed back with the
9848 callback
9849
9850 @see WDI_PostAssocReq
9851 @return Result of the function call
9852*/
9853WDI_Status
9854WDI_SetUapsdAcParamsReq
9855(
9856 WDI_SetUapsdAcParamsReqParamsType* pwdiPowerSaveCfg,
9857 WDI_SetUapsdAcParamsCb wdiSetUapsdAcParamsCb,
9858 void* pUserData
9859);
Sachin Ahuja715aafc2015-07-21 23:35:10 +05309860
9861
9862/**
9863 @brief WDI_FatalEventLogsReq will be called when the upper
9864 MAC wants to send the fatal event req. Upon the call of
9865 this API the WLAN DAL will pack and send a HAL
9866 Fatal event request message to the lower RIVA sub-system.
9867
9868 In state BUSY this request will be queued. Request won't
9869 be allowed in any other state.
9870
9871
9872 @param pwdiFatalEventLogsReqInfo: the Fatal event logs params
9873 as specified by the Device Interface
9874
9875 wdiFatalEventLogsRspCb: callback for passing back the
9876 response of the fatal event operation received
9877 from the device
9878
9879 pUserData: user data will be passed back with the
9880 callback
9881
9882 @return Result of the function call
9883*/
9884
9885WDI_Status
9886WDI_FatalEventLogsReq
9887(
9888 WDI_FatalEventLogsReqInfoType *pwdiFatalEventLogsReqInfo,
9889 WDI_FatalEventLogsRspCb wdiFatalEventLogsRspCb,
9890 void* pUserData
9891);
9892
Siddharth Bhal64246172015-02-27 01:04:37 +05309893/**
9894 @brief WDI_GetFrameLogReq will be called when the upper
9895 MAC wants to initialize frame logging. Upon the call of
9896 this API the WLAN DAL will pack and send a HAL
9897 Frame logging init request message to
9898 the lower RIVA sub-system.
9899
9900 In state BUSY this request will be queued. Request won't
9901 be allowed in any other state.
9902
9903
9904 @param pwdiGetFrameLogReqInfo: the Frame Logging params
9905 as specified by the Device Interface
9906
9907 wdiGetFrameLogReqCb: callback for passing back the
9908 response of the frame logging init operation received
9909 from the device
9910
9911 pUserData: user data will be passed back with the
9912 callback
9913
9914 @return Result of the function call
9915*/
9916WDI_Status
9917WDI_GetFrameLogReq
9918(
9919 WDI_GetFrameLogReqInfoType *pwdiGetFrameLogReqInfo,
9920 WDI_GetFrameLogRspCb wdiGetFrameLogReqCb,
9921 void* pUserData
9922);
Jeff Johnson295189b2012-06-20 16:38:30 -07009923
9924/**
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309925 @brief WDI_FWLoggingInitReq will be called when the upper
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309926 MAC wants to initialize frame logging. Upon the call of
9927 this API the WLAN DAL will pack and send a HAL
9928 Frame logging init request message to
9929 the lower RIVA sub-system.
9930
9931 In state BUSY this request will be queued. Request won't
9932 be allowed in any other state.
9933
9934
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309935 @param pwdiFWLoggingInitReqParams: the Frame Logging params
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309936 as specified by the Device Interface
9937
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309938 wdiFWLoggingInitReqCb: callback for passing back the
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309939 response of the frame logging init operation received
9940 from the device
9941
9942 pUserData: user data will be passed back with the
9943 callback
9944
9945 @return Result of the function call
9946*/
9947WDI_Status
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309948WDI_FWLoggingInitReq
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309949(
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309950 WDI_FWLoggingInitReqInfoType *pwdiFWLoggingInitReqInfo,
9951 WDI_FWLoggingInitRspCb wdiFWLoggingInitReqCb,
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309952 void* pUserData
9953);
9954
9955/**
Gupta, Kapil7c34b322015-09-30 13:12:35 +05309956 @brief WDI_StartRssiMonitorReq will be called when the upper
9957 MAC wants to initialize Rssi Monitor on a bssid.
9958 Upon the call of this API the WLAN DAL will pack and
9959 send a HAL Rssi Monitor init request message to
9960 the lower RIVA sub-system.
9961
9962 In state BUSY this request will be queued. Request won't
9963 be allowed in any other state.
9964
9965
9966 @param pwdiRssiMonitorInfo: the Rssi Monitor params
9967 as specified by the Device Interface
9968
9969 wdiRssiMonitorStartRspCb: callback for passing back the
9970 response of the rssi monitor operation received
9971 from the device
9972
9973 pUserData: user data will be passed back with the
9974 callback
9975
9976 @return Result of the function call
9977*/
9978WDI_Status
9979WDI_StartRssiMonitorReq
9980(
9981 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
9982 WDI_RssiMonitorStartRspCb wdiRssiMonitorStartRspCb,
9983 void* pUserData
9984);
9985
9986
9987/**
9988 @brief WDI_StopRssiMonitorReq will be called when the upper
9989 MAC wants to stop Rssi Monitor on a bssid.
9990 Upon the call of this API the WLAN DAL will pack and
9991 send a HAL Rssi Monitor stop request message to
9992 the lower RIVA sub-system.
9993
9994 In state BUSY this request will be queued. Request won't
9995 be allowed in any other state.
9996
9997
9998 @param pwdiRssiMonitorInfo: the Rssi Monitor params
9999 as specified by the Device Interface
10000
10001 wdiRssiMonitorStopRspCb: callback for passing back the
10002 response of the rssi monitor operation received
10003 from the device
10004
10005 pUserData: user data will be passed back with the
10006 callback
10007
10008 @return Result of the function call
10009*/
10010WDI_Status
10011WDI_StopRssiMonitorReq
10012(
10013 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
10014 WDI_RssiMonitorStopRspCb wdiRssiMonitorStopRspCb,
10015 void* pUserData
10016);
10017
10018/**
Jeff Johnson295189b2012-06-20 16:38:30 -070010019 @brief WDI_ConfigureRxpFilterReq will be called when the upper
10020 MAC wants to set/reset the RXP filters for received pkts
10021 (MC, BC etc.). Upon the call of this API the WLAN DAL will pack
10022 and send a HAL configure RXP filter request message to
10023 the lower RIVA sub-system.
10024
10025 In state BUSY this request will be queued. Request won't
10026 be allowed in any other state.
10027
10028
10029 @param pwdiConfigureRxpFilterReqParams: the RXP
10030 filter as specified by the Device
10031 Interface
10032
10033 wdiConfigureRxpFilterCb: callback for passing back the
10034 response of the configure RXP filter operation received
10035 from the device
10036
10037 pUserData: user data will be passed back with the
10038 callback
10039
10040 @return Result of the function call
10041*/
10042WDI_Status
10043WDI_ConfigureRxpFilterReq
10044(
10045 WDI_ConfigureRxpFilterReqParamsType *pwdiConfigureRxpFilterReqParams,
10046 WDI_ConfigureRxpFilterCb wdiConfigureRxpFilterCb,
10047 void* pUserData
10048);
10049
10050/**
10051 @brief WDI_SetBeaconFilterReq will be called when the upper MAC
10052 wants to set the beacon filters while in power save.
10053 Upon the call of this API the WLAN DAL will pack and
10054 send a Beacon filter request message to the
10055 lower RIVA sub-system.
10056
10057 In state BUSY this request will be queued. Request won't
10058 be allowed in any other state.
10059
10060
10061 @param pwdiBeaconFilterReqParams: the beacon
10062 filter as specified by the Device
10063 Interface
10064
10065 wdiBeaconFilterCb: callback for passing back the
10066 response of the set beacon filter operation received
10067 from the device
10068
10069 pUserData: user data will be passed back with the
10070 callback
10071
10072 @return Result of the function call
10073*/
10074WDI_Status
10075WDI_SetBeaconFilterReq
10076(
10077 WDI_BeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10078 WDI_SetBeaconFilterCb wdiBeaconFilterCb,
10079 void* pUserData
10080);
10081
10082/**
10083 @brief WDI_RemBeaconFilterReq will be called when the upper MAC
10084 wants to remove the beacon filter for perticular IE
10085 while in power save. Upon the call of this API the WLAN
10086 DAL will pack and send a remove Beacon filter request
10087 message to the lower RIVA sub-system.
10088
10089 In state BUSY this request will be queued. Request won't
10090 be allowed in any other state.
10091
10092
10093 @param pwdiBeaconFilterReqParams: the beacon
10094 filter as specified by the Device
10095 Interface
10096
10097 wdiBeaconFilterCb: callback for passing back the
10098 response of the remove beacon filter operation received
10099 from the device
10100
10101 pUserData: user data will be passed back with the
10102 callback
10103
10104 @return Result of the function call
10105*/
10106WDI_Status
10107WDI_RemBeaconFilterReq
10108(
10109 WDI_RemBeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10110 WDI_RemBeaconFilterCb wdiBeaconFilterCb,
10111 void* pUserData
10112);
10113
10114/**
10115 @brief WDI_SetRSSIThresholdsReq will be called when the upper
10116 MAC wants to set the RSSI thresholds related
10117 configurations while in power save. Upon the call of
10118 this API the WLAN DAL will pack and send a HAL Set RSSI
10119 thresholds request message to the lower RIVA
10120 sub-system if DAL is in state STARTED.
10121
10122 In state BUSY this request will be queued. Request won't
10123 be allowed in any other state.
10124
10125 WDI_PostAssocReq must have been called.
10126
10127 @param pwdiUapsdInfo: the UAPSD parameters as specified by
10128 the Device Interface
10129
10130 wdiSetUapsdAcParamsCb: callback for passing back the
10131 response of the set UAPSD params operation received from
10132 the device
10133
10134 pUserData: user data will be passed back with the
10135 callback
10136
10137 @see WDI_PostAssocReq
10138 @return Result of the function call
10139*/
10140WDI_Status
10141WDI_SetRSSIThresholdsReq
10142(
10143 WDI_SetRSSIThresholdsReqParamsType* pwdiRSSIThresholdsParams,
10144 WDI_SetRSSIThresholdsCb wdiSetRSSIThresholdsCb,
10145 void* pUserData
10146);
10147
10148/**
10149 @brief WDI_HostOffloadReq will be called when the upper MAC
10150 wants to set the filter to minimize unnecessary host
10151 wakeup due to broadcast traffic while in power save.
10152 Upon the call of this API the WLAN DAL will pack and
10153 send a HAL host offload request message to the
10154 lower RIVA sub-system if DAL is in state STARTED.
10155
10156 In state BUSY this request will be queued. Request won't
10157 be allowed in any other state.
10158
10159 WDI_PostAssocReq must have been called.
10160
10161 @param pwdiHostOffloadParams: the host offload as specified
10162 by the Device Interface
10163
10164 wdiHostOffloadCb: callback for passing back the response
10165 of the host offload operation received from the
10166 device
10167
10168 pUserData: user data will be passed back with the
10169 callback
10170
10171 @see WDI_PostAssocReq
10172 @return Result of the function call
10173*/
10174WDI_Status
10175WDI_HostOffloadReq
10176(
10177 WDI_HostOffloadReqParamsType* pwdiHostOffloadParams,
10178 WDI_HostOffloadCb wdiHostOffloadCb,
10179 void* pUserData
10180);
10181
10182/**
10183 @brief WDI_KeepAliveReq will be called when the upper MAC
10184 wants to set the filter to send NULL or unsolicited ARP responses
10185 and minimize unnecessary host wakeups due to while in power save.
10186 Upon the call of this API the WLAN DAL will pack and
10187 send a HAL Keep Alive request message to the
10188 lower RIVA sub-system if DAL is in state STARTED.
10189
10190 In state BUSY this request will be queued. Request won't
10191 be allowed in any other state.
10192
10193 WDI_PostAssocReq must have been called.
10194
10195 @param pwdiKeepAliveParams: the Keep Alive as specified
10196 by the Device Interface
10197
10198 wdiKeepAliveCb: callback for passing back the response
10199 of the Keep Alive operation received from the
10200 device
10201
10202 pUserData: user data will be passed back with the
10203 callback
10204
10205 @see WDI_PostAssocReq
10206 @return Result of the function call
10207*/
10208WDI_Status
10209WDI_KeepAliveReq
10210(
10211 WDI_KeepAliveReqParamsType* pwdiKeepAliveParams,
10212 WDI_KeepAliveCb wdiKeepAliveCb,
10213 void* pUserData
10214);
10215
10216/**
10217 @brief WDI_WowlAddBcPtrnReq will be called when the upper MAC
10218 wants to set the Wowl Bcast ptrn to minimize unnecessary
10219 host wakeup due to broadcast traffic while in power
10220 save. Upon the call of this API the WLAN DAL will pack
10221 and send a HAL Wowl Bcast ptrn request message to the
10222 lower RIVA sub-system if DAL is in state STARTED.
10223
10224 In state BUSY this request will be queued. Request won't
10225 be allowed in any other state.
10226
10227 WDI_PostAssocReq must have been called.
10228
10229 @param pwdiWowlAddBcPtrnParams: the Wowl bcast ptrn as
10230 specified by the Device Interface
10231
10232 wdiWowlAddBcPtrnCb: callback for passing back the
10233 response of the add Wowl bcast ptrn operation received
10234 from the device
10235
10236 pUserData: user data will be passed back with the
10237 callback
10238
10239 @see WDI_PostAssocReq
10240 @return Result of the function call
10241*/
10242WDI_Status
10243WDI_WowlAddBcPtrnReq
10244(
10245 WDI_WowlAddBcPtrnReqParamsType* pwdiWowlAddBcPtrnParams,
10246 WDI_WowlAddBcPtrnCb wdiWowlAddBcPtrnCb,
10247 void* pUserData
10248);
10249
10250/**
10251 @brief WDI_WowlDelBcPtrnReq will be called when the upper MAC
10252 wants to clear the Wowl Bcast ptrn. Upon the call of
10253 this API the WLAN DAL will pack and send a HAL delete
10254 Wowl Bcast ptrn request message to the lower RIVA
10255 sub-system if DAL is in state STARTED.
10256
10257 In state BUSY this request will be queued. Request won't
10258 be allowed in any other state.
10259
10260 WDI_WowlAddBcPtrnReq must have been called.
10261
10262 @param pwdiWowlDelBcPtrnParams: the Wowl bcast ptrn as
10263 specified by the Device Interface
10264
10265 wdiWowlDelBcPtrnCb: callback for passing back the
10266 response of the del Wowl bcast ptrn operation received
10267 from the device
10268
10269 pUserData: user data will be passed back with the
10270 callback
10271
10272 @see WDI_WowlAddBcPtrnReq
10273 @return Result of the function call
10274*/
10275WDI_Status
10276WDI_WowlDelBcPtrnReq
10277(
10278 WDI_WowlDelBcPtrnReqParamsType* pwdiWowlDelBcPtrnParams,
10279 WDI_WowlDelBcPtrnCb wdiWowlDelBcPtrnCb,
10280 void* pUserData
10281);
10282
10283/**
10284 @brief WDI_WowlEnterReq will be called when the upper MAC
10285 wants to enter the Wowl state to minimize unnecessary
10286 host wakeup while in power save. Upon the call of this
10287 API the WLAN DAL will pack and send a HAL Wowl enter
10288 request message to the lower RIVA sub-system if DAL is
10289 in state STARTED.
10290
10291 In state BUSY this request will be queued. Request won't
10292 be allowed in any other state.
10293
10294 WDI_PostAssocReq must have been called.
10295
10296 @param pwdiWowlEnterReqParams: the Wowl enter info as
10297 specified by the Device Interface
10298
10299 wdiWowlEnterReqCb: callback for passing back the
10300 response of the enter Wowl operation received from the
10301 device
10302
10303 pUserData: user data will be passed back with the
10304 callback
10305
10306 @see WDI_PostAssocReq
10307 @return Result of the function call
10308*/
10309WDI_Status
10310WDI_WowlEnterReq
10311(
10312 WDI_WowlEnterReqParamsType* pwdiWowlEnterParams,
10313 WDI_WowlEnterReqCb wdiWowlEnterCb,
10314 void* pUserData
10315);
10316
10317/**
10318 @brief WDI_WowlExitReq will be called when the upper MAC
10319 wants to exit the Wowl state. Upon the call of this API
10320 the WLAN DAL will pack and send a HAL Wowl exit request
10321 message to the lower RIVA sub-system if DAL is in state
10322 STARTED.
10323
10324 In state BUSY this request will be queued. Request won't
10325 be allowed in any other state.
10326
10327 WDI_WowlEnterReq must have been called.
10328
10329 @param pwdiWowlExitReqParams: the Wowl exit info as
10330 specified by the Device Interface
10331
10332 wdiWowlExitReqCb: callback for passing back the response
10333 of the exit Wowl operation received from the device
10334
10335 pUserData: user data will be passed back with the
10336 callback
10337
10338 @see WDI_WowlEnterReq
10339 @return Result of the function call
10340*/
10341WDI_Status
10342WDI_WowlExitReq
10343(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -070010344 WDI_WowlExitReqParamsType* pwdiWowlExitParams,
Jeff Johnson295189b2012-06-20 16:38:30 -070010345 WDI_WowlExitReqCb wdiWowlExitCb,
10346 void* pUserData
10347);
10348
10349/**
10350 @brief WDI_ConfigureAppsCpuWakeupStateReq will be called when
10351 the upper MAC wants to dynamically adjusts the listen
10352 interval based on the WLAN/MSM activity. Upon the call
10353 of this API the WLAN DAL will pack and send a HAL
10354 configure Apps Cpu Wakeup State request message to the
10355 lower RIVA sub-system.
10356
10357 In state BUSY this request will be queued. Request won't
10358 be allowed in any other state.
10359
10360
10361 @param pwdiConfigureAppsCpuWakeupStateReqParams: the
10362 Apps Cpu Wakeup State as specified by the
10363 Device Interface
10364
10365 wdiConfigureAppsCpuWakeupStateCb: callback for passing
10366 back the response of the configure Apps Cpu Wakeup State
10367 operation received from the device
10368
10369 pUserData: user data will be passed back with the
10370 callback
10371
10372 @return Result of the function call
10373*/
10374WDI_Status
10375WDI_ConfigureAppsCpuWakeupStateReq
10376(
10377 WDI_ConfigureAppsCpuWakeupStateReqParamsType *pwdiConfigureAppsCpuWakeupStateReqParams,
10378 WDI_ConfigureAppsCpuWakeupStateCb wdiConfigureAppsCpuWakeupStateCb,
10379 void* pUserData
10380);
10381/**
10382 @brief WDI_FlushAcReq will be called when the upper MAC wants
10383 to to perform a flush operation on a given AC. Upon the
10384 call of this API the WLAN DAL will pack and send a HAL
10385 Flush AC request message to the lower RIVA sub-system if
10386 DAL is in state STARTED.
10387
10388 In state BUSY this request will be queued. Request won't
10389 be allowed in any other state.
10390
10391
10392 @param pwdiFlushAcReqParams: the Flush AC parameters as
10393 specified by the Device Interface
10394
10395 wdiFlushAcRspCb: callback for passing back the response
10396 of the Flush AC operation received from the device
10397
10398 pUserData: user data will be passed back with the
10399 callback
10400
10401 @return Result of the function call
10402*/
10403WDI_Status
10404WDI_FlushAcReq
10405(
10406 WDI_FlushAcReqParamsType* pwdiFlushAcReqParams,
10407 WDI_FlushAcRspCb wdiFlushAcRspCb,
10408 void* pUserData
10409);
10410
10411/**
10412 @brief WDI_BtAmpEventReq will be called when the upper MAC
10413 wants to notify the lower mac on a BT AMP event. This is
10414 to inform BTC-SLM that some BT AMP event occurred. Upon
10415 the call of this API the WLAN DAL will pack and send a
10416 HAL BT AMP event request message to the lower RIVA
10417 sub-system if DAL is in state STARTED.
10418
10419 In state BUSY this request will be queued. Request won't
10420 be allowed in any other state.
10421
10422
10423 @param wdiBtAmpEventReqParams: the BT AMP event parameters as
10424 specified by the Device Interface
10425
10426 wdiBtAmpEventRspCb: callback for passing back the
10427 response of the BT AMP event operation received from the
10428 device
10429
10430 pUserData: user data will be passed back with the
10431 callback
10432
10433 @return Result of the function call
10434*/
10435WDI_Status
10436WDI_BtAmpEventReq
10437(
10438 WDI_BtAmpEventParamsType* pwdiBtAmpEventReqParams,
10439 WDI_BtAmpEventRspCb wdiBtAmpEventRspCb,
10440 void* pUserData
10441);
10442
Jeff Johnsone7245742012-09-05 17:12:55 -070010443#ifdef FEATURE_OEM_DATA_SUPPORT
10444/**
10445 @brief WDI_Start oem data Req will be called when the upper MAC
10446 wants to notify the lower mac on a oem data Req event.Upon
10447 the call of this API the WLAN DAL will pack and send a
10448 HAL OEM Data Req event request message to the lower RIVA
10449 sub-system if DAL is in state STARTED.
10450
10451 In state BUSY this request will be queued. Request won't
10452 be allowed in any other state.
10453
10454
10455 @param pWdiOemDataReqParams: the oem data req parameters as
10456 specified by the Device Interface
10457
10458 wdiStartOemDataRspCb: callback for passing back the
10459 response of the Oem Data Req received from the
10460 device
10461
10462 pUserData: user data will be passed back with the
10463 callback
10464
10465 @return Result of the function call
10466*/
10467WDI_Status
10468WDI_StartOemDataReq
10469(
10470 WDI_oemDataReqParamsType* pWdiOemDataReqParams,
10471 WDI_oemDataRspCb wdiOemDataRspCb,
10472 void* pUserData
10473);
10474#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010475
10476/*========================================================================
10477
10478 CONTROL APIs
10479
10480==========================================================================*/
10481/**
10482 @brief WDI_SwitchChReq will be called when the upper MAC wants
10483 the WLAN HW to change the current channel of operation.
10484 Upon the call of this API the WLAN DAL will pack and
10485 send a HAL Start request message to the lower RIVA
10486 sub-system if DAL is in state STARTED.
10487
10488 In state BUSY this request will be queued. Request won't
10489 be allowed in any other state.
10490
10491 WDI_Start must have been called.
10492
10493 @param wdiSwitchChReqParams: the switch ch parameters as
10494 specified by the Device Interface
10495
10496 wdiSwitchChRspCb: callback for passing back the response
10497 of the switch ch operation received from the device
10498
10499 pUserData: user data will be passed back with the
10500 callback
10501
10502 @see WDI_Start
10503 @return Result of the function call
10504*/
10505WDI_Status
10506WDI_SwitchChReq
10507(
10508 WDI_SwitchChReqParamsType* pwdiSwitchChReqParams,
10509 WDI_SwitchChRspCb wdiSwitchChRspCb,
10510 void* pUserData
10511);
10512
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010513/**
Kalikinkar dhara1e83b772014-02-06 12:59:22 -080010514 @brief WDI_SwitchChReq_V1 is similar to WDI_SwitchChReq except
10515 it also send type source for the channel change.
10516 WDI_Start must have been called.
10517
10518 @param wdiSwitchChReqParams: the switch ch parameters as
10519 specified by the Device Interface
10520
10521 wdiSwitchChRspCb: callback for passing back the response
10522 of the switch ch operation received from the device
10523
10524 pUserData: user data will be passed back with the
10525 callback
10526
10527 @see WDI_Start
10528 @return Result of the function call
10529*/
10530
10531WDI_Status
10532WDI_SwitchChReq_V1
10533(
10534 WDI_SwitchChReqParamsType_V1* pwdiSwitchChReqParams,
10535 WDI_SwitchChRspCb_V1 wdiSwitchChRspCb,
10536 void* pUserData
10537);
10538
10539/**
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010540 @brief WDI_UpdateChannelReq will be called when the upper MAC
10541 wants to update the channel list on change in country code.
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010542 In state BUSY this request will be queued. Request won't
10543 be allowed in any other state.
10544
10545 WDI_UpdateChannelReq must have been called.
10546
10547 @param wdiUpdateChannelReqParams: the updated channel parameters
10548 as specified by the Device Interface
10549
10550 wdiUpdateChannelRspCb: callback for passing back the
10551 response of the update channel operation received from
10552 the device
10553
10554 pUserData: user data will be passed back with the
10555 callback
10556
10557 @return Result of the function call
10558*/
10559WDI_Status
10560WDI_UpdateChannelReq
10561(
10562 WDI_UpdateChReqParamsType *pwdiUpdateChannelReqParams,
10563 WDI_UpdateChannelRspCb wdiUpdateChannelRspCb,
10564 void* pUserData
10565);
Jeff Johnson295189b2012-06-20 16:38:30 -070010566
10567/**
10568 @brief WDI_ConfigSTAReq will be called when the upper MAC
10569 wishes to add or update a STA in HW. Upon the call of
10570 this API the WLAN DAL will pack and send a HAL Start
10571 message request message to the lower RIVA sub-system if
10572 DAL is in state STARTED.
10573
10574 In state BUSY this request will be queued. Request won't
10575 be allowed in any other state.
10576
10577 WDI_Start must have been called.
10578
10579 @param wdiConfigSTAReqParams: the config STA parameters as
10580 specified by the Device Interface
10581
10582 wdiConfigSTARspCb: callback for passing back the
10583 response of the config STA operation received from the
10584 device
10585
10586 pUserData: user data will be passed back with the
10587 callback
10588
10589 @see WDI_Start
10590 @return Result of the function call
10591*/
10592WDI_Status
10593WDI_ConfigSTAReq
10594(
10595 WDI_ConfigSTAReqParamsType* pwdiConfigSTAReqParams,
10596 WDI_ConfigSTARspCb wdiConfigSTARspCb,
10597 void* pUserData
10598);
10599
10600/**
10601 @brief WDI_SetLinkStateReq will be called when the upper MAC
10602 wants to change the state of an ongoing link. Upon the
10603 call of this API the WLAN DAL will pack and send a HAL
10604 Start message request message to the lower RIVA
10605 sub-system if DAL is in state STARTED.
10606
10607 In state BUSY this request will be queued. Request won't
10608 be allowed in any other state.
10609
10610 WDI_JoinReq must have been called.
10611
10612 @param wdiSetLinkStateReqParams: the set link state parameters
10613 as specified by the Device Interface
10614
10615 wdiSetLinkStateRspCb: callback for passing back the
10616 response of the set link state operation received from
10617 the device
10618
10619 pUserData: user data will be passed back with the
10620 callback
10621
10622 @see WDI_JoinStartReq
10623 @return Result of the function call
10624*/
10625WDI_Status
10626WDI_SetLinkStateReq
10627(
10628 WDI_SetLinkReqParamsType* pwdiSetLinkStateReqParams,
10629 WDI_SetLinkStateRspCb wdiSetLinkStateRspCb,
10630 void* pUserData
10631);
10632
10633
10634/**
10635 @brief WDI_GetStatsReq will be called when the upper MAC wants
10636 to get statistics (MIB counters) from the device. Upon
10637 the call of this API the WLAN DAL will pack and send a
10638 HAL Start request message to the lower RIVA sub-system
10639 if DAL is in state STARTED.
10640
10641 In state BUSY this request will be queued. Request won't
10642 be allowed in any other state.
10643
10644 WDI_Start must have been called.
10645
10646 @param wdiGetStatsReqParams: the stats parameters to get as
10647 specified by the Device Interface
10648
10649 wdiGetStatsRspCb: callback for passing back the response
10650 of the get stats operation received from the device
10651
10652 pUserData: user data will be passed back with the
10653 callback
10654
10655 @see WDI_Start
10656 @return Result of the function call
10657*/
10658WDI_Status
10659WDI_GetStatsReq
10660(
10661 WDI_GetStatsReqParamsType* pwdiGetStatsReqParams,
10662 WDI_GetStatsRspCb wdiGetStatsRspCb,
10663 void* pUserData
10664);
10665
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080010666#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -080010667/**
10668 @brief WDI_GetRoamRssiReq will be called when the upper MAC wants
10669 to get roam rssi from the device. Upon
10670 the call of this API the WLAN DAL will pack and send a
10671 HAL Start request message to the lower RIVA sub-system
10672 if DAL is in state STARTED.
10673
10674 In state BUSY this request will be queued. Request won't
10675 be allowed in any other state.
10676
10677 WDI_Start must have been called.
10678
10679 @param wdiGetRoamRssiReqParams: the stats parameters to get as
10680 specified by the Device Interface
10681
10682 wdiGetRoamRssispCb: callback for passing back the response
10683 of the get stats operation received from the device
10684
10685 pUserData: user data will be passed back with the
10686 callback
10687
10688 @see WDI_Start
10689 @return Result of the function call
10690*/
10691WDI_Status
10692WDI_GetRoamRssiReq
10693(
10694 WDI_GetRoamRssiReqParamsType* pwdiGetRoamRssiReqParams,
10695 WDI_GetRoamRssiRspCb wdiGetRoamRssiRspCb,
10696 void* pUserData
10697);
10698#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010699
10700/**
10701 @brief WDI_UpdateCfgReq will be called when the upper MAC when
10702 it wishes to change the configuration of the WLAN
10703 Device. Upon the call of this API the WLAN DAL will pack
10704 and send a HAL Update CFG request message to the lower
10705 RIVA sub-system if DAL is in state STARTED.
10706
10707 In state BUSY this request will be queued. Request won't
10708 be allowed in any other state.
10709
10710 WDI_Start must have been called.
10711
10712 @param wdiUpdateCfgReqParams: the update cfg parameters as
10713 specified by the Device Interface
10714
10715 wdiUpdateCfgsRspCb: callback for passing back the
10716 response of the update cfg operation received from the
10717 device
10718
10719 pUserData: user data will be passed back with the
10720 callback
10721
10722 @see WDI_Start
10723 @return Result of the function call
10724*/
10725WDI_Status
10726WDI_UpdateCfgReq
10727(
10728 WDI_UpdateCfgReqParamsType* pwdiUpdateCfgReqParams,
10729 WDI_UpdateCfgRspCb wdiUpdateCfgsRspCb,
10730 void* pUserData
10731);
10732
10733/**
10734 @brief WDI_NvDownloadReq will be called by the UMAC to dowload the NV blob
10735 to the NV memory.
10736
10737 @param wdiNvDownloadReqParams: the NV Download parameters as specified by
10738 the Device Interface
10739
10740 wdiNvDownloadRspCb: callback for passing back the response of
10741 the NV Download operation received from the device
10742
10743 pUserData: user data will be passed back with the
10744 callback
10745
10746 @see WDI_PostAssocReq
10747 @return Result of the function call
10748*/
10749WDI_Status
10750WDI_NvDownloadReq
10751(
10752 WDI_NvDownloadReqParamsType* pwdiNvDownloadReqParams,
10753 WDI_NvDownloadRspCb wdiNvDownloadRspCb,
10754 void* pUserData
10755);
10756/**
10757 @brief WDI_AddBAReq will be called when the upper MAC has setup
10758 successfully a BA session and needs to notify the HW for
10759 the appropriate settings to take place. Upon the call of
10760 this API the WLAN DAL will pack and send a HAL Add BA
10761 request message to the lower RIVA sub-system if DAL is
10762 in state STARTED.
10763
10764 In state BUSY this request will be queued. Request won't
10765 be allowed in any other state.
10766
10767 WDI_PostAssocReq must have been called.
10768
10769 @param wdiAddBAReqParams: the add BA parameters as specified by
10770 the Device Interface
10771
10772 wdiAddBARspCb: callback for passing back the response of
10773 the add BA operation received from the device
10774
10775 pUserData: user data will be passed back with the
10776 callback
10777
10778 @see WDI_PostAssocReq
10779 @return Result of the function call
10780*/
10781WDI_Status
10782WDI_AddBAReq
10783(
10784 WDI_AddBAReqParamsType* pwdiAddBAReqParams,
10785 WDI_AddBARspCb wdiAddBARspCb,
10786 void* pUserData
10787);
10788
10789/**
10790 @brief WDI_TriggerBAReq will be called when the upper MAC has setup
10791 successfully a BA session and needs to notify the HW for
10792 the appropriate settings to take place. Upon the call of
10793 this API the WLAN DAL will pack and send a HAL Add BA
10794 request message to the lower RIVA sub-system if DAL is
10795 in state STARTED.
10796
10797 In state BUSY this request will be queued. Request won't
10798 be allowed in any other state.
10799
10800 WDI_PostAssocReq must have been called.
10801
10802 @param wdiAddBAReqParams: the add BA parameters as specified by
10803 the Device Interface
Abhishek Singhe5066502016-02-05 18:07:41 +053010804 baReqParamUserDataSize: user data size of wdiAddBAReqParams
Jeff Johnson295189b2012-06-20 16:38:30 -070010805 wdiAddBARspCb: callback for passing back the response of
10806 the add BA operation received from the device
10807
10808 pUserData: user data will be passed back with the
10809 callback
10810
10811 @see WDI_PostAssocReq
10812 @return Result of the function call
10813*/
10814WDI_Status
10815WDI_TriggerBAReq
10816(
10817 WDI_TriggerBAReqParamsType* pwdiTriggerBAReqParams,
Abhishek Singhe5066502016-02-05 18:07:41 +053010818 wpt_uint8 baReqParamUserDataSize,
Jeff Johnson295189b2012-06-20 16:38:30 -070010819 WDI_TriggerBARspCb wdiTriggerBARspCb,
10820 void* pUserData
10821);
10822
10823
10824/**
10825 @brief WDI_IsHwFrameTxTranslationCapable checks to see if HW
10826 frame xtl is enabled for a particular STA.
10827
10828 WDI_PostAssocReq must have been called.
10829
10830 @param uSTAIdx: STA index
10831
10832 @see WDI_PostAssocReq
10833 @return Result of the function call
10834*/
10835wpt_boolean WDI_IsHwFrameTxTranslationCapable
10836(
10837 wpt_uint8 uSTAIdx
10838);
10839
Katya Nigam6201c3e2014-05-27 17:51:42 +053010840
10841/**
10842 @brief WDI_IsSelfSTA - check if staid is self sta index
10843
10844 @param pWDICtx: pointer to the WLAN DAL context
10845 ucSTAIdx: station index
10846
10847 @return Result of the function call
10848*/
10849
10850wpt_boolean
10851WDI_IsSelfSTA
10852(
10853 void* pWDICtx,
10854 wpt_uint8 ucSTAIdx
10855);
10856
10857
Jeff Johnson295189b2012-06-20 16:38:30 -070010858#ifdef WLAN_FEATURE_VOWIFI_11R
10859/**
10860 @brief WDI_AggrAddTSReq will be called when the upper MAC to inform
10861 the device of a successful add TSpec negotiation for 11r. HW
10862 needs to receive the TSpec Info from the UMAC in order
10863 to configure properly the QoS data traffic. Upon the
10864 call of this API the WLAN DAL will pack and send a HAL
10865 Aggregated Add TS request message to the lower RIVA sub-system if
10866 DAL is in state STARTED.
10867
10868 In state BUSY this request will be queued. Request won't
10869 be allowed in any other state.
10870
10871 WDI_PostAssocReq must have been called.
10872
10873 @param wdiAggrAddTsReqParams: the add TS parameters as specified by
10874 the Device Interface
10875
10876 wdiAggrAddTsRspCb: callback for passing back the response of
10877 the add TS operation received from the device
10878
10879 pUserData: user data will be passed back with the
10880 callback
10881
10882 @see WDI_PostAssocReq
10883 @return Result of the function call
10884*/
10885WDI_Status
10886WDI_AggrAddTSReq
10887(
10888 WDI_AggrAddTSReqParamsType* pwdiAddTsReqParams,
10889 WDI_AggrAddTsRspCb wdiAggrAddTsRspCb,
10890 void* pUserData
10891);
10892#endif /* WLAN_FEATURE_VOWIFI_11R */
10893/**
10894 @brief WDI_STATableInit - Initializes the STA tables.
10895 Allocates the necesary memory.
10896
10897
10898 @param pWDICtx: pointer to the WLAN DAL context
10899
10900 @see
10901 @return Result of the function call
10902*/
10903
10904WDI_Status WDI_StubRunTest
10905(
10906 wpt_uint8 ucTestNo
10907);
10908
Jeff Johnson295189b2012-06-20 16:38:30 -070010909/**
10910 @brief WDI_FTMCommandReq -
10911 Route FTMRequest Command to HAL
10912
10913 @param ftmCommandReq: FTM request command body
10914 @param ftmCommandRspCb: Response CB
10915 @param pUserData: User data will be included with CB
10916
10917 @return Result of the function call
10918*/
10919WDI_Status WDI_FTMCommandReq
10920(
10921 WDI_FTMCommandReqType *ftmCommandReq,
10922 WDI_FTMCommandRspCb ftmCommandRspCb,
10923 void *pUserData
10924);
Jeff Johnson295189b2012-06-20 16:38:30 -070010925
10926/**
10927 @brief WDI_HostResumeReq will be called
10928
10929 In state BUSY this request will be queued. Request won't
10930 be allowed in any other state.
10931
10932
10933 @param pwdiResumeReqParams: as specified by
10934 the Device Interface
10935
10936 wdiResumeReqRspCb: callback for passing back the response of
10937 the Resume Req received from the device
10938
10939 pUserData: user data will be passed back with the
10940 callback
10941
10942 @see WDI_PostAssocReq
10943 @return Result of the function call
10944*/
10945WDI_Status
10946WDI_HostResumeReq
10947(
10948 WDI_ResumeParamsType* pwdiResumeReqParams,
10949 WDI_HostResumeEventRspCb wdiResumeReqRspCb,
10950 void* pUserData
10951);
10952
10953/**
10954 @brief WDI_GetAvailableResCount - Function to get the available resource
10955 for data and managemnt frames.
10956
10957 @param pContext: pointer to the WDI context
10958 @param wdiResPool: type of resource pool requesting
10959 @see
10960 @return Result of the function call
10961*/
10962
10963wpt_uint32 WDI_GetAvailableResCount
10964(
10965 void *pContext,
10966 WDI_ResPoolType wdiResPool
10967);
10968
10969/**
10970 @brief WDI_SetAddSTASelfReq will be called when the
10971 UMAC wanted to add self STA while opening any new session
10972 In state BUSY this request will be queued. Request won't
10973 be allowed in any other state.
10974
10975
10976 @param pwdiAddSTASelfParams: the add self sta parameters as
10977 specified by the Device Interface
10978
10979 pUserData: user data will be passed back with the
10980 callback
10981
10982 @see
10983 @return Result of the function call
10984*/
10985WDI_Status
10986WDI_AddSTASelfReq
10987(
10988 WDI_AddSTASelfReqParamsType* pwdiAddSTASelfReqParams,
10989 WDI_AddSTASelfParamsRspCb wdiAddSTASelfReqParamsRspCb,
10990 void* pUserData
10991);
10992
10993
10994/**
10995 @brief WDI_DelSTASelfReq will be called .
10996
10997 @param WDI_DelSTASelfReqParamsType
10998
10999 WDI_DelSTASelfRspCb: callback for passing back the
11000 response of the del sta self operation received from the
11001 device
11002
11003 pUserData: user data will be passed back with the
11004 callback
11005
11006 @see WDI_PostAssocReq
11007 @return Result of the function call
11008*/
11009WDI_Status
11010WDI_DelSTASelfReq
11011(
11012 WDI_DelSTASelfReqParamsType* pwdiDelStaSelfParams,
11013 WDI_DelSTASelfRspCb wdiDelStaSelfRspCb,
11014 void* pUserData
11015);
11016
11017/**
11018 @brief WDI_HostSuspendInd
11019
11020 Suspend Indication from the upper layer will be sent
11021 down to HAL
11022
11023 @param WDI_SuspendParamsType
11024
11025 @see
11026
11027 @return Status of the request
11028*/
11029WDI_Status
11030WDI_HostSuspendInd
11031(
11032 WDI_SuspendParamsType* pwdiSuspendIndParams
11033);
11034
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -080011035/**
11036 @brief WDI_TrafficStatsInd
11037
11038 Traffic Stats from the upper layer will be sent
11039 down to HAL
11040
11041 @param WDI_TrafficStatsIndType
11042
11043 @see
11044
11045 @return Status of the request
11046*/
11047WDI_Status
11048WDI_TrafficStatsInd
11049(
11050 WDI_TrafficStatsIndType *pWdiTrafficStatsIndParams
11051);
11052
Chet Lanctot186b5732013-03-18 10:26:30 -070011053#ifdef WLAN_FEATURE_11W
11054/**
11055 @brief WDI_ExcludeUnencryptedInd
11056 Register with HAL to receive/drop unencrypted frames
11057
11058 @param WDI_ExcludeUnencryptIndType
11059
11060 @see
11061
11062 @return Status of the request
11063*/
11064WDI_Status
11065WDI_ExcludeUnencryptedInd
11066(
11067 WDI_ExcludeUnencryptIndType *pWdiExcUnencParams
11068);
11069#endif
11070
Yue Mab9c86f42013-08-14 15:59:08 -070011071/**
11072 @brief WDI_AddPeriodicTxPtrnInd
11073
11074 @param WDI_AddPeriodicTxPtrnParamsType
11075
11076 @see
11077
11078 @return Status of the request
11079*/
11080WDI_Status
11081WDI_AddPeriodicTxPtrnInd
11082(
11083 WDI_AddPeriodicTxPtrnParamsType *addPeriodicTxPtrnParams
11084);
11085
11086/**
11087 @brief WDI_DelPeriodicTxPtrnInd
11088
11089 @param WDI_DelPeriodicTxPtrnParamsType
11090
11091 @see
11092
11093 @return Status of the request
11094*/
11095WDI_Status
11096WDI_DelPeriodicTxPtrnInd
11097(
11098 WDI_DelPeriodicTxPtrnParamsType *delPeriodicTxPtrnParams
11099);
11100
Jeff Johnson295189b2012-06-20 16:38:30 -070011101#ifdef FEATURE_WLAN_SCAN_PNO
11102/**
11103 @brief WDI_SetPreferredNetworkList
11104
11105 @param pwdiPNOScanReqParams: the Set PNO as specified
11106 by the Device Interface
11107
11108 wdiPNOScanCb: callback for passing back the response
11109 of the Set PNO operation received from the
11110 device
11111
11112 pUserData: user data will be passed back with the
11113 callback
11114
11115 @see WDI_PostAssocReq
11116 @return Result of the function call
11117*/
11118WDI_Status
11119WDI_SetPreferredNetworkReq
11120(
11121 WDI_PNOScanReqParamsType* pwdiPNOScanReqParams,
11122 WDI_PNOScanCb wdiPNOScanCb,
11123 void* pUserData
11124);
11125
11126/**
11127 @brief WDI_SetRssiFilterReq
11128
11129 @param pwdiRssiFilterReqParams: the Set RSSI Filter as
11130 specified by the Device Interface
11131
11132 wdiRssiFilterCb: callback for passing back the response
11133 of the Set RSSI Filter operation received from the
11134 device
11135
11136 pUserData: user data will be passed back with the
11137 callback
11138
11139 @see WDI_PostAssocReq
11140 @return Result of the function call
11141*/
11142WDI_Status
11143WDI_SetRssiFilterReq
11144(
11145 WDI_SetRssiFilterReqParamsType* pwdiRssiFilterReqParams,
11146 WDI_RssiFilterCb wdiRssiFilterCb,
11147 void* pUserData
11148);
11149
11150/**
11151 @brief WDI_UpdateScanParams
11152
11153 @param pwdiUpdateScanParamsInfoType: the Update Scan Params as specified
11154 by the Device Interface
11155
11156 wdiUpdateScanParamsCb: callback for passing back the response
11157 of the Set PNO operation received from the
11158 device
11159
11160 pUserData: user data will be passed back with the
11161 callback
11162
11163 @see WDI_PostAssocReq
11164 @return Result of the function call
11165*/
11166WDI_Status
11167WDI_UpdateScanParamsReq
11168(
11169 WDI_UpdateScanParamsInfoType* pwdiUpdateScanParamsInfoType,
11170 WDI_UpdateScanParamsCb wdiUpdateScanParamsCb,
11171 void* pUserData
11172);
11173#endif // FEATURE_WLAN_SCAN_PNO
11174
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011175#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
11176/**
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011177 @brief WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011178
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011179 @param pwdiRoamScanOffloadReqParams: Start Roam Candidate Lookup Req as specified
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011180 by the Device Interface
11181
11182 wdiRoamOffloadScanCb: callback for passing back the response
11183 of the Start Roam Candidate Lookup operation received from the
11184 device
11185
11186 pUserData: user data will be passed back with the
11187 callback
11188
11189 @return Result of the function call
11190*/
11191WDI_Status
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011192WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011193(
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011194 WDI_RoamScanOffloadReqParamsType *pwdiRoamScanOffloadReqParams,
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011195 WDI_RoamOffloadScanCb wdiRoamOffloadScancb,
11196 void* pUserData
11197);
11198#endif
11199
Jeff Johnson295189b2012-06-20 16:38:30 -070011200/**
11201 @brief WDI_SetTxPerTrackingReq will be called when the upper MAC
11202 wants to set the Tx Per Tracking configurations.
11203 Upon the call of this API the WLAN DAL will pack
11204 and send a HAL Set Tx Per Tracking request message to the
11205 lower RIVA sub-system if DAL is in state STARTED.
11206
11207 In state BUSY this request will be queued. Request won't
11208 be allowed in any other state.
11209
11210 @param wdiSetTxPerTrackingConf: the Set Tx PER Tracking configurations as
11211 specified by the Device Interface
11212
11213 wdiSetTxPerTrackingCb: callback for passing back the
11214 response of the set Tx PER Tracking configurations operation received
11215 from the device
11216
11217 pUserData: user data will be passed back with the
11218 callback
11219
11220 @return Result of the function call
11221*/
11222WDI_Status
11223WDI_SetTxPerTrackingReq
11224(
11225 WDI_SetTxPerTrackingReqParamsType* pwdiSetTxPerTrackingReqParams,
11226 WDI_SetTxPerTrackingRspCb pwdiSetTxPerTrackingRspCb,
11227 void* pUserData
11228);
11229
11230/**
11231 @brief WDI_SetTmLevelReq
11232 If HW Thermal condition changed, driver should react based on new
11233 HW thermal condition.
11234
11235 @param pwdiSetTmLevelReq: New thermal condition information
11236
11237 pwdiSetTmLevelRspCb: callback
11238
11239 usrData: user data will be passed back with the
11240 callback
11241
11242 @return Result of the function call
11243*/
11244WDI_Status
11245WDI_SetTmLevelReq
11246(
11247 WDI_SetTmLevelReqType *pwdiSetTmLevelReq,
11248 WDI_SetTmLevelCb pwdiSetTmLevelRspCb,
11249 void *usrData
11250);
11251
11252#ifdef WLAN_FEATURE_PACKET_FILTERING
11253/**
11254 @brief WDI_8023MulticastListReq
11255
11256 @param pwdiRcvFltPktSetMcListReqInfo: the Set 8023 Multicast
11257 List as specified by the Device Interface
11258
11259 wdi8023MulticastListCallback: callback for passing back
11260 the response of the Set 8023 Multicast List operation
11261 received from the device
11262
11263 pUserData: user data will be passed back with the
11264 callback
11265
11266 @see WDI_PostAssocReq
11267 @return Result of the function call
11268*/
11269WDI_Status
11270WDI_8023MulticastListReq
11271(
11272 WDI_RcvFltPktSetMcListReqParamsType* pwdiRcvFltPktSetMcListReqInfo,
11273 WDI_8023MulticastListCb wdi8023MulticastListCallback,
11274 void* pUserData
11275);
11276
11277/**
11278 @brief WDI_ReceiveFilterSetFilterReq
11279
11280 @param pwdiSetRcvPktFilterReqInfo: the Set Receive Filter as
11281 specified by the Device Interface
11282
11283 wdiReceiveFilterSetFilterReqCallback: callback for
11284 passing back the response of the Set Receive Filter
11285 operation received from the device
11286
11287 pUserData: user data will be passed back with the
11288 callback
11289
11290 @see WDI_PostAssocReq
11291 @return Result of the function call
11292*/
11293WDI_Status
11294WDI_ReceiveFilterSetFilterReq
11295(
11296 WDI_SetRcvPktFilterReqParamsType* pwdiSetRcvPktFilterReqInfo,
11297 WDI_ReceiveFilterSetFilterCb wdiReceiveFilterSetFilterReqCallback,
11298 void* pUserData
11299);
11300
11301/**
11302 @brief WDI_PCFilterMatchCountReq
11303
11304 @param pwdiRcvFltPktMatchCntReqInfo: get D0 PC Filter Match
11305 Count
11306
11307 wdiPCFilterMatchCountCallback: callback for passing back
11308 the response of the D0 PC Filter Match Count operation
11309 received from the device
11310
11311 pUserData: user data will be passed back with the
11312 callback
11313
11314 @see WDI_PostAssocReq
11315 @return Result of the function call
11316*/
11317WDI_Status
11318WDI_FilterMatchCountReq
11319(
11320 WDI_RcvFltPktMatchCntReqParamsType* pwdiRcvFltPktMatchCntReqInfo,
11321 WDI_FilterMatchCountCb wdiFilterMatchCountCallback,
11322 void* pUserData
11323);
11324
11325/**
11326 @brief WDI_ReceiveFilterClearFilterReq
11327
11328 @param pwdiRcvFltPktClearReqInfo: the Clear Filter as
11329 specified by the Device Interface
11330
11331 wdiReceiveFilterClearFilterCallback: callback for
11332 passing back the response of the Clear Filter
11333 operation received from the device
11334
11335 pUserData: user data will be passed back with the
11336 callback
11337
11338 @see WDI_PostAssocReq
11339 @return Result of the function call
11340*/
11341WDI_Status
11342WDI_ReceiveFilterClearFilterReq
11343(
11344 WDI_RcvFltPktClearReqParamsType* pwdiRcvFltPktClearReqInfo,
11345 WDI_ReceiveFilterClearFilterCb wdiReceiveFilterClearFilterCallback,
11346 void* pUserData
11347);
11348#endif // WLAN_FEATURE_PACKET_FILTERING
11349
11350/**
11351 @brief WDI_HALDumpCmdReq
11352 Post HAL DUMP Command Event
11353
11354 @param halDumpCmdReqParams: Hal Dump Command Body
11355 @param halDumpCmdRspCb: callback for passing back the
11356 response
11357 @param pUserData: Client Data
11358
11359 @see
11360 @return Result of the function call
11361*/
11362WDI_Status WDI_HALDumpCmdReq(
11363 WDI_HALDumpCmdReqParamsType *halDumpCmdReqParams,
11364 WDI_HALDumpCmdRspCb halDumpCmdRspCb,
11365 void *pUserData
11366);
11367
11368
11369/**
11370 @brief WDI_SetPowerParamsReq
11371
11372 @param pwdiPowerParamsReqParams: the Set Power Params as
11373 specified by the Device Interface
11374
11375 wdiPowerParamsCb: callback for passing back the response
11376 of the Set Power Params operation received from the
11377 device
11378
11379 pUserData: user data will be passed back with the
11380 callback
11381
11382 @return Result of the function call
11383*/
11384WDI_Status
11385WDI_SetPowerParamsReq
11386(
11387 WDI_SetPowerParamsReqParamsType* pwdiPowerParamsReqParams,
11388 WDI_SetPowerParamsCb wdiPowerParamsCb,
11389 void* pUserData
11390);
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +053011391/**
11392 @brief WDI_dhcpStartInd
11393 Forward the DHCP Start event
11394
11395 @param
11396
11397 wdiDHCPInd: device mode and MAC address is passed
11398
11399 @see
11400 @return Result of the function call
11401*/
11402
11403WDI_Status
11404WDI_dhcpStartInd
11405(
11406 WDI_DHCPInd *wdiDHCPInd
11407);
11408/**
11409 @brief WDI_dhcpStopReq
11410 Forward the DHCP Stop event
11411
11412 @param
11413
11414 wdiDHCPInd: device mode and MAC address is passed
11415
11416 @see
11417 @return Result of the function call
11418*/
11419
11420WDI_Status
11421WDI_dhcpStopInd
11422(
11423 WDI_DHCPInd *wdiDHCPInd
11424);
Jeff Johnson295189b2012-06-20 16:38:30 -070011425
Abhishek Singh7cd040e2016-01-07 10:51:04 +053011426#ifdef WLAN_FEATURE_RMC
11427WDI_Status
11428WDI_RmcRulerReq
11429(
11430 WDI_RmcRulerReqParams *wdiRmcRulerReqParams,
11431 WDI_RmcRulerRspCb rmcRulerRspCb,
11432 void *usrData
11433);
11434
11435WDI_Status
11436WDI_RmcUpdateInd
11437(
11438 WDI_RmcUpdateIndParams *wdiRmcUpdateIndParams
11439);
11440#endif /* WLAN_FEATURE_RMC */
11441
Chittajit Mitraf5413a42013-10-18 14:20:08 -070011442/**
11443 @brief WDI_RateUpdateInd will be called when the upper MAC
11444 requests the device to update rates.
11445
11446 In state BUSY this request will be queued. Request won't
11447 be allowed in any other state.
11448
11449
11450 @param wdiRateUpdateIndParams
11451
11452
11453 @see WDI_Start
11454 @return Result of the function call
11455*/
11456WDI_Status
11457WDI_RateUpdateInd
11458(
11459 WDI_RateUpdateIndParams *wdiRateUpdateIndParams
11460);
11461
Abhishek Singh7cd040e2016-01-07 10:51:04 +053011462#ifdef WLAN_FEATURE_RMC
11463/**
11464 @brief WDI_TXFailMonitorStartStopInd
11465 Forward TX monitor start/stop event
11466
11467 @param
11468
11469 WDI_TXFailMonitorInd
11470
11471 @see
11472 @return Result of the function call
11473*/
11474
11475WDI_Status
11476WDI_TXFailMonitorStartStopInd
11477(
11478 WDI_TXFailMonitorInd *wdiTXFailMonitorInd
11479);
11480#endif /* WLAN_FEATURE_RMC */
11481
Jeff Johnson295189b2012-06-20 16:38:30 -070011482#ifdef WLAN_FEATURE_GTK_OFFLOAD
11483/**
11484 @brief WDI_GTKOffloadReq will be called when the upper MAC
11485 wants to set GTK Rekey Counter while in power save. Upon
11486 the call of this API the WLAN DAL will pack and send a
11487 HAL GTK offload request message to the lower RIVA
11488 sub-system if DAL is in state STARTED.
11489
11490 In state BUSY this request will be queued. Request won't
11491 be allowed in any other state.
11492
11493 WDI_PostAssocReq must have been called.
11494
11495 @param pwdiGtkOffloadParams: the GTK offload as specified
11496 by the Device Interface
11497
11498 wdiGtkOffloadCb: callback for passing back the response
11499 of the GTK offload operation received from the device
11500
11501 pUserData: user data will be passed back with the
11502 callback
11503
11504 @see WDI_PostAssocReq
11505 @return Result of the function call
11506*/
11507WDI_Status
11508WDI_GTKOffloadReq
11509(
11510 WDI_GtkOffloadReqMsg* pwdiGtkOffloadReqMsg,
11511 WDI_GtkOffloadCb wdiGtkOffloadCb,
11512 void* pUserData
11513);
11514
11515/**
11516 @brief WDI_GTKOffloadGetInfoReq will be called when the upper
11517 MAC wants to get GTK Rekey Counter while in power save.
11518 Upon the call of this API the WLAN DAL will pack and
11519 send a HAL GTK offload request message to the lower RIVA
11520 sub-system if DAL is in state STARTED.
11521
11522 In state BUSY this request will be queued. Request won't
11523 be allowed in any other state.
11524
11525 WDI_PostAssocReq must have been called.
11526
11527 @param pwdiGtkOffloadGetInfoReqMsg: the GTK Offload
11528 Information Message as specified by the
11529 Device Interface
11530
11531 wdiGtkOffloadGetInfoCb: callback for passing back the
11532 response of the GTK offload operation received from the
11533 device
11534
11535 pUserData: user data will be passed back with the
11536 callback
11537
11538 @see WDI_PostAssocReq
11539 @return Result of the function call
11540*/
11541WDI_Status
11542WDI_GTKOffloadGetInfoReq
11543(
11544 WDI_GtkOffloadGetInfoReqMsg* pwdiGtkOffloadGetInfoReqMsg,
11545 WDI_GtkOffloadGetInfoCb wdiGtkOffloadGetInfoCb,
11546 void* pUserData
11547);
11548#endif // WLAN_FEATURE_GTK_OFFLOAD
11549
11550/**
11551 @brief WDI_featureCapsExchangeReq
11552 Post feature capability bitmap exchange event.
11553 Host will send its own capability to FW in this req and
11554 expect FW to send its capability back as a bitmap in Response
11555
11556 @param
11557
11558 wdiFeatCapsExcRspCb: callback called on getting the response.
11559 It is kept to mantain similarity between WDI reqs and if needed, can
11560 be used in future. Currently, It is set to NULL
11561
11562 pUserData: user data will be passed back with the
11563 callback
11564
11565 @see
11566 @return Result of the function call
11567*/
11568WDI_Status
11569WDI_featureCapsExchangeReq
11570(
11571 WDI_featureCapsExchangeCb wdiFeatureCapsExchangeCb,
11572 void* pUserData
11573);
11574
11575/**
Yathish9f22e662012-12-10 14:21:35 -080011576 @brief Disable Active mode offload in Host
11577
11578 @param void
11579 @see
11580 @return void
11581*/
11582void
11583WDI_disableCapablityFeature(wpt_uint8 feature_index);
11584
11585
11586/**
Jeff Johnson295189b2012-06-20 16:38:30 -070011587 @brief WDI_getHostWlanFeatCaps
11588 WDI API that returns whether the feature passed to it as enum value in
11589 "placeHolderInCapBitmap" is supported by Host or not. It uses WDI global
11590 variable storing host capability bitmap to find this. This can be used by
11591 other moduels to decide certain things like call different APIs based on
11592 whether a particular feature is supported.
11593
11594 @param
11595
11596 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap in wlan_hal_msg.h.
11597
11598 @see
11599 @return
11600 0 - if the feature is NOT supported in host
11601 any non-zero value - if the feature is SUPPORTED in host.
11602*/
11603wpt_uint8 WDI_getHostWlanFeatCaps(wpt_uint8 feat_enum_value);
11604
11605/**
11606 @brief WDI_getFwWlanFeatCaps
11607 WDI API that returns whether the feature passed to it as enum value in
11608 "placeHolderInCapBitmap" is supported by FW or not. It uses WDI global
11609 variable storing host capability bitmap to find this. This can be used by
11610 other moduels to decide certain things like call different APIs based on
11611 whether a particular feature is supported.
11612
11613 @param
11614
Jeff Johnsone7245742012-09-05 17:12:55 -070011615 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap
11616 in wlan_hal_msg.h.
Jeff Johnson295189b2012-06-20 16:38:30 -070011617
11618 @see
11619 @return
11620 0 - if the feature is NOT supported in FW
11621 any non-zero value - if the feature is SUPPORTED in FW.
11622*/
11623wpt_uint8 WDI_getFwWlanFeatCaps(wpt_uint8 feat_enum_value);
11624
11625/**
11626 @brief WDI_GetWcnssCompiledApiVersion - Function to get wcnss compiled
11627 api version
11628
11629 @param WDI_WlanVersionType: Wlan version structure
11630 @see
11631 @return none
11632*/
11633
11634void WDI_GetWcnssCompiledApiVersion
11635(
11636 WDI_WlanVersionType *pWcnssApiVersion
11637);
11638
Mohit Khanna4a70d262012-09-11 16:30:12 -070011639#ifdef WLAN_FEATURE_11AC
11640WDI_Status
11641WDI_UpdateVHTOpModeReq
11642(
11643 WDI_UpdateVHTOpMode *pData,
11644 WDI_UpdateVHTOpModeCb wdiUpdateVHTOpModeCb,
11645 void* pUserData
11646);
Jeff Johnson295189b2012-06-20 16:38:30 -070011647
Mohit Khanna4a70d262012-09-11 16:30:12 -070011648#endif
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011649
11650/**
11651 @brief WDI_TransportChannelDebug -
11652 Display DXE Channel debugging information
11653 User may request to display DXE channel snapshot
11654 Or if host driver detects any abnormal stcuk may display
11655
Jeff Johnsonb88db982012-12-10 13:34:59 -080011656 @param displaySnapshot : Display DXE snapshot option
Mihir Shete40a55652014-03-02 14:14:47 +053011657 @param debugFlags : Enable stall detect features
11658 defined by WPAL_DeviceDebugFlags
11659 These features may effect
11660 data performance.
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011661 @see
11662 @return none
11663*/
11664void WDI_TransportChannelDebug
11665(
11666 wpt_boolean displaySnapshot,
Mihir Shete40a55652014-03-02 14:14:47 +053011667 wpt_uint8 debugFlags
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011668);
11669
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011670/**
Sravan Kumar Kairam6eac7522015-11-27 23:37:02 +053011671 @brief WDI_TransportKickDxe -
11672 Request Kick DXE when first HDD TX time out
11673 happens
11674 @param none
11675 @see
11676 @return none
11677*/
11678void WDI_TransportKickDxe(void);
11679
11680/**
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011681 @brief WDI_SsrTimerCB
11682 Callback function for SSR timer, if this is called then the graceful
11683 shutdown for Riva did not happen.
11684
11685 @param pUserData : user data to timer
11686
11687 @see
11688 @return none
11689*/
11690void
11691WDI_SsrTimerCB
11692(
11693 void *pUserData
11694);
11695
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -070011696/**
11697 @brief WDI_SetEnableSSR -
11698 This API is called to enable/disable SSR on WDI timeout.
11699
11700 @param enableSSR : enable/disable SSR
11701
11702 @see
11703 @return none
11704*/
11705void WDI_SetEnableSSR(wpt_boolean enableSSR);
11706
Leo Chang9056f462013-08-01 19:21:11 -070011707#ifdef FEATURE_WLAN_LPHB
11708/**
11709 @brief WDI_LPHBConfReq
11710 This API is called to config FW LPHB rule
11711
11712 @param lphbconfParam : LPHB rule should config to FW
11713 usrData : Client context
11714 lphbCfgCb : Configuration status callback
11715 @see
11716 @return SUCCESS or FAIL
11717*/
11718WDI_Status WDI_LPHBConfReq
11719(
11720 void *lphbconfParam,
11721 void *usrData,
11722 WDI_LphbCfgCb lphbCfgCb
11723);
11724#endif /* FEATURE_WLAN_LPHB */
Rajeev79dbe4c2013-10-05 11:03:42 +053011725
Dino Mycle41bdc942014-06-10 11:30:24 +053011726#ifdef WLAN_FEATURE_EXTSCAN
11727/**
11728 @brief WDI_EXTScanStartReq
11729 This API is called to send EXTScan start request to FW
11730
11731 @param pwdiEXTScanStartReqParams : pointer to the request params.
11732 wdiEXTScanStartRspCb : callback on getting the response.
11733 usrData : Client context
11734 @see
11735 @return SUCCESS or FAIL
11736*/
11737WDI_Status WDI_EXTScanStartReq
11738(
11739 WDI_EXTScanStartReqParams* pwdiEXTScanStartReqParams,
11740 WDI_EXTScanStartRspCb wdiEXTScanStartRspCb,
11741 void* pUserData
11742);
11743
11744/**
11745 @brief WDI_EXTScanStopReq
11746 This API is called to stop the EXTScan operations in the FW
11747
11748 @param pwdiEXTScanStopReqParams : pointer to the request params.
11749 wdiEXTScanStopRspCb : callback on getting the response.
11750 usrData : Client context
11751 @see
11752 @return SUCCESS or FAIL
11753*/
11754WDI_Status WDI_EXTScanStopReq
11755(
11756 WDI_EXTScanStopReqParams* pwdiEXTScanStopReqParams,
11757 WDI_EXTScanStopRspCb wdiEXTScanStopRspCb,
11758 void* pUserData
11759);
11760
11761/**
11762 @brief WDI_EXTScanGetCachedResultsReq
11763 This API is called to send get link layer stats request in FW
11764
11765 @param pwdiEXTScanGetCachedResultsReqParams : pointer to the request params.
11766 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11767 usrData : Client context
11768 @see
11769 @return SUCCESS or FAIL
11770*/
11771WDI_Status WDI_EXTScanGetCachedResultsReq
11772(
11773 WDI_EXTScanGetCachedResultsReqParams* pwdiEXTScanGetCachedResultsReqParams,
11774 WDI_EXTScanGetCachedResultsRspCb wdiEXTScanGetCachedResultsRspCb,
11775 void* pUserData
11776);
11777
11778/**
11779 @brief WDI_EXTScanGetCapabilitiesReq
11780 This API is called to send get EXTScan capabilities from FW
11781
11782 @param pwdiEXTScanGetCachedResultsReqParams : pointer to the request params.
11783 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11784 usrData : Client context
11785 @see
11786 @return SUCCESS or FAIL
11787*/
11788WDI_Status WDI_EXTScanGetCapabilitiesReq
11789(
11790 WDI_EXTScanGetCapabilitiesReqParams* pwdiEXTScanGetCapabilitiesReqParams,
11791 WDI_EXTScanGetCapabilitiesRspCb wdiEXTScanGetCapabilitiesRspCb,
11792 void* pUserData
11793);
11794
11795/**
11796 @brief WDI_EXTScanSetBSSIDHotlistReq
11797 This API is called to send Set BSSID Hotlist Request FW
11798
11799 @param pwdiEXTScanSetBssidHotlistReqParams : pointer to the request params.
11800 wdiEXTScanSetBSSIDHotlistRspCb : callback on getting the response.
11801 usrData : Client context
11802 @see
11803 @return SUCCESS or FAIL
11804*/
11805WDI_Status WDI_EXTScanSetBSSIDHotlistReq
11806(
11807 WDI_EXTScanSetBSSIDHotlistReqParams* pwdiEXTScanSetBSSIDHotlistReqParams,
11808 WDI_EXTScanSetBSSIDHotlistRspCb wdiEXTScanSetBSSIDHotlistRspCb,
11809 void* pUserData
11810);
11811
11812/**
11813 @brief WDI_EXTScanResetBSSIDHotlistReq
11814 This API is called to send Reset BSSID Hotlist Request FW
11815
11816 @param pwdiEXTScanResetBssidHotlistReqParams : pointer to the request params.
11817 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11818 usrData : Client context
11819 @see
11820 @return SUCCESS or FAIL
11821*/
11822WDI_Status WDI_EXTScanResetBSSIDHotlistReq
11823(
11824 WDI_EXTScanResetBSSIDHotlistReqParams* pwdiEXTScanResetBSSIDHotlistReqParams,
11825 WDI_EXTScanResetBSSIDHotlistRspCb wdiEXTScanResetBSSIDHotlistRspCb,
11826 void* pUserData
11827);
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +053011828
11829/**
11830 @brief WDI_EXTScanSetSSIDHotlistReq
11831 This API is called to send Set SSID Hotlist Request FW
11832
11833 @param pwdiEXTScanSetBssidHotlistReqParams : pointer to the request params.
11834 wdiEXTScanSetBSSIDHotlistRspCb : callback on getting the response.
11835 usrData : Client context
11836 @see
11837 @return SUCCESS or FAIL
11838*/
11839WDI_Status WDI_EXTScanSetSSIDHotlistReq
11840(
11841 WDI_EXTScanSetSSIDHotlistReqParams* pwdiEXTScanSetSSIDHotlistReqParams,
11842 WDI_EXTScanSetSSIDHotlistRspCb wdiEXTScanSetSSIDHotlistRspCb,
11843 void* pUserData
11844);
11845
11846/**
11847 @brief WDI_EXTScanResetSSIDHotlistReq
11848 This API is called to send Reset SSID Hotlist Request FW
11849
11850 @param pwdiEXTScanResetSsidHotlistReqParams : pointer to the request params.
11851 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11852 usrData : Client context
11853 @see
11854 @return SUCCESS or FAIL
11855*/
11856WDI_Status WDI_EXTScanResetSSIDHotlistReq
11857(
11858 WDI_EXTScanResetSSIDHotlistReqParams* pwdiEXTScanResetSSIDHotlistReqParams,
11859 WDI_EXTScanResetSSIDHotlistRspCb wdiEXTScanResetSSIDHotlistRspCb,
11860 void* pUserData
11861);
11862
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +053011863/**
11864 @brief WDI_HighPriorityDataInfoInd
11865
11866 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
11867
11868 @return SUCCESS or FAIL
11869*/
11870WDI_Status
11871WDI_HighPriorityDataInfoInd
11872(
11873 WDI_HighPriorityDataInfoIndParams* pHighPriorityDataInfoIndParams
11874);
11875
Dino Mycle41bdc942014-06-10 11:30:24 +053011876#endif /* WLAN_FEATURE_EXTSCAN */
11877
Sunil Duttbd736ed2014-05-26 21:19:41 +053011878#ifdef WLAN_FEATURE_LINK_LAYER_STATS
11879/**
11880 @brief WDI_LLStatsSetReq
11881 This API is called to send set link layer stats request to FW
11882
11883 @param pwdiLLStatsSetReqParams : pointer to set link layer stats params
11884 wdiLLStatsSetRspCb : set link layer stats response callback
11885 usrData : Client context
11886 @see
11887 @return SUCCESS or FAIL
11888*/
11889WDI_Status WDI_LLStatsSetReq
11890(
11891 WDI_LLStatsSetReqType* pwdiLLStatsSetReqParams,
11892 WDI_LLStatsSetRspCb wdiLLStatsSetRspCb,
11893 void* pUserData
11894);
11895
11896/**
11897 @brief WDI_LLStatsGetReq
11898 This API is called to send get link layer stats request in FW
11899
11900 @param pwdiLLStatsGetParams : pointer to get link layer stats params
11901 wdiLLStatsGetRspCb : get link layer stats response callback
11902 usrData : Client context
11903 @see
11904 @return SUCCESS or FAIL
11905*/
11906WDI_Status WDI_LLStatsGetReq
11907(
11908 WDI_LLStatsGetReqType* pwdiLLStatsGetReqParams,
11909 WDI_LLStatsGetRspCb wdiLLStatsGetRspCb,
11910 void* pUserData
11911);
11912
11913/**
11914 @brief WDI_LLStatsClearReq
11915 This API is called to set clear link layer stats request in FW
11916
11917 @param pwdiLLStatsClearReqParams : pointer to clear link layer stats params
11918 iwdiLLStatsClearRspCb : clear link layer stats response callback
11919 usrData : Client context
11920 @see
11921 @return SUCCESS or FAIL
11922*/
11923WDI_Status WDI_LLStatsClearReq
11924(
11925 WDI_LLStatsClearReqType* pwdiLLStatsClearReqParams,
11926 WDI_LLStatsClearRspCb wdiLLStatsClearRspCb,
11927 void* pUserData
11928);
11929#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
11930
Abhishek Singh85b74712014-10-08 11:38:19 +053011931WDI_Status WDI_FWStatsGetReq
11932(
11933 void* pwdiFWStatsGetReqParams,
11934 WDI_FWStatsGetRspCb wdiFWStatsGetRspCb,
11935 wpt_uint32 pUserData
11936);
11937
Katya Nigamf0511f62015-05-05 16:40:57 +053011938WDI_Status WDI_MonStartReq
11939(
11940 WDI_MonStartReqType* pwdiMonStartReqParams,
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053011941 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053011942 void* pUserData
11943);
11944
11945WDI_Status WDI_MonStopReq
11946(
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053011947 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053011948 void* pUserData
11949);
11950
Rajeev79dbe4c2013-10-05 11:03:42 +053011951#ifdef FEATURE_WLAN_BATCH_SCAN
11952/**
11953 @brief WDI_SetBatchScanReq
11954 This API is called to set batch scan request in FW
11955
11956 @param pBatchScanReqParam : pointer to set batch scan re param
11957 usrData : Client context
11958 setBatchScanRspCb : set batch scan resp callback
11959 @see
11960 @return SUCCESS or FAIL
11961*/
11962WDI_Status WDI_SetBatchScanReq
11963(
11964 void *pBatchScanReqParam,
11965 void *usrData,
11966 WDI_SetBatchScanCb setBatchScanRspCb
11967);
11968
11969/**
11970 @brief WDI_StopBatchScanInd
11971
11972 @param none
11973
11974 @see
11975
11976 @return Status of the request
11977*/
11978WDI_Status
11979WDI_StopBatchScanInd(WDI_StopBatchScanIndType *pWdiReq);
11980
11981/**
11982 @brief WDI_TriggerBatchScanResultInd
11983 This API is called to pull batch scan result from FW
11984
11985 @param pBatchScanReqParam : pointer to trigger batch scan ind param
11986 usrData : Client context
11987 setBatchScanRspCb : get batch scan resp callback
11988 @see
11989 @return SUCCESS or FAIL
11990*/
11991WDI_Status
11992WDI_TriggerBatchScanResultInd(WDI_TriggerBatchScanResultIndType *pWdiReq);
11993
11994
11995#endif /*FEATURE_WLAN_BATCH_SCAN*/
11996
Abhishek Singh7cd040e2016-01-07 10:51:04 +053011997#ifdef WLAN_FEATURE_RMC
11998/**
11999 @brief Process peer info req
12000
12001 @param pWDICtx: pointer to the WLAN DAL context
12002 pEventData: pointer to the event information structure
12003
12004 @see
12005 @return Result of the function call
12006*/
12007
12008WDI_Status
12009WDI_IbssPeerInfoReq
12010(
12011 WDI_IbssPeerInfoReqType* wdiPeerInfoReqParams,
12012 WDI_IbssPeerInfoReqCb wdiIbssPeerInfoReqCb,
12013 void* pUserData
12014);
12015#endif /* WLAN_FEATURE_RMC */
12016
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +053012017/**
12018 @brief wdi_HT40OBSSScanInd
12019 This API is called to start OBSS scan
12020
12021 @param pWdiReq : pointer to get ind param
12022 @see
12023 @return SUCCESS or FAIL
12024*/
12025
12026WDI_Status WDI_HT40OBSSScanInd(WDI_HT40ObssScanParamsType *pWdiReq);
12027
12028/**
12029 @brief wdi_HT40OBSSStopScanInd
12030 This API is called to stop OBSS scan
12031
12032 @param bssIdx : bssIdx to stop
12033 @see
12034 @return SUCCESS or FAIL
12035*/
12036
12037WDI_Status WDI_HT40OBSSStopScanInd(wpt_uint8 bssIdx);
12038
c_hpothu92367912014-05-01 15:18:17 +053012039
12040WDI_Status WDI_GetBcnMissRate( void *pUserData,
12041 WDI_GetBcnMissRateCb wdiGetBcnMissRateCb,
12042 wpt_uint8 *bssid
12043 );
Siddharth Bhal171788a2014-09-29 21:02:40 +053012044WDI_Status
12045WDI_SetSpoofMacAddrReq
12046(
12047WDI_SpoofMacAddrInfoType *pWdiReq,
12048 WDI_SetSpoofMacAddrRspCb setSpoofMacAddrRspCb,
12049 void* pUserData
12050);
c_hpothu92367912014-05-01 15:18:17 +053012051
Srinivas Dasari4dae48f2014-11-26 21:14:16 +053012052WDI_Status
12053WDI_EncryptMsgReq(void* pwdiEncryptMsgParams,
12054 WDI_EncryptMsgRspCb wdiEncryptMsgCbRsp,
12055 void* pUserData
12056 );
Srinivas Dasari32a79262015-02-19 13:04:49 +053012057
c_manjeecfd1efb2015-09-25 19:32:34 +053012058WDI_Status
12059WDI_FwrMemDumpReq
12060
12061(
12062 WDI_FwrMemDumpReqType *pwdiFwrMemDumpReqInfo,
12063 WDI_FwrMemDumpCb wdiFwrMemDumpRspCb,
12064 void* pUserData
12065);
12066
12067
Srinivas Dasari32a79262015-02-19 13:04:49 +053012068/**
12069 @brief WDI_NanRequest
12070 NAN request
12071
12072 @param pwdiNanRequest: data
12073
12074 pwdiNanCb: callback
12075
12076 usrData: user data will be passed back with the
12077 callback
12078
12079 @return Result of the function call
12080*/
12081WDI_Status
12082WDI_NanRequest
12083(
12084 WDI_NanRequestType *pwdiNanRequest,
12085 void *usrData
12086);
12087
Abhishek Singh41988ba2015-05-25 19:42:29 +053012088/**
12089 @brief WDI_SetRtsCtsHTVhtInd
12090 Set RTS/CTS indication for diff modes.
12091
12092 @param rtsCtsVal: Bit mask value to enable RTS/CTS for different modes
12093
12094 @return Result of the function call
12095*/
12096
12097WDI_Status
12098WDI_SetRtsCtsHTVhtInd
12099(
12100 wpt_uint32 rtsCtsVal
12101);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012102
Mihir Shete5affadc2015-05-29 20:54:57 +053012103WDI_Status
12104WDI_FWLoggingDXEdoneInd
12105(
Hanumantha Reddy Pothulae00a7e22015-09-15 20:11:30 +053012106 wpt_uint32 logType
Mihir Shete5affadc2015-05-29 20:54:57 +053012107);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012108
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +053012109/**
12110 @brief WDI_EnableDisableCAEventInd
12111 Enable/Disable Chan Avoidance indication
12112
12113 @param val: Enable/Disable Chan Avoidance indication
12114
12115 @return Result of the function call
12116*/
12117
12118WDI_Status
12119WDI_EnableDisableCAEventInd
12120(
12121wpt_uint32 val
12122);
12123
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +053012124#ifdef FEATURE_OEM_DATA_SUPPORT
12125
12126/**
12127 @brief WDI_HighPriorityDataInfoInd
12128
12129 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
12130
12131 @return SUCCESS or FAIL
12132*/
12133WDI_Status
12134WDI_StartOemDataReqIndNew
12135(
12136 WDI_OemDataReqNewConfig *pOemDataReqNewConfig
12137);
12138#endif
12139
Jeff Johnson295189b2012-06-20 16:38:30 -070012140#ifdef __cplusplus
12141 }
12142#endif
12143
Arun Khandavalli7eeb1592015-10-19 21:36:57 +053012144/**
12145 @brief WDI_WifiConfigSetReq
12146 This API is called to send WifiConfig request to FW
12147
12148 @param pwdiWifConfigSetReqParams : pointer to wificonfig params
12149 wdiLLStatsSetRspCb : set wificonfig response callback
12150 usrData : Client context
12151 @see
12152 @return SUCCESS or FAIL
12153*/
12154WDI_Status
12155WDI_WifiConfigSetReq
12156 (WDI_WifiConfigSetReqType* pwdiWifConfigSetReqParams,
12157 WDI_WifiConfigSetRspCb wdiWifiConfigSetRspCb,
12158 void* pUserData);
12159
Mahesh A Saptasagarb63b3e22015-12-22 15:06:10 +053012160/**
12161 @brief WDI_GetCurrentAntennaIndex
12162 This API is called to send getCurretAntennaIndex request to FW
12163
12164 @param pUserData: pointer to request params
12165 wdiLLStatsSetRspCb : set wificonfig response callback
12166 reserved: request parameter
12167 @see
12168 @return SUCCESS or FAIL
12169*/
12170WDI_Status
12171WDI_GetCurrentAntennaIndex
12172(
12173 void *pUserData,
12174 WDI_AntennaDivSelRspCb wdiAntennaDivSelRspCb,
12175 wpt_uint32 reserved
12176);
12177
Mahesh A Saptasagar41f9ddd2016-02-09 14:01:03 +053012178/**
12179 @brief WDI_SetBcnMissPenaltyCount
12180 This API is called to send modified roam parameters to FW
Mahesh A Saptasagarb63b3e22015-12-22 15:06:10 +053012181
Mahesh A Saptasagar41f9ddd2016-02-09 14:01:03 +053012182 @param params: pointer to request params
12183 @see
12184 @return SUCCESS or FAIL
12185*/
12186WDI_Status
12187WDI_SetBcnMissPenaltyCount
12188(
12189 WDI_ModifyRoamParamsReqType *params
12190);
Agrawal Ashishaf1de652016-03-02 18:03:43 +053012191
Selvaraj, Sridharbb07d5b2016-04-06 12:22:35 +053012192/**
12193 * WDI_SetAllowedActionFramesInd - This API is called to send Allowed
12194 * Action frame details to FW
12195 * @allowed_action_frames: Pointer to WDI_AllowedActionFramesInd structure
12196 * which holds bitmask of allowed action frames
12197 *
12198 */
12199WDI_Status
12200WDI_SetAllowedActionFramesInd(
12201 struct WDI_AllowedActionFramesInd *allowed_action_frames
12202);
12203
Agrawal Ashishaf1de652016-03-02 18:03:43 +053012204void WDI_SetMgmtPktViaWQ5(wpt_boolean sendMgmtPktViaWQ5);
Jeff Johnson295189b2012-06-20 16:38:30 -070012205#endif /* #ifndef WLAN_QCT_WDI_H */