blob: b44e3f75379e1d4276523ac979ca13c6ab721b52 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Padma, Santhosh Kumar70380cf2016-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 Singh00b71972016-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 Singh00b71972016-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 Singh00b71972016-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 Singh00b71972016-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 Singh00b71972016-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 Singh00b71972016-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 Singh00b71972016-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 Kumaree7c3d22016-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 Singh00b71972016-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 Singh00b71972016-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 Kumaree7c3d22016-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 Kumar70380cf2016-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;
Kapil Gupta04ab1992016-06-26 13:36:51 +05305585
5586typedef struct
5587{
5588 wpt_uint32 requestId;
5589 wpt_uint32 rateUpThreshold;
5590 wpt_uint32 rateDownThreshold;
5591 wpt_uint32 isPERRoamCCAEnabled;
5592 wpt_uint32 waitPeriodForNextPERScan;
5593 wpt_uint32 PERtimerThreshold;
5594 wpt_uint32 PERroamTriggerPercent;
5595} WDI_PERRoamOffloadScanInfo;
5596
5597typedef struct
5598{
5599 wpt_boolean roamScanReq; // Request info for all peers
5600} WDI_PERRoamTriggerScanInfo;
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005601#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07005602
5603/*---------------------------------------------------------------------------
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +05305604 WDI_HT40ObssScanIndType
5605---------------------------------------------------------------------------*/
5606typedef struct
5607{
5608 wpt_uint8 cmdType;
5609 wpt_uint8 scanType;
5610 wpt_uint16 OBSSScanPassiveDwellTime; // In TUs
5611 wpt_uint16 OBSSScanActiveDwellTime; // In TUs
5612 wpt_uint16 BSSChannelWidthTriggerScanInterval; // In seconds
5613 wpt_uint16 OBSSScanPassiveTotalPerChannel; // In TUs
5614 wpt_uint16 OBSSScanActiveTotalPerChannel; // In TUs
5615 wpt_uint16 BSSWidthChannelTransitionDelayFactor;
5616 wpt_uint16 OBSSScanActivityThreshold;
5617 wpt_uint8 selfStaIdx;
5618 wpt_uint8 bssIdx;
5619 wpt_uint8 fortyMHZIntolerent;
5620 wpt_uint8 channelCount;
5621 wpt_uint8 channels[WDI_ROAM_SCAN_MAX_CHANNELS];
5622 wpt_uint8 currentOperatingClass;
5623 wpt_uint16 ieFieldLen;
5624 wpt_uint8 ieField[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
5625} WDI_HT40ObssScanIndType;
5626
5627
5628/*---------------------------------------------------------------------------
5629 WDI_OBSSScanIndParamsType
5630---------------------------------------------------------------------------*/
5631typedef struct
5632{
5633 WDI_HT40ObssScanIndType wdiHT40ObssScanParam;
5634
5635 /*Request status callback offered by UMAC - it is called if the current
5636 req has returned PENDING as status; it delivers the status of sending
5637 the message over the BUS */
5638 WDI_ReqStatusCb wdiReqStatusCB;
5639
5640 /*The user data passed in by UMAC, it will be sent back when the above
5641 function pointer will be called */
5642 void* pUserData;
5643
5644}WDI_HT40ObssScanParamsType;
5645
5646/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07005647 WDI_UpdateScanParamsInfo
5648---------------------------------------------------------------------------*/
5649typedef struct
5650{
5651 /* Ignore DTIM */
5652 wpt_uint32 uIgnoreDTIM;
5653
5654 /*DTIM Period*/
5655 wpt_uint32 uDTIMPeriod;
5656
5657 /* Listen Interval */
5658 wpt_uint32 uListenInterval;
5659
5660 /* Broadcast Multicas Filter */
5661 wpt_uint32 uBcastMcastFilter;
5662
5663 /* Beacon Early Termination */
5664 wpt_uint32 uEnableBET;
5665
5666 /* Beacon Early Termination Interval */
5667 wpt_uint32 uBETInterval;
5668
Yue Mac24062f2013-05-13 17:01:29 -07005669 /* MAX LI for modulated DTIM */
5670 wpt_uint32 uMaxLIModulatedDTIM;
5671
Jeff Johnson295189b2012-06-20 16:38:30 -07005672} WDI_SetPowerParamsInfo;
5673
5674/*---------------------------------------------------------------------------
5675 WDI_UpdateScanParamsInfoType
5676 UpdateScanParams info passed to WDI form WDA
5677---------------------------------------------------------------------------*/
5678typedef struct
5679{
5680 /* Power params Info Type, same as tSetPowerParamsReq */
5681 WDI_SetPowerParamsInfo wdiSetPowerParamsInfo;
5682 /* Request status callback offered by UMAC - it is called if the current req
5683 has returned PENDING as status; it delivers the status of sending the message
5684 over the BUS */
5685 WDI_ReqStatusCb wdiReqStatusCB;
5686 /* The user data passed in by UMAC, it will be sent back when the above
5687 function pointer will be called */
5688 void* pUserData;
5689}WDI_SetPowerParamsReqParamsType;
5690
5691/*---------------------------------------------------------------------------
5692 WDI_SetTxPerTrackingConfType
5693 Wowl add ptrn info passed to WDA form UMAC
5694---------------------------------------------------------------------------*/
5695typedef struct
5696{
5697 wpt_uint8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */
5698 wpt_uint8 ucTxPerTrackingPeriod; /* Check period, unit is sec. */
5699 wpt_uint8 ucTxPerTrackingRatio; /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. */
5700 wpt_uint32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */
5701} WDI_TxPerTrackingParamType;
5702
5703/*---------------------------------------------------------------------------
5704 WDI_SetTxPerTrackingReqParamsType
5705 Tx PER Tracking parameters passed to WDI from WDA
5706---------------------------------------------------------------------------*/
5707typedef struct
5708{
5709 /* Configurations for Tx PER Tracking */
5710 WDI_TxPerTrackingParamType wdiTxPerTrackingParam;
5711 /*Request status callback offered by UMAC - it is called if the current req
5712 has returned PENDING as status; it delivers the status of sending the message
5713 over the BUS */
5714 WDI_ReqStatusCb wdiReqStatusCB;
5715 /*The user data passed in by UMAC, it will be sent back when the above
5716 function pointer will be called */
5717 void* pUserData;
5718}WDI_SetTxPerTrackingReqParamsType;
5719
5720#ifdef WLAN_FEATURE_PACKET_FILTERING
5721/*---------------------------------------------------------------------------
5722 Packet Filtering Parameters
5723---------------------------------------------------------------------------*/
5724
5725#define WDI_IPV4_ADDR_LEN 4
5726#define WDI_MAC_ADDR_LEN 6
5727#define WDI_MAX_FILTER_TEST_DATA_LEN 8
5728#define WDI_MAX_NUM_MULTICAST_ADDRESS 240
5729#define WDI_MAX_NUM_FILTERS 20
5730#define WDI_MAX_NUM_TESTS_PER_FILTER 10
5731
5732//
5733// Receive Filter Parameters
5734//
5735typedef enum
5736{
5737 WDI_RCV_FILTER_TYPE_INVALID,
5738 WDI_RCV_FILTER_TYPE_FILTER_PKT,
5739 WDI_RCV_FILTER_TYPE_BUFFER_PKT,
5740 WDI_RCV_FILTER_TYPE_MAX_ENUM_SIZE
5741}WDI_ReceivePacketFilterType;
5742
5743typedef enum
5744{
5745 WDI_FILTER_HDR_TYPE_INVALID,
5746 WDI_FILTER_HDR_TYPE_MAC,
5747 WDI_FILTER_HDR_TYPE_ARP,
5748 WDI_FILTER_HDR_TYPE_IPV4,
5749 WDI_FILTER_HDR_TYPE_IPV6,
5750 WDI_FILTER_HDR_TYPE_UDP,
5751 WDI_FILTER_HDR_TYPE_MAX
5752}WDI_RcvPktFltProtocolType;
5753
5754typedef enum
5755{
5756 WDI_FILTER_CMP_TYPE_INVALID,
5757 WDI_FILTER_CMP_TYPE_EQUAL,
5758 WDI_FILTER_CMP_TYPE_MASK_EQUAL,
5759 WDI_FILTER_CMP_TYPE_NOT_EQUAL,
5760 WDI_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
5761 WDI_FILTER_CMP_TYPE_MAX
5762}WDI_RcvPktFltCmpFlagType;
5763
5764typedef struct
5765{
5766 WDI_RcvPktFltProtocolType protocolLayer;
5767 WDI_RcvPktFltCmpFlagType cmpFlag;
5768/* Length of the data to compare */
5769 wpt_uint16 dataLength;
5770/* from start of the respective frame header */
5771 wpt_uint8 dataOffset;
5772 wpt_uint8 reserved; /* Reserved field */
5773/* Data to compare */
5774 wpt_uint8 compareData[WDI_MAX_FILTER_TEST_DATA_LEN];
5775/* Mask to be applied on the received packet data before compare */
5776 wpt_uint8 dataMask[WDI_MAX_FILTER_TEST_DATA_LEN];
5777}WDI_RcvPktFilterFieldParams;
5778
5779typedef struct
5780{
5781 wpt_uint8 filterId;
5782 wpt_uint8 filterType;
5783 wpt_uint32 numFieldParams;
5784 wpt_uint32 coalesceTime;
Jeff Johnsone7245742012-09-05 17:12:55 -07005785 wpt_macAddr selfMacAddr;
5786 wpt_macAddr bssId;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005787 WDI_RcvPktFilterFieldParams paramsData[1];
5788
Jeff Johnson295189b2012-06-20 16:38:30 -07005789}WDI_RcvPktFilterCfgType;
5790
5791typedef struct
5792{
5793 /*Request status callback offered by UMAC - it is called if the current
5794 req has returned PENDING as status; it delivers the status of sending
5795 the message over the BUS */
5796 WDI_ReqStatusCb wdiReqStatusCB;
5797
5798 /*The user data passed in by UMAC, it will be sent back when the above
5799 function pointer will be called */
5800 void* pUserData;
5801
5802 // Variable length packet filter field params
5803 WDI_RcvPktFilterCfgType wdiPktFilterCfg;
5804} WDI_SetRcvPktFilterReqParamsType;
5805
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005806typedef struct
5807{
5808 /*Result of the operation*/
5809 WDI_Status wdiStatus;
5810 /* BSSIDX of the Set Receive Filter
5811 */
5812 wpt_uint8 bssIdx;
5813} WDI_SetRcvPktFilterRspParamsType;
5814
Jeff Johnson295189b2012-06-20 16:38:30 -07005815//
5816// Filter Packet Match Count Parameters
5817//
5818typedef struct
5819{
5820 /*Request status callback offered by UMAC - it is called if the current
5821 req has returned PENDING as status; it delivers the status of sending
5822 the message over the BUS */
5823 WDI_ReqStatusCb wdiReqStatusCB;
5824
5825 /*The user data passed in by UMAC, it will be sent back when the above
5826 function pointer will be called */
5827 void* pUserData;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005828
5829 /* BSSID of the Match count
5830 */
5831 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005832} WDI_RcvFltPktMatchCntReqParamsType;
5833
5834typedef struct
5835{
5836 wpt_uint8 filterId;
5837 wpt_uint32 matchCnt;
5838} WDI_RcvFltPktMatchCnt;
5839
5840typedef struct
5841{
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005842 /*Result of the operation*/
5843 WDI_Status wdiStatus;
Jeff Johnson295189b2012-06-20 16:38:30 -07005844
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005845 /* BSSIDX of the Match count response
5846 */
5847 wpt_uint8 bssIdx;
5848
Jeff Johnson295189b2012-06-20 16:38:30 -07005849} WDI_RcvFltPktMatchCntRspParamsType;
5850
Jeff Johnson295189b2012-06-20 16:38:30 -07005851//
5852// Receive Filter Clear Parameters
5853//
5854typedef struct
5855{
5856 wpt_uint32 status; /* only valid for response message */
5857 wpt_uint8 filterId;
Jeff Johnsone7245742012-09-05 17:12:55 -07005858 wpt_macAddr selfMacAddr;
5859 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005860}WDI_RcvFltPktClearParam;
5861
5862typedef struct
5863{
5864 WDI_RcvFltPktClearParam filterClearParam;
5865 /*Request status callback offered by UMAC - it is called if the current
5866 req has returned PENDING as status; it delivers the status of sending
5867 the message over the BUS */
5868 WDI_ReqStatusCb wdiReqStatusCB;
5869
5870 /*The user data passed in by UMAC, it will be sent back when the above
5871 function pointer will be called */
5872 void* pUserData;
5873} WDI_RcvFltPktClearReqParamsType;
5874
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005875typedef struct
5876{
5877 /*Result of the operation*/
5878 WDI_Status wdiStatus;
5879 /* BSSIDX of the Match count response
5880 */
5881 wpt_uint8 bssIdx;
5882
5883} WDI_RcvFltPktClearRspParamsType;
5884
Jeff Johnson295189b2012-06-20 16:38:30 -07005885//
5886// Multicast Address List Parameters
5887//
5888typedef struct
5889{
5890 wpt_uint32 ulMulticastAddrCnt;
5891 wpt_macAddr multicastAddr[WDI_MAX_NUM_MULTICAST_ADDRESS];
Jeff Johnsone7245742012-09-05 17:12:55 -07005892 wpt_macAddr selfMacAddr;
5893 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005894} WDI_RcvFltMcAddrListType;
5895
5896typedef struct
5897{
5898 WDI_RcvFltMcAddrListType mcAddrList;
5899 /*Request status callback offered by UMAC - it is called if the current
5900 req has returned PENDING as status; it delivers the status of sending
5901 the message over the BUS */
5902 WDI_ReqStatusCb wdiReqStatusCB;
5903
5904 /*The user data passed in by UMAC, it will be sent back when the above
5905 function pointer will be called */
5906 void* pUserData;
5907} WDI_RcvFltPktSetMcListReqParamsType;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005908
5909typedef struct
5910{
5911 /*Result of the operation*/
5912 WDI_Status wdiStatus;
5913 /* BSSIDX of the Match count response
5914 */
5915 wpt_uint8 bssIdx;
5916} WDI_RcvFltPktSetMcListRspParamsType;
5917
Jeff Johnson295189b2012-06-20 16:38:30 -07005918#endif // WLAN_FEATURE_PACKET_FILTERING
5919
5920/*---------------------------------------------------------------------------
5921 WDI_HALDumpCmdReqInfoType
5922---------------------------------------------------------------------------*/
5923typedef struct
5924{
5925 /*command*/
5926 wpt_uint32 command;
5927
5928 /*Arguments*/
5929 wpt_uint32 argument1;
5930 wpt_uint32 argument2;
5931 wpt_uint32 argument3;
5932 wpt_uint32 argument4;
5933
5934}WDI_HALDumpCmdReqInfoType;
5935
5936/*---------------------------------------------------------------------------
5937 WDI_HALDumpCmdReqParamsType
5938---------------------------------------------------------------------------*/
5939typedef struct
5940{
5941 /*NV Blob Info*/
5942 WDI_HALDumpCmdReqInfoType wdiHALDumpCmdInfoType;
5943
5944 /*Request status callback offered by UMAC - it is called if the current
5945 req has returned PENDING as status; it delivers the status of sending
5946 the message over the BUS */
5947 WDI_ReqStatusCb wdiReqStatusCB;
5948
5949 /*The user data passed in by UMAC, it will be sent back when the above
5950 function pointer will be called */
5951 void* pUserData;
5952
5953}WDI_HALDumpCmdReqParamsType;
5954
5955
5956/*---------------------------------------------------------------------------
5957 WDI_HALDumpCmdRspParamsType
5958---------------------------------------------------------------------------*/
5959typedef struct
5960{
5961 /*Result of the operation*/
5962 WDI_Status wdiStatus;
5963
5964 /* length of the buffer */
5965 wpt_uint16 usBufferLen;
5966
5967 /* Buffer */
5968 wpt_uint8 *pBuffer;
5969}WDI_HALDumpCmdRspParamsType;
5970
5971
5972/*---------------------------------------------------------------------------
5973 WDI_SetTmLevelReqType
5974---------------------------------------------------------------------------*/
5975typedef struct
5976{
5977 wpt_uint16 tmMode;
5978 wpt_uint16 tmLevel;
5979 void* pUserData;
5980}WDI_SetTmLevelReqType;
5981
5982/*---------------------------------------------------------------------------
5983 WDI_SetTmLevelRspType
5984---------------------------------------------------------------------------*/
5985typedef struct
5986{
5987 WDI_Status wdiStatus;
5988 void* pUserData;
5989}WDI_SetTmLevelRspType;
5990
Leo Chang9056f462013-08-01 19:21:11 -07005991#ifdef FEATURE_WLAN_LPHB
5992/*---------------------------------------------------------------------------
5993 WDI_LPHBConfigParamsType
5994---------------------------------------------------------------------------*/
5995typedef struct
5996{
5997 void* pLphsConfIndData;
5998}WDI_LPHBConfigParamsType;
5999#endif /* FEATURE_WLAN_LPHB */
6000
Yue Mab9c86f42013-08-14 15:59:08 -07006001/*---------------------------------------------------------------------------
6002 WDI_AddPeriodicTxPtrnInfoType
6003---------------------------------------------------------------------------*/
6004typedef struct
6005{
6006 /* MAC Address for the adapter */
6007 wpt_macAddr macAddr;
6008
6009 wpt_uint8 ucPtrnId; // Pattern ID
6010 wpt_uint16 ucPtrnSize; // Pattern size
6011 wpt_uint32 usPtrnIntervalMs; // In msec
6012 wpt_uint8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
6013} WDI_AddPeriodicTxPtrnInfoType;
6014
6015/*---------------------------------------------------------------------------
6016 WDI_DelPeriodicTxPtrnInfoType
6017---------------------------------------------------------------------------*/
6018typedef struct
6019{
6020 /* MAC Address for the adapter */
6021 wpt_macAddr macAddr;
6022
6023 /* Bitmap of pattern IDs that needs to be deleted */
6024 wpt_uint32 ucPatternIdBitmap;
6025} WDI_DelPeriodicTxPtrnInfoType;
6026
6027/*---------------------------------------------------------------------------
6028 WDI_AddPeriodicTxPtrnParamsType
6029---------------------------------------------------------------------------*/
6030typedef struct
6031{
6032 WDI_AddPeriodicTxPtrnInfoType wdiAddPeriodicTxPtrnParams;
6033
6034 /*Request status callback offered by UMAC - it is called if the current
6035 req has returned PENDING as status; it delivers the status of sending
6036 the message over the BUS */
6037 WDI_ReqStatusCb wdiReqStatusCB;
6038
6039 /*The user data passed in by UMAC, it will be sent back when the above
6040 function pointer will be called */
6041 void* pUserData;
6042} WDI_AddPeriodicTxPtrnParamsType;
6043
6044/*---------------------------------------------------------------------------
Srinivas Dasari32a79262015-02-19 13:04:49 +05306045 WDI_NanRequestType
6046---------------------------------------------------------------------------*/
6047typedef struct
6048{
6049 wpt_uint16 request_data_len;
6050 wpt_uint8 request_data[1];
6051} WDI_NanRequestType;
6052
6053
6054/*---------------------------------------------------------------------------
Yue Mab9c86f42013-08-14 15:59:08 -07006055 WDI_DelPeriodicTxPtrnParamsType
6056---------------------------------------------------------------------------*/
6057typedef struct
6058{
6059 WDI_DelPeriodicTxPtrnInfoType wdiDelPeriodicTxPtrnParams;
6060
6061 /*Request status callback offered by UMAC - it is called if the current
6062 req has returned PENDING as status; it delivers the status of sending
6063 the message over the BUS */
6064 WDI_ReqStatusCb wdiReqStatusCB;
6065
6066 /*The user data passed in by UMAC, it will be sent back when the above
6067 function pointer will be called */
6068 void* pUserData;
6069} WDI_DelPeriodicTxPtrnParamsType;
6070
Abhishek Singh00b71972016-01-07 10:51:04 +05306071#ifdef WLAN_FEATURE_RMC
6072/*---------------------------------------------------------------------------
6073 WDI_IbssPeerInfoParams
6074---------------------------------------------------------------------------*/
6075typedef struct
6076{
6077 wpt_uint8 wdiStaIdx; //StaIdx
6078 wpt_uint32 wdiTxRate; //Tx Rate
6079 wpt_uint32 wdiMcsIndex; //MCS Index
6080 wpt_uint32 wdiTxRateFlags; //TxRate Flags
6081 wpt_int8 wdiRssi; //RSSI
6082}WDI_IbssPeerInfoParams;
6083
6084/*---------------------------------------------------------------------------
6085 WDI_IbssPeerInfoRspParams
6086---------------------------------------------------------------------------*/
6087typedef struct
6088{
6089 wpt_uint32 wdiStatus; // Return status
6090 wpt_uint8 wdiNumPeers; // Number of peers
6091 WDI_IbssPeerInfoParams *wdiPeerInfoParams; // Peer Info parameters
6092}WDI_IbssPeerInfoRspParams;
6093
6094/*---------------------------------------------------------------------------
6095 WDI_GetIbssPeerInfoRspType
6096---------------------------------------------------------------------------*/
6097typedef struct
6098{
6099 WDI_IbssPeerInfoRspParams wdiPeerInfoRspParams;
6100
6101 /*Request status callback offered by UMAC - it is called if the current
6102 req has returned PENDING as status; it delivers the status of sending
6103 the message over the BUS */
6104 WDI_ReqStatusCb wdiReqStatusCB;
6105
6106 /*The user data passed in by UMAC, it will be sent back when the above
6107 function pointer will be called */
6108 void* pUserData;
6109}WDI_GetIbssPeerInfoRspType;
6110
6111/*---------------------------------------------------------------------------
6112 WDI_IbssPeerInfoReqType
6113---------------------------------------------------------------------------*/
6114typedef struct
6115{
6116 wpt_boolean wdiAllPeerInfoReqd; // Request info for all peers
6117 wpt_uint8 wdiStaIdx; // STA Index
6118 wpt_uint8 wdiBssIdx; // BSS Index
6119}WDI_IbssPeerInfoReqType;
6120
6121#endif /* WLAN_FEATURE_RMC */
6122
Dino Mycle41bdc942014-06-10 11:30:24 +05306123#ifdef WLAN_FEATURE_EXTSCAN
6124
6125#define WDI_WLAN_EXTSCAN_MAX_CHANNELS 16
6126#define WDI_WLAN_EXTSCAN_MAX_BUCKETS 16
6127#define WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS 128
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306128#define WDI_WLAN_EXTSCAN_MAX_HOTLIST_SSID 8
Dino Mycle41bdc942014-06-10 11:30:24 +05306129
6130typedef enum
6131{
6132 WDI_WIFI_BAND_UNSPECIFIED,
6133 WDI_WIFI_BAND_BG = 1, // 2.4 GHz
6134 WDI_WIFI_BAND_A = 2, // 5 GHz without DFS
6135 WDI_WIFI_BAND_ABG = 3, // 2.4 GHz + 5 GHz; no DFS
6136 WDI_WIFI_BAND_A_DFS = 4, // 5 GHz DFS only
6137 WDI_WIFI_BAND_A_WITH_DFS = 6, // 5 GHz with DFS
6138 WDI_WIFI_BAND_ABG_WITH_DFS = 7, // 2.4 GHz + 5 GHz with DFS
6139
6140 /* Keep it last */
6141 WDI_WIFI_BAND_MAX
6142} WDI_WifiBand;
6143
6144typedef struct
6145{
6146 wpt_uint32 channel; // frequency
6147 wpt_uint32 dwellTimeMs; // dwell time hint
6148 wpt_uint8 passive; // 0 => active,
6149 // 1 => passive scan; ignored for DFS
6150 wpt_uint8 chnlClass;
6151} WDI_WifiScanChannelSpec;
6152
6153typedef struct
6154{
6155 wpt_uint8 bucket; // bucket index, 0 based
6156 WDI_WifiBand band; // when UNSPECIFIED, use channel list
6157
6158 /*
6159 * desired period, in millisecond; if this is too
6160 * low, the firmware should choose to generate results as fast as
6161 * it can instead of failing the command byte
6162 */
6163 wpt_uint32 period;
6164
6165 /*
6166 * 0 => normal reporting (reporting rssi history
6167 * only, when rssi history buffer is % full)
6168 * 1 => same as 0 + report a scan completion event after scanning
6169 * this bucket
6170 * 2 => same as 1 + forward scan results (beacons/probe responses + IEs)
6171 * in real time to HAL
6172 */
6173 wpt_uint8 reportEvents;
6174
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306175 wpt_uint32 max_period;
6176 wpt_uint32 exponent;
6177 wpt_uint32 step_count;
6178
Dino Mycle41bdc942014-06-10 11:30:24 +05306179 wpt_uint8 numChannels;
6180
6181 /*
6182 * channels to scan; these may include DFS channels
6183 */
6184 WDI_WifiScanChannelSpec channels[WDI_WLAN_EXTSCAN_MAX_CHANNELS];
6185} WDI_WifiScanBucketSpec;
6186
6187typedef struct
6188{
6189 wpt_uint32 requestId;
6190 wpt_uint8 sessionId;
6191 wpt_uint32 basePeriod; // base timer period
6192 wpt_uint32 maxAPperScan;
6193
6194 /* in %, when buffer is this much full, wake up host */
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306195 wpt_uint32 reportThresholdPercent;
6196 wpt_uint32 reportThresholdNumScans;
Dino Mycle41bdc942014-06-10 11:30:24 +05306197
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306198 wpt_uint32 homeAwayTime; //in units of milliseconds
Dino Mycle41bdc942014-06-10 11:30:24 +05306199 wpt_uint8 numBuckets;
6200 WDI_WifiScanBucketSpec buckets[WDI_WLAN_EXTSCAN_MAX_BUCKETS];
6201} WDI_EXTScanStartReqParams;
6202
6203typedef struct
6204{
6205 wpt_uint32 requestId;
6206 wpt_uint8 sessionId;
6207} WDI_EXTScanStopReqParams;
6208
6209typedef struct
6210{
6211 wpt_uint32 requestId;
6212 wpt_uint8 sessionId;
6213
6214 /*
6215 * 1 return cached results and flush it
6216 * 0 return cached results and do not flush
6217 */
6218 wpt_boolean flush;
6219} WDI_EXTScanGetCachedResultsReqParams;
6220
6221typedef struct
6222{
6223 wpt_uint32 requestId;
6224 wpt_uint8 sessionId;
6225} WDI_EXTScanGetCapabilitiesReqParams;
6226
6227typedef struct
6228{
6229 wpt_uint8 bssid[6]; /* BSSID */
6230 wpt_int32 low; // low threshold
6231 wpt_int32 high; // high threshold
Dino Mycle41bdc942014-06-10 11:30:24 +05306232} WDI_APThresholdParam;
6233
6234typedef struct
6235{
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306236 WDI_MacSSid ssid; /* SSID */
6237 wpt_uint8 band; /* band */
6238 wpt_int32 lowRssiThreshold; /* low threshold */
6239 wpt_int32 highRssiThreshold; /* high threshold */
6240} WDI_SSIDThresholdParam;
6241
6242typedef struct
6243{
Dino Mycle41bdc942014-06-10 11:30:24 +05306244 wpt_int32 requestId;
6245 wpt_int8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar37f4fd12015-08-19 14:37:37 +05306246 wpt_uint32 lostBssidSampleSize;
6247 wpt_int32 numBssid; // number of hotlist APs
Dino Mycle41bdc942014-06-10 11:30:24 +05306248 WDI_APThresholdParam ap[WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS]; // hotlist APs
6249} WDI_EXTScanSetBSSIDHotlistReqParams;
6250
6251typedef struct
6252{
6253 wpt_uint32 requestId;
6254 wpt_uint8 sessionId;
6255} WDI_EXTScanResetBSSIDHotlistReqParams;
6256
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306257typedef struct
6258{
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +05306259 wpt_boolean pause;
6260 wpt_uint32 reserved;
6261} WDI_HighPriorityDataInfoIndParams;
6262
6263typedef struct
6264{
6265 wpt_int32 requestId;
6266 wpt_int8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306267 wpt_uint32 lostSsidSampleSize;
6268 wpt_uint32 numSsid; // number of hotlist APs
6269 WDI_SSIDThresholdParam ssid[WDI_WLAN_EXTSCAN_MAX_HOTLIST_SSID]; // hotlist SSIDs
6270} WDI_EXTScanSetSSIDHotlistReqParams;
6271
6272typedef struct
6273{
6274 wpt_uint32 requestId;
6275 wpt_uint8 sessionId;
6276} WDI_EXTScanResetSSIDHotlistReqParams;
6277
Dino Mycle41bdc942014-06-10 11:30:24 +05306278#endif /* WLAN_FEATURE_EXTSCAN */
6279
Sunil Duttbd736ed2014-05-26 21:19:41 +05306280#ifdef WLAN_FEATURE_LINK_LAYER_STATS
6281typedef struct
6282{
6283 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306284 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306285 wpt_uint32 mpduSizeThreshold;
6286 wpt_uint32 aggressiveStatisticsGathering;
6287}WDI_LLStatsSetReqType;
6288
6289typedef struct
6290{
6291 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306292 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306293 wpt_uint32 paramIdMask;
6294}WDI_LLStatsGetReqType;
6295
6296typedef struct
6297{
6298 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306299 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306300 wpt_uint32 statsClearReqMask;
6301 wpt_uint8 stopReq;
6302}WDI_LLStatsClearReqType;
Dino Mycled3d50022014-07-07 12:58:25 +05306303
Sunil Duttbd736ed2014-05-26 21:19:41 +05306304#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
6305
Siddharth Bhal171788a2014-09-29 21:02:40 +05306306/*---------------------------------------------------------------------------
6307 WDI_SPOOF_MAC_ADDR_REQ
6308---------------------------------------------------------------------------*/
6309typedef struct
6310{
6311 /* Spoof MAC Address for FW */
6312 wpt_macAddr macAddr;
6313
6314 /* Reserved Params/fields */
6315 wpt_uint32 params;
6316 wpt_uint32 reserved;
6317} WDI_SpoofMacAddrInfoType;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306318
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05306319//This is to force compiler to use the maximum of an int for enum
6320#define SIR_MAX_ENUM_SIZE 0x7FFFFFFF
6321// Enum to specify whether key is used
6322// for TX only, RX only or both
6323typedef enum
6324{
6325 eWDI_TX_ONLY,
6326 eWDI_RX_ONLY,
6327 eWDI_TX_RX,
6328 eWDI_TX_DEFAULT,
6329 eWDI_DONOT_USE_KEY_DIRECTION = SIR_MAX_ENUM_SIZE
6330} tWDIKeyDirection;
6331
6332// MAX key length when ULA is used
6333#define SIR_MAC_MAX_KEY_LENGTH 32
6334/* Max key size including the WAPI and TKIP */
6335#define WLAN_MAX_KEY_RSC_LEN 16
6336// Definition for Encryption Keys
6337//typedef struct sSirKeys
6338typedef struct
6339{
6340 wpt_uint8 keyId;
6341 wpt_uint8 unicast; // 0 for multicast
6342 tWDIKeyDirection keyDirection;
6343 wpt_uint8 keyRsc[WLAN_MAX_KEY_RSC_LEN]; // Usage is unknown
6344 wpt_uint8 paeRole; // =1 for authenticator,
6345 // =0 for supplicant
6346 wpt_uint16 keyLength;
6347 wpt_uint8 key[SIR_MAC_MAX_KEY_LENGTH];
6348} tWDIKeys, *tpWDIKeys;
6349
6350typedef enum
6351{
6352 eWDI_WEP_STATIC,
6353 eWDI_WEP_DYNAMIC,
6354} tWDIWepType;
6355
6356// Encryption type enum used with peer
6357typedef enum
6358{
6359 eWDI_ED_NONE,
6360 eWDI_ED_WEP40,
6361 eWDI_ED_WEP104,
6362 eWDI_ED_TKIP,
6363 eWDI_ED_CCMP,
6364#if defined(FEATURE_WLAN_WAPI)
6365 eWDI_ED_WPI,
6366#endif
6367 /* DPU HW treats encryption mode 4 plus RMF bit set in TX BD as BIP.
6368 * Thus while setting BIP encryption mode in corresponding DPU Desc
6369 * eSIR_ED_AES_128_CMAC should be set to eSIR_ED_CCMP
6370 */
6371 eWDI_ED_AES_128_CMAC,
6372 eWDI_ED_NOT_IMPLEMENTED = SIR_MAX_ENUM_SIZE
6373} tWDIEdType;
6374#define SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS 4
6375/*
6376 * This is used by PE to configure the key information on a given station.
6377 * When the secType is WEP40 or WEP104, the defWEPIdx is used to locate
6378 * a preconfigured key from a BSS the station assoicated with; otherwise
6379 * a new key descriptor is created based on the key field.
6380 */
6381typedef struct
6382{
6383 wpt_uint16 staIdx;
6384 tWDIEdType encType; // Encryption/Decryption type
6385 tWDIWepType wepType; // valid only for WEP
6386 wpt_uint8 defWEPIdx; // Default WEP key, valid only for static WEP, must between 0 and 3
6387 tWDIKeys key[SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS]; // valid only for non-static WEP encyrptions
6388 wpt_uint8 singleTidRc; // 1=Single TID based Replay Count, 0=Per TID based RC
6389 wpt_uint8 sessionId; // PE session id for PE<->HAL interface
6390} tWDISetStaKeyParams, *tpWDISetStaKeyParams;
6391
6392typedef struct
6393{
6394 tWDISetStaKeyParams keyParams;
6395 wpt_uint8 pn[6];
6396}wpt_encConfigParams;
6397
6398typedef struct
6399{
6400 wpt_uint16 length;
6401 wpt_uint8 data[WDI_DISA_MAX_PAYLOAD_SIZE];
6402}wpt_payload;
6403
6404typedef struct
6405{
6406 wpt_80211Header macHeader;
6407 wpt_encConfigParams encParams;
6408 wpt_payload data;
6409}wpt_pkt80211;
6410
Katya Nigamf0511f62015-05-05 16:40:57 +05306411#define NUM_FILTERS_SUPPORTED 1
6412typedef struct
6413{
6414 wpt_macAddr macAddr;
6415 wpt_uint8 isA1filter;
6416 wpt_uint8 isA2filter;
6417 wpt_uint8 isA3filter;
6418}WDI_filter;
6419
6420typedef struct
6421{
6422 /* start or stop */
6423 wpt_uint8 state;
6424 /*Conversion of packet required or not*/
6425 wpt_uint8 is80211to803ConReq;
6426 wpt_uint32 ChannelNo;
6427 wpt_uint32 ChannelBW;
6428 wpt_uint8 crcCheckEnabled;
6429 wpt_uint8 numOfMacFilters;
6430 WDI_filter mmFilters[NUM_FILTERS_SUPPORTED];
6431 wpt_uint64 typeSubtypeBitmap;
6432 wpt_uint64 rsvd;
6433
6434}WDI_MonStartReqType;
6435
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306436typedef struct
6437{
6438 wpt_uint8 paramType;
6439 wpt_uint32 paramValue;
6440 wpt_macAddr bssId;
6441}WDI_WifiConfigSetReqType;
6442
c_manjeecfd1efb2015-09-25 19:32:34 +05306443/**
6444 * struct WDI_FwrMemDumpReqType - firmware memory dump request details.
6445.*.@FWMemDumpReqCb - Associated Callback
6446 *.@fwMemDumpReqContext - Callback context
6447 * @reserved - reserved field 1.
6448 *
6449 * This structure carries information about the firmware
6450 * memory dump request.
6451 */
6452typedef struct
6453{
6454 wpt_uint32 reserved1;
6455}WDI_FwrMemDumpReqType;
6456
6457/**
6458 * struct WDI_FwrMemDumpRsp - firmware dump response details.
6459 *
6460 * This structure is used to store the firmware dump
6461 * response from the firmware.
6462 */
6463typedef struct
6464{
6465 wpt_uint32 dump_status;
6466}WDI_FwrMemDumpRsp;
6467
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306468typedef struct
6469{
6470 wpt_uint32 wificonfigset_status;
6471}WDI_WifconfigSetRsp;
c_manjeecfd1efb2015-09-25 19:32:34 +05306472
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +05306473/**
6474 * struct WDI_ModifyRoamParamsReqType - Modified roam parameter details.
6475 *
6476 */
6477
6478typedef struct {
6479 wpt_uint8 param;
6480 wpt_uint32 value;
6481}WDI_ModifyRoamParamsReqType;
6482
Selvaraj, Sridharc045b8b2016-04-06 12:22:35 +05306483/**
6484 * struct WDI_AllowedActionFramesInd - Allowed Action frames details
6485 *
6486 */
6487struct WDI_AllowedActionFramesInd {
6488 wpt_uint32 bitmask;
6489 wpt_uint32 reserved;
6490};
Jeff Johnson295189b2012-06-20 16:38:30 -07006491/*----------------------------------------------------------------------------
6492 * WDI callback types
6493 *--------------------------------------------------------------------------*/
6494
6495/*---------------------------------------------------------------------------
6496 WDI_StartRspCb
6497
6498 DESCRIPTION
6499
6500 This callback is invoked by DAL when it has received a Start response from
6501 the underlying device.
6502
6503 PARAMETERS
6504
6505 IN
6506 wdiRspParams: response parameters received from HAL
6507 pUserData: user data
6508
6509
6510 RETURN VALUE
6511 The result code associated with performing the operation
6512---------------------------------------------------------------------------*/
6513typedef void (*WDI_StartRspCb)(WDI_StartRspParamsType* pwdiRspParams,
6514 void* pUserData);
6515
6516/*---------------------------------------------------------------------------
6517 WDI_StartRspCb
6518
6519 DESCRIPTION
6520
6521 This callback is invoked by DAL when it has received a Stop response from
6522 the underlying device.
6523
6524 PARAMETERS
6525
6526 IN
6527 wdiStatus: response status received from HAL
6528 pUserData: user data
6529
6530
6531
6532 RETURN VALUE
6533 The result code associated with performing the operation
6534---------------------------------------------------------------------------*/
6535typedef void (*WDI_StopRspCb)(WDI_Status wdiStatus,
6536 void* pUserData);
6537
6538/*---------------------------------------------------------------------------
6539 WDI_StartRspCb
6540
6541 DESCRIPTION
6542
6543 This callback is invoked by DAL when it has received an Init Scan response
6544 from the underlying device.
6545
6546 PARAMETERS
6547
6548 IN
6549 wdiStatus: response status received from HAL
6550 pUserData: user data
6551
6552
6553
6554 RETURN VALUE
6555 The result code associated with performing the operation
6556---------------------------------------------------------------------------*/
6557typedef void (*WDI_InitScanRspCb)(WDI_Status wdiStatus,
6558 void* pUserData);
6559
6560
6561/*---------------------------------------------------------------------------
6562 WDI_StartRspCb
6563
6564 DESCRIPTION
6565
6566 This callback is invoked by DAL when it has received a StartScan response
6567 from the underlying device.
6568
6569 PARAMETERS
6570
6571 IN
6572 wdiParams: response params received from HAL
6573 pUserData: user data
6574
6575
6576
6577 RETURN VALUE
6578 The result code associated with performing the operation
6579---------------------------------------------------------------------------*/
6580typedef void (*WDI_StartScanRspCb)(WDI_StartScanRspParamsType* wdiParams,
6581 void* pUserData);
6582
6583
6584/*---------------------------------------------------------------------------
6585 WDI_StartRspCb
6586
6587 DESCRIPTION
6588
6589 This callback is invoked by DAL when it has received a End Scan response
6590 from the underlying device.
6591
6592 PARAMETERS
6593
6594 IN
6595 wdiStatus: response status received from HAL
6596 pUserData: user data
6597
6598
6599
6600 RETURN VALUE
6601 The result code associated with performing the operation
6602---------------------------------------------------------------------------*/
6603typedef void (*WDI_EndScanRspCb)(WDI_Status wdiStatus,
6604 void* pUserData);
6605
6606
6607/*---------------------------------------------------------------------------
6608 WDI_StartRspCb
6609
6610 DESCRIPTION
6611
6612 This callback is invoked by DAL when it has received a Finish Scan response
6613 from the underlying device.
6614
6615 PARAMETERS
6616
6617 IN
6618 wdiStatus: response status received from HAL
6619 pUserData: user data
6620
6621
6622
6623 RETURN VALUE
6624 The result code associated with performing the operation
6625---------------------------------------------------------------------------*/
6626typedef void (*WDI_FinishScanRspCb)(WDI_Status wdiStatus,
6627 void* pUserData);
6628
6629
6630/*---------------------------------------------------------------------------
6631 WDI_StartRspCb
6632
6633 DESCRIPTION
6634
6635 This callback is invoked by DAL when it has received a Join response from
6636 the underlying device.
6637
6638 PARAMETERS
6639
6640 IN
6641 wdiStatus: response status received from HAL
6642 pUserData: user data
6643
6644
6645
6646 RETURN VALUE
6647 The result code associated with performing the operation
6648---------------------------------------------------------------------------*/
6649typedef void (*WDI_JoinRspCb)(WDI_Status wdiStatus,
6650 void* pUserData);
6651
6652
6653/*---------------------------------------------------------------------------
6654 WDI_StartRspCb
6655
6656 DESCRIPTION
6657
6658 This callback is invoked by DAL when it has received a Config BSS response
6659 from the underlying device.
6660
6661 PARAMETERS
6662
6663 IN
6664 wdiConfigBSSRsp: response parameters received from HAL
6665 pUserData: user data
6666
6667
6668 RETURN VALUE
6669 The result code associated with performing the operation
6670---------------------------------------------------------------------------*/
6671typedef void (*WDI_ConfigBSSRspCb)(
6672 WDI_ConfigBSSRspParamsType* pwdiConfigBSSRsp,
6673 void* pUserData);
6674
6675
6676/*---------------------------------------------------------------------------
6677 WDI_StartRspCb
6678
6679 DESCRIPTION
6680
6681 This callback is invoked by DAL when it has received a Del BSS response from
6682 the underlying device.
6683
6684 PARAMETERS
6685
6686 IN
6687 wdiDelBSSRsp: response parameters received from HAL
6688 pUserData: user data
6689
6690
6691 RETURN VALUE
6692 The result code associated with performing the operation
6693---------------------------------------------------------------------------*/
6694typedef void (*WDI_DelBSSRspCb)(WDI_DelBSSRspParamsType* pwdiDelBSSRsp,
6695 void* pUserData);
6696
6697
6698/*---------------------------------------------------------------------------
6699 WDI_StartRspCb
6700
6701 DESCRIPTION
6702
6703 This callback is invoked by DAL when it has received a Post Assoc response
6704 from the underlying device.
6705
6706 PARAMETERS
6707
6708 IN
6709 wdiRspParams: response parameters received from HAL
6710 pUserData: user data
6711
6712
6713 RETURN VALUE
6714 The result code associated with performing the operation
6715---------------------------------------------------------------------------*/
6716typedef void (*WDI_PostAssocRspCb)(
6717 WDI_PostAssocRspParamsType* pwdiPostAssocRsp,
6718 void* pUserData);
6719
6720
6721/*---------------------------------------------------------------------------
6722 WDI_StartRspCb
6723
6724 DESCRIPTION
6725
6726 This callback is invoked by DAL when it has received a Del STA response from
6727 the underlying device.
6728
6729 PARAMETERS
6730
6731 IN
6732 wdiDelSTARsp: response parameters received from HAL
6733 pUserData: user data
6734
6735
6736 RETURN VALUE
6737 The result code associated with performing the operation
6738---------------------------------------------------------------------------*/
6739typedef void (*WDI_DelSTARspCb)(WDI_DelSTARspParamsType* pwdiDelSTARsp,
6740 void* pUserData);
6741
6742
6743
6744/*---------------------------------------------------------------------------
6745 WDI_StartRspCb
6746
6747 DESCRIPTION
6748
6749 This callback is invoked by DAL when it has received a Set BSS Key response
6750 from the underlying device.
6751
6752 PARAMETERS
6753
6754 IN
6755 wdiStatus: response status received from HAL
6756 pUserData: user data
6757
6758
6759
6760 RETURN VALUE
6761 The result code associated with performing the operation
6762---------------------------------------------------------------------------*/
6763typedef void (*WDI_SetBSSKeyRspCb)(WDI_Status wdiStatus,
6764 void* pUserData);
6765
6766/*---------------------------------------------------------------------------
6767 WDI_StartRspCb
6768
6769 DESCRIPTION
6770
6771 This callback is invoked by DAL when it has received a Remove BSS Key
6772 response from the underlying device.
6773
6774 PARAMETERS
6775
6776 IN
6777 wdiStatus: response status received from HAL
6778 pUserData: user data
6779
6780
6781
6782 RETURN VALUE
6783 The result code associated with performing the operation
6784---------------------------------------------------------------------------*/
6785typedef void (*WDI_RemoveBSSKeyRspCb)(WDI_Status wdiStatus,
6786 void* pUserData);
6787
6788/*---------------------------------------------------------------------------
6789 WDI_StartRspCb
6790
6791 DESCRIPTION
6792
6793 This callback is invoked by DAL when it has received a Set STA Key response
6794 from the underlying device.
6795
6796 PARAMETERS
6797
6798 IN
6799 wdiStatus: response status received from HAL
6800 pUserData: user data
6801
6802
Jeff Johnson295189b2012-06-20 16:38:30 -07006803 RETURN VALUE
6804 The result code associated with performing the operation
6805---------------------------------------------------------------------------*/
6806typedef void (*WDI_SetSTAKeyRspCb)(WDI_Status wdiStatus,
6807 void* pUserData);
6808
Jeff Johnson295189b2012-06-20 16:38:30 -07006809/*---------------------------------------------------------------------------
6810 WDI_StartRspCb
6811
6812 DESCRIPTION
6813
6814 This callback is invoked by DAL when it has received a Remove STA Key
6815 response from the underlying device.
6816
6817 PARAMETERS
6818
6819 IN
6820 wdiStatus: response status received from HAL
6821 pUserData: user data
6822
Siddharth Bhal171788a2014-09-29 21:02:40 +05306823
Jeff Johnson295189b2012-06-20 16:38:30 -07006824 RETURN VALUE
6825 The result code associated with performing the operation
6826---------------------------------------------------------------------------*/
6827typedef void (*WDI_RemoveSTAKeyRspCb)(WDI_Status wdiStatus,
6828 void* pUserData);
6829
6830
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006831#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07006832/*---------------------------------------------------------------------------
6833 WDI_TsmRspCb
6834
6835 DESCRIPTION
6836
6837 This callback is invoked by DAL when it has received a TSM Stats response from the underlying device.
6838
6839 PARAMETERS
6840
6841 IN
6842 pTSMStats: response status received from HAL
6843 pUserData: user data
6844
6845
6846
6847 RETURN VALUE
6848 The result code associated with performing the operation
6849---------------------------------------------------------------------------*/
6850typedef void (*WDI_TsmRspCb)(WDI_TSMStatsRspParamsType *pTSMStats,
6851 void* pUserData);
6852#endif
6853
6854/*---------------------------------------------------------------------------
6855 WDI_StartRspCb
6856
6857 DESCRIPTION
6858
6859 This callback is invoked by DAL when it has received a Add TS response from
6860 the underlying device.
6861
6862 PARAMETERS
6863
6864 IN
6865 wdiStatus: response status received from HAL
6866 pUserData: user data
6867
6868
6869
6870 RETURN VALUE
6871 The result code associated with performing the operation
6872---------------------------------------------------------------------------*/
6873typedef void (*WDI_AddTsRspCb)(WDI_Status wdiStatus,
6874 void* pUserData);
6875
6876/*---------------------------------------------------------------------------
6877 WDI_StartRspCb
6878
6879 DESCRIPTION
6880
6881 This callback is invoked by DAL when it has received a Del TS response from
6882 the underlying device.
6883
6884 PARAMETERS
6885
6886 IN
6887 wdiStatus: response status received from HAL
6888 pUserData: user data
6889
6890
6891
6892 RETURN VALUE
6893 The result code associated with performing the operation
6894---------------------------------------------------------------------------*/
6895typedef void (*WDI_DelTsRspCb)(WDI_Status wdiStatus,
6896 void* pUserData);
6897
6898/*---------------------------------------------------------------------------
6899 WDI_StartRspCb
6900
6901 DESCRIPTION
6902
6903 This callback is invoked by DAL when it has received an Update EDCA Params
6904 response from the underlying device.
6905
6906 PARAMETERS
6907
6908 IN
6909 wdiStatus: response status received from HAL
6910 pUserData: user data
6911
6912
6913
6914 RETURN VALUE
6915 The result code associated with performing the operation
6916---------------------------------------------------------------------------*/
6917typedef void (*WDI_UpdateEDCAParamsRspCb)(WDI_Status wdiStatus,
6918 void* pUserData);
6919
6920/*---------------------------------------------------------------------------
6921 WDI_StartRspCb
6922
6923 DESCRIPTION
6924
6925 This callback is invoked by DAL when it has received a Add BA response from
6926 the underlying device.
6927
6928 PARAMETERS
6929
6930 IN
6931 wdiStatus: response status received from HAL
6932 pUserData: user data
6933
6934
6935
6936 RETURN VALUE
6937 The result code associated with performing the operation
6938---------------------------------------------------------------------------*/
6939typedef void (*WDI_AddBASessionRspCb)(
6940 WDI_AddBASessionRspParamsType* wdiAddBASessionRsp,
6941 void* pUserData);
6942
6943
6944/*---------------------------------------------------------------------------
6945 WDI_StartRspCb
6946
6947 DESCRIPTION
6948
6949 This callback is invoked by DAL when it has received a Del BA response from
6950 the underlying device.
6951
6952 PARAMETERS
6953
6954 IN
6955 wdiStatus: response status received from HAL
6956 pUserData: user data
6957
6958
6959
6960 RETURN VALUE
6961 The result code associated with performing the operation
6962---------------------------------------------------------------------------*/
6963typedef void (*WDI_DelBARspCb)(WDI_Status wdiStatus,
6964 void* pUserData);
6965
6966
6967/*---------------------------------------------------------------------------
6968 WDI_StartRspCb
6969
6970 DESCRIPTION
6971
6972 This callback is invoked by DAL when it has received a Switch Ch response
6973 from the underlying device.
6974
6975 PARAMETERS
6976
6977 IN
6978 wdiRspParams: response parameters received from HAL
6979 pUserData: user data
6980
6981
6982 RETURN VALUE
6983 The result code associated with performing the operation
6984---------------------------------------------------------------------------*/
6985typedef void (*WDI_SwitchChRspCb)(WDI_SwitchCHRspParamsType* pwdiSwitchChRsp,
6986 void* pUserData);
6987
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08006988typedef void (*WDI_SwitchChRspCb_V1)(WDI_SwitchChRspParamsType_V1* pwdiSwitchChRsp,
6989 void* pUserData);
6990
Jeff Johnson295189b2012-06-20 16:38:30 -07006991
6992/*---------------------------------------------------------------------------
6993 WDI_StartRspCb
6994
6995 DESCRIPTION
6996
6997 This callback is invoked by DAL when it has received a Config STA response
6998 from the underlying device.
6999
7000 PARAMETERS
7001
7002 IN
7003 wdiRspParams: response parameters received from HAL
7004 pUserData: user data
7005
7006
7007 RETURN VALUE
7008 The result code associated with performing the operation
7009---------------------------------------------------------------------------*/
7010typedef void (*WDI_ConfigSTARspCb)(
7011 WDI_ConfigSTARspParamsType* pwdiConfigSTARsp,
7012 void* pUserData);
7013
7014
7015/*---------------------------------------------------------------------------
7016 WDI_StartRspCb
7017
7018 DESCRIPTION
7019
7020 This callback is invoked by DAL when it has received a Set Link State
7021 response from the underlying device.
7022
7023 PARAMETERS
7024
7025 IN
7026 wdiRspParams: response parameters received from HAL
7027 pUserData: user data
7028
7029
7030 RETURN VALUE
7031 The result code associated with performing the operation
7032---------------------------------------------------------------------------*/
7033typedef void (*WDI_SetLinkStateRspCb)( WDI_Status wdiStatus,
7034 void* pUserData);
7035
7036
7037/*---------------------------------------------------------------------------
7038 WDI_StartRspCb
7039
7040 DESCRIPTION
7041
7042 This callback is invoked by DAL when it has received a Get Stats response
7043 from the underlying device.
7044
7045 PARAMETERS
7046
7047 IN
7048 wdiRspParams: response parameters received from HAL
7049 pUserData: user data
7050
7051
7052 RETURN VALUE
7053 The result code associated with performing the operation
7054---------------------------------------------------------------------------*/
7055typedef void (*WDI_GetStatsRspCb)(WDI_GetStatsRspParamsType* pwdiGetStatsRsp,
7056 void* pUserData);
7057
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08007058#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08007059/*---------------------------------------------------------------------------
7060 WDI_GetRoamRssiRspCb
7061
7062 DESCRIPTION
7063
7064 This callback is invoked by DAL when it has received a Get Roam Rssi response
7065 from the underlying device.
7066
7067 PARAMETERS
7068
7069 IN
7070 wdiRspParams: response parameters received from HAL
7071 pUserData: user data
7072
7073
7074 RETURN VALUE
7075 The result code associated with performing the operation
7076---------------------------------------------------------------------------*/
7077typedef void (*WDI_GetRoamRssiRspCb)(WDI_GetRoamRssiRspParamsType* pwdiGetRoamRssiRsp,
7078 void* pUserData);
7079#endif
7080
Jeff Johnson295189b2012-06-20 16:38:30 -07007081
7082/*---------------------------------------------------------------------------
7083 WDI_StartRspCb
7084
7085 DESCRIPTION
7086
7087 This callback is invoked by DAL when it has received a Update Cfg response
7088 from the underlying device.
7089
7090 PARAMETERS
7091
7092 IN
7093 wdiStatus: response status received from HAL
7094 pUserData: user data
7095
7096
7097 RETURN VALUE
7098 The result code associated with performing the operation
7099---------------------------------------------------------------------------*/
7100typedef void (*WDI_UpdateCfgRspCb)(WDI_Status wdiStatus,
7101 void* pUserData);
7102
7103/*---------------------------------------------------------------------------
7104 WDI_AddBARspCb
7105
7106 DESCRIPTION
7107
7108 This callback is invoked by DAL when it has received a ADD BA response
7109 from the underlying device.
7110
7111 PARAMETERS
7112
7113 IN
7114 wdiStatus: response status received from HAL
7115 pUserData: user data
7116
7117
7118 RETURN VALUE
7119 The result code associated with performing the operation
7120---------------------------------------------------------------------------*/
7121typedef void (*WDI_AddBARspCb)(WDI_AddBARspinfoType* wdiAddBARsp,
7122 void* pUserData);
7123
7124/*---------------------------------------------------------------------------
7125 WDI_TriggerBARspCb
7126
7127 DESCRIPTION
7128
7129 This callback is invoked by DAL when it has received a ADD BA response
7130 from the underlying device.
7131
7132 PARAMETERS
7133
7134 IN
7135 wdiStatus: response status received from HAL
7136 pUserData: user data
7137
7138
7139 RETURN VALUE
7140 The result code associated with performing the operation
7141---------------------------------------------------------------------------*/
7142typedef void (*WDI_TriggerBARspCb)(WDI_TriggerBARspParamsType* wdiTriggerBARsp,
7143 void* pUserData);
7144
7145
7146/*---------------------------------------------------------------------------
7147 WDI_UpdateBeaconParamsRspCb
7148
7149 DESCRIPTION
7150
7151 This callback is invoked by DAL when it has received a Update Beacon Params response from
7152 the underlying device.
7153
7154 PARAMETERS
7155
7156 IN
7157 wdiStatus: response status received from HAL
7158 pUserData: user data
7159
7160
7161
7162 RETURN VALUE
7163 The result code associated with performing the operation
7164---------------------------------------------------------------------------*/
7165typedef void (*WDI_UpdateBeaconParamsRspCb)(WDI_Status wdiStatus,
7166 void* pUserData);
7167
7168/*---------------------------------------------------------------------------
7169 WDI_SendBeaconParamsRspCb
7170
7171 DESCRIPTION
7172
7173 This callback is invoked by DAL when it has received a Send Beacon Params response from
7174 the underlying device.
7175
7176 PARAMETERS
7177
7178 IN
7179 wdiStatus: response status received from HAL
7180 pUserData: user data
7181
7182
7183
7184 RETURN VALUE
7185 The result code associated with performing the operation
7186---------------------------------------------------------------------------*/
7187typedef void (*WDI_SendBeaconParamsRspCb)(WDI_Status wdiStatus,
7188 void* pUserData);
7189
7190/*---------------------------------------------------------------------------
7191 WDA_SetMaxTxPowerRspCb
7192
7193 DESCRIPTION
7194
7195 This callback is invoked by DAL when it has received a set max Tx Power response from
7196 the underlying device.
7197
7198 PARAMETERS
7199
7200 IN
7201 wdiStatus: response status received from HAL
7202 pUserData: user data
7203
7204
7205
7206 RETURN VALUE
7207 The result code associated with performing the operation
7208---------------------------------------------------------------------------*/
7209typedef void (*WDA_SetMaxTxPowerRspCb)(WDI_SetMaxTxPowerRspMsg *wdiSetMaxTxPowerRsp,
7210 void* pUserData);
7211
7212/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07007213 WDA_SetMaxTxPowerPerBandRspCb
7214
7215 DESCRIPTION
7216
7217 This callback is invoked by DAL when it has received a
7218 set max Tx Power Per Band response from the underlying device.
7219
7220 PARAMETERS
7221
7222 IN
7223 wdiSetMaxTxPowerPerBandRsp: response status received from HAL
7224 pUserData: user data
7225
7226 RETURN VALUE
7227 The result code associated with performing the operation
7228---------------------------------------------------------------------------*/
7229typedef void (*WDA_SetMaxTxPowerPerBandRspCb)(WDI_SetMaxTxPowerPerBandRspMsg
7230 *wdiSetMaxTxPowerPerBandRsp,
7231 void* pUserData);
7232
7233/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07007234 WDA_SetTxPowerRspCb
7235
7236 DESCRIPTION
7237
7238 This callback is invoked by DAL when it has received a set max Tx Power response from
7239 the underlying device.
7240
7241 PARAMETERS
7242
7243 IN
7244 wdiStatus: response status received from HAL
7245 pUserData: user data
7246
7247 RETURN VALUE
7248 The result code associated with performing the operation
7249---------------------------------------------------------------------------*/
7250typedef void (*WDA_SetTxPowerRspCb)(WDI_SetTxPowerRspMsg *wdiSetTxPowerRsp,
7251 void* pUserData);
7252
7253/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007254 WDI_UpdateProbeRspTemplateRspCb
7255
7256 DESCRIPTION
7257
7258 This callback is invoked by DAL when it has received a Probe RSP Template
7259 Update response from the underlying device.
7260
7261 PARAMETERS
7262
7263 IN
7264 wdiStatus: response status received from HAL
7265 pUserData: user data
7266
7267
7268
7269 RETURN VALUE
7270 The result code associated with performing the operation
7271---------------------------------------------------------------------------*/
7272typedef void (*WDI_UpdateProbeRspTemplateRspCb)(WDI_Status wdiStatus,
7273 void* pUserData);
7274
Jeff Johnson295189b2012-06-20 16:38:30 -07007275/*---------------------------------------------------------------------------
7276 WDI_SetP2PGONOAReqParamsRspCb
7277
7278 DESCRIPTION
7279
7280 This callback is invoked by DAL when it has received a P2P GO NOA Params response from
7281 the underlying device.
7282
7283 PARAMETERS
7284
7285 IN
7286 wdiStatus: response status received from HAL
7287 pUserData: user data
7288
7289
7290
7291 RETURN VALUE
7292 The result code associated with performing the operation
7293---------------------------------------------------------------------------*/
7294typedef void (*WDI_SetP2PGONOAReqParamsRspCb)(WDI_Status wdiStatus,
7295 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007296
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307297/*---------------------------------------------------------------------------
7298 WDI_SetTDLSLinkEstablishReqParamsRspCb
7299
7300 DESCRIPTION
7301
7302 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7303 the underlying device.
7304
7305 PARAMETERS
7306
7307 IN
7308 wdiStatus: response status received from HAL
7309 pUserData: user data
7310
7311
7312
7313 RETURN VALUE
7314 The result code associated with performing the operation
7315---------------------------------------------------------------------------*/
Gopichand Nakkala574f6d12013-06-27 19:38:43 +05307316typedef void (*WDI_SetTDLSLinkEstablishReqParamsRspCb)(WDI_SetTdlsLinkEstablishReqResp *
7317 wdiSetTdlsLinkEstablishReqRsp,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307318 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007319
7320/*---------------------------------------------------------------------------
Atul Mittalc0f739f2014-07-31 13:47:47 +05307321 WDI_SetTDLSChanSwitchReqParamsRspCb
7322
7323 DESCRIPTION
7324
7325 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7326 the underlying device.
7327
7328 PARAMETERS
7329
7330 IN
7331 wdiStatus: response status received from HAL
7332 pUserData: user data
7333
7334
7335
7336 RETURN VALUE
7337 The result code associated with performing the operation
7338---------------------------------------------------------------------------*/
7339typedef void (*WDI_SetTDLSChanSwitchReqParamsRspCb)(WDI_SetTdlsChanSwitchReqResp *
7340 wdiSetTdlsChanSwitchReqRsp,
7341 void* pUserData);
7342/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007343 WDI_SetPwrSaveCfgCb
7344
7345 DESCRIPTION
7346
7347 This callback is invoked by DAL when it has received a set Power Save CFG
7348 response from the underlying device.
7349
7350 PARAMETERS
7351
7352 IN
7353 wdiStatus: response status received from HAL
7354 pUserData: user data
7355
7356
7357
7358 RETURN VALUE
7359 The result code associated with performing the operation
7360---------------------------------------------------------------------------*/
7361typedef void (*WDI_SetPwrSaveCfgCb)(WDI_Status wdiStatus,
7362 void* pUserData);
7363
7364/*---------------------------------------------------------------------------
7365 WDI_SetUapsdAcParamsCb
7366
7367 DESCRIPTION
7368
7369 This callback is invoked by DAL when it has received a set UAPSD params
7370 response from the underlying device.
7371
7372 PARAMETERS
7373
7374 IN
7375 wdiStatus: response status received from HAL
7376 pUserData: user data
7377
7378
7379
7380 RETURN VALUE
7381 The result code associated with performing the operation
7382---------------------------------------------------------------------------*/
7383typedef void (*WDI_SetUapsdAcParamsCb)(WDI_Status wdiStatus,
7384 void* pUserData);
7385
7386/*---------------------------------------------------------------------------
7387 WDI_EnterImpsRspCb
7388
7389 DESCRIPTION
7390
7391 This callback is invoked by DAL when it has received a Enter IMPS response
7392 from the underlying device.
7393
7394 PARAMETERS
7395
7396 IN
7397 wdiStatus: response status received from HAL
7398 pUserData: user data
7399
7400
7401
7402 RETURN VALUE
7403 The result code associated with performing the operation
7404---------------------------------------------------------------------------*/
7405typedef void (*WDI_EnterImpsRspCb)(WDI_Status wdiStatus,
7406 void* pUserData);
7407
7408/*---------------------------------------------------------------------------
7409 WDI_ExitImpsRspCb
7410
7411 DESCRIPTION
7412
7413 This callback is invoked by DAL when it has received a Exit IMPS response
7414 from the underlying device.
7415
7416 PARAMETERS
7417
7418 IN
7419 wdiStatus: response status received from HAL
7420 pUserData: user data
7421
7422
7423
7424 RETURN VALUE
7425 The result code associated with performing the operation
7426---------------------------------------------------------------------------*/
7427typedef void (*WDI_ExitImpsRspCb)(WDI_Status wdiStatus,
7428 void* pUserData);
7429
7430/*---------------------------------------------------------------------------
7431 WDI_EnterBmpsRspCb
7432
7433 DESCRIPTION
7434
7435 This callback is invoked by DAL when it has received a enter BMPS response
7436 from the underlying device.
7437
7438 PARAMETERS
7439
7440 IN
7441 wdiStatus: response status received from HAL
7442 pUserData: user data
7443
7444
7445
7446 RETURN VALUE
7447 The result code associated with performing the operation
7448---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007449typedef void (*WDI_EnterBmpsRspCb)(WDI_EnterBmpsRspParamsType *pwdiEnterBmpsRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007450 void* pUserData);
7451
7452/*---------------------------------------------------------------------------
7453 WDI_ExitBmpsRspCb
7454
7455 DESCRIPTION
7456
7457 This callback is invoked by DAL when it has received a exit BMPS response
7458 from the underlying device.
7459
7460 PARAMETERS
7461
7462 IN
7463 wdiStatus: response status received from HAL
7464 pUserData: user data
7465
7466
7467
7468 RETURN VALUE
7469 The result code associated with performing the operation
7470---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007471typedef void (*WDI_ExitBmpsRspCb)( WDI_ExitBmpsRspParamsType *pwdiExitBmpsRspParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007472 void* pUserData);
7473
7474/*---------------------------------------------------------------------------
7475 WDI_EnterUapsdRspCb
7476
7477 DESCRIPTION
7478
7479 This callback is invoked by DAL when it has received a enter UAPSD response
7480 from the underlying device.
7481
7482 PARAMETERS
7483
7484 IN
7485 wdiStatus: response status received from HAL
7486 pUserData: user data
7487
7488
7489
7490 RETURN VALUE
7491 The result code associated with performing the operation
7492---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007493typedef void (*WDI_EnterUapsdRspCb)( WDI_EnterUapsdRspParamsType *pwdiEnterUapsdRspParam,
Jeff Johnson295189b2012-06-20 16:38:30 -07007494 void* pUserData);
7495
7496/*---------------------------------------------------------------------------
7497 WDI_ExitUapsdRspCb
7498
7499 DESCRIPTION
7500
7501 This callback is invoked by DAL when it has received a exit UAPSD response
7502 from the underlying device.
7503
7504 PARAMETERS
7505
7506 IN
7507 wdiStatus: response status received from HAL
7508 pUserData: user data
7509
7510
7511
7512 RETURN VALUE
7513 The result code associated with performing the operation
7514---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007515typedef void (*WDI_ExitUapsdRspCb)(WDI_ExitUapsdRspParamsType *pwidExitUapsdRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007516 void* pUserData);
7517
7518/*---------------------------------------------------------------------------
7519 WDI_UpdateUapsdParamsCb
7520
7521 DESCRIPTION
7522
7523 This callback is invoked by DAL when it has received a update UAPSD params
7524 response from the underlying device.
7525
7526 PARAMETERS
7527
7528 IN
7529 wdiStatus: response status received from HAL
7530 pUserData: user data
7531
7532
7533
7534 RETURN VALUE
7535 The result code associated with performing the operation
7536---------------------------------------------------------------------------*/
7537typedef void (*WDI_UpdateUapsdParamsCb)(WDI_Status wdiStatus,
7538 void* pUserData);
7539
7540/*---------------------------------------------------------------------------
7541 WDI_ConfigureRxpFilterCb
7542
7543 DESCRIPTION
7544
7545 This callback is invoked by DAL when it has received a config RXP filter
7546 response from the underlying device.
7547
7548 PARAMETERS
7549
7550 IN
7551 wdiStatus: response status received from HAL
7552 pUserData: user data
7553
7554
7555
7556 RETURN VALUE
7557 The result code associated with performing the operation
7558---------------------------------------------------------------------------*/
7559typedef void (*WDI_ConfigureRxpFilterCb)(WDI_Status wdiStatus,
7560 void* pUserData);
7561
7562/*---------------------------------------------------------------------------
7563 WDI_SetBeaconFilterCb
7564
7565 DESCRIPTION
7566
7567 This callback is invoked by DAL when it has received a set beacon filter
7568 response from the underlying device.
7569
7570 PARAMETERS
7571
7572 IN
7573 wdiStatus: response status received from HAL
7574 pUserData: user data
7575
7576
7577
7578 RETURN VALUE
7579 The result code associated with performing the operation
7580---------------------------------------------------------------------------*/
7581typedef void (*WDI_SetBeaconFilterCb)(WDI_Status wdiStatus,
7582 void* pUserData);
7583
7584/*---------------------------------------------------------------------------
7585 WDI_RemBeaconFilterCb
7586
7587 DESCRIPTION
7588
7589 This callback is invoked by DAL when it has received a remove beacon filter
7590 response from the underlying device.
7591
7592 PARAMETERS
7593
7594 IN
7595 wdiStatus: response status received from HAL
7596 pUserData: user data
7597
7598
7599
7600 RETURN VALUE
7601 The result code associated with performing the operation
7602---------------------------------------------------------------------------*/
7603typedef void (*WDI_RemBeaconFilterCb)(WDI_Status wdiStatus,
7604 void* pUserData);
7605
7606/*---------------------------------------------------------------------------
7607 WDI_SetRSSIThresholdsCb
7608
7609 DESCRIPTION
7610
7611 This callback is invoked by DAL when it has received a set RSSI thresholds
7612 response from the underlying device.
7613
7614 PARAMETERS
7615
7616 IN
7617 wdiStatus: response status received from HAL
7618 pUserData: user data
7619
7620
7621
7622 RETURN VALUE
7623 The result code associated with performing the operation
7624---------------------------------------------------------------------------*/
7625typedef void (*WDI_SetRSSIThresholdsCb)(WDI_Status wdiStatus,
7626 void* pUserData);
7627
7628/*---------------------------------------------------------------------------
7629 WDI_HostOffloadCb
7630
7631 DESCRIPTION
7632
7633 This callback is invoked by DAL when it has received a host offload
7634 response from the underlying device.
7635
7636 PARAMETERS
7637
7638 IN
7639 wdiStatus: response status received from HAL
7640 pUserData: user data
7641
7642
7643
7644 RETURN VALUE
7645 The result code associated with performing the operation
7646---------------------------------------------------------------------------*/
7647typedef void (*WDI_HostOffloadCb)(WDI_Status wdiStatus,
7648 void* pUserData);
7649
7650/*---------------------------------------------------------------------------
7651 WDI_KeepAliveCb
7652
7653 DESCRIPTION
7654
7655 This callback is invoked by DAL when it has received a Keep Alive
7656 response from the underlying device.
7657
7658 PARAMETERS
7659
7660 IN
7661 wdiStatus: response status received from HAL
7662 pUserData: user data
7663
7664
7665
7666 RETURN VALUE
7667 The result code associated with performing the operation
7668---------------------------------------------------------------------------*/
7669typedef void (*WDI_KeepAliveCb)(WDI_Status wdiStatus,
7670 void* pUserData);
7671
7672/*---------------------------------------------------------------------------
7673 WDI_WowlAddBcPtrnCb
7674
7675 DESCRIPTION
7676
7677 This callback is invoked by DAL when it has received a Wowl add Bcast ptrn
7678 response from the underlying device.
7679
7680 PARAMETERS
7681
7682 IN
7683 wdiStatus: response status received from HAL
7684 pUserData: user data
7685
7686
7687
7688 RETURN VALUE
7689 The result code associated with performing the operation
7690---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007691typedef void (*WDI_WowlAddBcPtrnCb)( WDI_WowlAddBcPtrnRspParamsType *pwdiWowlAddBcPtrnParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007692 void* pUserData);
7693
7694/*---------------------------------------------------------------------------
7695 WDI_WowlDelBcPtrnCb
7696
7697 DESCRIPTION
7698
7699 This callback is invoked by DAL when it has received a Wowl delete Bcast ptrn
7700 response from the underlying device.
7701
7702 PARAMETERS
7703
7704 IN
7705 wdiStatus: response status received from HAL
7706 pUserData: user data
7707
7708
7709
7710 RETURN VALUE
7711 The result code associated with performing the operation
7712---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007713typedef void (*WDI_WowlDelBcPtrnCb)( WDI_WowlDelBcPtrnRspParamsType *pwdiWowlDelBcstPtrRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007714 void* pUserData);
7715
7716/*---------------------------------------------------------------------------
7717 WDI_WowlEnterReqCb
7718
7719 DESCRIPTION
7720
7721 This callback is invoked by DAL when it has received a Wowl enter
7722 response from the underlying device.
7723
7724 PARAMETERS
7725
7726 IN
7727 wdiStatus: response status received from HAL
7728 pUserData: user data
7729
7730
7731
7732 RETURN VALUE
7733 The result code associated with performing the operation
7734---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007735typedef void (*WDI_WowlEnterReqCb)( WDI_WowlEnterRspParamsType *pwdiwowlEnterRsp,
7736 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007737
7738/*---------------------------------------------------------------------------
7739 WDI_WowlExitReqCb
7740
7741 DESCRIPTION
7742
7743 This callback is invoked by DAL when it has received a Wowl exit
7744 response from the underlying device.
7745
7746 PARAMETERS
7747
7748 IN
7749 wdiStatus: response status received from HAL
7750 pUserData: user data
7751
7752
7753
7754 RETURN VALUE
7755 The result code associated with performing the operation
7756---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007757typedef void (*WDI_WowlExitReqCb)( WDI_WowlExitRspParamsType *pwdiWowlExitRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007758 void* pUserData);
7759
7760/*---------------------------------------------------------------------------
7761 WDI_ConfigureAppsCpuWakeupStateCb
7762
7763 DESCRIPTION
7764
7765 This callback is invoked by DAL when it has received a config Apps Cpu Wakeup
7766 State response from the underlying device.
7767
7768 PARAMETERS
7769
7770 IN
7771 wdiStatus: response status received from HAL
7772 pUserData: user data
7773
7774
7775
7776 RETURN VALUE
7777 The result code associated with performing the operation
7778---------------------------------------------------------------------------*/
7779typedef void (*WDI_ConfigureAppsCpuWakeupStateCb)(WDI_Status wdiStatus,
7780 void* pUserData);
7781/*---------------------------------------------------------------------------
7782 WDI_NvDownloadRspCb
7783
7784 DESCRIPTION
7785
7786 This callback is invoked by DAL when it has received a NV Download response
7787 from the underlying device.
7788
7789 PARAMETERS
7790
7791 IN
7792 wdiStatus:response status received from HAL
7793 pUserData:user data
7794
7795 RETURN VALUE
7796 The result code associated with performing the operation
7797---------------------------------------------------------------------------*/
7798typedef void (*WDI_NvDownloadRspCb)(WDI_NvDownloadRspInfoType* wdiNvDownloadRsp,
7799 void* pUserData);
7800/*---------------------------------------------------------------------------
7801 WDI_FlushAcRspCb
7802
7803 DESCRIPTION
7804
7805 This callback is invoked by DAL when it has received a Flush AC response from
7806 the underlying device.
7807
7808 PARAMETERS
7809
7810 IN
7811 wdiStatus: response status received from HAL
7812 pUserData: user data
7813
7814
7815
7816 RETURN VALUE
7817 The result code associated with performing the operation
7818---------------------------------------------------------------------------*/
7819typedef void (*WDI_FlushAcRspCb)(WDI_Status wdiStatus,
7820 void* pUserData);
7821
7822/*---------------------------------------------------------------------------
7823 WDI_BtAmpEventRspCb
7824
7825 DESCRIPTION
7826
7827 This callback is invoked by DAL when it has received a Bt AMP event response
7828 from the underlying device.
7829
7830 PARAMETERS
7831
7832 IN
7833 wdiStatus: response status received from HAL
7834 pUserData: user data
7835
7836
7837
7838 RETURN VALUE
7839 The result code associated with performing the operation
7840---------------------------------------------------------------------------*/
7841typedef void (*WDI_BtAmpEventRspCb)(WDI_Status wdiStatus,
7842 void* pUserData);
7843
Jeff Johnsone7245742012-09-05 17:12:55 -07007844#ifdef FEATURE_OEM_DATA_SUPPORT
7845/*---------------------------------------------------------------------------
7846 WDI_oemDataRspCb
7847
7848 DESCRIPTION
7849
7850 This callback is invoked by DAL when it has received a Start oem data response from
7851 the underlying device.
7852
7853 PARAMETERS
7854
7855 IN
7856 wdiStatus: response status received from HAL
7857 pUserData: user data
7858
7859
7860
7861 RETURN VALUE
7862 The result code associated with performing the operation
7863---------------------------------------------------------------------------*/
7864typedef void (*WDI_oemDataRspCb)(WDI_oemDataRspParamsType* wdiOemDataRspParams,
7865 void* pUserData);
7866
7867#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07007868
7869/*---------------------------------------------------------------------------
7870 WDI_HostResumeEventRspCb
7871
7872 DESCRIPTION
7873
7874 This callback is invoked by DAL when it has received a Bt AMP event response
7875 from the underlying device.
7876
7877 PARAMETERS
7878
7879 IN
7880 wdiStatus: response status received from HAL
7881 pUserData: user data
7882
7883
7884
7885 RETURN VALUE
7886 The result code associated with performing the operation
7887---------------------------------------------------------------------------*/
7888typedef void (*WDI_HostResumeEventRspCb)(
7889 WDI_SuspendResumeRspParamsType *resumeRspParams,
7890 void* pUserData);
7891
7892
7893#ifdef WLAN_FEATURE_VOWIFI_11R
7894/*---------------------------------------------------------------------------
7895 WDI_AggrAddTsRspCb
7896
7897 DESCRIPTION
7898
7899 This callback is invoked by DAL when it has received a Aggregated Add TS
7900 response from the underlying device.
7901
7902 PARAMETERS
7903
7904 IN
7905 wdiStatus: response status received from HAL
7906 pUserData: user data
7907
7908
7909
7910 RETURN VALUE
7911 The result code associated with performing the operation
7912---------------------------------------------------------------------------*/
7913typedef void (*WDI_AggrAddTsRspCb)(WDI_Status wdiStatus,
7914 void* pUserData);
7915#endif /* WLAN_FEATURE_VOWIFI_11R */
7916
Jeff Johnson295189b2012-06-20 16:38:30 -07007917/*---------------------------------------------------------------------------
7918 WDI_FTMCommandRspCb
7919
7920 DESCRIPTION
7921
7922 FTM Command response CB
7923
7924 PARAMETERS
7925
7926 IN
7927 ftmCMDRspdata: FTM response data from HAL
7928 pUserData: user data
7929
7930
7931 RETURN VALUE
7932 NONE
7933---------------------------------------------------------------------------*/
7934typedef void (*WDI_FTMCommandRspCb)(void *ftmCMDRspdata,
7935 void *pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007936
7937/*---------------------------------------------------------------------------
7938 WDI_AddSTASelfParamsRspCb
7939
7940 DESCRIPTION
7941
7942 This callback is invoked by DAL when it has received a Add Sta Self Params
7943 response from the underlying device.
7944
7945 PARAMETERS
7946
7947 IN
7948 wdiAddSelfSTARsp: response status received from HAL
7949 pUserData: user data
7950
7951
7952
7953 RETURN VALUE
7954 The result code associated with performing the operation
7955---------------------------------------------------------------------------*/
7956typedef void (*WDI_AddSTASelfParamsRspCb)(
7957 WDI_AddSTASelfRspParamsType* pwdiAddSelfSTARsp,
7958 void* pUserData);
7959
7960
7961/*---------------------------------------------------------------------------
7962 WDI_DelSTASelfRspCb
7963
7964 DESCRIPTION
7965
7966 This callback is invoked by DAL when it has received a host offload
7967 response from the underlying device.
7968
7969 PARAMETERS
7970
7971 IN
7972 wdiStatus: response status received from HAL
7973 pUserData: user data
7974
7975
7976
7977 RETURN VALUE
7978 The result code associated with performing the operation
7979---------------------------------------------------------------------------*/
7980typedef void (*WDI_DelSTASelfRspCb)
7981(
7982WDI_DelSTASelfRspParamsType* wdiDelStaSelfRspParams,
7983void* pUserData
7984);
7985
7986#ifdef FEATURE_WLAN_SCAN_PNO
7987/*---------------------------------------------------------------------------
7988 WDI_PNOScanCb
7989
7990 DESCRIPTION
7991
7992 This callback is invoked by DAL when it has received a Set PNO
7993 response from the underlying device.
7994
7995 PARAMETERS
7996
7997 IN
7998 wdiStatus: response status received from HAL
7999 pUserData: user data
8000
8001
8002
8003 RETURN VALUE
8004 The result code associated with performing the operation
8005---------------------------------------------------------------------------*/
8006typedef void (*WDI_PNOScanCb)(WDI_Status wdiStatus,
8007 void* pUserData);
8008
8009/*---------------------------------------------------------------------------
8010 WDI_PNOScanCb
8011
8012 DESCRIPTION
8013
8014 This callback is invoked by DAL when it has received a Set PNO
8015 response from the underlying device.
8016
8017 PARAMETERS
8018
8019 IN
8020 wdiStatus: response status received from HAL
8021 pUserData: user data
8022
8023
8024
8025 RETURN VALUE
8026 The result code associated with performing the operation
8027---------------------------------------------------------------------------*/
8028typedef void (*WDI_RssiFilterCb)(WDI_Status wdiStatus,
8029 void* pUserData);
8030
8031/*---------------------------------------------------------------------------
8032 WDI_UpdateScanParamsCb
8033
8034 DESCRIPTION
8035
8036 This callback is invoked by DAL when it has received a Update Scan Params
8037 response from the underlying device.
8038
8039 PARAMETERS
8040
8041 IN
8042 wdiStatus: response status received from HAL
8043 pUserData: user data
8044
8045
8046
8047 RETURN VALUE
8048 The result code associated with performing the operation
8049---------------------------------------------------------------------------*/
8050typedef void (*WDI_UpdateScanParamsCb)(WDI_Status wdiStatus,
8051 void* pUserData);
8052#endif // FEATURE_WLAN_SCAN_PNO
8053
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -08008054typedef void (*WDI_UpdateChannelRspCb)(WDI_Status wdiStatus,
8055 void* pUserData);
8056
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07008057#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
8058/*---------------------------------------------------------------------------
8059 WDI_RoamOffloadScanCb
8060
8061 DESCRIPTION
8062
8063 This callback is invoked by DAL when it has received a Start Roam Candidate Lookup Req
8064 response from the underlying device.
8065
8066 PARAMETERS
8067
8068 IN
8069 wdiStatus: response status received from HAL
8070 pUserData: user data
8071
8072
8073
8074 RETURN VALUE
8075 The result code associated with performing the operation
8076---------------------------------------------------------------------------*/
8077typedef void (*WDI_RoamOffloadScanCb)(WDI_Status wdiStatus,
8078 void* pUserData);
8079
Kapil Gupta04ab1992016-06-26 13:36:51 +05308080typedef void (*WDI_PERRoamOffloadScanCb)(WDI_Status wdiStatus, void *pUserData);
8081typedef void (*WDI_PERRoamTriggerScanCb)(WDI_Status wdiStatus, void *pUserData);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07008082#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07008083/*---------------------------------------------------------------------------
8084 WDI_SetTxPerTrackingRspCb
8085
8086 DESCRIPTION
8087
8088 This callback is invoked by DAL when it has received a Tx PER Tracking
8089 response from the underlying device.
8090
8091 PARAMETERS
8092
8093 IN
8094 wdiStatus: response status received from HAL
8095 pUserData: user data
8096
8097
8098
8099 RETURN VALUE
8100 The result code associated with performing the operation
8101---------------------------------------------------------------------------*/
8102typedef void (*WDI_SetTxPerTrackingRspCb)(WDI_Status wdiStatus,
8103 void* pUserData);
8104
8105#ifdef WLAN_FEATURE_PACKET_FILTERING
8106/*---------------------------------------------------------------------------
8107 WDI_8023MulticastListCb
8108
8109 DESCRIPTION
8110
8111 This callback is invoked by DAL when it has received a 8023 Multicast List
8112 response from the underlying device.
8113
8114 PARAMETERS
8115
8116 IN
8117 wdiStatus: response status received from HAL
8118 pUserData: user data
8119
8120
8121
8122 RETURN VALUE
8123 The result code associated with performing the operation
8124---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008125typedef void (*WDI_8023MulticastListCb)(
8126 WDI_RcvFltPktSetMcListRspParamsType *pwdiRcvFltPktSetMcListRspInfo,
8127 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008128
8129/*---------------------------------------------------------------------------
8130 WDI_ReceiveFilterSetFilterCb
8131
8132 DESCRIPTION
8133
8134 This callback is invoked by DAL when it has received a Receive Filter Set Filter
8135 response from the underlying device.
8136
8137 PARAMETERS
8138
8139 IN
8140 wdiStatus: response status received from HAL
8141 pUserData: user data
8142
8143
8144
8145 RETURN VALUE
8146 The result code associated with performing the operation
8147---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008148typedef void (*WDI_ReceiveFilterSetFilterCb)(
8149 WDI_SetRcvPktFilterRspParamsType *pwdiSetRcvPktFilterRspInfo,
8150 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008151
8152/*---------------------------------------------------------------------------
8153 WDI_FilterMatchCountCb
8154
8155 DESCRIPTION
8156
8157 This callback is invoked by DAL when it has received a Do PC Filter Match Count
8158 response from the underlying device.
8159
8160 PARAMETERS
8161
8162 IN
8163 wdiStatus: response status received from HAL
8164 pUserData: user data
8165
8166
8167
8168 RETURN VALUE
8169 The result code associated with performing the operation
8170---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008171typedef void (*WDI_FilterMatchCountCb)(
8172 WDI_RcvFltPktMatchCntRspParamsType *pwdiRcvFltPktMatchRspParams,
8173 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008174
8175/*---------------------------------------------------------------------------
8176 WDI_ReceiveFilterClearFilterCb
8177
8178 DESCRIPTION
8179
8180 This callback is invoked by DAL when it has received a Receive Filter Clear Filter
8181 response from the underlying device.
8182
8183 PARAMETERS
8184
8185 IN
8186 wdiStatus: response status received from HAL
8187 pUserData: user data
8188
8189
8190
8191 RETURN VALUE
8192 The result code associated with performing the operation
8193---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008194typedef void (*WDI_ReceiveFilterClearFilterCb)(
8195 WDI_RcvFltPktClearRspParamsType *pwdiRcvFltPktClearRspParamsType,
8196 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008197#endif // WLAN_FEATURE_PACKET_FILTERING
8198
8199/*---------------------------------------------------------------------------
8200 WDI_HALDumpCmdRspCb
8201
8202 DESCRIPTION
8203
8204 This callback is invoked by DAL when it has received a HAL DUMP Command
8205response from
8206 the HAL layer.
8207
8208 PARAMETERS
8209
8210 IN
8211 wdiHalDumpCmdRsp: response status received from HAL
8212 pUserData: user data
8213
8214
8215
8216 RETURN VALUE
8217 The result code associated with performing the operation
8218---------------------------------------------------------------------------*/
8219typedef void (*WDI_HALDumpCmdRspCb)(WDI_HALDumpCmdRspParamsType* wdiHalDumpCmdRsp,
8220 void* pUserData);
8221
8222/*---------------------------------------------------------------------------
8223 WDI_SetPowerParamsCb
8224
8225 DESCRIPTION
8226
8227 This callback is invoked by DAL when it has received a Set Power Param
8228 response from the underlying device.
8229
8230 PARAMETERS
8231
8232 IN
8233 wdiStatus: response status received from HAL
8234 pUserData: user data
8235
8236
8237
8238 RETURN VALUE
8239 The result code associated with performing the operation
8240---------------------------------------------------------------------------*/
8241typedef void (*WDI_SetPowerParamsCb)(WDI_Status wdiStatus,
8242 void* pUserData);
8243
c_manjeecfd1efb2015-09-25 19:32:34 +05308244
8245/*---------------------------------------------------------------------------
8246 WDA_FwrMemDumpRespCallback
8247
8248 DESCRIPTION
8249
8250 This callback is invoked by DAL when it has received a Fwr Mem dump
8251 response from the underlying device.
8252
8253 PARAMETERS
8254
8255 IN
8256 wdiStatus: response status received from HAL
8257 pUserData: user data
8258 ---------------------------------------------------------------------------*/
8259typedef void (* WDI_FwrMemDumpCb) (WDI_FwrMemDumpRsp* wdiRsp,
8260 void* pUserData);
8261
8262
Jeff Johnson295189b2012-06-20 16:38:30 -07008263#ifdef WLAN_FEATURE_GTK_OFFLOAD
8264/*---------------------------------------------------------------------------
8265 WDI_GtkOffloadCb
8266
8267 DESCRIPTION
8268
8269 This callback is invoked by DAL when it has received a GTK offload
8270 response from the underlying device.
8271
8272 PARAMETERS
8273
8274 IN
8275 wdiStatus: response status received from HAL
8276 pUserData: user data
8277
8278
8279
8280 RETURN VALUE
8281 The result code associated with performing the operation
8282---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008283typedef void (*WDI_GtkOffloadCb)( WDI_GtkOffloadRspParams *pwdiGtkOffloadRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008284 void* pUserData);
8285
8286/*---------------------------------------------------------------------------
8287 WDI_GtkOffloadGetInfoCb
8288
8289 DESCRIPTION
8290
8291 This callback is invoked by DAL when it has received a GTK offload
8292 information response from the underlying device.
8293
8294 PARAMETERS
8295
8296 IN
8297 wdiStatus: response status received from HAL
8298 pUserData: user data
8299
8300
8301
8302 RETURN VALUE
8303 The result code associated with performing the operation
8304---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008305typedef void (*WDI_GtkOffloadGetInfoCb)( WDI_GtkOffloadGetInfoRspParams *pwdiGtkOffloadGetInfoRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008306 void* pUserData);
8307#endif // WLAN_FEATURE_GTK_OFFLOAD
8308
8309/*---------------------------------------------------------------------------
8310 WDI_SetTmLevelCb
8311
8312 DESCRIPTION
8313
8314 This callback is invoked by DAL when it has received a Set New TM Level
8315 done response from the underlying device.
8316
8317 PARAMETERS
8318
8319 IN
8320 wdiStatus: response status received from HAL
8321 pUserData: user data
8322
8323
8324
8325 RETURN VALUE
8326 The result code associated with performing the operation
8327---------------------------------------------------------------------------*/
8328typedef void (*WDI_SetTmLevelCb)(WDI_Status wdiStatus,
8329 void* pUserData);
8330
8331/*---------------------------------------------------------------------------
8332 WDI_featureCapsExchangeCb
8333
8334 DESCRIPTION
8335
8336 This callback is invoked by DAL when it has received a HAL Feature Capbility
8337 Exchange Response the HAL layer. This callback is put to mantain code
8338 similarity and is not being used right now.
8339
8340 PARAMETERS
8341
8342 IN
8343 wdiFeatCapRspParams: response parameters received from HAL
8344 pUserData: user data
8345
8346 RETURN VALUE
8347 The result code associated with performing the operation
8348---------------------------------------------------------------------------*/
8349typedef void (*WDI_featureCapsExchangeCb)(void* wdiFeatCapRspParams,
8350 void* pUserData);
8351
Mohit Khanna4a70d262012-09-11 16:30:12 -07008352#ifdef WLAN_FEATURE_11AC
8353typedef void (*WDI_UpdateVHTOpModeCb)(WDI_Status wdiStatus,
8354 void* pUserData);
8355#endif
8356
Leo Chang9056f462013-08-01 19:21:11 -07008357#ifdef FEATURE_WLAN_LPHB
8358typedef void (*WDI_LphbCfgCb)(WDI_Status wdiStatus,
8359 void* pUserData);
8360#endif /* FEATURE_WLAN_LPHB */
Mohit Khanna4a70d262012-09-11 16:30:12 -07008361
Abhishek Singh00b71972016-01-07 10:51:04 +05308362#ifdef WLAN_FEATURE_RMC
8363typedef void (*WDI_RmcRulerRspCb)(WDI_RmcRspParamsType *wdiRmcResponse,
8364 void* pUserData);
8365
8366typedef void (*WDI_IbssPeerInfoReqCb)(WDI_IbssPeerInfoRspParams *pInfoRspParams,
8367 void* pUserData);
8368
8369#endif /* WLAN_FEATURE_RMC */
8370
Rajeev79dbe4c2013-10-05 11:03:42 +05308371#ifdef FEATURE_WLAN_BATCH_SCAN
8372/*---------------------------------------------------------------------------
8373 WDI_SetBatchScanCb
8374
8375 DESCRIPTION
8376
8377 This callback is invoked by DAL when it has received a get batch scan
8378 response from the underlying device.
8379
8380 PARAMETERS
8381
8382 IN
8383 wdiStatus: response status received from HAL
8384 pUserData: user data
8385
8386
8387
8388 RETURN VALUE
8389 The result code associated with performing the operation
8390---------------------------------------------------------------------------*/
8391typedef void (*WDI_SetBatchScanCb)(void *pData, WDI_SetBatchScanRspType *pRsp);
8392
8393#endif
8394
c_hpothu92367912014-05-01 15:18:17 +05308395typedef void (*WDI_GetBcnMissRateCb)(wpt_uint8 status, wpt_uint32 bcnMissRate,
8396 void* pUserData);
Rajeev79dbe4c2013-10-05 11:03:42 +05308397
Dino Mycle41bdc942014-06-10 11:30:24 +05308398#ifdef WLAN_FEATURE_EXTSCAN
8399typedef void (*WDI_EXTScanStartRspCb)(void *pEventData,
8400 void *pUserData);
8401typedef void (*WDI_EXTScanStopRspCb)(void *pEventData,
8402 void *pUserData);
8403typedef void (*WDI_EXTScanGetCachedResultsRspCb)(void *pEventData,
8404 void *pUserData);
8405typedef void (*WDI_EXTScanGetCapabilitiesRspCb)(void *pEventData,
8406 void *pUserData);
8407typedef void (*WDI_EXTScanSetBSSIDHotlistRspCb)(void *pEventData,
8408 void *pUserData);
8409typedef void (*WDI_EXTScanResetBSSIDHotlistRspCb)(void *pEventData,
8410 void *pUserData);
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05308411typedef void (*WDI_EXTScanSetSSIDHotlistRspCb)(void *pEventData,
8412 void *pUserData);
8413typedef void (*WDI_EXTScanResetSSIDHotlistRspCb)(void *pEventData,
8414 void *pUserData);
Dino Mycle41bdc942014-06-10 11:30:24 +05308415#endif /* WLAN_FEATURE_EXTSCAN */
Sunil Duttbd736ed2014-05-26 21:19:41 +05308416
8417#ifdef WLAN_FEATURE_LINK_LAYER_STATS
8418typedef void (*WDI_LLStatsSetRspCb)(void *pEventData,
8419 void *pUserData);
8420typedef void (*WDI_LLStatsGetRspCb)(void *pEventData,
8421 void *pUserData);
8422typedef void (*WDI_LLStatsClearRspCb)(void *pEventData,
8423 void *pUserData);
8424#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
Siddharth Bhal171788a2014-09-29 21:02:40 +05308425
8426typedef void (*WDI_SetSpoofMacAddrRspCb)(
8427 WDI_SpoofMacAddrRspParamType* wdiRsp, void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308428
Abhishek Singh85b74712014-10-08 11:38:19 +05308429typedef void (*WDI_FWStatsGetRspCb)(WDI_Status status,void *fwStatsResp,
8430 void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308431
8432typedef void (*WDI_EncryptMsgRspCb)(wpt_uint8 status, void *pEventData, void* pUserData);
Siddharth Bhald1be97f2015-05-27 22:39:59 +05308433typedef void (*WDI_FWLoggingInitRspCb)(
8434 WDI_FWLoggingInitRspParamType *wdiRsp, void *pUserData);
Siddharth Bhal64246172015-02-27 01:04:37 +05308435typedef void (*WDI_GetFrameLogRspCb)(
8436 WDI_GetFrameLogRspParamType *wdiRsp, void *pUserData);
Sachin Ahuja715aafc2015-07-21 23:35:10 +05308437typedef void (*WDI_FatalEventLogsRspCb)(
8438 WDI_FatalEventLogsRspParamType *wdiRsp, void *pUserData);
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05308439
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +05308440typedef void (*WDI_MonModeRspCb)(void *pEventData,void *pUserData);
Gupta, Kapil7c34b322015-09-30 13:12:35 +05308441typedef void (*WDI_RssiMonitorStartRspCb)(void *pEventData,void *pUserData);
8442typedef void (*WDI_RssiMonitorStopRspCb)(void *pEventData,void *pUserData);
Katya Nigamf0511f62015-05-05 16:40:57 +05308443
c_manjeecfd1efb2015-09-25 19:32:34 +05308444typedef void (*WDI_FwrMemDumpRspCb)(WDI_FwrMemDumpRsp *wdiRsp, void *pUserData);
8445
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05308446typedef void (*WDI_WifiConfigSetRspCb) (WDI_WifconfigSetRsp *wdiRsp, void *pUserData);
c_manjeecfd1efb2015-09-25 19:32:34 +05308447
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +05308448typedef void (*WDI_AntennaDivSelRspCb)(WDI_Status status,
8449 void *resp, void *pUserData);
8450
Jeff Johnson295189b2012-06-20 16:38:30 -07008451/*========================================================================
8452 * Function Declarations and Documentation
8453 ==========================================================================*/
8454
8455/*========================================================================
8456
8457 INITIALIZATION APIs
8458
8459==========================================================================*/
8460
8461/**
8462 @brief WDI_Init is used to initialize the DAL.
8463
8464 DAL will allocate all the resources it needs. It will open PAL, it will also
8465 open both the data and the control transport which in their turn will open
8466 DXE/SMD or any other drivers that they need.
8467
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308468 @param devHandle: pointer to the OS specific device handle
Jeff Johnson295189b2012-06-20 16:38:30 -07008469 ppWDIGlobalCtx: output pointer of Global Context
8470 pWdiDevCapability: output pointer of device capability
8471
8472 @return Result of the function call
8473*/
8474WDI_Status
8475WDI_Init
8476(
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308477 void* devHandle,
Jeff Johnson295189b2012-06-20 16:38:30 -07008478 void** ppWDIGlobalCtx,
8479 WDI_DeviceCapabilityType* pWdiDevCapability,
8480 unsigned int driverType
8481);
8482
8483/**
8484 @brief WDI_Start will be called when the upper MAC is ready to
8485 commence operation with the WLAN Device. Upon the call
8486 of this API the WLAN DAL will pack and send a HAL Start
8487 message to the lower RIVA sub-system if the SMD channel
8488 has been fully opened and the RIVA subsystem is up.
8489
8490 If the RIVA sub-system is not yet up and running DAL
8491 will queue the request for Open and will wait for the
8492 SMD notification before attempting to send down the
8493 message to HAL.
8494
8495 WDI_Init must have been called.
8496
8497 @param wdiStartParams: the start parameters as specified by
8498 the Device Interface
8499
8500 wdiStartRspCb: callback for passing back the response of
8501 the start operation received from the device
8502
8503 pUserData: user data will be passed back with the
8504 callback
8505
8506 @see WDI_Start
8507 @return Result of the function call
8508*/
8509WDI_Status
8510WDI_Start
8511(
8512 WDI_StartReqParamsType* pwdiStartParams,
8513 WDI_StartRspCb wdiStartRspCb,
8514 void* pUserData
8515);
8516
8517
8518/**
8519 @brief WDI_Stop will be called when the upper MAC is ready to
8520 stop any operation with the WLAN Device. Upon the call
8521 of this API the WLAN DAL will pack and send a HAL Stop
8522 message to the lower RIVA sub-system if the DAL Core is
8523 in started state.
8524
8525 In state BUSY this request will be queued.
8526
8527 Request will not be accepted in any other state.
8528
8529 WDI_Start must have been called.
8530
8531 @param wdiStopParams: the stop parameters as specified by
8532 the Device Interface
8533
8534 wdiStopRspCb: callback for passing back the response of
8535 the stop operation received from the device
8536
8537 pUserData: user data will be passed back with the
8538 callback
8539
8540 @see WDI_Start
8541 @return Result of the function call
8542*/
8543WDI_Status
8544WDI_Stop
8545(
8546 WDI_StopReqParamsType* pwdiStopParams,
8547 WDI_StopRspCb wdiStopRspCb,
8548 void* pUserData
8549);
8550
8551/**
8552 @brief WDI_Close will be called when the upper MAC no longer
8553 needs to interract with DAL. DAL will free its control
8554 block.
8555
8556 It is only accepted in state STOPPED.
8557
8558 WDI_Stop must have been called.
8559
8560 @param none
8561
8562 @see WDI_Stop
8563 @return Result of the function call
8564*/
8565WDI_Status
8566WDI_Close
8567(
8568 void
8569);
8570
8571
8572/**
8573 @brief WDI_Shutdown will be called during 'SSR shutdown' operation.
8574 This will do most of the WDI stop & close
8575 operations without doing any handshake with Riva
8576
8577 This will also make sure that the control transport
8578 will NOT be closed.
8579
8580 This request will not be queued.
8581
8582
8583 WDI_Start must have been called.
8584
8585 @param closeTransport: Close control channel if this is set
8586
8587 @return Result of the function call
8588*/
8589WDI_Status
8590WDI_Shutdown
8591(
8592 wpt_boolean closeTransport
8593);
8594
8595/*========================================================================
8596
8597 SCAN APIs
8598
8599==========================================================================*/
8600
8601/**
8602 @brief WDI_InitScanReq will be called when the upper MAC wants
8603 the WLAN Device to get ready for a scan procedure. Upon
8604 the call of this API the WLAN DAL will pack and send a
8605 HAL Init Scan request message to the lower RIVA
8606 sub-system if DAL is in state STARTED.
8607
8608 In state BUSY this request will be queued. Request won't
8609 be allowed in any other state.
8610
8611 WDI_Start must have been called.
8612
8613 @param wdiInitScanParams: the init scan parameters as specified
8614 by the Device Interface
8615
8616 wdiInitScanRspCb: callback for passing back the response
8617 of the init scan operation received from the device
8618
8619 pUserData: user data will be passed back with the
8620 callback
8621
8622 @see WDI_Start
8623 @return Result of the function call
8624*/
8625WDI_Status
8626WDI_InitScanReq
8627(
8628 WDI_InitScanReqParamsType* pwdiInitScanParams,
8629 WDI_InitScanRspCb wdiInitScanRspCb,
8630 void* pUserData
8631);
8632
8633/**
8634 @brief WDI_StartScanReq will be called when the upper MAC
8635 wishes to change the Scan channel on the WLAN Device.
8636 Upon the call of this API the WLAN DAL will pack and
8637 send a HAL Start Scan request message to the lower RIVA
8638 sub-system if DAL is in state STARTED.
8639
8640 In state BUSY this request will be queued. Request won't
8641 be allowed in any other state.
8642
8643 WDI_InitScanReq must have been called.
8644
8645 @param wdiStartScanParams: the start scan parameters as
8646 specified by the Device Interface
8647
8648 wdiStartScanRspCb: callback for passing back the
8649 response of the start scan operation received from the
8650 device
8651
8652 pUserData: user data will be passed back with the
8653 callback
8654
8655 @see WDI_InitScanReq
8656 @return Result of the function call
8657*/
8658WDI_Status
8659WDI_StartScanReq
8660(
8661 WDI_StartScanReqParamsType* pwdiStartScanParams,
8662 WDI_StartScanRspCb wdiStartScanRspCb,
8663 void* pUserData
8664);
8665
8666
8667/**
8668 @brief WDI_EndScanReq will be called when the upper MAC is
8669 wants to end scanning for a particular channel that it
8670 had set before by calling Scan Start on the WLAN Device.
8671 Upon the call of this API the WLAN DAL will pack and
8672 send a HAL End Scan request message to the lower RIVA
8673 sub-system if DAL is in state STARTED.
8674
8675 In state BUSY this request will be queued. Request won't
8676 be allowed in any other state.
8677
8678 WDI_StartScanReq must have been called.
8679
8680 @param wdiEndScanParams: the end scan parameters as specified
8681 by the Device Interface
8682
8683 wdiEndScanRspCb: callback for passing back the response
8684 of the end scan operation received from the device
8685
8686 pUserData: user data will be passed back with the
8687 callback
8688
8689 @see WDI_StartScanReq
8690 @return Result of the function call
8691*/
8692WDI_Status
8693WDI_EndScanReq
8694(
8695 WDI_EndScanReqParamsType* pwdiEndScanParams,
8696 WDI_EndScanRspCb wdiEndScanRspCb,
8697 void* pUserData
8698);
8699
8700
8701/**
8702 @brief WDI_FinishScanReq will be called when the upper MAC has
8703 completed the scan process on the WLAN Device. Upon the
8704 call of this API the WLAN DAL will pack and send a HAL
8705 Finish Scan Request request message to the lower RIVA
8706 sub-system if DAL is in state STARTED.
8707
8708 In state BUSY this request will be queued. Request won't
8709 be allowed in any other state.
8710
8711 WDI_InitScanReq must have been called.
8712
8713 @param wdiFinishScanParams: the finish scan parameters as
8714 specified by the Device Interface
8715
8716 wdiFinishScanRspCb: callback for passing back the
8717 response of the finish scan operation received from the
8718 device
8719
8720 pUserData: user data will be passed back with the
8721 callback
8722
8723 @see WDI_InitScanReq
8724 @return Result of the function call
8725*/
8726WDI_Status
8727WDI_FinishScanReq
8728(
8729 WDI_FinishScanReqParamsType* pwdiFinishScanParams,
8730 WDI_FinishScanRspCb wdiFinishScanRspCb,
8731 void* pUserData
8732);
8733
8734/*========================================================================
8735
8736 ASSOCIATION APIs
8737
8738==========================================================================*/
8739
8740/**
8741 @brief WDI_JoinReq will be called when the upper MAC is ready
8742 to start an association procedure to a BSS. Upon the
8743 call of this API the WLAN DAL will pack and send a HAL
8744 Join request message to the lower RIVA sub-system if
8745 DAL is in state STARTED.
8746
8747 In state BUSY this request will be queued. Request won't
8748 be allowed in any other state.
8749
8750 WDI_Start must have been called.
8751
8752 @param wdiJoinParams: the join parameters as specified by
8753 the Device Interface
8754
8755 wdiJoinRspCb: callback for passing back the response of
8756 the join operation received from the device
8757
8758 pUserData: user data will be passed back with the
8759 callback
8760
8761 @see WDI_Start
8762 @return Result of the function call
8763*/
8764WDI_Status
8765WDI_JoinReq
8766(
8767 WDI_JoinReqParamsType* pwdiJoinParams,
8768 WDI_JoinRspCb wdiJoinRspCb,
8769 void* pUserData
8770);
8771
8772/**
8773 @brief WDI_ConfigBSSReq will be called when the upper MAC
8774 wishes to configure the newly acquired or in process of
8775 being acquired BSS to the HW . Upon the call of this API
8776 the WLAN DAL will pack and send a HAL Config BSS request
8777 message to the lower RIVA sub-system if DAL is in state
8778 STARTED.
8779
8780 In state BUSY this request will be queued. Request won't
8781 be allowed in any other state.
8782
8783 WDI_JoinReq must have been called.
8784
8785 @param wdiConfigBSSParams: the config BSS parameters as
8786 specified by the Device Interface
8787
8788 wdiConfigBSSRspCb: callback for passing back the
8789 response of the config BSS operation received from the
8790 device
8791
8792 pUserData: user data will be passed back with the
8793 callback
8794
8795 @see WDI_JoinReq
8796 @return Result of the function call
8797*/
8798WDI_Status
8799WDI_ConfigBSSReq
8800(
8801 WDI_ConfigBSSReqParamsType* pwdiConfigBSSParams,
8802 WDI_ConfigBSSRspCb wdiConfigBSSRspCb,
8803 void* pUserData
8804);
8805
8806/**
8807 @brief WDI_DelBSSReq will be called when the upper MAC is
8808 dissasociating from the BSS and wishes to notify HW.
8809 Upon the call of this API the WLAN DAL will pack and
8810 send a HAL Del BSS request message to the lower RIVA
8811 sub-system if DAL is in state STARTED.
8812
8813 In state BUSY this request will be queued. Request won't
8814 be allowed in any other state.
8815
8816 WDI_ConfigBSSReq or WDI_PostAssocReq must have been called.
8817
8818 @param wdiDelBSSParams: the del BSS parameters as specified by
8819 the Device Interface
8820
8821 wdiDelBSSRspCb: callback for passing back the response
8822 of the del bss operation received from the device
8823
8824 pUserData: user data will be passed back with the
8825 callback
8826
8827 @see WDI_ConfigBSSReq, WDI_PostAssocReq
8828 @return Result of the function call
8829*/
8830WDI_Status
8831WDI_DelBSSReq
8832(
8833 WDI_DelBSSReqParamsType* pwdiDelBSSParams,
8834 WDI_DelBSSRspCb wdiDelBSSRspCb,
8835 void* pUserData
8836);
8837
8838/**
8839 @brief WDI_PostAssocReq will be called when the upper MAC has
8840 associated to a BSS and wishes to configure HW for
8841 associated state. Upon the call of this API the WLAN DAL
8842 will pack and send a HAL Post Assoc request message to
8843 the lower RIVA sub-system if DAL is in state STARTED.
8844
8845 In state BUSY this request will be queued. Request won't
8846 be allowed in any other state.
8847
8848 WDI_JoinReq must have been called.
8849
8850 @param wdiPostAssocReqParams: the assoc parameters as specified
8851 by the Device Interface
8852
8853 wdiPostAssocRspCb: callback for passing back the
8854 response of the post assoc operation received from the
8855 device
8856
8857 pUserData: user data will be passed back with the
8858 callback
8859
8860 @see WDI_JoinReq
8861 @return Result of the function call
8862*/
8863WDI_Status
8864WDI_PostAssocReq
8865(
8866 WDI_PostAssocReqParamsType* pwdiPostAssocReqParams,
8867 WDI_PostAssocRspCb wdiPostAssocRspCb,
8868 void* pUserData
8869);
8870
8871/**
8872 @brief WDI_DelSTAReq will be called when the upper MAC when an
8873 association with another STA has ended and the station
8874 must be deleted from HW. Upon the call of this API the
8875 WLAN DAL will pack and send a HAL Del STA request
8876 message to the lower RIVA sub-system if DAL is in state
8877 STARTED.
8878
8879 In state BUSY this request will be queued. Request won't
8880 be allowed in any other state.
8881
8882 WDI_PostAssocReq must have been called.
8883
8884 @param wdiDelSTAParams: the Del STA parameters as specified by
8885 the Device Interface
8886
8887 wdiDelSTARspCb: callback for passing back the response
8888 of the del STA operation received from the device
8889
8890 pUserData: user data will be passed back with the
8891 callback
8892
8893 @see WDI_PostAssocReq
8894 @return Result of the function call
8895*/
8896WDI_Status
8897WDI_DelSTAReq
8898(
8899 WDI_DelSTAReqParamsType* pwdiDelSTAParams,
8900 WDI_DelSTARspCb wdiDelSTARspCb,
8901 void* pUserData
8902);
8903
8904/*========================================================================
8905
8906 SECURITY APIs
8907
8908==========================================================================*/
8909
8910/**
8911 @brief WDI_SetBSSKeyReq will be called when the upper MAC ito
8912 install a BSS encryption key on the HW. Upon the call of
8913 this API the WLAN DAL will pack and send a HAL Start
8914 request message to the lower RIVA sub-system if DAL is
8915 in state STARTED.
8916
8917 In state BUSY this request will be queued. Request won't
8918 be allowed in any other state.
8919
8920 WDI_PostAssocReq must have been called.
8921
8922 @param wdiSetBSSKeyParams: the BSS Key set parameters as
8923 specified by the Device Interface
8924
8925 wdiSetBSSKeyRspCb: callback for passing back the
8926 response of the set BSS Key operation received from the
8927 device
8928
8929 pUserData: user data will be passed back with the
8930 callback
8931
8932 @see WDI_PostAssocReq
8933 @return Result of the function call
8934*/
8935WDI_Status
8936WDI_SetBSSKeyReq
8937(
8938 WDI_SetBSSKeyReqParamsType* pwdiSetBSSKeyParams,
8939 WDI_SetBSSKeyRspCb wdiSetBSSKeyRspCb,
8940 void* pUserData
8941);
8942
8943
8944/**
8945 @brief WDI_RemoveBSSKeyReq will be called when the upper MAC to
8946 uninstall a BSS key from HW. Upon the call of this API
8947 the WLAN DAL will pack and send a HAL Remove BSS Key
8948 request message to the lower RIVA sub-system if DAL is
8949 in state STARTED.
8950
8951 In state BUSY this request will be queued. Request won't
8952 be allowed in any other state.
8953
8954 WDI_SetBSSKeyReq must have been called.
8955
8956 @param wdiRemoveBSSKeyParams: the remove BSS key parameters as
8957 specified by the Device Interface
8958
8959 wdiRemoveBSSKeyRspCb: callback for passing back the
8960 response of the remove BSS key operation received from
8961 the device
8962
8963 pUserData: user data will be passed back with the
8964 callback
8965
8966 @see WDI_SetBSSKeyReq
8967 @return Result of the function call
8968*/
8969WDI_Status
8970WDI_RemoveBSSKeyReq
8971(
8972 WDI_RemoveBSSKeyReqParamsType* pwdiRemoveBSSKeyParams,
8973 WDI_RemoveBSSKeyRspCb wdiRemoveBSSKeyRspCb,
8974 void* pUserData
8975);
8976
8977
8978/**
8979 @brief WDI_SetSTAKeyReq will be called when the upper MAC is
8980 ready to install a STA(ast) encryption key in HW. Upon
8981 the call of this API the WLAN DAL will pack and send a
8982 HAL Set STA Key request message to the lower RIVA
8983 sub-system if DAL is in state STARTED.
8984
8985 In state BUSY this request will be queued. Request won't
8986 be allowed in any other state.
8987
8988 WDI_PostAssocReq must have been called.
8989
8990 @param wdiSetSTAKeyParams: the set STA key parameters as
8991 specified by the Device Interface
8992
8993 wdiSetSTAKeyRspCb: callback for passing back the
8994 response of the set STA key operation received from the
8995 device
8996
8997 pUserData: user data will be passed back with the
8998 callback
8999
9000 @see WDI_PostAssocReq
9001 @return Result of the function call
9002*/
9003WDI_Status
9004WDI_SetSTAKeyReq
9005(
9006 WDI_SetSTAKeyReqParamsType* pwdiSetSTAKeyParams,
9007 WDI_SetSTAKeyRspCb wdiSetSTAKeyRspCb,
9008 void* pUserData
9009);
9010
9011
9012/**
9013 @brief WDI_RemoveSTAKeyReq will be called when the upper MAC
9014 wants to unistall a previously set STA key in HW. Upon
9015 the call of this API the WLAN DAL will pack and send a
9016 HAL Remove STA Key request message to the lower RIVA
9017 sub-system if DAL is in state STARTED.
9018
9019 In state BUSY this request will be queued. Request won't
9020 be allowed in any other state.
9021
9022 WDI_SetSTAKeyReq must have been called.
9023
9024 @param wdiRemoveSTAKeyParams: the remove STA key parameters as
9025 specified by the Device Interface
9026
9027 wdiRemoveSTAKeyRspCb: callback for passing back the
9028 response of the remove STA key operation received from
9029 the device
9030
9031 pUserData: user data will be passed back with the
9032 callback
9033
9034 @see WDI_SetSTAKeyReq
9035 @return Result of the function call
9036*/
9037WDI_Status
9038WDI_RemoveSTAKeyReq
9039(
9040 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTAKeyParams,
9041 WDI_RemoveSTAKeyRspCb wdiRemoveSTAKeyRspCb,
9042 void* pUserData
9043);
9044
9045/**
9046 @brief WDI_SetSTABcastKeyReq will be called when the upper MAC
9047 wants to install a STA Bcast encryption key on the HW.
9048 Upon the call of this API the WLAN DAL will pack and
9049 send a HAL Start request message to the lower RIVA
9050 sub-system if DAL is in state STARTED.
9051
9052 In state BUSY this request will be queued. Request won't
9053 be allowed in any other state.
9054
9055 WDI_PostAssocReq must have been called.
9056
9057 @param pwdiSetSTABcastKeyParams: the BSS Key set parameters as
9058 specified by the Device Interface
9059
9060 wdiSetSTABcastKeyRspCb: callback for passing back the
9061 response of the set BSS Key operation received from the
9062 device
9063
9064 pUserData: user data will be passed back with the
9065 callback
9066
9067 @see WDI_PostAssocReq
9068 @return Result of the function call
9069*/
9070WDI_Status
9071WDI_SetSTABcastKeyReq
9072(
9073 WDI_SetSTAKeyReqParamsType* pwdiSetSTABcastKeyParams,
9074 WDI_SetSTAKeyRspCb wdiSetSTABcastKeyRspCb,
9075 void* pUserData
9076);
9077
9078
9079/**
9080 @brief WDI_RemoveSTABcastKeyReq will be called when the upper
9081 MAC to uninstall a STA Bcast key from HW. Upon the call
9082 of this API the WLAN DAL will pack and send a HAL Remove
9083 STA Bcast Key request message to the lower RIVA
9084 sub-system if DAL is in state STARTED.
9085
9086 In state BUSY this request will be queued. Request won't
9087 be allowed in any other state.
9088
9089 WDI_SetSTABcastKeyReq must have been called.
9090
9091 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9092 parameters as specified by the Device
9093 Interface
9094
9095 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9096 response of the remove STA Bcast key operation received
9097 from the device
9098
9099 pUserData: user data will be passed back with the
9100 callback
9101
9102 @see WDI_SetSTABcastKeyReq
9103 @return Result of the function call
9104*/
9105WDI_Status
9106WDI_RemoveSTABcastKeyReq
9107(
9108 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTABcastKeyParams,
9109 WDI_RemoveSTAKeyRspCb wdiRemoveSTABcastKeyRspCb,
9110 void* pUserData
9111);
9112
schang86c22c42013-03-13 18:41:24 -07009113
9114/**
9115 @brief WDI_SetTxPowerReq will be called when the upper
9116 MAC wants to set Tx Power to HW.
9117 In state BUSY this request will be queued. Request won't
9118 be allowed in any other state.
9119
9120
9121 @param pwdiSetTxPowerParams: set TS Power parameters
9122 BSSID and target TX Power with dbm included
9123
9124 wdiReqStatusCb: callback for passing back the response
9125
9126 pUserData: user data will be passed back with the
9127 callback
9128
9129 @return Result of the function call
9130*/
9131WDI_Status
9132WDI_SetTxPowerReq
9133(
9134 WDI_SetTxPowerParamsType* pwdiSetTxPowerParams,
9135 WDA_SetTxPowerRspCb wdiReqStatusCb,
9136 void* pUserData
9137);
9138
Jeff Johnson295189b2012-06-20 16:38:30 -07009139/**
9140 @brief WDI_SetMaxTxPowerReq will be called when the upper
9141 MAC wants to set Max Tx Power to HW. Upon the
9142 call of this API the WLAN DAL will pack and send a HAL
9143 Remove STA Bcast Key request message to the lower RIVA
9144 sub-system if DAL is in state STARTED.
9145
9146 In state BUSY this request will be queued. Request won't
9147 be allowed in any other state.
9148
9149 WDI_SetSTABcastKeyReq must have been called.
9150
9151 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9152 parameters as specified by the Device
9153 Interface
9154
9155 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9156 response of the remove STA Bcast key operation received
9157 from the device
9158
9159 pUserData: user data will be passed back with the
9160 callback
9161
9162 @see WDI_SetMaxTxPowerReq
9163 @return Result of the function call
9164*/
9165WDI_Status
9166WDI_SetMaxTxPowerReq
9167(
9168 WDI_SetMaxTxPowerParamsType* pwdiSetMaxTxPowerParams,
9169 WDA_SetMaxTxPowerRspCb wdiReqStatusCb,
9170 void* pUserData
9171);
9172
Arif Hussaina5ebce02013-08-09 15:09:58 -07009173/**
9174 @brief WDI_SetMaxTxPowerPerBandReq will be called when the upper
9175 MAC wants to set Max Tx Power to HW for specific band. Upon the
9176 call of this API the WLAN DAL will pack and send a HAL
9177 Set Max Tx Power Per Band request message to the lower RIVA
9178 sub-system if DAL is in state STARTED.
9179
9180 In state BUSY this request will be queued. Request won't
9181 be allowed in any other state.
9182
9183
9184 @param WDI_SetMaxTxPowerPerBandParamsType: Max Tx Per Band Info
9185
9186 WDA_SetMaxTxPowerPerBandRspCb: This callback is invoked by DAL
9187 when it has received a set max Tx Power Per Band response from
9188 the underlying device.
9189
9190 pUserData: user data will be passed back with the
9191 callback
9192
9193 @see WDI_SetMaxTxPowerPerBandReq
9194 @return Result of the function call
9195*/
9196WDI_Status
9197WDI_SetMaxTxPowerPerBandReq
9198(
9199 WDI_SetMaxTxPowerPerBandParamsType* pwdiSetMaxTxPowerPerBandParams,
9200 WDA_SetMaxTxPowerPerBandRspCb wdiReqStatusCb,
9201 void* pUserData
9202);
9203
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08009204#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07009205/**
9206 @brief WDI_TSMStatsReq will be called by the upper MAC to fetch
9207 Traffic Stream metrics.
9208 In state BUSY this request will be queued. Request won't
9209 be allowed in any other state.
9210
9211 @param wdiAddTsReqParams: the add TS parameters as specified by
9212 the Device Interface
9213
9214 wdiAddTsRspCb: callback for passing back the response of
9215 the add TS operation received from the device
9216
9217 pUserData: user data will be passed back with the
9218 callback
9219
9220 @see WDI_PostAssocReq
9221 @return Result of the function call
9222*/
9223WDI_Status
9224WDI_TSMStatsReq
9225(
9226 WDI_TSMStatsReqParamsType* pwdiTsmStatsReqParams,
9227 WDI_TsmRspCb wdiTsmStatsRspCb,
9228 void* pUserData
9229);
9230
9231
9232#endif
9233
9234/*========================================================================
9235
9236 QoS and BA APIs
9237
9238==========================================================================*/
9239
9240/**
9241 @brief WDI_AddTSReq will be called when the upper MAC to inform
9242 the device of a successful add TSpec negotiation. HW
9243 needs to receive the TSpec Info from the UMAC in order
9244 to configure properly the QoS data traffic. Upon the
9245 call of this API the WLAN DAL will pack and send a HAL
9246 Add TS request message to the lower RIVA sub-system if
9247 DAL is in state STARTED.
9248
9249 In state BUSY this request will be queued. Request won't
9250 be allowed in any other state.
9251
9252 WDI_PostAssocReq must have been called.
9253
9254 @param wdiAddTsReqParams: the add TS parameters as specified by
9255 the Device Interface
9256
9257 wdiAddTsRspCb: callback for passing back the response of
9258 the add TS operation received from the device
9259
9260 pUserData: user data will be passed back with the
9261 callback
9262
9263 @see WDI_PostAssocReq
9264 @return Result of the function call
9265*/
9266WDI_Status
9267WDI_AddTSReq
9268(
9269 WDI_AddTSReqParamsType* pwdiAddTsReqParams,
9270 WDI_AddTsRspCb wdiAddTsRspCb,
9271 void* pUserData
9272);
9273
9274
9275
9276/**
9277 @brief WDI_DelTSReq will be called when the upper MAC has ended
9278 admission on a specific AC. This is to inform HW that
9279 QoS traffic parameters must be rest. Upon the call of
9280 this API the WLAN DAL will pack and send a HAL Del TS
9281 request message to the lower RIVA sub-system if DAL is
9282 in state STARTED.
9283
9284 In state BUSY this request will be queued. Request won't
9285 be allowed in any other state.
9286
9287 WDI_AddTSReq must have been called.
9288
9289 @param wdiDelTsReqParams: the del TS parameters as specified by
9290 the Device Interface
9291
9292 wdiDelTsRspCb: callback for passing back the response of
9293 the del TS operation received from the device
9294
9295 pUserData: user data will be passed back with the
9296 callback
9297
9298 @see WDI_AddTSReq
9299 @return Result of the function call
9300*/
9301WDI_Status
9302WDI_DelTSReq
9303(
9304 WDI_DelTSReqParamsType* pwdiDelTsReqParams,
9305 WDI_DelTsRspCb wdiDelTsRspCb,
9306 void* pUserData
9307);
9308
9309
9310
9311/**
9312 @brief WDI_UpdateEDCAParams will be called when the upper MAC
9313 wishes to update the EDCA parameters used by HW for QoS
9314 data traffic. Upon the call of this API the WLAN DAL
9315 will pack and send a HAL Update EDCA Params request
9316 message to the lower RIVA sub-system if DAL is in state
9317 STARTED.
9318
9319 In state BUSY this request will be queued. Request won't
9320 be allowed in any other state.
9321
9322 WDI_PostAssocReq must have been called.
9323
9324 @param wdiUpdateEDCAParams: the start parameters as specified
9325 by the Device Interface
9326
9327 wdiUpdateEDCAParamsRspCb: callback for passing back the
9328 response of the start operation received from the device
9329
9330 pUserData: user data will be passed back with the
9331 callback
9332
9333 @see WDI_PostAssocReq
9334 @return Result of the function call
9335*/
9336WDI_Status
9337WDI_UpdateEDCAParams
9338(
9339 WDI_UpdateEDCAParamsType* pwdiUpdateEDCAParams,
9340 WDI_UpdateEDCAParamsRspCb wdiUpdateEDCAParamsRspCb,
9341 void* pUserData
9342);
9343
9344
9345
9346/**
9347 @brief WDI_AddBASessionReq will be called when the upper MAC has setup
9348 successfully a BA session and needs to notify the HW for
9349 the appropriate settings to take place. Upon the call of
9350 this API the WLAN DAL will pack and send a HAL Add BA
9351 request message to the lower RIVA sub-system if DAL is
9352 in state STARTED.
9353
9354 In state BUSY this request will be queued. Request won't
9355 be allowed in any other state.
9356
9357 WDI_PostAssocReq must have been called.
9358
9359 @param wdiAddBAReqParams: the add BA parameters as specified by
9360 the Device Interface
9361
9362 wdiAddBARspCb: callback for passing back the response of
9363 the add BA operation received from the device
9364
9365 pUserData: user data will be passed back with the
9366 callback
9367
9368 @see WDI_PostAssocReq
9369 @return Result of the function call
9370*/
9371WDI_Status
9372WDI_AddBASessionReq
9373(
9374 WDI_AddBASessionReqParamsType* pwdiAddBASessionReqParams,
9375 WDI_AddBASessionRspCb wdiAddBASessionRspCb,
9376 void* pUserData
9377);
9378
9379
9380/**
9381 @brief WDI_DelBAReq will be called when the upper MAC wants to
9382 inform HW that it has deleted a previously created BA
9383 session. Upon the call of this API the WLAN DAL will
9384 pack and send a HAL Del BA request message to the lower
9385 RIVA sub-system if DAL is in state STARTED.
9386
9387 In state BUSY this request will be queued. Request won't
9388 be allowed in any other state.
9389
9390 WDI_AddBAReq must have been called.
9391
9392 @param wdiDelBAReqParams: the del BA parameters as specified by
9393 the Device Interface
9394
9395 wdiDelBARspCb: callback for passing back the response of
9396 the del BA operation received from the device
9397
9398 pUserData: user data will be passed back with the
9399 callback
9400
9401 @see WDI_AddBAReq
9402 @return Result of the function call
9403*/
9404WDI_Status
9405WDI_DelBAReq
9406(
9407 WDI_DelBAReqParamsType* pwdiDelBAReqParams,
9408 WDI_DelBARspCb wdiDelBARspCb,
9409 void* pUserData
9410);
9411
9412/**
9413 @brief WDI_UpdateBeaconParamsReq will be called when the upper MAC wants to
9414 inform HW that there is a change in the beacon parameters
9415 Upon the call of this API the WLAN DAL will
9416 pack and send a UpdateBeacon Params message to the lower
9417 RIVA sub-system if DAL is in state STARTED.
9418
9419 In state BUSY this request will be queued. Request won't
9420 be allowed in any other state.
9421
9422 WDI_UpdateBeaconParamsReq must have been called.
9423
9424 @param WDI_UpdateBeaconParamsType: the Update Beacon parameters as specified by
9425 the Device Interface
9426
9427 WDI_UpdateBeaconParamsRspCb: callback for passing back the response of
9428 the Update Beacon Params operation received from the device
9429
9430 pUserData: user data will be passed back with the
9431 callback
9432
9433 @see WDI_AddBAReq
9434 @return Result of the function call
9435*/
9436
9437WDI_Status
9438WDI_UpdateBeaconParamsReq
9439(
9440 WDI_UpdateBeaconParamsType * pwdiUpdateBeaconParams,
9441 WDI_UpdateBeaconParamsRspCb wdiUpdateBeaconParamsRspCb,
9442 void* pUserData
9443);
9444
9445
9446/**
9447 @brief WDI_SendBeaconParamsReq will be called when the upper MAC wants to
9448 update the beacon template to be transmitted as BT MAP STA/IBSS/Soft AP
9449 Upon the call of this API the WLAN DAL will
9450 pack and send the beacon Template message to the lower
9451 RIVA sub-system if DAL is in state STARTED.
9452
9453 In state BUSY this request will be queued. Request won't
9454 be allowed in any other state.
9455
9456 WDI_SendBeaconParamsReq must have been called.
9457
9458 @param WDI_SendBeaconParamsType: the Update Beacon parameters as specified by
9459 the Device Interface
9460
9461 WDI_SendBeaconParamsRspCb: callback for passing back the response of
9462 the Send Beacon Params operation received from the device
9463
9464 pUserData: user data will be passed back with the
9465 callback
9466
9467 @see WDI_AddBAReq
9468 @return Result of the function call
9469*/
9470
9471WDI_Status
9472WDI_SendBeaconParamsReq
9473(
9474 WDI_SendBeaconParamsType* pwdiSendBeaconParams,
9475 WDI_SendBeaconParamsRspCb wdiSendBeaconParamsRspCb,
9476 void* pUserData
9477);
9478
9479
9480/**
9481 @brief WDI_UpdateProbeRspTemplateReq will be called when the
9482 upper MAC wants to update the probe response template to
9483 be transmitted as Soft AP
9484 Upon the call of this API the WLAN DAL will
9485 pack and send the probe rsp template message to the
9486 lower RIVA sub-system if DAL is in state STARTED.
9487
9488 In state BUSY this request will be queued. Request won't
9489 be allowed in any other state.
9490
9491
9492 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9493 specified by the Device Interface
9494
9495 wdiSendBeaconParamsRspCb: callback for passing back the
9496 response of the Send Beacon Params operation received
9497 from the device
9498
9499 pUserData: user data will be passed back with the
9500 callback
9501
9502 @see WDI_AddBAReq
9503 @return Result of the function call
9504*/
9505
9506WDI_Status
9507WDI_UpdateProbeRspTemplateReq
9508(
9509 WDI_UpdateProbeRspTemplateParamsType* pwdiUpdateProbeRspParams,
9510 WDI_UpdateProbeRspTemplateRspCb wdiSendBeaconParamsRspCb,
9511 void* pUserData
9512);
9513
Jeff Johnson295189b2012-06-20 16:38:30 -07009514/**
9515 @brief WDI_SetP2PGONOAReq will be called when the
9516 upper MAC wants to send Notice of Absence
9517 Upon the call of this API the WLAN DAL will
9518 pack and send the probe rsp template message to the
9519 lower RIVA sub-system if DAL is in state STARTED.
9520
9521 In state BUSY this request will be queued. Request won't
9522 be allowed in any other state.
9523
9524
9525 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9526 specified by the Device Interface
9527
9528 wdiSendBeaconParamsRspCb: callback for passing back the
9529 response of the Send Beacon Params operation received
9530 from the device
9531
9532 pUserData: user data will be passed back with the
9533 callback
9534
9535 @see WDI_AddBAReq
9536 @return Result of the function call
9537*/
9538WDI_Status
9539WDI_SetP2PGONOAReq
9540(
9541 WDI_SetP2PGONOAReqParamsType* pwdiP2PGONOAReqParams,
9542 WDI_SetP2PGONOAReqParamsRspCb wdiP2PGONOAReqParamsRspCb,
9543 void* pUserData
9544);
Jeff Johnson295189b2012-06-20 16:38:30 -07009545
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05309546/**
9547 @brief WDI_SetTDLSLinkEstablishReq will be called when the
9548 upper MAC wants to send TDLS Link Establish Request Parameters
9549 Upon the call of this API the WLAN DAL will
9550 pack and send the TDLS Link Establish Request message to the
9551 lower RIVA sub-system if DAL is in state STARTED.
9552
9553 In state BUSY this request will be queued. Request won't
9554 be allowed in any other state.
9555
9556
9557 @param pwdiTDLSLinkEstablishReqParams: TDLS Peer Parameters
9558 for Link Establishment (Used for PUAPSD , TDLS Off Channel ...)
9559
9560 wdiTDLSLinkEstablishReqRspCb: callback for passing back the
9561 response of the TDLS Link Establish request received
9562 from the device
9563
9564 pUserData: user data will be passed back with the
9565 callback
9566
9567 @see
9568 @return Result of the function call
9569*/
9570WDI_Status
9571WDI_SetTDLSLinkEstablishReq
9572(
9573 WDI_SetTDLSLinkEstablishReqParamsType* pwdiTDLSLinkEstablishReqParams,
9574 WDI_SetTDLSLinkEstablishReqParamsRspCb wdiTDLSLinkEstablishReqRspCb,
9575 void* pUserData
9576);
Jeff Johnson295189b2012-06-20 16:38:30 -07009577
Atul Mittalc0f739f2014-07-31 13:47:47 +05309578WDI_Status
9579WDI_SetTDLSChanSwitchReq
9580(
9581 WDI_SetTDLSChanSwitchReqParamsType* pwdiTDLSChanSwitchReqParams,
9582 WDI_SetTDLSChanSwitchReqParamsRspCb wdiTDLSChanSwitchRReqRspCb,
9583 void* pUserData
9584);
Jeff Johnson295189b2012-06-20 16:38:30 -07009585/*========================================================================
9586
9587 Power Save APIs
9588
9589==========================================================================*/
9590
9591/**
9592 @brief WDI_SetPwrSaveCfgReq will be called when the upper MAC
9593 wants to set the power save related configurations of
9594 the WLAN Device. Upon the call of this API the WLAN DAL
9595 will pack and send a HAL Update CFG request message to
9596 the lower RIVA sub-system if DAL is in state STARTED.
9597
9598 In state BUSY this request will be queued. Request won't
9599 be allowed in any other state.
9600
9601 WDI_Start must have been called.
9602
9603 @param pwdiPowerSaveCfg: the power save cfg parameters as
9604 specified by the Device Interface
9605
9606 wdiSetPwrSaveCfgCb: callback for passing back the
9607 response of the set power save cfg operation received
9608 from the device
9609
9610 pUserData: user data will be passed back with the
9611 callback
9612
9613 @see WDI_Start
9614 @return Result of the function call
9615*/
9616WDI_Status
9617WDI_SetPwrSaveCfgReq
9618(
9619 WDI_UpdateCfgReqParamsType* pwdiPowerSaveCfg,
9620 WDI_SetPwrSaveCfgCb wdiSetPwrSaveCfgCb,
9621 void* pUserData
9622);
9623
9624/**
9625 @brief WDI_EnterImpsReq will be called when the upper MAC to
9626 request the device to get into IMPS power state. Upon
9627 the call of this API the WLAN DAL will send a HAL Enter
9628 IMPS request message to the lower RIVA sub-system if DAL
9629 is in state STARTED.
9630
9631 In state BUSY this request will be queued. Request won't
9632 be allowed in any other state.
9633
9634
9635 @param wdiEnterImpsRspCb: callback for passing back the
9636 response of the Enter IMPS operation received from the
9637 device
9638
9639 pUserData: user data will be passed back with the
9640 callback
9641
9642 @see WDI_Start
9643 @return Result of the function call
9644*/
9645WDI_Status
9646WDI_EnterImpsReq
9647(
Mihir Shetea4306052014-03-25 00:02:54 +05309648 WDI_EnterImpsReqParamsType *pwdiEnterImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009649 WDI_EnterImpsRspCb wdiEnterImpsRspCb,
9650 void* pUserData
9651);
9652
9653/**
9654 @brief WDI_ExitImpsReq will be called when the upper MAC to
9655 request the device to get out of IMPS power state. Upon
9656 the call of this API the WLAN DAL will send a HAL Exit
9657 IMPS request message to the lower RIVA sub-system if DAL
9658 is in state STARTED.
9659
9660 In state BUSY this request will be queued. Request won't
9661 be allowed in any other state.
9662
9663
9664
9665 @param wdiExitImpsRspCb: callback for passing back the response
9666 of the Exit IMPS operation received from the device
9667
9668 pUserData: user data will be passed back with the
9669 callback
9670
9671 @see WDI_Start
9672 @return Result of the function call
9673*/
9674WDI_Status
9675WDI_ExitImpsReq
9676(
Mahesh A Saptasagar329813b2014-12-15 12:16:51 +05309677 WDI_ExitImpsReqParamsType *pwdiExitImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009678 WDI_ExitImpsRspCb wdiExitImpsRspCb,
9679 void* pUserData
9680);
9681
9682/**
9683 @brief WDI_EnterBmpsReq will be called when the upper MAC to
9684 request the device to get into BMPS power state. Upon
9685 the call of this API the WLAN DAL will pack and send a
9686 HAL Enter BMPS request message to the lower RIVA
9687 sub-system if DAL is in state STARTED.
9688
9689 In state BUSY this request will be queued. Request won't
9690 be allowed in any other state.
9691
9692 WDI_PostAssocReq must have been called.
9693
9694 @param pwdiEnterBmpsReqParams: the Enter BMPS parameters as
9695 specified by the Device Interface
9696
9697 wdiEnterBmpsRspCb: callback for passing back the
9698 response of the Enter BMPS operation received from the
9699 device
9700
9701 pUserData: user data will be passed back with the
9702 callback
9703
9704 @see WDI_PostAssocReq
9705 @return Result of the function call
9706*/
9707WDI_Status
9708WDI_EnterBmpsReq
9709(
9710 WDI_EnterBmpsReqParamsType *pwdiEnterBmpsReqParams,
9711 WDI_EnterBmpsRspCb wdiEnterBmpsRspCb,
9712 void* pUserData
9713);
9714
9715/**
9716 @brief WDI_ExitBmpsReq will be called when the upper MAC to
9717 request the device to get out of BMPS power state. Upon
9718 the call of this API the WLAN DAL will pack and send a
9719 HAL Exit BMPS request message to the lower RIVA
9720 sub-system if DAL is in state STARTED.
9721
9722 In state BUSY this request will be queued. Request won't
9723 be allowed in any other state.
9724
9725 WDI_PostAssocReq must have been called.
9726
9727 @param pwdiExitBmpsReqParams: the Exit BMPS parameters as
9728 specified by the Device Interface
9729
9730 wdiExitBmpsRspCb: callback for passing back the response
9731 of the Exit BMPS operation received from the device
9732
9733 pUserData: user data will be passed back with the
9734 callback
9735
9736 @see WDI_PostAssocReq
9737 @return Result of the function call
9738*/
9739WDI_Status
9740WDI_ExitBmpsReq
9741(
9742 WDI_ExitBmpsReqParamsType *pwdiExitBmpsReqParams,
9743 WDI_ExitBmpsRspCb wdiExitBmpsRspCb,
9744 void* pUserData
9745);
9746
9747/**
9748 @brief WDI_EnterUapsdReq will be called when the upper MAC to
9749 request the device to get into UAPSD power state. Upon
9750 the call of this API the WLAN DAL will pack and send a
9751 HAL Enter UAPSD request message to the lower RIVA
9752 sub-system if DAL is in state STARTED.
9753
9754 In state BUSY this request will be queued. Request won't
9755 be allowed in any other state.
9756
9757 WDI_PostAssocReq must have been called.
9758 WDI_SetUapsdAcParamsReq must have been called.
9759
9760 @param pwdiEnterUapsdReqParams: the Enter UAPSD parameters as
9761 specified by the Device Interface
9762
9763 wdiEnterUapsdRspCb: callback for passing back the
9764 response of the Enter UAPSD operation received from the
9765 device
9766
9767 pUserData: user data will be passed back with the
9768 callback
9769
9770 @see WDI_PostAssocReq, WDI_SetUapsdAcParamsReq
9771 @return Result of the function call
9772*/
9773WDI_Status
9774WDI_EnterUapsdReq
9775(
9776 WDI_EnterUapsdReqParamsType *pwdiEnterUapsdReqParams,
9777 WDI_EnterUapsdRspCb wdiEnterUapsdRspCb,
9778 void* pUserData
9779);
9780
9781/**
9782 @brief WDI_ExitUapsdReq will be called when the upper MAC to
9783 request the device to get out of UAPSD power state. Upon
9784 the call of this API the WLAN DAL will send a HAL Exit
9785 UAPSD request message to the lower RIVA sub-system if
9786 DAL is in state STARTED.
9787
9788 In state BUSY this request will be queued. Request won't
9789 be allowed in any other state.
9790
9791 WDI_PostAssocReq must have been called.
9792
9793 @param wdiExitUapsdRspCb: callback for passing back the
9794 response of the Exit UAPSD operation received from the
9795 device
9796
9797 pUserData: user data will be passed back with the
9798 callback
9799
9800 @see WDI_PostAssocReq
9801 @return Result of the function call
9802*/
9803WDI_Status
9804WDI_ExitUapsdReq
9805(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07009806 WDI_ExitUapsdReqParamsType *pwdiExitUapsdReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009807 WDI_ExitUapsdRspCb wdiExitUapsdRspCb,
9808 void* pUserData
9809);
9810
9811/**
9812 @brief WDI_UpdateUapsdParamsReq will be called when the upper
9813 MAC wants to set the UAPSD related configurations
9814 of an associated STA (while acting as an AP) to the WLAN
9815 Device. Upon the call of this API the WLAN DAL will pack
9816 and send a HAL Update UAPSD params request message to
9817 the lower RIVA sub-system if DAL is in state STARTED.
9818
9819 In state BUSY this request will be queued. Request won't
9820 be allowed in any other state.
9821
9822 WDI_ConfigBSSReq must have been called.
9823
9824 @param pwdiUpdateUapsdReqParams: the UAPSD parameters
9825 as specified by the Device Interface
9826
9827 wdiUpdateUapsdParamsCb: callback for passing back the
9828 response of the update UAPSD params operation received
9829 from the device
9830
9831 pUserData: user data will be passed back with the
9832 callback
9833
9834 @see WDI_ConfigBSSReq
9835 @return Result of the function call
9836*/
9837WDI_Status
9838WDI_UpdateUapsdParamsReq
9839(
9840 WDI_UpdateUapsdReqParamsType *pwdiUpdateUapsdReqParams,
9841 WDI_UpdateUapsdParamsCb wdiUpdateUapsdParamsCb,
9842 void* pUserData
9843);
9844
9845/**
9846 @brief WDI_SetUapsdAcParamsReq will be called when the upper
9847 MAC wants to set the UAPSD related configurations before
9848 requesting for enter UAPSD power state to the WLAN
9849 Device. Upon the call of this API the WLAN DAL will pack
9850 and send a HAL Set UAPSD params request message to
9851 the lower RIVA sub-system if DAL is in state STARTED.
9852
9853 In state BUSY this request will be queued. Request won't
9854 be allowed in any other state.
9855
9856 WDI_PostAssocReq must have been called.
9857
9858 @param pwdiUapsdInfo: the UAPSD parameters as specified by
9859 the Device Interface
9860
9861 wdiSetUapsdAcParamsCb: callback for passing back the
9862 response of the set UAPSD params operation received from
9863 the device
9864
9865 pUserData: user data will be passed back with the
9866 callback
9867
9868 @see WDI_PostAssocReq
9869 @return Result of the function call
9870*/
9871WDI_Status
9872WDI_SetUapsdAcParamsReq
9873(
9874 WDI_SetUapsdAcParamsReqParamsType* pwdiPowerSaveCfg,
9875 WDI_SetUapsdAcParamsCb wdiSetUapsdAcParamsCb,
9876 void* pUserData
9877);
Sachin Ahuja715aafc2015-07-21 23:35:10 +05309878
9879
9880/**
9881 @brief WDI_FatalEventLogsReq will be called when the upper
9882 MAC wants to send the fatal event req. Upon the call of
9883 this API the WLAN DAL will pack and send a HAL
9884 Fatal event request message to the lower RIVA sub-system.
9885
9886 In state BUSY this request will be queued. Request won't
9887 be allowed in any other state.
9888
9889
9890 @param pwdiFatalEventLogsReqInfo: the Fatal event logs params
9891 as specified by the Device Interface
9892
9893 wdiFatalEventLogsRspCb: callback for passing back the
9894 response of the fatal event operation received
9895 from the device
9896
9897 pUserData: user data will be passed back with the
9898 callback
9899
9900 @return Result of the function call
9901*/
9902
9903WDI_Status
9904WDI_FatalEventLogsReq
9905(
9906 WDI_FatalEventLogsReqInfoType *pwdiFatalEventLogsReqInfo,
9907 WDI_FatalEventLogsRspCb wdiFatalEventLogsRspCb,
9908 void* pUserData
9909);
9910
Siddharth Bhal64246172015-02-27 01:04:37 +05309911/**
9912 @brief WDI_GetFrameLogReq will be called when the upper
9913 MAC wants to initialize frame logging. Upon the call of
9914 this API the WLAN DAL will pack and send a HAL
9915 Frame logging init request message to
9916 the lower RIVA sub-system.
9917
9918 In state BUSY this request will be queued. Request won't
9919 be allowed in any other state.
9920
9921
9922 @param pwdiGetFrameLogReqInfo: the Frame Logging params
9923 as specified by the Device Interface
9924
9925 wdiGetFrameLogReqCb: callback for passing back the
9926 response of the frame logging init operation received
9927 from the device
9928
9929 pUserData: user data will be passed back with the
9930 callback
9931
9932 @return Result of the function call
9933*/
9934WDI_Status
9935WDI_GetFrameLogReq
9936(
9937 WDI_GetFrameLogReqInfoType *pwdiGetFrameLogReqInfo,
9938 WDI_GetFrameLogRspCb wdiGetFrameLogReqCb,
9939 void* pUserData
9940);
Jeff Johnson295189b2012-06-20 16:38:30 -07009941
9942/**
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309943 @brief WDI_FWLoggingInitReq will be called when the upper
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309944 MAC wants to initialize frame logging. Upon the call of
9945 this API the WLAN DAL will pack and send a HAL
9946 Frame logging init request message to
9947 the lower RIVA sub-system.
9948
9949 In state BUSY this request will be queued. Request won't
9950 be allowed in any other state.
9951
9952
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309953 @param pwdiFWLoggingInitReqParams: the Frame Logging params
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309954 as specified by the Device Interface
9955
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309956 wdiFWLoggingInitReqCb: callback for passing back the
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309957 response of the frame logging init operation received
9958 from the device
9959
9960 pUserData: user data will be passed back with the
9961 callback
9962
9963 @return Result of the function call
9964*/
9965WDI_Status
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309966WDI_FWLoggingInitReq
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309967(
Siddharth Bhald1be97f2015-05-27 22:39:59 +05309968 WDI_FWLoggingInitReqInfoType *pwdiFWLoggingInitReqInfo,
9969 WDI_FWLoggingInitRspCb wdiFWLoggingInitReqCb,
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05309970 void* pUserData
9971);
9972
9973/**
Gupta, Kapil7c34b322015-09-30 13:12:35 +05309974 @brief WDI_StartRssiMonitorReq will be called when the upper
9975 MAC wants to initialize Rssi Monitor on a bssid.
9976 Upon the call of this API the WLAN DAL will pack and
9977 send a HAL Rssi Monitor init request message to
9978 the lower RIVA sub-system.
9979
9980 In state BUSY this request will be queued. Request won't
9981 be allowed in any other state.
9982
9983
9984 @param pwdiRssiMonitorInfo: the Rssi Monitor params
9985 as specified by the Device Interface
9986
9987 wdiRssiMonitorStartRspCb: callback for passing back the
9988 response of the rssi monitor operation received
9989 from the device
9990
9991 pUserData: user data will be passed back with the
9992 callback
9993
9994 @return Result of the function call
9995*/
9996WDI_Status
9997WDI_StartRssiMonitorReq
9998(
9999 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
10000 WDI_RssiMonitorStartRspCb wdiRssiMonitorStartRspCb,
10001 void* pUserData
10002);
10003
10004
10005/**
10006 @brief WDI_StopRssiMonitorReq will be called when the upper
10007 MAC wants to stop Rssi Monitor on a bssid.
10008 Upon the call of this API the WLAN DAL will pack and
10009 send a HAL Rssi Monitor stop request message to
10010 the lower RIVA sub-system.
10011
10012 In state BUSY this request will be queued. Request won't
10013 be allowed in any other state.
10014
10015
10016 @param pwdiRssiMonitorInfo: the Rssi Monitor params
10017 as specified by the Device Interface
10018
10019 wdiRssiMonitorStopRspCb: callback for passing back the
10020 response of the rssi monitor operation received
10021 from the device
10022
10023 pUserData: user data will be passed back with the
10024 callback
10025
10026 @return Result of the function call
10027*/
10028WDI_Status
10029WDI_StopRssiMonitorReq
10030(
10031 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
10032 WDI_RssiMonitorStopRspCb wdiRssiMonitorStopRspCb,
10033 void* pUserData
10034);
10035
10036/**
Jeff Johnson295189b2012-06-20 16:38:30 -070010037 @brief WDI_ConfigureRxpFilterReq will be called when the upper
10038 MAC wants to set/reset the RXP filters for received pkts
10039 (MC, BC etc.). Upon the call of this API the WLAN DAL will pack
10040 and send a HAL configure RXP filter request message to
10041 the lower RIVA sub-system.
10042
10043 In state BUSY this request will be queued. Request won't
10044 be allowed in any other state.
10045
10046
10047 @param pwdiConfigureRxpFilterReqParams: the RXP
10048 filter as specified by the Device
10049 Interface
10050
10051 wdiConfigureRxpFilterCb: callback for passing back the
10052 response of the configure RXP filter operation received
10053 from the device
10054
10055 pUserData: user data will be passed back with the
10056 callback
10057
10058 @return Result of the function call
10059*/
10060WDI_Status
10061WDI_ConfigureRxpFilterReq
10062(
10063 WDI_ConfigureRxpFilterReqParamsType *pwdiConfigureRxpFilterReqParams,
10064 WDI_ConfigureRxpFilterCb wdiConfigureRxpFilterCb,
10065 void* pUserData
10066);
10067
10068/**
10069 @brief WDI_SetBeaconFilterReq will be called when the upper MAC
10070 wants to set the beacon filters while in power save.
10071 Upon the call of this API the WLAN DAL will pack and
10072 send a Beacon filter request message to the
10073 lower RIVA sub-system.
10074
10075 In state BUSY this request will be queued. Request won't
10076 be allowed in any other state.
10077
10078
10079 @param pwdiBeaconFilterReqParams: the beacon
10080 filter as specified by the Device
10081 Interface
10082
10083 wdiBeaconFilterCb: callback for passing back the
10084 response of the set beacon filter operation received
10085 from the device
10086
10087 pUserData: user data will be passed back with the
10088 callback
10089
10090 @return Result of the function call
10091*/
10092WDI_Status
10093WDI_SetBeaconFilterReq
10094(
10095 WDI_BeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10096 WDI_SetBeaconFilterCb wdiBeaconFilterCb,
10097 void* pUserData
10098);
10099
10100/**
10101 @brief WDI_RemBeaconFilterReq will be called when the upper MAC
10102 wants to remove the beacon filter for perticular IE
10103 while in power save. Upon the call of this API the WLAN
10104 DAL will pack and send a remove Beacon filter request
10105 message to the lower RIVA sub-system.
10106
10107 In state BUSY this request will be queued. Request won't
10108 be allowed in any other state.
10109
10110
10111 @param pwdiBeaconFilterReqParams: the beacon
10112 filter as specified by the Device
10113 Interface
10114
10115 wdiBeaconFilterCb: callback for passing back the
10116 response of the remove beacon filter operation received
10117 from the device
10118
10119 pUserData: user data will be passed back with the
10120 callback
10121
10122 @return Result of the function call
10123*/
10124WDI_Status
10125WDI_RemBeaconFilterReq
10126(
10127 WDI_RemBeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10128 WDI_RemBeaconFilterCb wdiBeaconFilterCb,
10129 void* pUserData
10130);
10131
10132/**
10133 @brief WDI_SetRSSIThresholdsReq will be called when the upper
10134 MAC wants to set the RSSI thresholds related
10135 configurations while in power save. Upon the call of
10136 this API the WLAN DAL will pack and send a HAL Set RSSI
10137 thresholds request message to the lower RIVA
10138 sub-system if DAL is in state STARTED.
10139
10140 In state BUSY this request will be queued. Request won't
10141 be allowed in any other state.
10142
10143 WDI_PostAssocReq must have been called.
10144
10145 @param pwdiUapsdInfo: the UAPSD parameters as specified by
10146 the Device Interface
10147
10148 wdiSetUapsdAcParamsCb: callback for passing back the
10149 response of the set UAPSD params operation received from
10150 the device
10151
10152 pUserData: user data will be passed back with the
10153 callback
10154
10155 @see WDI_PostAssocReq
10156 @return Result of the function call
10157*/
10158WDI_Status
10159WDI_SetRSSIThresholdsReq
10160(
10161 WDI_SetRSSIThresholdsReqParamsType* pwdiRSSIThresholdsParams,
10162 WDI_SetRSSIThresholdsCb wdiSetRSSIThresholdsCb,
10163 void* pUserData
10164);
10165
10166/**
10167 @brief WDI_HostOffloadReq will be called when the upper MAC
10168 wants to set the filter to minimize unnecessary host
10169 wakeup due to broadcast traffic while in power save.
10170 Upon the call of this API the WLAN DAL will pack and
10171 send a HAL host offload request message to the
10172 lower RIVA sub-system if DAL is in state STARTED.
10173
10174 In state BUSY this request will be queued. Request won't
10175 be allowed in any other state.
10176
10177 WDI_PostAssocReq must have been called.
10178
10179 @param pwdiHostOffloadParams: the host offload as specified
10180 by the Device Interface
10181
10182 wdiHostOffloadCb: callback for passing back the response
10183 of the host offload operation received from the
10184 device
10185
10186 pUserData: user data will be passed back with the
10187 callback
10188
10189 @see WDI_PostAssocReq
10190 @return Result of the function call
10191*/
10192WDI_Status
10193WDI_HostOffloadReq
10194(
10195 WDI_HostOffloadReqParamsType* pwdiHostOffloadParams,
10196 WDI_HostOffloadCb wdiHostOffloadCb,
10197 void* pUserData
10198);
10199
10200/**
10201 @brief WDI_KeepAliveReq will be called when the upper MAC
10202 wants to set the filter to send NULL or unsolicited ARP responses
10203 and minimize unnecessary host wakeups due to while in power save.
10204 Upon the call of this API the WLAN DAL will pack and
10205 send a HAL Keep Alive request message to the
10206 lower RIVA sub-system if DAL is in state STARTED.
10207
10208 In state BUSY this request will be queued. Request won't
10209 be allowed in any other state.
10210
10211 WDI_PostAssocReq must have been called.
10212
10213 @param pwdiKeepAliveParams: the Keep Alive as specified
10214 by the Device Interface
10215
10216 wdiKeepAliveCb: callback for passing back the response
10217 of the Keep Alive operation received from the
10218 device
10219
10220 pUserData: user data will be passed back with the
10221 callback
10222
10223 @see WDI_PostAssocReq
10224 @return Result of the function call
10225*/
10226WDI_Status
10227WDI_KeepAliveReq
10228(
10229 WDI_KeepAliveReqParamsType* pwdiKeepAliveParams,
10230 WDI_KeepAliveCb wdiKeepAliveCb,
10231 void* pUserData
10232);
10233
10234/**
10235 @brief WDI_WowlAddBcPtrnReq will be called when the upper MAC
10236 wants to set the Wowl Bcast ptrn to minimize unnecessary
10237 host wakeup due to broadcast traffic while in power
10238 save. Upon the call of this API the WLAN DAL will pack
10239 and send a HAL Wowl Bcast ptrn request message to the
10240 lower RIVA sub-system if DAL is in state STARTED.
10241
10242 In state BUSY this request will be queued. Request won't
10243 be allowed in any other state.
10244
10245 WDI_PostAssocReq must have been called.
10246
10247 @param pwdiWowlAddBcPtrnParams: the Wowl bcast ptrn as
10248 specified by the Device Interface
10249
10250 wdiWowlAddBcPtrnCb: callback for passing back the
10251 response of the add Wowl bcast ptrn operation received
10252 from the device
10253
10254 pUserData: user data will be passed back with the
10255 callback
10256
10257 @see WDI_PostAssocReq
10258 @return Result of the function call
10259*/
10260WDI_Status
10261WDI_WowlAddBcPtrnReq
10262(
10263 WDI_WowlAddBcPtrnReqParamsType* pwdiWowlAddBcPtrnParams,
10264 WDI_WowlAddBcPtrnCb wdiWowlAddBcPtrnCb,
10265 void* pUserData
10266);
10267
10268/**
10269 @brief WDI_WowlDelBcPtrnReq will be called when the upper MAC
10270 wants to clear the Wowl Bcast ptrn. Upon the call of
10271 this API the WLAN DAL will pack and send a HAL delete
10272 Wowl Bcast ptrn request message to the lower RIVA
10273 sub-system if DAL is in state STARTED.
10274
10275 In state BUSY this request will be queued. Request won't
10276 be allowed in any other state.
10277
10278 WDI_WowlAddBcPtrnReq must have been called.
10279
10280 @param pwdiWowlDelBcPtrnParams: the Wowl bcast ptrn as
10281 specified by the Device Interface
10282
10283 wdiWowlDelBcPtrnCb: callback for passing back the
10284 response of the del Wowl bcast ptrn operation received
10285 from the device
10286
10287 pUserData: user data will be passed back with the
10288 callback
10289
10290 @see WDI_WowlAddBcPtrnReq
10291 @return Result of the function call
10292*/
10293WDI_Status
10294WDI_WowlDelBcPtrnReq
10295(
10296 WDI_WowlDelBcPtrnReqParamsType* pwdiWowlDelBcPtrnParams,
10297 WDI_WowlDelBcPtrnCb wdiWowlDelBcPtrnCb,
10298 void* pUserData
10299);
10300
10301/**
10302 @brief WDI_WowlEnterReq will be called when the upper MAC
10303 wants to enter the Wowl state to minimize unnecessary
10304 host wakeup while in power save. Upon the call of this
10305 API the WLAN DAL will pack and send a HAL Wowl enter
10306 request message to the lower RIVA sub-system if DAL is
10307 in state STARTED.
10308
10309 In state BUSY this request will be queued. Request won't
10310 be allowed in any other state.
10311
10312 WDI_PostAssocReq must have been called.
10313
10314 @param pwdiWowlEnterReqParams: the Wowl enter info as
10315 specified by the Device Interface
10316
10317 wdiWowlEnterReqCb: callback for passing back the
10318 response of the enter Wowl operation received from the
10319 device
10320
10321 pUserData: user data will be passed back with the
10322 callback
10323
10324 @see WDI_PostAssocReq
10325 @return Result of the function call
10326*/
10327WDI_Status
10328WDI_WowlEnterReq
10329(
10330 WDI_WowlEnterReqParamsType* pwdiWowlEnterParams,
10331 WDI_WowlEnterReqCb wdiWowlEnterCb,
10332 void* pUserData
10333);
10334
10335/**
10336 @brief WDI_WowlExitReq will be called when the upper MAC
10337 wants to exit the Wowl state. Upon the call of this API
10338 the WLAN DAL will pack and send a HAL Wowl exit request
10339 message to the lower RIVA sub-system if DAL is in state
10340 STARTED.
10341
10342 In state BUSY this request will be queued. Request won't
10343 be allowed in any other state.
10344
10345 WDI_WowlEnterReq must have been called.
10346
10347 @param pwdiWowlExitReqParams: the Wowl exit info as
10348 specified by the Device Interface
10349
10350 wdiWowlExitReqCb: callback for passing back the response
10351 of the exit Wowl operation received from the device
10352
10353 pUserData: user data will be passed back with the
10354 callback
10355
10356 @see WDI_WowlEnterReq
10357 @return Result of the function call
10358*/
10359WDI_Status
10360WDI_WowlExitReq
10361(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -070010362 WDI_WowlExitReqParamsType* pwdiWowlExitParams,
Jeff Johnson295189b2012-06-20 16:38:30 -070010363 WDI_WowlExitReqCb wdiWowlExitCb,
10364 void* pUserData
10365);
10366
10367/**
10368 @brief WDI_ConfigureAppsCpuWakeupStateReq will be called when
10369 the upper MAC wants to dynamically adjusts the listen
10370 interval based on the WLAN/MSM activity. Upon the call
10371 of this API the WLAN DAL will pack and send a HAL
10372 configure Apps Cpu Wakeup State request message to the
10373 lower RIVA sub-system.
10374
10375 In state BUSY this request will be queued. Request won't
10376 be allowed in any other state.
10377
10378
10379 @param pwdiConfigureAppsCpuWakeupStateReqParams: the
10380 Apps Cpu Wakeup State as specified by the
10381 Device Interface
10382
10383 wdiConfigureAppsCpuWakeupStateCb: callback for passing
10384 back the response of the configure Apps Cpu Wakeup State
10385 operation received from the device
10386
10387 pUserData: user data will be passed back with the
10388 callback
10389
10390 @return Result of the function call
10391*/
10392WDI_Status
10393WDI_ConfigureAppsCpuWakeupStateReq
10394(
10395 WDI_ConfigureAppsCpuWakeupStateReqParamsType *pwdiConfigureAppsCpuWakeupStateReqParams,
10396 WDI_ConfigureAppsCpuWakeupStateCb wdiConfigureAppsCpuWakeupStateCb,
10397 void* pUserData
10398);
10399/**
10400 @brief WDI_FlushAcReq will be called when the upper MAC wants
10401 to to perform a flush operation on a given AC. Upon the
10402 call of this API the WLAN DAL will pack and send a HAL
10403 Flush AC request message to the lower RIVA sub-system if
10404 DAL is in state STARTED.
10405
10406 In state BUSY this request will be queued. Request won't
10407 be allowed in any other state.
10408
10409
10410 @param pwdiFlushAcReqParams: the Flush AC parameters as
10411 specified by the Device Interface
10412
10413 wdiFlushAcRspCb: callback for passing back the response
10414 of the Flush AC operation received from the device
10415
10416 pUserData: user data will be passed back with the
10417 callback
10418
10419 @return Result of the function call
10420*/
10421WDI_Status
10422WDI_FlushAcReq
10423(
10424 WDI_FlushAcReqParamsType* pwdiFlushAcReqParams,
10425 WDI_FlushAcRspCb wdiFlushAcRspCb,
10426 void* pUserData
10427);
10428
10429/**
10430 @brief WDI_BtAmpEventReq will be called when the upper MAC
10431 wants to notify the lower mac on a BT AMP event. This is
10432 to inform BTC-SLM that some BT AMP event occurred. Upon
10433 the call of this API the WLAN DAL will pack and send a
10434 HAL BT AMP event request message to the lower RIVA
10435 sub-system if DAL is in state STARTED.
10436
10437 In state BUSY this request will be queued. Request won't
10438 be allowed in any other state.
10439
10440
10441 @param wdiBtAmpEventReqParams: the BT AMP event parameters as
10442 specified by the Device Interface
10443
10444 wdiBtAmpEventRspCb: callback for passing back the
10445 response of the BT AMP event operation received from the
10446 device
10447
10448 pUserData: user data will be passed back with the
10449 callback
10450
10451 @return Result of the function call
10452*/
10453WDI_Status
10454WDI_BtAmpEventReq
10455(
10456 WDI_BtAmpEventParamsType* pwdiBtAmpEventReqParams,
10457 WDI_BtAmpEventRspCb wdiBtAmpEventRspCb,
10458 void* pUserData
10459);
10460
Jeff Johnsone7245742012-09-05 17:12:55 -070010461#ifdef FEATURE_OEM_DATA_SUPPORT
10462/**
10463 @brief WDI_Start oem data Req will be called when the upper MAC
10464 wants to notify the lower mac on a oem data Req event.Upon
10465 the call of this API the WLAN DAL will pack and send a
10466 HAL OEM Data Req event request message to the lower RIVA
10467 sub-system if DAL is in state STARTED.
10468
10469 In state BUSY this request will be queued. Request won't
10470 be allowed in any other state.
10471
10472
10473 @param pWdiOemDataReqParams: the oem data req parameters as
10474 specified by the Device Interface
10475
10476 wdiStartOemDataRspCb: callback for passing back the
10477 response of the Oem Data Req received from the
10478 device
10479
10480 pUserData: user data will be passed back with the
10481 callback
10482
10483 @return Result of the function call
10484*/
10485WDI_Status
10486WDI_StartOemDataReq
10487(
10488 WDI_oemDataReqParamsType* pWdiOemDataReqParams,
10489 WDI_oemDataRspCb wdiOemDataRspCb,
10490 void* pUserData
10491);
10492#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010493
10494/*========================================================================
10495
10496 CONTROL APIs
10497
10498==========================================================================*/
10499/**
10500 @brief WDI_SwitchChReq will be called when the upper MAC wants
10501 the WLAN HW to change the current channel of operation.
10502 Upon the call of this API the WLAN DAL will pack and
10503 send a HAL Start request message to the lower RIVA
10504 sub-system if DAL is in state STARTED.
10505
10506 In state BUSY this request will be queued. Request won't
10507 be allowed in any other state.
10508
10509 WDI_Start must have been called.
10510
10511 @param wdiSwitchChReqParams: the switch ch parameters as
10512 specified by the Device Interface
10513
10514 wdiSwitchChRspCb: callback for passing back the response
10515 of the switch ch operation received from the device
10516
10517 pUserData: user data will be passed back with the
10518 callback
10519
10520 @see WDI_Start
10521 @return Result of the function call
10522*/
10523WDI_Status
10524WDI_SwitchChReq
10525(
10526 WDI_SwitchChReqParamsType* pwdiSwitchChReqParams,
10527 WDI_SwitchChRspCb wdiSwitchChRspCb,
10528 void* pUserData
10529);
10530
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010531/**
Kalikinkar dhara1e83b772014-02-06 12:59:22 -080010532 @brief WDI_SwitchChReq_V1 is similar to WDI_SwitchChReq except
10533 it also send type source for the channel change.
10534 WDI_Start must have been called.
10535
10536 @param wdiSwitchChReqParams: the switch ch parameters as
10537 specified by the Device Interface
10538
10539 wdiSwitchChRspCb: callback for passing back the response
10540 of the switch ch operation received from the device
10541
10542 pUserData: user data will be passed back with the
10543 callback
10544
10545 @see WDI_Start
10546 @return Result of the function call
10547*/
10548
10549WDI_Status
10550WDI_SwitchChReq_V1
10551(
10552 WDI_SwitchChReqParamsType_V1* pwdiSwitchChReqParams,
10553 WDI_SwitchChRspCb_V1 wdiSwitchChRspCb,
10554 void* pUserData
10555);
10556
10557/**
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010558 @brief WDI_UpdateChannelReq will be called when the upper MAC
10559 wants to update the channel list on change in country code.
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010560 In state BUSY this request will be queued. Request won't
10561 be allowed in any other state.
10562
10563 WDI_UpdateChannelReq must have been called.
10564
10565 @param wdiUpdateChannelReqParams: the updated channel parameters
10566 as specified by the Device Interface
10567
10568 wdiUpdateChannelRspCb: callback for passing back the
10569 response of the update channel operation received from
10570 the device
10571
10572 pUserData: user data will be passed back with the
10573 callback
10574
10575 @return Result of the function call
10576*/
10577WDI_Status
10578WDI_UpdateChannelReq
10579(
10580 WDI_UpdateChReqParamsType *pwdiUpdateChannelReqParams,
10581 WDI_UpdateChannelRspCb wdiUpdateChannelRspCb,
10582 void* pUserData
10583);
Jeff Johnson295189b2012-06-20 16:38:30 -070010584
10585/**
10586 @brief WDI_ConfigSTAReq will be called when the upper MAC
10587 wishes to add or update a STA in HW. Upon the call of
10588 this API the WLAN DAL will pack and send a HAL Start
10589 message request message to the lower RIVA sub-system if
10590 DAL is in state STARTED.
10591
10592 In state BUSY this request will be queued. Request won't
10593 be allowed in any other state.
10594
10595 WDI_Start must have been called.
10596
10597 @param wdiConfigSTAReqParams: the config STA parameters as
10598 specified by the Device Interface
10599
10600 wdiConfigSTARspCb: callback for passing back the
10601 response of the config STA operation received from the
10602 device
10603
10604 pUserData: user data will be passed back with the
10605 callback
10606
10607 @see WDI_Start
10608 @return Result of the function call
10609*/
10610WDI_Status
10611WDI_ConfigSTAReq
10612(
10613 WDI_ConfigSTAReqParamsType* pwdiConfigSTAReqParams,
10614 WDI_ConfigSTARspCb wdiConfigSTARspCb,
10615 void* pUserData
10616);
10617
10618/**
10619 @brief WDI_SetLinkStateReq will be called when the upper MAC
10620 wants to change the state of an ongoing link. Upon the
10621 call of this API the WLAN DAL will pack and send a HAL
10622 Start message request message to the lower RIVA
10623 sub-system if DAL is in state STARTED.
10624
10625 In state BUSY this request will be queued. Request won't
10626 be allowed in any other state.
10627
10628 WDI_JoinReq must have been called.
10629
10630 @param wdiSetLinkStateReqParams: the set link state parameters
10631 as specified by the Device Interface
10632
10633 wdiSetLinkStateRspCb: callback for passing back the
10634 response of the set link state operation received from
10635 the device
10636
10637 pUserData: user data will be passed back with the
10638 callback
10639
10640 @see WDI_JoinStartReq
10641 @return Result of the function call
10642*/
10643WDI_Status
10644WDI_SetLinkStateReq
10645(
10646 WDI_SetLinkReqParamsType* pwdiSetLinkStateReqParams,
10647 WDI_SetLinkStateRspCb wdiSetLinkStateRspCb,
10648 void* pUserData
10649);
10650
10651
10652/**
10653 @brief WDI_GetStatsReq will be called when the upper MAC wants
10654 to get statistics (MIB counters) from the device. Upon
10655 the call of this API the WLAN DAL will pack and send a
10656 HAL Start request message to the lower RIVA sub-system
10657 if DAL is in state STARTED.
10658
10659 In state BUSY this request will be queued. Request won't
10660 be allowed in any other state.
10661
10662 WDI_Start must have been called.
10663
10664 @param wdiGetStatsReqParams: the stats parameters to get as
10665 specified by the Device Interface
10666
10667 wdiGetStatsRspCb: callback for passing back the response
10668 of the get stats operation received from the device
10669
10670 pUserData: user data will be passed back with the
10671 callback
10672
10673 @see WDI_Start
10674 @return Result of the function call
10675*/
10676WDI_Status
10677WDI_GetStatsReq
10678(
10679 WDI_GetStatsReqParamsType* pwdiGetStatsReqParams,
10680 WDI_GetStatsRspCb wdiGetStatsRspCb,
10681 void* pUserData
10682);
10683
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080010684#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -080010685/**
10686 @brief WDI_GetRoamRssiReq will be called when the upper MAC wants
10687 to get roam rssi from the device. Upon
10688 the call of this API the WLAN DAL will pack and send a
10689 HAL Start request message to the lower RIVA sub-system
10690 if DAL is in state STARTED.
10691
10692 In state BUSY this request will be queued. Request won't
10693 be allowed in any other state.
10694
10695 WDI_Start must have been called.
10696
10697 @param wdiGetRoamRssiReqParams: the stats parameters to get as
10698 specified by the Device Interface
10699
10700 wdiGetRoamRssispCb: callback for passing back the response
10701 of the get stats operation received from the device
10702
10703 pUserData: user data will be passed back with the
10704 callback
10705
10706 @see WDI_Start
10707 @return Result of the function call
10708*/
10709WDI_Status
10710WDI_GetRoamRssiReq
10711(
10712 WDI_GetRoamRssiReqParamsType* pwdiGetRoamRssiReqParams,
10713 WDI_GetRoamRssiRspCb wdiGetRoamRssiRspCb,
10714 void* pUserData
10715);
10716#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010717
10718/**
10719 @brief WDI_UpdateCfgReq will be called when the upper MAC when
10720 it wishes to change the configuration of the WLAN
10721 Device. Upon the call of this API the WLAN DAL will pack
10722 and send a HAL Update CFG request message to the lower
10723 RIVA sub-system if DAL is in state STARTED.
10724
10725 In state BUSY this request will be queued. Request won't
10726 be allowed in any other state.
10727
10728 WDI_Start must have been called.
10729
10730 @param wdiUpdateCfgReqParams: the update cfg parameters as
10731 specified by the Device Interface
10732
10733 wdiUpdateCfgsRspCb: callback for passing back the
10734 response of the update cfg operation received from the
10735 device
10736
10737 pUserData: user data will be passed back with the
10738 callback
10739
10740 @see WDI_Start
10741 @return Result of the function call
10742*/
10743WDI_Status
10744WDI_UpdateCfgReq
10745(
10746 WDI_UpdateCfgReqParamsType* pwdiUpdateCfgReqParams,
10747 WDI_UpdateCfgRspCb wdiUpdateCfgsRspCb,
10748 void* pUserData
10749);
10750
10751/**
10752 @brief WDI_NvDownloadReq will be called by the UMAC to dowload the NV blob
10753 to the NV memory.
10754
10755 @param wdiNvDownloadReqParams: the NV Download parameters as specified by
10756 the Device Interface
10757
10758 wdiNvDownloadRspCb: callback for passing back the response of
10759 the NV Download operation received from the device
10760
10761 pUserData: user data will be passed back with the
10762 callback
10763
10764 @see WDI_PostAssocReq
10765 @return Result of the function call
10766*/
10767WDI_Status
10768WDI_NvDownloadReq
10769(
10770 WDI_NvDownloadReqParamsType* pwdiNvDownloadReqParams,
10771 WDI_NvDownloadRspCb wdiNvDownloadRspCb,
10772 void* pUserData
10773);
10774/**
10775 @brief WDI_AddBAReq will be called when the upper MAC has setup
10776 successfully a BA session and needs to notify the HW for
10777 the appropriate settings to take place. Upon the call of
10778 this API the WLAN DAL will pack and send a HAL Add BA
10779 request message to the lower RIVA sub-system if DAL is
10780 in state STARTED.
10781
10782 In state BUSY this request will be queued. Request won't
10783 be allowed in any other state.
10784
10785 WDI_PostAssocReq must have been called.
10786
10787 @param wdiAddBAReqParams: the add BA parameters as specified by
10788 the Device Interface
10789
10790 wdiAddBARspCb: callback for passing back the response of
10791 the add BA operation received from the device
10792
10793 pUserData: user data will be passed back with the
10794 callback
10795
10796 @see WDI_PostAssocReq
10797 @return Result of the function call
10798*/
10799WDI_Status
10800WDI_AddBAReq
10801(
10802 WDI_AddBAReqParamsType* pwdiAddBAReqParams,
10803 WDI_AddBARspCb wdiAddBARspCb,
10804 void* pUserData
10805);
10806
10807/**
10808 @brief WDI_TriggerBAReq will be called when the upper MAC has setup
10809 successfully a BA session and needs to notify the HW for
10810 the appropriate settings to take place. Upon the call of
10811 this API the WLAN DAL will pack and send a HAL Add BA
10812 request message to the lower RIVA sub-system if DAL is
10813 in state STARTED.
10814
10815 In state BUSY this request will be queued. Request won't
10816 be allowed in any other state.
10817
10818 WDI_PostAssocReq must have been called.
10819
10820 @param wdiAddBAReqParams: the add BA parameters as specified by
10821 the Device Interface
Abhishek Singhac9abe62016-02-05 18:07:41 +053010822 baReqParamUserDataSize: user data size of wdiAddBAReqParams
Jeff Johnson295189b2012-06-20 16:38:30 -070010823 wdiAddBARspCb: callback for passing back the response of
10824 the add BA operation received from the device
10825
10826 pUserData: user data will be passed back with the
10827 callback
10828
10829 @see WDI_PostAssocReq
10830 @return Result of the function call
10831*/
10832WDI_Status
10833WDI_TriggerBAReq
10834(
10835 WDI_TriggerBAReqParamsType* pwdiTriggerBAReqParams,
Abhishek Singhac9abe62016-02-05 18:07:41 +053010836 wpt_uint8 baReqParamUserDataSize,
Jeff Johnson295189b2012-06-20 16:38:30 -070010837 WDI_TriggerBARspCb wdiTriggerBARspCb,
10838 void* pUserData
10839);
10840
10841
10842/**
10843 @brief WDI_IsHwFrameTxTranslationCapable checks to see if HW
10844 frame xtl is enabled for a particular STA.
10845
10846 WDI_PostAssocReq must have been called.
10847
10848 @param uSTAIdx: STA index
10849
10850 @see WDI_PostAssocReq
10851 @return Result of the function call
10852*/
10853wpt_boolean WDI_IsHwFrameTxTranslationCapable
10854(
10855 wpt_uint8 uSTAIdx
10856);
10857
Katya Nigam6201c3e2014-05-27 17:51:42 +053010858
10859/**
10860 @brief WDI_IsSelfSTA - check if staid is self sta index
10861
10862 @param pWDICtx: pointer to the WLAN DAL context
10863 ucSTAIdx: station index
10864
10865 @return Result of the function call
10866*/
10867
10868wpt_boolean
10869WDI_IsSelfSTA
10870(
10871 void* pWDICtx,
10872 wpt_uint8 ucSTAIdx
10873);
10874
10875
Jeff Johnson295189b2012-06-20 16:38:30 -070010876#ifdef WLAN_FEATURE_VOWIFI_11R
10877/**
10878 @brief WDI_AggrAddTSReq will be called when the upper MAC to inform
10879 the device of a successful add TSpec negotiation for 11r. HW
10880 needs to receive the TSpec Info from the UMAC in order
10881 to configure properly the QoS data traffic. Upon the
10882 call of this API the WLAN DAL will pack and send a HAL
10883 Aggregated Add TS request message to the lower RIVA sub-system if
10884 DAL is in state STARTED.
10885
10886 In state BUSY this request will be queued. Request won't
10887 be allowed in any other state.
10888
10889 WDI_PostAssocReq must have been called.
10890
10891 @param wdiAggrAddTsReqParams: the add TS parameters as specified by
10892 the Device Interface
10893
10894 wdiAggrAddTsRspCb: callback for passing back the response of
10895 the add TS operation received from the device
10896
10897 pUserData: user data will be passed back with the
10898 callback
10899
10900 @see WDI_PostAssocReq
10901 @return Result of the function call
10902*/
10903WDI_Status
10904WDI_AggrAddTSReq
10905(
10906 WDI_AggrAddTSReqParamsType* pwdiAddTsReqParams,
10907 WDI_AggrAddTsRspCb wdiAggrAddTsRspCb,
10908 void* pUserData
10909);
10910#endif /* WLAN_FEATURE_VOWIFI_11R */
10911/**
10912 @brief WDI_STATableInit - Initializes the STA tables.
10913 Allocates the necesary memory.
10914
10915
10916 @param pWDICtx: pointer to the WLAN DAL context
10917
10918 @see
10919 @return Result of the function call
10920*/
10921
10922WDI_Status WDI_StubRunTest
10923(
10924 wpt_uint8 ucTestNo
10925);
10926
Jeff Johnson295189b2012-06-20 16:38:30 -070010927/**
10928 @brief WDI_FTMCommandReq -
10929 Route FTMRequest Command to HAL
10930
10931 @param ftmCommandReq: FTM request command body
10932 @param ftmCommandRspCb: Response CB
10933 @param pUserData: User data will be included with CB
10934
10935 @return Result of the function call
10936*/
10937WDI_Status WDI_FTMCommandReq
10938(
10939 WDI_FTMCommandReqType *ftmCommandReq,
10940 WDI_FTMCommandRspCb ftmCommandRspCb,
10941 void *pUserData
10942);
Jeff Johnson295189b2012-06-20 16:38:30 -070010943
10944/**
10945 @brief WDI_HostResumeReq will be called
10946
10947 In state BUSY this request will be queued. Request won't
10948 be allowed in any other state.
10949
10950
10951 @param pwdiResumeReqParams: as specified by
10952 the Device Interface
10953
10954 wdiResumeReqRspCb: callback for passing back the response of
10955 the Resume Req received from the device
10956
10957 pUserData: user data will be passed back with the
10958 callback
10959
10960 @see WDI_PostAssocReq
10961 @return Result of the function call
10962*/
10963WDI_Status
10964WDI_HostResumeReq
10965(
10966 WDI_ResumeParamsType* pwdiResumeReqParams,
10967 WDI_HostResumeEventRspCb wdiResumeReqRspCb,
10968 void* pUserData
10969);
10970
10971/**
10972 @brief WDI_GetAvailableResCount - Function to get the available resource
10973 for data and managemnt frames.
10974
10975 @param pContext: pointer to the WDI context
10976 @param wdiResPool: type of resource pool requesting
10977 @see
10978 @return Result of the function call
10979*/
10980
10981wpt_uint32 WDI_GetAvailableResCount
10982(
10983 void *pContext,
10984 WDI_ResPoolType wdiResPool
10985);
10986
10987/**
10988 @brief WDI_SetAddSTASelfReq will be called when the
10989 UMAC wanted to add self STA while opening any new session
10990 In state BUSY this request will be queued. Request won't
10991 be allowed in any other state.
10992
10993
10994 @param pwdiAddSTASelfParams: the add self sta parameters as
10995 specified by the Device Interface
10996
10997 pUserData: user data will be passed back with the
10998 callback
10999
11000 @see
11001 @return Result of the function call
11002*/
11003WDI_Status
11004WDI_AddSTASelfReq
11005(
11006 WDI_AddSTASelfReqParamsType* pwdiAddSTASelfReqParams,
11007 WDI_AddSTASelfParamsRspCb wdiAddSTASelfReqParamsRspCb,
11008 void* pUserData
11009);
11010
11011
11012/**
11013 @brief WDI_DelSTASelfReq will be called .
11014
11015 @param WDI_DelSTASelfReqParamsType
11016
11017 WDI_DelSTASelfRspCb: callback for passing back the
11018 response of the del sta self operation received from the
11019 device
11020
11021 pUserData: user data will be passed back with the
11022 callback
11023
11024 @see WDI_PostAssocReq
11025 @return Result of the function call
11026*/
11027WDI_Status
11028WDI_DelSTASelfReq
11029(
11030 WDI_DelSTASelfReqParamsType* pwdiDelStaSelfParams,
11031 WDI_DelSTASelfRspCb wdiDelStaSelfRspCb,
11032 void* pUserData
11033);
11034
11035/**
11036 @brief WDI_HostSuspendInd
11037
11038 Suspend Indication from the upper layer will be sent
11039 down to HAL
11040
11041 @param WDI_SuspendParamsType
11042
11043 @see
11044
11045 @return Status of the request
11046*/
11047WDI_Status
11048WDI_HostSuspendInd
11049(
11050 WDI_SuspendParamsType* pwdiSuspendIndParams
11051);
11052
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -080011053/**
11054 @brief WDI_TrafficStatsInd
11055
11056 Traffic Stats from the upper layer will be sent
11057 down to HAL
11058
11059 @param WDI_TrafficStatsIndType
11060
11061 @see
11062
11063 @return Status of the request
11064*/
11065WDI_Status
11066WDI_TrafficStatsInd
11067(
11068 WDI_TrafficStatsIndType *pWdiTrafficStatsIndParams
11069);
11070
Chet Lanctot186b5732013-03-18 10:26:30 -070011071#ifdef WLAN_FEATURE_11W
11072/**
11073 @brief WDI_ExcludeUnencryptedInd
11074 Register with HAL to receive/drop unencrypted frames
11075
11076 @param WDI_ExcludeUnencryptIndType
11077
11078 @see
11079
11080 @return Status of the request
11081*/
11082WDI_Status
11083WDI_ExcludeUnencryptedInd
11084(
11085 WDI_ExcludeUnencryptIndType *pWdiExcUnencParams
11086);
11087#endif
11088
Yue Mab9c86f42013-08-14 15:59:08 -070011089/**
11090 @brief WDI_AddPeriodicTxPtrnInd
11091
11092 @param WDI_AddPeriodicTxPtrnParamsType
11093
11094 @see
11095
11096 @return Status of the request
11097*/
11098WDI_Status
11099WDI_AddPeriodicTxPtrnInd
11100(
11101 WDI_AddPeriodicTxPtrnParamsType *addPeriodicTxPtrnParams
11102);
11103
11104/**
11105 @brief WDI_DelPeriodicTxPtrnInd
11106
11107 @param WDI_DelPeriodicTxPtrnParamsType
11108
11109 @see
11110
11111 @return Status of the request
11112*/
11113WDI_Status
11114WDI_DelPeriodicTxPtrnInd
11115(
11116 WDI_DelPeriodicTxPtrnParamsType *delPeriodicTxPtrnParams
11117);
11118
Jeff Johnson295189b2012-06-20 16:38:30 -070011119#ifdef FEATURE_WLAN_SCAN_PNO
11120/**
11121 @brief WDI_SetPreferredNetworkList
11122
11123 @param pwdiPNOScanReqParams: the Set PNO as specified
11124 by the Device Interface
11125
11126 wdiPNOScanCb: callback for passing back the response
11127 of the Set PNO operation received from the
11128 device
11129
11130 pUserData: user data will be passed back with the
11131 callback
11132
11133 @see WDI_PostAssocReq
11134 @return Result of the function call
11135*/
11136WDI_Status
11137WDI_SetPreferredNetworkReq
11138(
11139 WDI_PNOScanReqParamsType* pwdiPNOScanReqParams,
11140 WDI_PNOScanCb wdiPNOScanCb,
11141 void* pUserData
11142);
11143
11144/**
11145 @brief WDI_SetRssiFilterReq
11146
11147 @param pwdiRssiFilterReqParams: the Set RSSI Filter as
11148 specified by the Device Interface
11149
11150 wdiRssiFilterCb: callback for passing back the response
11151 of the Set RSSI Filter operation received from the
11152 device
11153
11154 pUserData: user data will be passed back with the
11155 callback
11156
11157 @see WDI_PostAssocReq
11158 @return Result of the function call
11159*/
11160WDI_Status
11161WDI_SetRssiFilterReq
11162(
11163 WDI_SetRssiFilterReqParamsType* pwdiRssiFilterReqParams,
11164 WDI_RssiFilterCb wdiRssiFilterCb,
11165 void* pUserData
11166);
11167
11168/**
11169 @brief WDI_UpdateScanParams
11170
11171 @param pwdiUpdateScanParamsInfoType: the Update Scan Params as specified
11172 by the Device Interface
11173
11174 wdiUpdateScanParamsCb: callback for passing back the response
11175 of the Set PNO operation received from the
11176 device
11177
11178 pUserData: user data will be passed back with the
11179 callback
11180
11181 @see WDI_PostAssocReq
11182 @return Result of the function call
11183*/
11184WDI_Status
11185WDI_UpdateScanParamsReq
11186(
11187 WDI_UpdateScanParamsInfoType* pwdiUpdateScanParamsInfoType,
11188 WDI_UpdateScanParamsCb wdiUpdateScanParamsCb,
11189 void* pUserData
11190);
11191#endif // FEATURE_WLAN_SCAN_PNO
11192
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011193#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
11194/**
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011195 @brief WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011196
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011197 @param pwdiRoamScanOffloadReqParams: Start Roam Candidate Lookup Req as specified
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011198 by the Device Interface
11199
11200 wdiRoamOffloadScanCb: callback for passing back the response
11201 of the Start Roam Candidate Lookup operation received from the
11202 device
11203
11204 pUserData: user data will be passed back with the
11205 callback
11206
11207 @return Result of the function call
11208*/
11209WDI_Status
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011210WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011211(
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011212 WDI_RoamScanOffloadReqParamsType *pwdiRoamScanOffloadReqParams,
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011213 WDI_RoamOffloadScanCb wdiRoamOffloadScancb,
11214 void* pUserData
11215);
Kapil Gupta04ab1992016-06-26 13:36:51 +053011216
11217WDI_Status
11218WDI_PERRoamScanOffloadReq
11219(
11220 WDI_PERRoamOffloadScanInfo *pwdiRoamScanOffloadReqParams,
11221 WDI_PERRoamOffloadScanCb wdiRoamOffloadScancb,
11222 void* pUserData
11223);
11224
11225WDI_Status
11226WDI_PERRoamScanTriggerReq
11227(
11228 WDI_PERRoamTriggerScanInfo *pwdiRoamScanTriggerReqParams,
11229 WDI_PERRoamTriggerScanCb wdiRoamTriggerScancb,
11230 void* pUserData
11231);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011232#endif
11233
Jeff Johnson295189b2012-06-20 16:38:30 -070011234/**
11235 @brief WDI_SetTxPerTrackingReq will be called when the upper MAC
11236 wants to set the Tx Per Tracking configurations.
11237 Upon the call of this API the WLAN DAL will pack
11238 and send a HAL Set Tx Per Tracking request message to the
11239 lower RIVA sub-system if DAL is in state STARTED.
11240
11241 In state BUSY this request will be queued. Request won't
11242 be allowed in any other state.
11243
11244 @param wdiSetTxPerTrackingConf: the Set Tx PER Tracking configurations as
11245 specified by the Device Interface
11246
11247 wdiSetTxPerTrackingCb: callback for passing back the
11248 response of the set Tx PER Tracking configurations operation received
11249 from the device
11250
11251 pUserData: user data will be passed back with the
11252 callback
11253
11254 @return Result of the function call
11255*/
11256WDI_Status
11257WDI_SetTxPerTrackingReq
11258(
11259 WDI_SetTxPerTrackingReqParamsType* pwdiSetTxPerTrackingReqParams,
11260 WDI_SetTxPerTrackingRspCb pwdiSetTxPerTrackingRspCb,
11261 void* pUserData
11262);
11263
11264/**
11265 @brief WDI_SetTmLevelReq
11266 If HW Thermal condition changed, driver should react based on new
11267 HW thermal condition.
11268
11269 @param pwdiSetTmLevelReq: New thermal condition information
11270
11271 pwdiSetTmLevelRspCb: callback
11272
11273 usrData: user data will be passed back with the
11274 callback
11275
11276 @return Result of the function call
11277*/
11278WDI_Status
11279WDI_SetTmLevelReq
11280(
11281 WDI_SetTmLevelReqType *pwdiSetTmLevelReq,
11282 WDI_SetTmLevelCb pwdiSetTmLevelRspCb,
11283 void *usrData
11284);
11285
11286#ifdef WLAN_FEATURE_PACKET_FILTERING
11287/**
11288 @brief WDI_8023MulticastListReq
11289
11290 @param pwdiRcvFltPktSetMcListReqInfo: the Set 8023 Multicast
11291 List as specified by the Device Interface
11292
11293 wdi8023MulticastListCallback: callback for passing back
11294 the response of the Set 8023 Multicast List operation
11295 received from the device
11296
11297 pUserData: user data will be passed back with the
11298 callback
11299
11300 @see WDI_PostAssocReq
11301 @return Result of the function call
11302*/
11303WDI_Status
11304WDI_8023MulticastListReq
11305(
11306 WDI_RcvFltPktSetMcListReqParamsType* pwdiRcvFltPktSetMcListReqInfo,
11307 WDI_8023MulticastListCb wdi8023MulticastListCallback,
11308 void* pUserData
11309);
11310
11311/**
11312 @brief WDI_ReceiveFilterSetFilterReq
11313
11314 @param pwdiSetRcvPktFilterReqInfo: the Set Receive Filter as
11315 specified by the Device Interface
11316
11317 wdiReceiveFilterSetFilterReqCallback: callback for
11318 passing back the response of the Set Receive Filter
11319 operation received from the device
11320
11321 pUserData: user data will be passed back with the
11322 callback
11323
11324 @see WDI_PostAssocReq
11325 @return Result of the function call
11326*/
11327WDI_Status
11328WDI_ReceiveFilterSetFilterReq
11329(
11330 WDI_SetRcvPktFilterReqParamsType* pwdiSetRcvPktFilterReqInfo,
11331 WDI_ReceiveFilterSetFilterCb wdiReceiveFilterSetFilterReqCallback,
11332 void* pUserData
11333);
11334
11335/**
11336 @brief WDI_PCFilterMatchCountReq
11337
11338 @param pwdiRcvFltPktMatchCntReqInfo: get D0 PC Filter Match
11339 Count
11340
11341 wdiPCFilterMatchCountCallback: callback for passing back
11342 the response of the D0 PC Filter Match Count operation
11343 received from the device
11344
11345 pUserData: user data will be passed back with the
11346 callback
11347
11348 @see WDI_PostAssocReq
11349 @return Result of the function call
11350*/
11351WDI_Status
11352WDI_FilterMatchCountReq
11353(
11354 WDI_RcvFltPktMatchCntReqParamsType* pwdiRcvFltPktMatchCntReqInfo,
11355 WDI_FilterMatchCountCb wdiFilterMatchCountCallback,
11356 void* pUserData
11357);
11358
11359/**
11360 @brief WDI_ReceiveFilterClearFilterReq
11361
11362 @param pwdiRcvFltPktClearReqInfo: the Clear Filter as
11363 specified by the Device Interface
11364
11365 wdiReceiveFilterClearFilterCallback: callback for
11366 passing back the response of the Clear Filter
11367 operation received from the device
11368
11369 pUserData: user data will be passed back with the
11370 callback
11371
11372 @see WDI_PostAssocReq
11373 @return Result of the function call
11374*/
11375WDI_Status
11376WDI_ReceiveFilterClearFilterReq
11377(
11378 WDI_RcvFltPktClearReqParamsType* pwdiRcvFltPktClearReqInfo,
11379 WDI_ReceiveFilterClearFilterCb wdiReceiveFilterClearFilterCallback,
11380 void* pUserData
11381);
11382#endif // WLAN_FEATURE_PACKET_FILTERING
11383
11384/**
11385 @brief WDI_HALDumpCmdReq
11386 Post HAL DUMP Command Event
11387
11388 @param halDumpCmdReqParams: Hal Dump Command Body
11389 @param halDumpCmdRspCb: callback for passing back the
11390 response
11391 @param pUserData: Client Data
11392
11393 @see
11394 @return Result of the function call
11395*/
11396WDI_Status WDI_HALDumpCmdReq(
11397 WDI_HALDumpCmdReqParamsType *halDumpCmdReqParams,
11398 WDI_HALDumpCmdRspCb halDumpCmdRspCb,
11399 void *pUserData
11400);
11401
11402
11403/**
11404 @brief WDI_SetPowerParamsReq
11405
11406 @param pwdiPowerParamsReqParams: the Set Power Params as
11407 specified by the Device Interface
11408
11409 wdiPowerParamsCb: callback for passing back the response
11410 of the Set Power Params operation received from the
11411 device
11412
11413 pUserData: user data will be passed back with the
11414 callback
11415
11416 @return Result of the function call
11417*/
11418WDI_Status
11419WDI_SetPowerParamsReq
11420(
11421 WDI_SetPowerParamsReqParamsType* pwdiPowerParamsReqParams,
11422 WDI_SetPowerParamsCb wdiPowerParamsCb,
11423 void* pUserData
11424);
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +053011425/**
11426 @brief WDI_dhcpStartInd
11427 Forward the DHCP Start event
11428
11429 @param
11430
11431 wdiDHCPInd: device mode and MAC address is passed
11432
11433 @see
11434 @return Result of the function call
11435*/
11436
11437WDI_Status
11438WDI_dhcpStartInd
11439(
11440 WDI_DHCPInd *wdiDHCPInd
11441);
11442/**
11443 @brief WDI_dhcpStopReq
11444 Forward the DHCP Stop event
11445
11446 @param
11447
11448 wdiDHCPInd: device mode and MAC address is passed
11449
11450 @see
11451 @return Result of the function call
11452*/
11453
11454WDI_Status
11455WDI_dhcpStopInd
11456(
11457 WDI_DHCPInd *wdiDHCPInd
11458);
Jeff Johnson295189b2012-06-20 16:38:30 -070011459
Abhishek Singh00b71972016-01-07 10:51:04 +053011460#ifdef WLAN_FEATURE_RMC
11461WDI_Status
11462WDI_RmcRulerReq
11463(
11464 WDI_RmcRulerReqParams *wdiRmcRulerReqParams,
11465 WDI_RmcRulerRspCb rmcRulerRspCb,
11466 void *usrData
11467);
11468
11469WDI_Status
11470WDI_RmcUpdateInd
11471(
11472 WDI_RmcUpdateIndParams *wdiRmcUpdateIndParams
11473);
11474#endif /* WLAN_FEATURE_RMC */
11475
Chittajit Mitraf5413a42013-10-18 14:20:08 -070011476/**
11477 @brief WDI_RateUpdateInd will be called when the upper MAC
11478 requests the device to update rates.
11479
11480 In state BUSY this request will be queued. Request won't
11481 be allowed in any other state.
11482
11483
11484 @param wdiRateUpdateIndParams
11485
11486
11487 @see WDI_Start
11488 @return Result of the function call
11489*/
11490WDI_Status
11491WDI_RateUpdateInd
11492(
11493 WDI_RateUpdateIndParams *wdiRateUpdateIndParams
11494);
11495
Abhishek Singh00b71972016-01-07 10:51:04 +053011496#ifdef WLAN_FEATURE_RMC
11497/**
11498 @brief WDI_TXFailMonitorStartStopInd
11499 Forward TX monitor start/stop event
11500
11501 @param
11502
11503 WDI_TXFailMonitorInd
11504
11505 @see
11506 @return Result of the function call
11507*/
11508
11509WDI_Status
11510WDI_TXFailMonitorStartStopInd
11511(
11512 WDI_TXFailMonitorInd *wdiTXFailMonitorInd
11513);
11514#endif /* WLAN_FEATURE_RMC */
11515
Jeff Johnson295189b2012-06-20 16:38:30 -070011516#ifdef WLAN_FEATURE_GTK_OFFLOAD
11517/**
11518 @brief WDI_GTKOffloadReq will be called when the upper MAC
11519 wants to set GTK Rekey Counter while in power save. Upon
11520 the call of this API the WLAN DAL will pack and send a
11521 HAL GTK offload request message to the lower RIVA
11522 sub-system if DAL is in state STARTED.
11523
11524 In state BUSY this request will be queued. Request won't
11525 be allowed in any other state.
11526
11527 WDI_PostAssocReq must have been called.
11528
11529 @param pwdiGtkOffloadParams: the GTK offload as specified
11530 by the Device Interface
11531
11532 wdiGtkOffloadCb: callback for passing back the response
11533 of the GTK offload operation received from the 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_GTKOffloadReq
11543(
11544 WDI_GtkOffloadReqMsg* pwdiGtkOffloadReqMsg,
11545 WDI_GtkOffloadCb wdiGtkOffloadCb,
11546 void* pUserData
11547);
11548
11549/**
11550 @brief WDI_GTKOffloadGetInfoReq will be called when the upper
11551 MAC wants to get GTK Rekey Counter while in power save.
11552 Upon the call of this API the WLAN DAL will pack and
11553 send a HAL GTK offload request message to the lower RIVA
11554 sub-system if DAL is in state STARTED.
11555
11556 In state BUSY this request will be queued. Request won't
11557 be allowed in any other state.
11558
11559 WDI_PostAssocReq must have been called.
11560
11561 @param pwdiGtkOffloadGetInfoReqMsg: the GTK Offload
11562 Information Message as specified by the
11563 Device Interface
11564
11565 wdiGtkOffloadGetInfoCb: callback for passing back the
11566 response of the GTK offload operation received from the
11567 device
11568
11569 pUserData: user data will be passed back with the
11570 callback
11571
11572 @see WDI_PostAssocReq
11573 @return Result of the function call
11574*/
11575WDI_Status
11576WDI_GTKOffloadGetInfoReq
11577(
11578 WDI_GtkOffloadGetInfoReqMsg* pwdiGtkOffloadGetInfoReqMsg,
11579 WDI_GtkOffloadGetInfoCb wdiGtkOffloadGetInfoCb,
11580 void* pUserData
11581);
11582#endif // WLAN_FEATURE_GTK_OFFLOAD
11583
11584/**
11585 @brief WDI_featureCapsExchangeReq
11586 Post feature capability bitmap exchange event.
11587 Host will send its own capability to FW in this req and
11588 expect FW to send its capability back as a bitmap in Response
11589
11590 @param
11591
11592 wdiFeatCapsExcRspCb: callback called on getting the response.
11593 It is kept to mantain similarity between WDI reqs and if needed, can
11594 be used in future. Currently, It is set to NULL
11595
11596 pUserData: user data will be passed back with the
11597 callback
11598
11599 @see
11600 @return Result of the function call
11601*/
11602WDI_Status
11603WDI_featureCapsExchangeReq
11604(
11605 WDI_featureCapsExchangeCb wdiFeatureCapsExchangeCb,
11606 void* pUserData
11607);
11608
11609/**
Yathish9f22e662012-12-10 14:21:35 -080011610 @brief Disable Active mode offload in Host
11611
11612 @param void
11613 @see
11614 @return void
11615*/
11616void
11617WDI_disableCapablityFeature(wpt_uint8 feature_index);
11618
11619
11620/**
Jeff Johnson295189b2012-06-20 16:38:30 -070011621 @brief WDI_getHostWlanFeatCaps
11622 WDI API that returns whether the feature passed to it as enum value in
11623 "placeHolderInCapBitmap" is supported by Host or not. It uses WDI global
11624 variable storing host capability bitmap to find this. This can be used by
11625 other moduels to decide certain things like call different APIs based on
11626 whether a particular feature is supported.
11627
11628 @param
11629
11630 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap in wlan_hal_msg.h.
11631
11632 @see
11633 @return
11634 0 - if the feature is NOT supported in host
11635 any non-zero value - if the feature is SUPPORTED in host.
11636*/
11637wpt_uint8 WDI_getHostWlanFeatCaps(wpt_uint8 feat_enum_value);
11638
11639/**
11640 @brief WDI_getFwWlanFeatCaps
11641 WDI API that returns whether the feature passed to it as enum value in
11642 "placeHolderInCapBitmap" is supported by FW or not. It uses WDI global
11643 variable storing host capability bitmap to find this. This can be used by
11644 other moduels to decide certain things like call different APIs based on
11645 whether a particular feature is supported.
11646
11647 @param
11648
Jeff Johnsone7245742012-09-05 17:12:55 -070011649 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap
11650 in wlan_hal_msg.h.
Jeff Johnson295189b2012-06-20 16:38:30 -070011651
11652 @see
11653 @return
11654 0 - if the feature is NOT supported in FW
11655 any non-zero value - if the feature is SUPPORTED in FW.
11656*/
11657wpt_uint8 WDI_getFwWlanFeatCaps(wpt_uint8 feat_enum_value);
11658
11659/**
11660 @brief WDI_GetWcnssCompiledApiVersion - Function to get wcnss compiled
11661 api version
11662
11663 @param WDI_WlanVersionType: Wlan version structure
11664 @see
11665 @return none
11666*/
11667
11668void WDI_GetWcnssCompiledApiVersion
11669(
11670 WDI_WlanVersionType *pWcnssApiVersion
11671);
11672
Mohit Khanna4a70d262012-09-11 16:30:12 -070011673#ifdef WLAN_FEATURE_11AC
11674WDI_Status
11675WDI_UpdateVHTOpModeReq
11676(
11677 WDI_UpdateVHTOpMode *pData,
11678 WDI_UpdateVHTOpModeCb wdiUpdateVHTOpModeCb,
11679 void* pUserData
11680);
Jeff Johnson295189b2012-06-20 16:38:30 -070011681
Mohit Khanna4a70d262012-09-11 16:30:12 -070011682#endif
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011683
11684/**
11685 @brief WDI_TransportChannelDebug -
11686 Display DXE Channel debugging information
11687 User may request to display DXE channel snapshot
11688 Or if host driver detects any abnormal stcuk may display
11689
Jeff Johnsonb88db982012-12-10 13:34:59 -080011690 @param displaySnapshot : Display DXE snapshot option
Mihir Shete40a55652014-03-02 14:14:47 +053011691 @param debugFlags : Enable stall detect features
11692 defined by WPAL_DeviceDebugFlags
11693 These features may effect
11694 data performance.
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011695 @see
11696 @return none
11697*/
11698void WDI_TransportChannelDebug
11699(
11700 wpt_boolean displaySnapshot,
Mihir Shete40a55652014-03-02 14:14:47 +053011701 wpt_uint8 debugFlags
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011702);
11703
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011704/**
Sravan Kumar Kairame9d186c2015-11-27 23:37:02 +053011705 @brief WDI_TransportKickDxe -
11706 Request Kick DXE when first HDD TX time out
11707 happens
11708 @param none
11709 @see
11710 @return none
11711*/
11712void WDI_TransportKickDxe(void);
11713
11714/**
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011715 @brief WDI_SsrTimerCB
11716 Callback function for SSR timer, if this is called then the graceful
11717 shutdown for Riva did not happen.
11718
11719 @param pUserData : user data to timer
11720
11721 @see
11722 @return none
11723*/
11724void
11725WDI_SsrTimerCB
11726(
11727 void *pUserData
11728);
11729
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -070011730/**
11731 @brief WDI_SetEnableSSR -
11732 This API is called to enable/disable SSR on WDI timeout.
11733
11734 @param enableSSR : enable/disable SSR
11735
11736 @see
11737 @return none
11738*/
11739void WDI_SetEnableSSR(wpt_boolean enableSSR);
11740
Leo Chang9056f462013-08-01 19:21:11 -070011741#ifdef FEATURE_WLAN_LPHB
11742/**
11743 @brief WDI_LPHBConfReq
11744 This API is called to config FW LPHB rule
11745
11746 @param lphbconfParam : LPHB rule should config to FW
11747 usrData : Client context
11748 lphbCfgCb : Configuration status callback
11749 @see
11750 @return SUCCESS or FAIL
11751*/
11752WDI_Status WDI_LPHBConfReq
11753(
11754 void *lphbconfParam,
11755 void *usrData,
11756 WDI_LphbCfgCb lphbCfgCb
11757);
11758#endif /* FEATURE_WLAN_LPHB */
Rajeev79dbe4c2013-10-05 11:03:42 +053011759
Dino Mycle41bdc942014-06-10 11:30:24 +053011760#ifdef WLAN_FEATURE_EXTSCAN
11761/**
11762 @brief WDI_EXTScanStartReq
11763 This API is called to send EXTScan start request to FW
11764
11765 @param pwdiEXTScanStartReqParams : pointer to the request params.
11766 wdiEXTScanStartRspCb : callback on getting the response.
11767 usrData : Client context
11768 @see
11769 @return SUCCESS or FAIL
11770*/
11771WDI_Status WDI_EXTScanStartReq
11772(
11773 WDI_EXTScanStartReqParams* pwdiEXTScanStartReqParams,
11774 WDI_EXTScanStartRspCb wdiEXTScanStartRspCb,
11775 void* pUserData
11776);
11777
11778/**
11779 @brief WDI_EXTScanStopReq
11780 This API is called to stop the EXTScan operations in the FW
11781
11782 @param pwdiEXTScanStopReqParams : pointer to the request params.
11783 wdiEXTScanStopRspCb : callback on getting the response.
11784 usrData : Client context
11785 @see
11786 @return SUCCESS or FAIL
11787*/
11788WDI_Status WDI_EXTScanStopReq
11789(
11790 WDI_EXTScanStopReqParams* pwdiEXTScanStopReqParams,
11791 WDI_EXTScanStopRspCb wdiEXTScanStopRspCb,
11792 void* pUserData
11793);
11794
11795/**
11796 @brief WDI_EXTScanGetCachedResultsReq
11797 This API is called to send get link layer stats request in FW
11798
11799 @param pwdiEXTScanGetCachedResultsReqParams : pointer to the request params.
11800 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11801 usrData : Client context
11802 @see
11803 @return SUCCESS or FAIL
11804*/
11805WDI_Status WDI_EXTScanGetCachedResultsReq
11806(
11807 WDI_EXTScanGetCachedResultsReqParams* pwdiEXTScanGetCachedResultsReqParams,
11808 WDI_EXTScanGetCachedResultsRspCb wdiEXTScanGetCachedResultsRspCb,
11809 void* pUserData
11810);
11811
11812/**
11813 @brief WDI_EXTScanGetCapabilitiesReq
11814 This API is called to send get EXTScan capabilities from FW
11815
11816 @param pwdiEXTScanGetCachedResultsReqParams : 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_EXTScanGetCapabilitiesReq
11823(
11824 WDI_EXTScanGetCapabilitiesReqParams* pwdiEXTScanGetCapabilitiesReqParams,
11825 WDI_EXTScanGetCapabilitiesRspCb wdiEXTScanGetCapabilitiesRspCb,
11826 void* pUserData
11827);
11828
11829/**
11830 @brief WDI_EXTScanSetBSSIDHotlistReq
11831 This API is called to send Set BSSID 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_EXTScanSetBSSIDHotlistReq
11840(
11841 WDI_EXTScanSetBSSIDHotlistReqParams* pwdiEXTScanSetBSSIDHotlistReqParams,
11842 WDI_EXTScanSetBSSIDHotlistRspCb wdiEXTScanSetBSSIDHotlistRspCb,
11843 void* pUserData
11844);
11845
11846/**
11847 @brief WDI_EXTScanResetBSSIDHotlistReq
11848 This API is called to send Reset BSSID Hotlist Request FW
11849
11850 @param pwdiEXTScanResetBssidHotlistReqParams : 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_EXTScanResetBSSIDHotlistReq
11857(
11858 WDI_EXTScanResetBSSIDHotlistReqParams* pwdiEXTScanResetBSSIDHotlistReqParams,
11859 WDI_EXTScanResetBSSIDHotlistRspCb wdiEXTScanResetBSSIDHotlistRspCb,
11860 void* pUserData
11861);
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +053011862
11863/**
11864 @brief WDI_EXTScanSetSSIDHotlistReq
11865 This API is called to send Set SSID Hotlist Request FW
11866
11867 @param pwdiEXTScanSetBssidHotlistReqParams : pointer to the request params.
11868 wdiEXTScanSetBSSIDHotlistRspCb : callback on getting the response.
11869 usrData : Client context
11870 @see
11871 @return SUCCESS or FAIL
11872*/
11873WDI_Status WDI_EXTScanSetSSIDHotlistReq
11874(
11875 WDI_EXTScanSetSSIDHotlistReqParams* pwdiEXTScanSetSSIDHotlistReqParams,
11876 WDI_EXTScanSetSSIDHotlistRspCb wdiEXTScanSetSSIDHotlistRspCb,
11877 void* pUserData
11878);
11879
11880/**
11881 @brief WDI_EXTScanResetSSIDHotlistReq
11882 This API is called to send Reset SSID Hotlist Request FW
11883
11884 @param pwdiEXTScanResetSsidHotlistReqParams : pointer to the request params.
11885 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11886 usrData : Client context
11887 @see
11888 @return SUCCESS or FAIL
11889*/
11890WDI_Status WDI_EXTScanResetSSIDHotlistReq
11891(
11892 WDI_EXTScanResetSSIDHotlistReqParams* pwdiEXTScanResetSSIDHotlistReqParams,
11893 WDI_EXTScanResetSSIDHotlistRspCb wdiEXTScanResetSSIDHotlistRspCb,
11894 void* pUserData
11895);
11896
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +053011897/**
11898 @brief WDI_HighPriorityDataInfoInd
11899
11900 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
11901
11902 @return SUCCESS or FAIL
11903*/
11904WDI_Status
11905WDI_HighPriorityDataInfoInd
11906(
11907 WDI_HighPriorityDataInfoIndParams* pHighPriorityDataInfoIndParams
11908);
11909
Dino Mycle41bdc942014-06-10 11:30:24 +053011910#endif /* WLAN_FEATURE_EXTSCAN */
11911
Sunil Duttbd736ed2014-05-26 21:19:41 +053011912#ifdef WLAN_FEATURE_LINK_LAYER_STATS
11913/**
11914 @brief WDI_LLStatsSetReq
11915 This API is called to send set link layer stats request to FW
11916
11917 @param pwdiLLStatsSetReqParams : pointer to set link layer stats params
11918 wdiLLStatsSetRspCb : set link layer stats response callback
11919 usrData : Client context
11920 @see
11921 @return SUCCESS or FAIL
11922*/
11923WDI_Status WDI_LLStatsSetReq
11924(
11925 WDI_LLStatsSetReqType* pwdiLLStatsSetReqParams,
11926 WDI_LLStatsSetRspCb wdiLLStatsSetRspCb,
11927 void* pUserData
11928);
11929
11930/**
11931 @brief WDI_LLStatsGetReq
11932 This API is called to send get link layer stats request in FW
11933
11934 @param pwdiLLStatsGetParams : pointer to get link layer stats params
11935 wdiLLStatsGetRspCb : get link layer stats response callback
11936 usrData : Client context
11937 @see
11938 @return SUCCESS or FAIL
11939*/
11940WDI_Status WDI_LLStatsGetReq
11941(
11942 WDI_LLStatsGetReqType* pwdiLLStatsGetReqParams,
11943 WDI_LLStatsGetRspCb wdiLLStatsGetRspCb,
11944 void* pUserData
11945);
11946
11947/**
11948 @brief WDI_LLStatsClearReq
11949 This API is called to set clear link layer stats request in FW
11950
11951 @param pwdiLLStatsClearReqParams : pointer to clear link layer stats params
11952 iwdiLLStatsClearRspCb : clear link layer stats response callback
11953 usrData : Client context
11954 @see
11955 @return SUCCESS or FAIL
11956*/
11957WDI_Status WDI_LLStatsClearReq
11958(
11959 WDI_LLStatsClearReqType* pwdiLLStatsClearReqParams,
11960 WDI_LLStatsClearRspCb wdiLLStatsClearRspCb,
11961 void* pUserData
11962);
11963#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
11964
Abhishek Singh85b74712014-10-08 11:38:19 +053011965WDI_Status WDI_FWStatsGetReq
11966(
11967 void* pwdiFWStatsGetReqParams,
11968 WDI_FWStatsGetRspCb wdiFWStatsGetRspCb,
11969 wpt_uint32 pUserData
11970);
11971
Katya Nigamf0511f62015-05-05 16:40:57 +053011972WDI_Status WDI_MonStartReq
11973(
11974 WDI_MonStartReqType* pwdiMonStartReqParams,
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053011975 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053011976 void* pUserData
11977);
11978
11979WDI_Status WDI_MonStopReq
11980(
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053011981 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053011982 void* pUserData
11983);
11984
Rajeev79dbe4c2013-10-05 11:03:42 +053011985#ifdef FEATURE_WLAN_BATCH_SCAN
11986/**
11987 @brief WDI_SetBatchScanReq
11988 This API is called to set batch scan request in FW
11989
11990 @param pBatchScanReqParam : pointer to set batch scan re param
11991 usrData : Client context
11992 setBatchScanRspCb : set batch scan resp callback
11993 @see
11994 @return SUCCESS or FAIL
11995*/
11996WDI_Status WDI_SetBatchScanReq
11997(
11998 void *pBatchScanReqParam,
11999 void *usrData,
12000 WDI_SetBatchScanCb setBatchScanRspCb
12001);
12002
12003/**
12004 @brief WDI_StopBatchScanInd
12005
12006 @param none
12007
12008 @see
12009
12010 @return Status of the request
12011*/
12012WDI_Status
12013WDI_StopBatchScanInd(WDI_StopBatchScanIndType *pWdiReq);
12014
12015/**
12016 @brief WDI_TriggerBatchScanResultInd
12017 This API is called to pull batch scan result from FW
12018
12019 @param pBatchScanReqParam : pointer to trigger batch scan ind param
12020 usrData : Client context
12021 setBatchScanRspCb : get batch scan resp callback
12022 @see
12023 @return SUCCESS or FAIL
12024*/
12025WDI_Status
12026WDI_TriggerBatchScanResultInd(WDI_TriggerBatchScanResultIndType *pWdiReq);
12027
12028
12029#endif /*FEATURE_WLAN_BATCH_SCAN*/
12030
Abhishek Singh00b71972016-01-07 10:51:04 +053012031#ifdef WLAN_FEATURE_RMC
12032/**
12033 @brief Process peer info req
12034
12035 @param pWDICtx: pointer to the WLAN DAL context
12036 pEventData: pointer to the event information structure
12037
12038 @see
12039 @return Result of the function call
12040*/
12041
12042WDI_Status
12043WDI_IbssPeerInfoReq
12044(
12045 WDI_IbssPeerInfoReqType* wdiPeerInfoReqParams,
12046 WDI_IbssPeerInfoReqCb wdiIbssPeerInfoReqCb,
12047 void* pUserData
12048);
12049#endif /* WLAN_FEATURE_RMC */
12050
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +053012051/**
12052 @brief wdi_HT40OBSSScanInd
12053 This API is called to start OBSS scan
12054
12055 @param pWdiReq : pointer to get ind param
12056 @see
12057 @return SUCCESS or FAIL
12058*/
12059
12060WDI_Status WDI_HT40OBSSScanInd(WDI_HT40ObssScanParamsType *pWdiReq);
12061
12062/**
12063 @brief wdi_HT40OBSSStopScanInd
12064 This API is called to stop OBSS scan
12065
12066 @param bssIdx : bssIdx to stop
12067 @see
12068 @return SUCCESS or FAIL
12069*/
12070
12071WDI_Status WDI_HT40OBSSStopScanInd(wpt_uint8 bssIdx);
12072
c_hpothu92367912014-05-01 15:18:17 +053012073
12074WDI_Status WDI_GetBcnMissRate( void *pUserData,
12075 WDI_GetBcnMissRateCb wdiGetBcnMissRateCb,
12076 wpt_uint8 *bssid
12077 );
Siddharth Bhal171788a2014-09-29 21:02:40 +053012078WDI_Status
12079WDI_SetSpoofMacAddrReq
12080(
12081WDI_SpoofMacAddrInfoType *pWdiReq,
12082 WDI_SetSpoofMacAddrRspCb setSpoofMacAddrRspCb,
12083 void* pUserData
12084);
c_hpothu92367912014-05-01 15:18:17 +053012085
Srinivas Dasari4dae48f2014-11-26 21:14:16 +053012086WDI_Status
12087WDI_EncryptMsgReq(void* pwdiEncryptMsgParams,
12088 WDI_EncryptMsgRspCb wdiEncryptMsgCbRsp,
12089 void* pUserData
12090 );
Srinivas Dasari32a79262015-02-19 13:04:49 +053012091
c_manjeecfd1efb2015-09-25 19:32:34 +053012092WDI_Status
12093WDI_FwrMemDumpReq
12094
12095(
12096 WDI_FwrMemDumpReqType *pwdiFwrMemDumpReqInfo,
12097 WDI_FwrMemDumpCb wdiFwrMemDumpRspCb,
12098 void* pUserData
12099);
12100
12101
Srinivas Dasari32a79262015-02-19 13:04:49 +053012102/**
12103 @brief WDI_NanRequest
12104 NAN request
12105
12106 @param pwdiNanRequest: data
12107
12108 pwdiNanCb: callback
12109
12110 usrData: user data will be passed back with the
12111 callback
12112
12113 @return Result of the function call
12114*/
12115WDI_Status
12116WDI_NanRequest
12117(
12118 WDI_NanRequestType *pwdiNanRequest,
12119 void *usrData
12120);
12121
Abhishek Singh41988ba2015-05-25 19:42:29 +053012122/**
12123 @brief WDI_SetRtsCtsHTVhtInd
12124 Set RTS/CTS indication for diff modes.
12125
12126 @param rtsCtsVal: Bit mask value to enable RTS/CTS for different modes
12127
12128 @return Result of the function call
12129*/
12130
12131WDI_Status
12132WDI_SetRtsCtsHTVhtInd
12133(
12134 wpt_uint32 rtsCtsVal
12135);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012136
Mihir Shete5affadc2015-05-29 20:54:57 +053012137WDI_Status
12138WDI_FWLoggingDXEdoneInd
12139(
Hanumantha Reddy Pothulae00a7e22015-09-15 20:11:30 +053012140 wpt_uint32 logType
Mihir Shete5affadc2015-05-29 20:54:57 +053012141);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012142
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +053012143/**
12144 @brief WDI_EnableDisableCAEventInd
12145 Enable/Disable Chan Avoidance indication
12146
12147 @param val: Enable/Disable Chan Avoidance indication
12148
12149 @return Result of the function call
12150*/
12151
12152WDI_Status
12153WDI_EnableDisableCAEventInd
12154(
12155wpt_uint32 val
12156);
12157
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +053012158#ifdef FEATURE_OEM_DATA_SUPPORT
12159
12160/**
12161 @brief WDI_HighPriorityDataInfoInd
12162
12163 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
12164
12165 @return SUCCESS or FAIL
12166*/
12167WDI_Status
12168WDI_StartOemDataReqIndNew
12169(
12170 WDI_OemDataReqNewConfig *pOemDataReqNewConfig
12171);
12172#endif
12173
Jeff Johnson295189b2012-06-20 16:38:30 -070012174#ifdef __cplusplus
12175 }
12176#endif
12177
Arun Khandavalli7eeb1592015-10-19 21:36:57 +053012178/**
12179 @brief WDI_WifiConfigSetReq
12180 This API is called to send WifiConfig request to FW
12181
12182 @param pwdiWifConfigSetReqParams : pointer to wificonfig params
12183 wdiLLStatsSetRspCb : set wificonfig response callback
12184 usrData : Client context
12185 @see
12186 @return SUCCESS or FAIL
12187*/
12188WDI_Status
12189WDI_WifiConfigSetReq
12190 (WDI_WifiConfigSetReqType* pwdiWifConfigSetReqParams,
12191 WDI_WifiConfigSetRspCb wdiWifiConfigSetRspCb,
12192 void* pUserData);
12193
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +053012194/**
12195 @brief WDI_GetCurrentAntennaIndex
12196 This API is called to send getCurretAntennaIndex request to FW
12197
12198 @param pUserData: pointer to request params
12199 wdiLLStatsSetRspCb : set wificonfig response callback
12200 reserved: request parameter
12201 @see
12202 @return SUCCESS or FAIL
12203*/
12204WDI_Status
12205WDI_GetCurrentAntennaIndex
12206(
12207 void *pUserData,
12208 WDI_AntennaDivSelRspCb wdiAntennaDivSelRspCb,
12209 wpt_uint32 reserved
12210);
12211
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +053012212/**
12213 @brief WDI_SetBcnMissPenaltyCount
12214 This API is called to send modified roam parameters to FW
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +053012215
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +053012216 @param params: pointer to request params
12217 @see
12218 @return SUCCESS or FAIL
12219*/
12220WDI_Status
12221WDI_SetBcnMissPenaltyCount
12222(
12223 WDI_ModifyRoamParamsReqType *params
12224);
Agrawal Ashish0552be02016-03-02 18:03:43 +053012225
Selvaraj, Sridharc045b8b2016-04-06 12:22:35 +053012226/**
12227 * WDI_SetAllowedActionFramesInd - This API is called to send Allowed
12228 * Action frame details to FW
12229 * @allowed_action_frames: Pointer to WDI_AllowedActionFramesInd structure
12230 * which holds bitmask of allowed action frames
12231 *
12232 */
12233WDI_Status
12234WDI_SetAllowedActionFramesInd(
12235 struct WDI_AllowedActionFramesInd *allowed_action_frames
12236);
12237
Agrawal Ashish0552be02016-03-02 18:03:43 +053012238void WDI_SetMgmtPktViaWQ5(wpt_boolean sendMgmtPktViaWQ5);
Jeff Johnson295189b2012-06-20 16:38:30 -070012239#endif /* #ifndef WLAN_QCT_WDI_H */