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