blob: 4dae584f5402750eb25cfd2b1cb5f5219810ac64 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Manjeet Singh3ed79242017-01-11 19:04:32 +05302 * Copyright (c) 2012-2017 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,
Dino Mycle41bdc942014-06-10 11:30:24 +0530424#endif
Abhishek Singh66c16762014-08-14 19:13:19 +0530425 /*Delete BA Ind*/
426 WDI_DEL_BA_IND,
Srinivas Dasari32a79262015-02-19 13:04:49 +0530427 WDI_NAN_EVENT_IND,
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +0530428 WDI_LOST_LINK_PARAMS_IND,
Gupta, Kapil7c34b322015-09-30 13:12:35 +0530429 WDI_RSSI_BREACHED_IND,
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +0530430#ifdef FEATURE_OEM_DATA_SUPPORT
431 WDI_START_OEM_DATA_RSP_IND_NEW,
432#endif
Kapil Gupta7a3d9b12016-12-20 20:36:38 +0530433#ifdef WLAN_FEATURE_APFIND
434 WDI_AP_FOUND_IND,
435#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700436 WDI_MAX_IND
437}WDI_LowLevelIndEnumType;
438
439
440/*---------------------------------------------------------------------------
441 WDI_LowRSSIThIndType
442---------------------------------------------------------------------------*/
443typedef struct
444{
445 /*Positive crossing of Rssi Thresh1*/
446 wpt_uint32 bRssiThres1PosCross : 1;
447 /*Negative crossing of Rssi Thresh1*/
448 wpt_uint32 bRssiThres1NegCross : 1;
449 /*Positive crossing of Rssi Thresh2*/
450 wpt_uint32 bRssiThres2PosCross : 1;
451 /*Negative crossing of Rssi Thresh2*/
452 wpt_uint32 bRssiThres2NegCross : 1;
453 /*Positive crossing of Rssi Thresh3*/
454 wpt_uint32 bRssiThres3PosCross : 1;
455 /*Negative crossing of Rssi Thresh3*/
456 wpt_uint32 bRssiThres3NegCross : 1;
457
Srinivasdaaec712012-12-12 15:59:44 -0800458 wpt_uint32 avgRssi : 8;
459 wpt_uint32 bReserved : 18;
Jeff Johnson295189b2012-06-20 16:38:30 -0700460
461}WDI_LowRSSIThIndType;
462
463
464/*---------------------------------------------------------------------------
465 WDI_UnkAddr2FrmRxIndType
466---------------------------------------------------------------------------*/
467typedef struct
468{
469 /*Rx Bd data of the unknown received addr2 frame.*/
470 void* bufRxBd;
471
472 /*Buffer Length*/
473 wpt_uint16 usBufLen;
474}WDI_UnkAddr2FrmRxIndType;
475
476/*---------------------------------------------------------------------------
477 WDI_DeleteSTAIndType
478---------------------------------------------------------------------------*/
479typedef struct
480{
481 /*ASSOC ID, as assigned by UMAC*/
482 wpt_uint16 usAssocId;
483
484 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
485 wpt_uint8 ucSTAIdx;
486
487 /*BSSID of STA*/
488 wpt_macAddr macBSSID;
489
490 /*MAC ADDR of STA*/
491 wpt_macAddr macADDR2;
492
493 /* To unify the keepalive / unknown A2 / tim-based disa*/
494 wpt_uint16 wptReasonCode;
495
496}WDI_DeleteSTAIndType;
497
498/*---------------------------------------------------------------------------
499 WDI_MicFailureIndType
500---------------------------------------------------------------------------*/
501typedef struct
502{
503 /*current BSSID*/
504 wpt_macAddr bssId;
505
506 /*Source mac address*/
507 wpt_macAddr macSrcAddr;
508
509 /*Transmitter mac address*/
510 wpt_macAddr macTaAddr;
511
512 /*Destination mac address*/
513 wpt_macAddr macDstAddr;
514
515 /*Multicast flag*/
516 wpt_uint8 ucMulticast;
517
518 /*First byte of IV*/
519 wpt_uint8 ucIV1;
520
521 /*Key Id*/
522 wpt_uint8 keyId;
523
524 /*Sequence Number*/
525 wpt_uint8 TSC[WDI_CIPHER_SEQ_CTR_SIZE];
526
527 /*receive address */
528 wpt_macAddr macRxAddr;
529}WDI_MicFailureIndType;
530
531/*---------------------------------------------------------------------------
532 WDI_CoexIndType
533---------------------------------------------------------------------------*/
534typedef struct
535{
536 wpt_uint32 coexIndType;
537 wpt_uint32 coexIndData[WDI_COEX_IND_DATA_SIZE];
538} WDI_CoexIndType;
539
540/*---------------------------------------------------------------------------
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +0530541 WDI_DHCPInd
542---------------------------------------------------------------------------*/
543
544typedef struct
545{
546 wpt_uint8 device_mode;
547 wpt_uint8 macAddr[WDI_MAC_ADDR_LEN];
548}WDI_DHCPInd;
549
Abhishek Singh00b71972016-01-07 10:51:04 +0530550#ifdef WLAN_FEATURE_RMC
551typedef struct
552{
553 /*Request status callback offered by UMAC - it is called if the current
554 req has returned PENDING as status; it delivers the status of sending
555 the message over the BUS */
556 WDI_ReqStatusCb wdiReqStatusCB;
557
558 /*The user data passed in by UMAC, it will be sent back when the above
559 function pointer will be called */
560 void* pUserData;
561
562 wpt_uint8 tx_fail_count;
563}WDI_TXFailMonitorInd;
564#endif /* WLAN_FEATURE_RMC */
565
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +0530566/*---------------------------------------------------------------------------
567
Jeff Johnson295189b2012-06-20 16:38:30 -0700568 WDI_MacSSid
569---------------------------------------------------------------------------*/
570typedef struct
571{
572 wpt_uint8 ucLength;
573 wpt_uint8 sSSID[WDI_MAX_SSID_SIZE];
574} WDI_MacSSid;
575
576#ifdef FEATURE_WLAN_SCAN_PNO
577/*---------------------------------------------------------------------------
578 WDI_PrefNetworkFoundInd
579---------------------------------------------------------------------------*/
580typedef struct
581{
582 /* Network that was found with the highest RSSI*/
Srikant Kuppa066904f2013-05-07 13:56:02 -0700583 WDI_MacSSid ssId;
Jeff Johnson295189b2012-06-20 16:38:30 -0700584 /* Indicates the RSSI */
Srikant Kuppa066904f2013-05-07 13:56:02 -0700585 wpt_uint8 rssi;
586 wpt_uint16 frameLength;
587 wpt_uint8 *pData;
Jeff Johnson295189b2012-06-20 16:38:30 -0700588} WDI_PrefNetworkFoundInd;
589#endif // FEATURE_WLAN_SCAN_PNO
590
Jeff Johnson295189b2012-06-20 16:38:30 -0700591/*---------------------------------------------------------------------------
592 *WDI_P2pNoaAttrIndType
593 *-------------------------------------------------------------------------*/
Jeff Johnson295189b2012-06-20 16:38:30 -0700594typedef struct
595{
596 wpt_uint8 ucIndex ;
597 wpt_uint8 ucOppPsFlag ;
598 wpt_uint16 usCtWin ;
599
600 wpt_uint16 usNoa1IntervalCnt;
601 wpt_uint16 usRsvd1 ;
602 wpt_uint32 uslNoa1Duration;
603 wpt_uint32 uslNoa1Interval;
604 wpt_uint32 uslNoa1StartTime;
605
606 wpt_uint16 usNoa2IntervalCnt;
607 wpt_uint16 usRsvd2;
608 wpt_uint32 uslNoa2Duration;
609 wpt_uint32 uslNoa2Interval;
610 wpt_uint32 uslNoa2StartTime;
611
612 wpt_uint32 status;
613}WDI_P2pNoaAttrIndType;
Viral Modid86bde22012-12-10 13:09:21 -0800614
615/*---------------------------------------------------------------------------
616 *WDI_P2pNoaStartIndType
617 *-------------------------------------------------------------------------*/
618typedef struct
619{
620 wpt_uint32 status;
621 wpt_uint32 bssIdx;
622}WDI_P2pNoaStartIndType;
623
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530624/*---------------------------------------------------------------------------
625 *WDI_TdlsIndType
626 *-------------------------------------------------------------------------*/
627typedef struct
628{
629 wpt_uint16 status;
630 wpt_uint16 assocId;
631 wpt_uint16 staIdx;
632 wpt_uint16 reasonCode;
633}WDI_TdlsIndType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700634
635#ifdef WLAN_WAKEUP_EVENTS
636/*---------------------------------------------------------------------------
637 WDI_WakeReasonIndType
638---------------------------------------------------------------------------*/
639typedef struct
640{
641 wpt_uint32 ulReason; /* see tWakeReasonType */
642 wpt_uint32 ulReasonArg; /* argument specific to the reason type */
643 wpt_uint32 ulStoredDataLen; /* length of optional data stored in this message, in case
644 HAL truncates the data (i.e. data packets) this length
645 will be less than the actual length */
646 wpt_uint32 ulActualDataLen; /* actual length of data */
647 wpt_uint8 aDataStart[1]; /* variable length start of data (length == storedDataLen)
648 see specific wake type */
649} WDI_WakeReasonIndType;
650#endif // WLAN_WAKEUP_EVENTS
651
Srinivas Dasari32a79262015-02-19 13:04:49 +0530652typedef struct
653{
654 wpt_uint16 event_data_len;
655 wpt_uint8* event_data;
656} WDI_NanEventType;
657
658
Jeff Johnson295189b2012-06-20 16:38:30 -0700659/*---------------------------------------------------------------------------
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800660 WDI_MissedBeaconIndType
661-----------------------------------------------------------------------------*/
662typedef struct
663{
664 wpt_uint8 bssIdx; /*bssidx on which beacon is missed*/
665} WDI_MissedBeaconIndType;
666
Leo Chang9056f462013-08-01 19:21:11 -0700667#ifdef FEATURE_WLAN_LPHB
668/*---------------------------------------------------------------------------
669 WDI_LPHBTimeoutIndData
670-----------------------------------------------------------------------------*/
671typedef struct
672{
673 wpt_uint8 bssIdx;
674 wpt_uint8 sessionIdx;
675 wpt_uint8 protocolType; /*TCP or UDP*/
676 wpt_uint8 eventReason;
677} WDI_LPHBTimeoutIndData;
678#endif /* FEATURE_WLAN_LPHB */
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800679
Yue Mab9c86f42013-08-14 15:59:08 -0700680/*-----------------------------------------------------------------------------
681WDI_PeriodicTxPtrnFwIndType
682-----------------------------------------------------------------------------*/
683typedef struct
684{
685 wpt_uint8 bssIdx;
686 wpt_uint32 selfStaIdx;
687 wpt_uint32 status;
688 wpt_uint32 patternIdBitmap;
689} WDI_PeriodicTxPtrnFwIndType;
690
Rajeev79dbe4c2013-10-05 11:03:42 +0530691#ifdef FEATURE_WLAN_BATCH_SCAN
692/*---------------------------------------------------------------------------
693 WDI_SetBatchScanReqType
694---------------------------------------------------------------------------*/
695typedef struct
696{
697 wpt_uint32 scanFrequency; /* how frequent to do scan default 30Sec*/
698 wpt_uint32 numberOfScansToBatch; /* number of scans to batch */
699 wpt_uint32 bestNetwork; /* best networks in terms of rssi */
700 wpt_uint8 rfBand; /* band to scan :
701 0 ->both Band, 1->2.4Ghz Only
702 and 2-> 5GHz Only */
703 wpt_uint32 rtt; /* set if required to do RTT it is not
704 supported in current version */
705}WDI_SetBatchScanReqType;
706
707/*---------------------------------------------------------------------------
708 WDI_SetBatchScanRspType
709---------------------------------------------------------------------------*/
710typedef struct
711{
712 /*max number of scans which FW can cache*/
713 wpt_uint32 nScansToBatch;
714}WDI_SetBatchScanRspType;
715
716/*---------------------------------------------------------------------------
717 WDI_TriggerBatchScanResultIndType
718---------------------------------------------------------------------------*/
719typedef struct
720{
721 wpt_uint32 param;
722}WDI_TriggerBatchScanResultIndType;
723
724/*---------------------------------------------------------------------------
725 WDI_StopBatchScanIndType
726---------------------------------------------------------------------------*/
727typedef struct
728{
729 /*max number of scans which FW can cache*/
730 wpt_uint32 param;
731}WDI_StopBatchScanIndType;
732
733
734/*---------------------------------------------------------------------------
735 * WDI_BatchScanResultIndType
736 *--------------------------------------------------------------------------*/
737typedef struct
738{
739 wpt_uint32 bssid[6]; /* BSSID */
740 wpt_uint32 ssid[32]; /* SSID */
741 wpt_uint32 ch; /* Channel */
742 wpt_uint32 rssi; /* RSSI or Level */
743 /* Timestamp when Network was found. Used to calculate age based on
744 timestamp in GET_RSP msg header */
745 wpt_uint32 timestamp;
746} tWDIBatchScanNetworkInfo, *tpWDIBatchScanNetworkInfo;
747
748typedef struct
749{
750 wpt_uint32 scanId; /*Scan List ID*/
751 /*No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg*/
752 wpt_uint32 numNetworksInScanList;
753 /*Variable data ptr: Number of AP in Scan List*/
754 wpt_uint32 scanList[1];
755} tWDIBatchScanList, *tpWDIBatchScanList;
756
757typedef struct
758{
759 wpt_uint32 timestamp;
760 wpt_uint32 numScanLists;
761 wpt_boolean isLastResult;
762 /* Variable Data ptr: Number of Scan Lists*/
763 wpt_uint32 scanResults[1];
764} tWDIBatchScanResultParam, *tpWDIBatchScanResultParam;
765
766#endif
767
Abhishek Singh00b71972016-01-07 10:51:04 +0530768#ifdef WLAN_FEATURE_RMC
769typedef struct
770{
771 wpt_uint8 seqNo;
772 wpt_uint8 macAddr[WDI_MAC_ADDR_LEN];
773} WDI_TXFailIndType;
774#endif /* WLAN_FEATURE_RMC */
Rajeev79dbe4c2013-10-05 11:03:42 +0530775
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +0530776typedef struct
777{
778 wpt_uint8 bssIdx;
779 wpt_uint8 rssi;
780 wpt_uint8 selfMacAddr[WDI_MAC_ADDR_LEN];
781 wpt_uint32 linkFlCnt;
782 wpt_uint32 linkFlTx;
783 wpt_uint32 lastDataRate;
784 wpt_uint32 rsvd1;
785 wpt_uint32 rsvd2;
786
787}WDI_LostLinkParamsIndType;
788
Gupta, Kapil7c34b322015-09-30 13:12:35 +0530789typedef struct
790{
791 wpt_uint32 request_id;
792 wpt_uint8 bssId[WDI_MAC_ADDR_LEN];
793 wpt_int8 rssi;
794}WDI_RssiBreachedIndType;
795
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -0800796/*---------------------------------------------------------------------------
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700797 WDI_IbssPeerInactivityIndType
798-----------------------------------------------------------------------------*/
799typedef struct
800{
801 wpt_uint8 bssIdx;
802 wpt_uint8 staIdx;
803 wpt_macAddr staMacAddr;
804}WDI_IbssPeerInactivityIndType;
805
Abhishek Singh00b71972016-01-07 10:51:04 +0530806#ifdef WLAN_FEATURE_RMC
807/*---------------------------------------------------------------------------
808 WDI_RmcRulerReqParams
809-----------------------------------------------------------------------------*/
810typedef struct
811{
812 wpt_uint8 cmd;
813
814 /* MAC address of MCAST Transmitter (source) */
815 wpt_macAddr mcastTransmitter;
816
817 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
818 wpt_macAddr mcastGroup;
819
820 /* List of candidates for cmd = WLAN_HAL_SUGGEST_RULER*/
821 wpt_macAddr blacklist[8]; /* HAL_NUM_MAX_RULERS */
822
823 /*
824 * Request status callback offered by UMAC - it is called if the current
825 * req has returned PENDING as status; it delivers the status of sending
826 * the message over the BUS
827 */
828 WDI_ReqStatusCb wdiReqStatusCB;
829
830} WDI_RmcRulerReqParams;
831
832/*---------------------------------------------------------------------------
833 WDI_RmcUpdateIndParams
834-----------------------------------------------------------------------------*/
835typedef struct
836{
837 wpt_uint8 indication; /* tRmcUpdateIndType */
838
839 wpt_uint8 role;
840
841 /* MAC address of MCAST Transmitter (source) */
842 wpt_macAddr mcastTransmitter;
843
844 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
845 wpt_macAddr mcastGroup;
846
847 wpt_macAddr mcastRuler;
848
849 wpt_macAddr ruler[16];
850
851 /*
852 * Request status callback offered by UMAC - it is called if the current
853 * req has returned PENDING as status; it delivers the status of sending
854 * the message over the BUS
855 */
856 WDI_ReqStatusCb wdiReqStatusCB;
857
858 /*
859 * The user data passed in by UMAC, it will be sent back when the above
860 * function pointer will be called
861 */
862 void *pUserData;
863
864} WDI_RmcUpdateIndParams;
865
866typedef enum
867{
868 eWDI_SUGGEST_RULER_CMD = 0,
869 eWDI_BECOME_RULER_CMD = 1,
870} eWDI_RulerRspCmdType;
871
872/*---------------------------------------------------------------------------
873 WDI_RmcRspParamsType
874-----------------------------------------------------------------------------*/
875typedef struct
876{
877 wpt_uint8 status; /* success or failure */
878
879 /* Command Type */
880 eWDI_RulerRspCmdType cmd;
881
882 /* MAC address of MCAST Transmitter (source) */
883 wpt_macAddr mcastTransmitter;
884
885 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
886 wpt_macAddr mcastGroup;
887
888 wpt_macAddr ruler[8];
889} WDI_RmcRspParamsType;
890
891/*---------------------------------------------------------------------------
892 WDI_RmcPickNewRuler
893-----------------------------------------------------------------------------*/
894typedef struct
895{
896 wpt_uint8 indication; /* pick_new */
897
898 wpt_uint8 role;
899
900 /* MAC address of MCAST Transmitter (source) */
901 wpt_macAddr mcastTransmitter;
902
903 /* MAC Address of Multicast Group (01-00-5E-xx-xx-xx) */
904 wpt_macAddr mcastGroup;
905
906 wpt_macAddr mcastRuler;
907
908 wpt_macAddr ruler[16];
909} WDI_RmcPickNewRuler;
910#endif
911
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700912/*---------------------------------------------------------------------------
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700913 WDI_TxRateFlags
914-----------------------------------------------------------------------------*/
915typedef enum
916{
917 WDI_TX_RATE_LEGACY = 0x1, /* Legacy rates */
918 WDI_TX_RATE_HT20 = 0x2, /* HT20 rates */
919 WDI_TX_RATE_HT40 = 0x4, /* HT40 rates */
920 WDI_TX_RATE_SGI = 0x8, /* Rate with Short guard interval */
921 WDI_TX_RATE_LGI = 0x10, /* Rate with Long guard interval */
922 WDI_TX_RATE_VHT20 = 0x20, /* VHT 20 rates */
923 WDI_TX_RATE_VHT40 = 0x40, /* VHT 20 rates */
924 WDI_TX_RATE_VHT80 = 0x80, /* VHT 20 rates */
925 WDI_TX_RATE_VIRT = 0x100, /* Virtual Rate */
926} WDI_TxRateFlags;
927
928/*---------------------------------------------------------------------------
929 WDI_RateUpdateIndParams
930-----------------------------------------------------------------------------*/
931typedef struct
932{
933 /* 0 implies RA, positive value implies fixed rate, -1 implies ignore this
934 * param ucastDataRate can be used to control RA behavior of unicast data to
935 */
936 wpt_int32 ucastDataRate;
937
938 /* TX flag to differentiate between HT20, HT40 etc */
939 WDI_TxRateFlags ucastDataRateTxFlag;
940
941 /* BSSID - Optional. 00-00-00-00-00-00 implies apply to all BCAST STAs */
942 wpt_macAddr bssid;
943
944 /*
945 * 0 implies MCAST RA, positive value implies fixed rate,
946 * -1 implies ignore this param
947 */
Abhishek Singh00b71972016-01-07 10:51:04 +0530948 wpt_int32 rmcDataRate; //unit Mbpsx10
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700949
950 /* TX flag to differentiate between HT20, HT40 etc */
Abhishek Singh00b71972016-01-07 10:51:04 +0530951 WDI_TxRateFlags rmcDataRateTxFlag;
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700952
953 /*
954 * MCAST(or BCAST) fixed data rate in 2.4 GHz, unit Mbpsx10,
955 * 0 implies ignore
956 */
957 wpt_uint32 mcastDataRate24GHz;
958
959 /* TX flag to differentiate between HT20, HT40 etc */
960 WDI_TxRateFlags mcastDataRate24GHzTxFlag;
961
962 /*
963 * MCAST(or BCAST) fixed data rate in 5 GHz,
964 * unit Mbpsx10, 0 implies ignore
965 */
966 wpt_uint32 mcastDataRate5GHz;
967
968 /* TX flag to differentiate between HT20, HT40 etc */
969 WDI_TxRateFlags mcastDataRate5GHzTxFlag;
970
971 /*
972 * Request status callback offered by UMAC - it is called if the current
973 * req has returned PENDING as status; it delivers the status of sending
974 * the message over the BUS
975 */
976 WDI_ReqStatusCb wdiReqStatusCB;
977
978 /*
979 * The user data passed in by UMAC, it will be sent back when the above
980 * function pointer will be called
981 */
982 void *pUserData;
983
984} WDI_RateUpdateIndParams;
985
Abhishek Singh85b74712014-10-08 11:38:19 +0530986typedef struct
987{
988 wpt_uint32 ubsp_enter_cnt;
989 wpt_uint32 ubsp_jump_ddr_cnt;
990}ubspFwStats;
991
992typedef struct
993{
994 wpt_uint32 type;
995 /*data*/
996 union{
997 ubspFwStats ubspStats;
998 }wdiFwStatsData;
999} WDI_FWStatsResults;
1000
Leo Chang0b0e45a2013-12-15 15:18:55 -08001001#ifdef FEATURE_WLAN_CH_AVOID
Abhishek Singhe34eb552015-06-18 10:12:15 +05301002#define WDI_CH_AVOID_MAX_RANGE 15
Leo Chang0b0e45a2013-12-15 15:18:55 -08001003
1004typedef struct
1005{
1006 wpt_uint32 startFreq;
1007 wpt_uint32 endFreq;
1008} WDI_ChAvoidFreqType;
1009
1010typedef struct
1011{
1012 wpt_uint32 avoidRangeCount;
1013 WDI_ChAvoidFreqType avoidFreqRange[WDI_CH_AVOID_MAX_RANGE];
1014} WDI_ChAvoidIndType;
1015#endif /* FEATURE_WLAN_CH_AVOID */
1016
Dino Mycled3d50022014-07-07 12:58:25 +05301017#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1018typedef struct
1019{
1020 void *pLinkLayerStatsResults;
1021 wpt_macAddr macAddr;
1022} WDI_LinkLayerStatsResults;
1023
1024#endif
Abhishek Singh66c16762014-08-14 19:13:19 +05301025
1026typedef struct
1027{
1028 /*STA Index*/
1029 wpt_uint16 staIdx;
1030
1031 /*Peer MAC*/
1032 wpt_macAddr peerMacAddr;
1033
1034 // TID for which a BA session timeout is being triggered
1035 wpt_uint8 baTID;
1036 // DELBA direction
1037 // 1 - Originator
1038 // 0 - Recipient
1039 wpt_uint8 baDirection;
1040 wpt_uint32 reasonCode;
1041 /*MAC ADDR of STA*/
1042 wpt_macAddr bssId; // TO SUPPORT BT-AMP
1043} WDI_DeleteBAIndType;
1044
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +05301045typedef struct
1046{
1047 wpt_uint32 tx_complete_status;
1048 wpt_uint32 tx_bd_token;
1049} WDI_TxBDStatus;
Padma, Santhosh Kumaree7c3d22016-01-25 10:36:08 +05301050
1051#ifdef FEATURE_OEM_DATA_SUPPORT
1052/*----------------------------------------------------------------------------
1053 OEM DATA RESPONSE - DATA STRUCTURES
1054----------------------------------------------------------------------------*/
1055typedef struct
1056{
1057 void *pOemRspNewIndData;
1058 /* Max OemRspNewLen possible is NEW_OEM_DATA_RSP_SIZE*/
1059 wpt_uint32 OemRspNewLen;
1060} WDI_OemDataRspNew;
1061#endif
1062
Chittajit Mitraf5413a42013-10-18 14:20:08 -07001063/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07001064 WDI_LowLevelIndType
1065 Inidcation type and information about the indication being carried
1066 over
1067---------------------------------------------------------------------------*/
1068typedef struct
1069{
1070 /*Inidcation type*/
1071 WDI_LowLevelIndEnumType wdiIndicationType;
1072
1073 /*Indication data*/
1074 union
1075 {
1076 /*RSSI Threshold Info for WDI_LOW_RSSI_IND*/
1077 WDI_LowRSSIThIndType wdiLowRSSIInfo;
1078
1079 /*Addr2 Frame Info for WDI_UNKNOWN_ADDR2_FRAME_RX_IND*/
1080 WDI_UnkAddr2FrmRxIndType wdiUnkAddr2FrmInfo;
1081
1082 /*MIC Failure info for WDI_MIC_FAILURE_IND*/
1083 WDI_MicFailureIndType wdiMICFailureInfo;
1084
1085 /*Error code for WDI_FATAL_ERROR_IND*/
1086 wpt_uint16 usErrorCode;
1087
1088 /*Delete STA Indication*/
1089 WDI_DeleteSTAIndType wdiDeleteSTAIndType;
1090
1091 /*Coex Indication*/
1092 WDI_CoexIndType wdiCoexInfo;
1093
1094 /* Tx Complete Indication */
1095 wpt_uint32 tx_complete_status;
1096
Jeff Johnson295189b2012-06-20 16:38:30 -07001097 /* P2P NOA ATTR Indication */
1098 WDI_P2pNoaAttrIndType wdiP2pNoaAttrInfo;
Viral Modid86bde22012-12-10 13:09:21 -08001099 WDI_P2pNoaStartIndType wdiP2pNoaStartInfo;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301100 /* TDLS Indications */
1101 WDI_TdlsIndType wdiTdlsIndInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001102
1103
1104#ifdef FEATURE_WLAN_SCAN_PNO
1105 WDI_PrefNetworkFoundInd wdiPrefNetworkFoundInd;
1106#endif // FEATURE_WLAN_SCAN_PNO
1107
1108#ifdef WLAN_WAKEUP_EVENTS
1109 WDI_WakeReasonIndType wdiWakeReasonInd;
1110#endif // WLAN_WAKEUP_EVENTS
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -08001111 WDI_MissedBeaconIndType wdiMissedBeaconInd;
Ravi Joshid2ca7c42013-07-23 08:37:49 -07001112
Leo Chang9056f462013-08-01 19:21:11 -07001113#ifdef FEATURE_WLAN_LPHB
1114 WDI_LPHBTimeoutIndData wdiLPHBTimeoutInd;
1115#endif /* FEATURE_WLAN_LPHB */
Ravi Joshid2ca7c42013-07-23 08:37:49 -07001116
1117 /* IBSS Peer Inactivity Indication */
1118 WDI_IbssPeerInactivityIndType wdiIbssPeerInactivityInd;
1119
Yue Mab9c86f42013-08-14 15:59:08 -07001120 /* Periodic TX Pattern FW Indication */
1121 WDI_PeriodicTxPtrnFwIndType wdiPeriodicTxPtrnFwInd;
Rajeev79dbe4c2013-10-05 11:03:42 +05301122
Abhishek Singh00b71972016-01-07 10:51:04 +05301123#ifdef WLAN_FEATURE_RMC
1124 WDI_RmcPickNewRuler wdiRmcPickNewRulerInd;
1125#endif /* WLAN_FEATURE_RMC */
1126
Rajeev79dbe4c2013-10-05 11:03:42 +05301127#ifdef FEATURE_WLAN_BATCH_SCAN
1128 /*batch scan result indication from FW*/
1129 void *pBatchScanResult;
1130#endif
1131
Abhishek Singh00b71972016-01-07 10:51:04 +05301132#ifdef WLAN_FEATURE_RMC
1133 WDI_TXFailIndType wdiTXFailInd;
1134#endif /* WLAN_FEATURE_RMC */
1135
Leo Chang0b0e45a2013-12-15 15:18:55 -08001136#ifdef FEATURE_WLAN_CH_AVOID
1137 WDI_ChAvoidIndType wdiChAvoidInd;
1138#endif /* FEATURE_WLAN_CH_AVOID */
Sunil Duttbd736ed2014-05-26 21:19:41 +05301139
1140#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1141 /*Link Layer Statistics from FW*/
Dino Mycled3d50022014-07-07 12:58:25 +05301142 WDI_LinkLayerStatsResults wdiLinkLayerStatsResults;
Sunil Duttbd736ed2014-05-26 21:19:41 +05301143#endif
Dino Mycle41bdc942014-06-10 11:30:24 +05301144#ifdef WLAN_FEATURE_EXTSCAN
1145 /*EXTSCAN Results from FW*/
1146 void *pEXTScanIndData;
1147#endif
Abhishek Singh66c16762014-08-14 19:13:19 +05301148 WDI_DeleteBAIndType wdiDeleteBAInd;
Srinivas Dasari32a79262015-02-19 13:04:49 +05301149
1150 WDI_NanEventType wdiNanEvent;
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +05301151
1152 WDI_TxBDStatus wdiTxBdInd;
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +05301153 WDI_LostLinkParamsIndType wdiLostLinkParamsInd;
Gupta, Kapil7c34b322015-09-30 13:12:35 +05301154 WDI_RssiBreachedIndType wdiRssiBreachedInd;
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05301155#ifdef FEATURE_OEM_DATA_SUPPORT
1156/*OEM Data Rsp New Results from FW*/
Padma, Santhosh Kumaree7c3d22016-01-25 10:36:08 +05301157 WDI_OemDataRspNew wdiOemDataRspNew;
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05301158#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001159 } wdiIndicationData;
1160}WDI_LowLevelIndType;
1161
1162/*---------------------------------------------------------------------------
1163 WDI_LowLevelIndCBType
1164
1165 DESCRIPTION
1166
1167 This callback is invoked by DAL to deliver to UMAC certain indications
1168 that has either received from the lower device or has generated itself.
1169
1170 PARAMETERS
1171
1172 IN
1173 pwdiInd: information about the indication sent over
1174 pUserData: user data provided by UMAC during registration
1175
1176
1177
1178 RETURN VALUE
1179 The result code associated with performing the operation
1180---------------------------------------------------------------------------*/
1181typedef void (*WDI_LowLevelIndCBType)(WDI_LowLevelIndType* pwdiInd,
1182 void* pUserData);
1183
1184/*---------------------------------------------------------------------------
1185 WDI_DriverType
1186---------------------------------------------------------------------------*/
1187typedef enum
1188{
1189 WDI_DRIVER_TYPE_PRODUCTION = 0,
1190 WDI_DRIVER_TYPE_MFG = 1,
1191 WDI_DRIVER_TYPE_DVT = 2
1192} WDI_DriverType;
1193
1194/*---------------------------------------------------------------------------
1195 WDI_StartReqParamsType
1196---------------------------------------------------------------------------*/
1197typedef struct
1198{
1199 /*This is a TLV formatted buffer containing all config values that can
1200 be set through the DAL Interface
1201
1202 The TLV is expected to be formatted like this:
1203
1204 0 7 15 31 ....
1205 | CONFIG ID | CFG LEN | RESERVED | CFG BODY |
1206
1207 Or from a C construct point of VU it would look like this:
1208
1209 typedef struct WPT_PACK_POST
1210 {
1211 #ifdef WPT_BIG_ENDIAN
1212 wpt_uint32 ucCfgId:8;
1213 wpt_uint32 ucCfgLen:8;
1214 wpt_uint32 usReserved:16;
1215 #else
1216 wpt_uint32 usReserved:16;
1217 wpt_uint32 ucCfgLen:8;
1218 wpt_uint32 ucCfgId:8;
1219 #endif
1220
1221 wpt_uint8 ucCfgBody[ucCfgLen];
1222 }WDI_ConfigType;
1223
1224 Multiple such tuplets are to be placed in the config buffer. One for
1225 each required configuration item:
1226
1227 | TLV 1 | TLV2 | ....
1228
1229 The buffer is expected to be a flat area of memory that can be manipulated
1230 with standard memory routines.
1231
1232 For more info please check paragraph 2.3.1 Config Structure from the
1233 HAL LLD.
1234
1235 For a list of accepted configuration list and IDs please look up
1236 wlan_qct_dal_cfg.h
1237
1238 */
1239 void* pConfigBuffer;
1240
1241 /*Length of the config buffer above*/
1242 wpt_uint16 usConfigBufferLen;
1243
1244 /*Production or FTM driver*/
1245 WDI_DriverType wdiDriverType;
1246
1247 /*Should device enable frame translation */
1248 wpt_uint8 bFrameTransEnabled;
1249
1250 /*Request status callback offered by UMAC - it is called if the current
1251 req has returned PENDING as status; it delivers the status of sending
1252 the message over the BUS */
1253 WDI_ReqStatusCb wdiReqStatusCB;
1254
1255 /*The user data passed in by UMAC, it will be sent back when the above
1256 function pointer will be called */
1257 void* pUserData;
1258
1259 /*Indication callback given by UMAC to be called by the WLAN DAL when it
1260 wishes to send something back independent of a request*/
1261 WDI_LowLevelIndCBType wdiLowLevelIndCB;
1262
1263 /*The user data passed in by UMAC, it will be sent back when the indication
1264 function pointer will be called */
1265 void* pIndUserData;
1266}WDI_StartReqParamsType;
1267
1268
1269/*---------------------------------------------------------------------------
1270 WDI_StartRspParamsType
1271---------------------------------------------------------------------------*/
1272typedef struct
1273{
1274 /*Status of the response*/
1275 WDI_Status wdiStatus;
1276
1277 /*Max number of STA supported by the device*/
1278 wpt_uint8 ucMaxStations;
1279
1280 /*Max number of BSS supported by the device*/
1281 wpt_uint8 ucMaxBssids;
1282
1283 /*Version of the WLAN HAL API with which we were compiled*/
1284 WDI_WlanVersionType wlanCompiledVersion;
1285
1286 /*Version of the WLAN HAL API that was reported*/
1287 WDI_WlanVersionType wlanReportedVersion;
1288
1289 /*WCNSS Software version string*/
1290 wpt_uint8 wcnssSoftwareVersion[WDI_VERSION_LENGTH];
1291
1292 /*WCNSS Hardware version string*/
1293 wpt_uint8 wcnssHardwareVersion[WDI_VERSION_LENGTH];
1294}WDI_StartRspParamsType;
1295
1296
1297/*---------------------------------------------------------------------------
1298 WDI_StopType
1299---------------------------------------------------------------------------*/
1300typedef enum
1301{
1302 /*Device is being stopped due to a reset*/
1303 WDI_STOP_TYPE_SYS_RESET,
1304
1305 /*Device is being stopped due to entering deep sleep*/
1306 WDI_STOP_TYPE_SYS_DEEP_SLEEP,
1307
1308 /*Device is being stopped because the RF needs to shut off
1309 (e.g.:Airplane mode)*/
1310 WDI_STOP_TYPE_RF_KILL
1311}WDI_StopType;
1312
1313/*---------------------------------------------------------------------------
1314 WDI_StopReqParamsType
1315---------------------------------------------------------------------------*/
1316typedef struct
1317{
1318
1319 /*The reason for which the device is being stopped*/
1320 WDI_StopType wdiStopReason;
1321
1322 /*Request status callback offered by UMAC - it is called if the current
1323 req has returned PENDING as status; it delivers the status of sending
1324 the message over the BUS */
1325 WDI_ReqStatusCb wdiReqStatusCB;
1326
1327 /*The user data passed in by UMAC, it will be sent back when the above
1328 function pointer will be called */
1329 void* pUserData;
1330}WDI_StopReqParamsType;
1331
1332
1333/*---------------------------------------------------------------------------
1334 WDI_ScanMode
1335---------------------------------------------------------------------------*/
1336typedef enum
1337{
1338 WDI_SCAN_MODE_NORMAL = 0,
1339 WDI_SCAN_MODE_LEARN,
1340 WDI_SCAN_MODE_SCAN,
1341 WDI_SCAN_MODE_PROMISC,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -07001342 WDI_SCAN_MODE_SUSPEND_LINK,
1343 WDI_SCAN_MODE_ROAM_SCAN,
1344 WDI_SCAN_MODE_ROAM_SUSPEND_LINK,
1345
Jeff Johnson295189b2012-06-20 16:38:30 -07001346} WDI_ScanMode;
1347
1348/*---------------------------------------------------------------------------
1349 WDI_ScanEntry
1350---------------------------------------------------------------------------*/
1351typedef struct
1352{
1353 wpt_uint8 bssIdx[WDI_NUM_BSSID];
1354 wpt_uint8 activeBSScnt;
1355}WDI_ScanEntry;
1356
1357/*---------------------------------------------------------------------------
1358 WDI_InitScanReqInfoType
1359---------------------------------------------------------------------------*/
1360typedef struct
1361{
1362 /*LEARN - AP Role
1363 SCAN - STA Role*/
1364 WDI_ScanMode wdiScanMode;
1365
1366 /*BSSID of the BSS*/
1367 wpt_macAddr macBSSID;
1368
1369 /*Whether BSS needs to be notified*/
1370 wpt_boolean bNotifyBSS;
1371
1372 /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or
1373 CTS to Self). Must always be a valid frame type.*/
1374 wpt_uint8 ucFrameType;
1375
1376 /*UMAC has the option of passing the MAC frame to be used for notifying
1377 the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by
1378 macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on
1379 frameType.*/
1380 wpt_uint8 ucFrameLength;
1381
1382 /*Pointer to the MAC frame buffer. Used only if ucFrameLength is non-zero.*/
1383 WDI_MacMgmtHdr wdiMACMgmtHdr;
1384
1385 /*Entry to hold number of active BSS to send NULL frames before
1386 * initiating SCAN*/
1387 WDI_ScanEntry wdiScanEntry;
1388
1389 /* Flag to enable/disable Single NOA*/
1390 wpt_boolean bUseNOA;
1391
1392 /* Indicates the scan duration (in ms) */
1393 wpt_uint16 scanDuration;
1394
1395}WDI_InitScanReqInfoType;
1396
1397/*---------------------------------------------------------------------------
1398 WDI_InitScanReqParamsType
1399---------------------------------------------------------------------------*/
1400typedef struct
1401{
1402 /*The info associated with the request that needs to be sent over to the
1403 device*/
1404 WDI_InitScanReqInfoType wdiReqInfo;
1405
1406 /*Request status callback offered by UMAC - it is called if the current
1407 req has returned PENDING as status; it delivers the status of sending
1408 the message over the BUS */
1409 WDI_ReqStatusCb wdiReqStatusCB;
1410
1411 /*The user data passed in by UMAC, it will be sent back when the above
1412 function pointer will be called */
1413 void* pUserData;
1414}WDI_InitScanReqParamsType;
1415
1416/*---------------------------------------------------------------------------
1417 WDI_StartScanReqParamsType
1418---------------------------------------------------------------------------*/
1419typedef struct
1420{
1421 /*Indicates the channel to scan*/
1422 wpt_uint8 ucChannel;
1423
1424 /*Request status callback offered by UMAC - it is called if the current
1425 req has returned PENDING as status; it delivers the status of sending
1426 the message over the BUS */
1427 WDI_ReqStatusCb wdiReqStatusCB;
1428
1429 /*The user data passed in by UMAC, it will be sent back when the above
1430 function pointer will be called */
1431 void* pUserData;
1432}WDI_StartScanReqParamsType;
1433
1434/*---------------------------------------------------------------------------
1435 WDI_StartScanRspParamsType
1436---------------------------------------------------------------------------*/
1437typedef struct
1438{
1439 /*Indicates the status of the operation */
1440 WDI_Status wdiStatus;
1441
1442#if defined WLAN_FEATURE_VOWIFI
1443 wpt_uint32 aStartTSF[2];
1444 wpt_int8 ucTxMgmtPower;
1445#endif
1446}WDI_StartScanRspParamsType;
1447
1448/*---------------------------------------------------------------------------
1449 WDI_EndScanReqParamsType
1450---------------------------------------------------------------------------*/
1451typedef struct
1452{
1453 /*Indicates the channel to stop scanning. Not used really. But retained
1454 for symmetry with "start Scan" message. It can also help in error
1455 check if needed.*/
1456 wpt_uint8 ucChannel;
1457
1458 /*Request status callback offered by UMAC - it is called if the current
1459 req has returned PENDING as status; it delivers the status of sending
1460 the message over the BUS */
1461 WDI_ReqStatusCb wdiReqStatusCB;
1462
1463 /*The user data passed in by UMAC, it will be sent back when the above
1464 function pointer will be called */
1465 void* pUserData;
1466}WDI_EndScanReqParamsType;
1467
1468/*---------------------------------------------------------------------------
1469 WDI_PhyChanBondState
1470---------------------------------------------------------------------------*/
1471typedef enum
1472{
1473 WDI_PHY_SINGLE_CHANNEL_CENTERED = 0,
1474 WDI_PHY_DOUBLE_CHANNEL_LOW_PRIMARY = 1,
1475 WDI_PHY_DOUBLE_CHANNEL_CENTERED = 2,
Jeff Johnsone7245742012-09-05 17:12:55 -07001476 WDI_PHY_DOUBLE_CHANNEL_HIGH_PRIMARY = 3,
1477#ifdef WLAN_FEATURE_11AC
1478 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4, //20/40MHZ offset LOW 40/80MHZ offset CENTERED
1479 WDI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5, //20/40MHZ offset CENTERED 40/80MHZ offset CENTERED
1480 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6, //20/40MHZ offset HIGH 40/80MHZ offset CENTERED
1481 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7,//20/40MHZ offset LOW 40/80MHZ offset LOW
1482 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8, //20/40MHZ offset HIGH 40/80MHZ offset LOW
1483 WDI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9, //20/40MHZ offset LOW 40/80MHZ offset HIGH
1484 WDI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10,//20/40MHZ offset-HIGH 40/80MHZ offset HIGH
1485#endif
1486 WDI_MAX_CB_STATE
Jeff Johnson295189b2012-06-20 16:38:30 -07001487} WDI_PhyChanBondState;
1488
1489/*---------------------------------------------------------------------------
1490 WDI_FinishScanReqInfoType
1491---------------------------------------------------------------------------*/
1492typedef struct
1493{
1494 /*LEARN - AP Role
1495 SCAN - STA Role*/
1496 WDI_ScanMode wdiScanMode;
1497
1498 /*Operating channel to tune to.*/
1499 wpt_uint8 ucCurrentOperatingChannel;
1500
1501 /*Channel Bonding state If 20/40 MHz is operational, this will indicate the
1502 40 MHz extension channel in combination with the control channel*/
1503 WDI_PhyChanBondState wdiCBState;
1504
1505 /*BSSID of the BSS*/
1506 wpt_macAddr macBSSID;
1507
1508 /*Whether BSS needs to be notified*/
1509 wpt_boolean bNotifyBSS;
1510
1511 /*Kind of frame to be used for notifying the BSS (Data Null, QoS Null, or
1512 CTS to Self). Must always be a valid frame type.*/
1513 wpt_uint8 ucFrameType;
1514
1515 /*UMAC has the option of passing the MAC frame to be used for notifying
1516 the BSS. If non-zero, HAL will use the MAC frame buffer pointed to by
1517 macMgmtHdr. If zero, HAL will generate the appropriate MAC frame based on
1518 frameType.*/
1519 wpt_uint8 ucFrameLength;
1520
1521 /*Pointer to the MAC frame buffer. Used only if ucFrameLength is non-zero.*/
1522 WDI_MacMgmtHdr wdiMACMgmtHdr;
1523
1524 /*Entry to hold number of active BSS to send NULL frames after SCAN*/
1525 WDI_ScanEntry wdiScanEntry;
1526
1527}WDI_FinishScanReqInfoType;
1528
1529/*---------------------------------------------------------------------------
1530 WDI_SwitchChReqInfoType
1531---------------------------------------------------------------------------*/
1532typedef struct
1533{
1534 /*Indicates the channel to switch to.*/
1535 wpt_uint8 ucChannel;
1536
1537 /*Local power constraint*/
1538 wpt_uint8 ucLocalPowerConstraint;
1539
1540 /*Secondary channel offset */
1541 WDI_HTSecondaryChannelOffset wdiSecondaryChannelOffset;
1542
1543#ifdef WLAN_FEATURE_VOWIFI
1544 wpt_int8 cMaxTxPower;
1545
1546 /*Self STA Mac address*/
1547 wpt_macAddr macSelfStaMacAddr;
1548#endif
1549 /* VO Wifi comment: BSSID is needed to identify which session issued this request. As the
1550 request has power constraints, this should be applied only to that session */
1551 /* V IMP: Keep bssId field at the end of this msg. It is used to mantain backward compatbility
1552 * by way of ignoring if using new host/old FW or old host/new FW since it is at the end of this struct
1553 */
1554 wpt_macAddr macBSSId;
1555
1556}WDI_SwitchChReqInfoType;
1557
1558/*---------------------------------------------------------------------------
1559 WDI_SwitchChReqParamsType
1560---------------------------------------------------------------------------*/
1561typedef struct
1562{
1563 /*Channel Info*/
1564 WDI_SwitchChReqInfoType wdiChInfo;
1565
1566 /*Request status callback offered by UMAC - it is called if the current
1567 req has returned PENDING as status; it delivers the status of sending
1568 the message over the BUS */
1569 WDI_ReqStatusCb wdiReqStatusCB;
1570
1571 /*The user data passed in by UMAC, it will be sent back when the above
1572 function pointer will be called */
1573 void* pUserData;
1574}WDI_SwitchChReqParamsType;
1575
1576/*---------------------------------------------------------------------------
1577 WDI_FinishScanReqParamsType
1578---------------------------------------------------------------------------*/
1579typedef struct
1580{
1581 /*Info for the Finish Scan request that will be sent down to the device*/
1582 WDI_FinishScanReqInfoType wdiReqInfo;
1583
1584 /*Request status callback offered by UMAC - it is called if the current
1585 req has returned PENDING as status; it delivers the status of sending
1586 the message over the BUS */
1587 WDI_ReqStatusCb wdiReqStatusCB;
1588
1589 /*The user data passed in by UMAC, it will be sent back when the above
1590 function pointer will be called */
1591 void* pUserData;
1592}WDI_FinishScanReqParamsType;
1593
1594/*---------------------------------------------------------------------------
1595 WDI_JoinReqInfoType
1596---------------------------------------------------------------------------*/
1597typedef struct
1598{
1599 /*Indicates the BSSID to which STA is going to associate*/
1600 wpt_macAddr macBSSID;
1601
1602 /*Indicates the MAC Address of the current Self STA*/
1603 wpt_macAddr macSTASelf;
1604
1605 /*Indicates the link State determining the entity Type e.g. BTAMP-STA, STA etc.*/
1606 wpt_uint32 linkState;
1607
1608 /*Indicates the channel to switch to.*/
1609 WDI_SwitchChReqInfoType wdiChannelInfo;
1610
1611}WDI_JoinReqInfoType;
1612
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08001613typedef enum
1614{
1615 eWDI_CHANNEL_SWITCH_SOURCE_SCAN,
1616 eWDI_CHANNEL_SWITCH_SOURCE_LISTEN,
1617 eWDI_CHANNEL_SWITCH_SOURCE_MCC,
1618 eWDI_CHANNEL_SWITCH_SOURCE_CSA,
1619 eWDI_CHANNEL_SWITCH_SOURCE_MAX = 0x7FFFFFFF
1620} WDI_ChanSwitchSource;
1621
1622/*---------------------------------------------------------------------------
1623 WDI_SwitchChReqInfoType_V1
1624---------------------------------------------------------------------------*/
1625typedef struct
1626{
1627 /*Indicates the channel to switch to.*/
1628 wpt_uint8 ucChannel;
1629
1630 /*Local power constraint*/
1631 wpt_uint8 ucLocalPowerConstraint;
1632
1633 /*Secondary channel offset */
1634 WDI_HTSecondaryChannelOffset wdiSecondaryChannelOffset;
1635
1636#ifdef WLAN_FEATURE_VOWIFI
1637 wpt_int8 cMaxTxPower;
1638 /*Self STA Mac address*/
1639 wpt_macAddr macSelfStaMacAddr;
1640#endif
1641 /* VO Wifi comment: BSSID is needed to identify which session
1642 issued this request. As the request has power constraints, this
1643 should be applied only to that session
1644 */
1645 /* V IMP: Keep bssId field at the end of this msg. It is used to
1646 maintain backward compatibility by way of ignoring if using new
1647 host/old FW or old host/new FW since it is at the end of this struct
1648 */
1649 wpt_macAddr macBSSId;
1650 /* Source of Channel Switch */
1651 WDI_ChanSwitchSource channelSwitchSrc;
1652}WDI_SwitchChReqInfoType_V1;
1653
1654/*--------------------------------------------------------------------
1655 WDI_SwitchChReqParamsType_V1
1656----------------------------------------------------------------------*/
1657typedef struct
1658{
1659 /*Channel Info*/
1660 WDI_SwitchChReqInfoType_V1 wdiChInfo;
1661
1662 /*Request status callback offered by UMAC - it is called if the current
1663 req has returned PENDING as status; it delivers the status of sending
1664 the message over the BUS */
1665 WDI_ReqStatusCb wdiReqStatusCB;
1666
1667 /*The user data passed in by UMAC, it will be sent back when the above
1668 function pointer will be called */
1669 void* pUserData;
1670}WDI_SwitchChReqParamsType_V1;
1671
Jeff Johnson295189b2012-06-20 16:38:30 -07001672/*---------------------------------------------------------------------------
1673 WDI_JoinReqParamsType
1674---------------------------------------------------------------------------*/
1675typedef struct
1676{
1677 /*Info for the Join request that will be sent down to the device*/
1678 WDI_JoinReqInfoType wdiReqInfo;
1679
1680 /*Request status callback offered by UMAC - it is called if the current
1681 req has returned PENDING as status; it delivers the status of sending
1682 the message over the BUS */
1683 WDI_ReqStatusCb wdiReqStatusCB;
1684
1685 /*The user data passed in by UMAC, it will be sent back when the above
1686 function pointer will be called */
1687 void* pUserData;
1688}WDI_JoinReqParamsType;
1689
1690/*---------------------------------------------------------------------------
1691 WDI_BssType
1692---------------------------------------------------------------------------*/
1693typedef enum
1694{
1695 WDI_INFRASTRUCTURE_MODE,
1696 WDI_INFRA_AP_MODE, //Added for softAP support
1697 WDI_IBSS_MODE,
1698 WDI_BTAMP_STA_MODE,
1699 WDI_BTAMP_AP_MODE,
1700 WDI_BSS_AUTO_MODE,
1701}WDI_BssType;
1702
1703/*---------------------------------------------------------------------------
1704 WDI_NwType
1705---------------------------------------------------------------------------*/
1706typedef enum
1707{
1708 WDI_11A_NW_TYPE,
1709 WDI_11B_NW_TYPE,
1710 WDI_11G_NW_TYPE,
1711 WDI_11N_NW_TYPE,
1712} WDI_NwType;
1713
1714/*---------------------------------------------------------------------------
1715 WDI_ConfigAction
1716---------------------------------------------------------------------------*/
1717typedef enum
1718{
1719 WDI_ADD_BSS,
1720 WDI_UPDATE_BSS
1721} WDI_ConfigAction;
1722
1723/*---------------------------------------------------------------------------
1724 WDI_HTOperatingMode
1725---------------------------------------------------------------------------*/
1726typedef enum
1727{
1728 WDI_HT_OP_MODE_PURE,
1729 WDI_HT_OP_MODE_OVERLAP_LEGACY,
1730 WDI_HT_OP_MODE_NO_LEGACY_20MHZ_HT,
1731 WDI_HT_OP_MODE_MIXED
1732
1733} WDI_HTOperatingMode;
1734
1735
1736/*---------------------------------------------------------------------------
1737 WDI_STAEntryType
1738---------------------------------------------------------------------------*/
1739typedef enum
1740{
1741 WDI_STA_ENTRY_SELF,
1742 WDI_STA_ENTRY_PEER,
1743 WDI_STA_ENTRY_BSSID,
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001744 WDI_STA_ENTRY_BCAST,
1745#ifdef FEATURE_WLAN_TDLS
1746 WDI_STA_ENTRY_TDLS_PEER,
1747#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001748}WDI_STAEntryType;
1749
1750/*---------------------------------------------------------------------------
1751 WDI_ConfigActionType
1752---------------------------------------------------------------------------*/
1753typedef enum
1754{
1755 WDI_ADD_STA,
1756 WDI_UPDATE_STA
1757} WDI_ConfigActionType;
1758
1759/*----------------------------------------------------------------------------
1760 Each station added has a rate mode which specifies the sta attributes
1761 ----------------------------------------------------------------------------*/
1762typedef enum
1763{
1764 WDI_RESERVED_1 = 0,
1765 WDI_RESERVED_2,
1766 WDI_RESERVED_3,
1767 WDI_11b,
1768 WDI_11bg,
1769 WDI_11a,
1770 WDI_11n,
1771} WDI_RateModeType;
1772
1773/*---------------------------------------------------------------------------
1774 WDI_SupportedRatesType
1775---------------------------------------------------------------------------*/
1776typedef struct
1777{
1778 /*
1779 * For Self STA Entry: this represents Self Mode.
1780 * For Peer Stations, this represents the mode of the peer.
1781 * On Station:
1782 * --this mode is updated when PE adds the Self Entry.
1783 * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP.
1784 * ON AP:
1785 * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used
1786 * to indicate the self mode of the AP.
1787 * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated.
1788 */
1789
1790 WDI_RateModeType opRateMode;
1791
1792 /* 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps */
1793 wpt_uint16 llbRates[WDI_NUM_11B_RATES];
1794 wpt_uint16 llaRates[WDI_NUM_11A_RATES];
1795 wpt_uint16 aLegacyRates[WDI_NUM_POLARIS_RATES];
1796
1797 /*Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported)
1798 First 26 bits are reserved for those Titan rates and
1799 the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved.*/
1800 wpt_uint32 uEnhancedRateBitmap; //Titan and Taurus Rates
1801
1802 /*
1803 * 0-76 bits used, remaining reserved
1804 * bits 0-15 and 32 should be set.
1805 */
1806 wpt_uint8 aSupportedMCSSet[WDI_MAC_MAX_SUPPORTED_MCS_SET];
1807
1808 /*
1809 * RX Highest Supported Data Rate defines the highest data
1810 * rate that the STA is able to receive, in unites of 1Mbps.
1811 * This value is derived from "Supported MCS Set field" inside
1812 * the HT capability element.
1813 */
1814 wpt_uint16 aRxHighestDataRate;
1815
Jeff Johnsone7245742012-09-05 17:12:55 -07001816
1817#ifdef WLAN_FEATURE_11AC
1818 /*Indicates the Maximum MCS that can be received for each number
1819 of spacial streams */
1820 wpt_uint16 vhtRxMCSMap;
1821 /*Indicate the highest VHT data rate that the STA is able to receive*/
1822 wpt_uint16 vhtRxHighestDataRate;
1823 /*Indicates the Maximum MCS that can be transmitted for each number
1824 of spacial streams */
1825 wpt_uint16 vhtTxMCSMap;
1826 /*Indicate the highest VHT data rate that the STA is able to transmit*/
1827 wpt_uint16 vhtTxHighestDataRate;
1828#endif
1829
Jeff Johnson295189b2012-06-20 16:38:30 -07001830} WDI_SupportedRates;
1831
1832/*--------------------------------------------------------------------------
1833 WDI_HTMIMOPowerSaveState
1834 Spatial Multiplexing(SM) Power Save mode
1835 --------------------------------------------------------------------------*/
1836typedef enum
1837{
1838 WDI_HT_MIMO_PS_STATIC = 0, // Static SM Power Save mode
1839 WDI_HT_MIMO_PS_DYNAMIC = 1, // Dynamic SM Power Save mode
1840 WDI_HT_MIMO_PS_NA = 2, // reserved
1841 WDI_HT_MIMO_PS_NO_LIMIT = 3, // SM Power Save disabled
1842} WDI_HTMIMOPowerSaveState;
1843
1844/*---------------------------------------------------------------------------
1845 WDI_ConfigStaReqInfoType
1846---------------------------------------------------------------------------*/
1847typedef struct
1848{
1849 /*BSSID of STA*/
1850 wpt_macAddr macBSSID;
1851
1852 /*ASSOC ID, as assigned by UMAC*/
1853 wpt_uint16 usAssocId;
1854
1855 /*Used for configuration of different HW modules.*/
1856 WDI_STAEntryType wdiSTAType;
1857
Gopichand Nakkalae7cbc5d2013-03-27 21:09:23 -07001858 /*STA Index */
1859 wpt_uint8 staIdx;
1860
Jeff Johnson295189b2012-06-20 16:38:30 -07001861 /*Short Preamble Supported.*/
1862 wpt_uint8 ucShortPreambleSupported;
1863
1864 /*MAC Address of STA*/
1865 wpt_macAddr macSTA;
1866
1867 /*Listen interval of the STA*/
1868 wpt_uint16 usListenInterval;
1869
1870 /*Support for 11e/WMM*/
1871 wpt_uint8 ucWMMEnabled;
1872
1873 /*11n HT capable STA*/
1874 wpt_uint8 ucHTCapable;
1875
1876 /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/
1877 wpt_uint8 ucTXChannelWidthSet;
1878
1879 /*RIFS mode 0 - NA, 1 - Allowed*/
1880 wpt_uint8 ucRIFSMode;
1881
1882 /*L-SIG TXOP Protection mechanism
1883 0 - No Support, 1 - Supported
1884 SG - there is global field*/
1885 wpt_uint8 ucLSIGTxopProtection;
1886
1887 /*Max Ampdu Size supported by STA. Device programming.
1888 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */
1889 wpt_uint8 ucMaxAmpduSize;
1890
1891 /*Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4)*/
1892 wpt_uint8 ucMaxAmpduDensity;
1893
1894 /*Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes*/
1895 wpt_uint8 ucMaxAmsduSize;
1896
1897 /*Short GI support for 40Mhz packets*/
1898 wpt_uint8 ucShortGI40Mhz;
1899
1900 /*Short GI support for 20Mhz packets*/
1901 wpt_uint8 ucShortGI20Mhz;
1902
1903 /*These rates are the intersection of peer and self capabilities.*/
1904 WDI_SupportedRates wdiSupportedRates;
1905
1906 /*Robust Management Frame (RMF) enabled/disabled*/
1907 wpt_uint8 ucRMFEnabled;
1908
1909 /* The unicast encryption type in the association */
1910 wpt_uint32 ucEncryptType;
1911
1912 /*HAL should update the existing STA entry, if this flag is set. UMAC
1913 will set this flag in case of RE-ASSOC, where we want to reuse the old
1914 STA ID.*/
1915 WDI_ConfigActionType wdiAction;
1916
1917 /*U-APSD Flags: 1b per AC. Encoded as follows:
1918 b7 b6 b5 b4 b3 b2 b1 b0 =
1919 X X X X BE BK VI VO
1920 */
1921 wpt_uint8 ucAPSD;
1922
1923 /*Max SP Length*/
1924 wpt_uint8 ucMaxSPLen;
1925
1926 /*11n Green Field preamble support*/
1927 wpt_uint8 ucGreenFieldCapable;
1928
1929 /*MIMO Power Save mode*/
1930 WDI_HTMIMOPowerSaveState wdiMIMOPS;
1931
1932 /*Delayed BA Support*/
1933 wpt_uint8 ucDelayedBASupport;
1934
1935 /*Max AMPDU duration in 32us*/
1936 wpt_uint8 us32MaxAmpduDuratio;
1937
1938 /*HT STA should set it to 1 if it is enabled in BSS
1939 HT STA should set it to 0 if AP does not support it. This indication is
1940 sent to HAL and HAL uses this flag to pickup up appropriate 40Mhz rates.
1941 */
1942 wpt_uint8 ucDsssCckMode40Mhz;
1943
1944 wpt_uint8 ucP2pCapableSta;
Jeff Johnsone7245742012-09-05 17:12:55 -07001945#ifdef WLAN_FEATURE_11AC
1946 wpt_uint8 ucVhtCapableSta;
1947 wpt_uint8 ucVhtTxChannelWidthSet;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001948 wpt_uint8 ucVhtTxBFEnabled;
Abhishek Singh6927fa02014-06-27 17:19:55 +05301949 wpt_uint8 vhtTxMUBformeeCapable;
Jeff Johnsone7245742012-09-05 17:12:55 -07001950#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001951
1952 wpt_uint8 ucHtLdpcEnabled;
1953 wpt_uint8 ucVhtLdpcEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001954}WDI_ConfigStaReqInfoType;
1955
1956
1957/*---------------------------------------------------------------------------
1958 WDI_RateSet
1959
1960 12 Bytes long because this structure can be used to represent rate
1961 and extended rate set IEs
1962 The parser assume this to be at least 12
1963---------------------------------------------------------------------------*/
1964#define WDI_RATESET_EID_MAX 12
1965
1966typedef struct
1967{
1968 wpt_uint8 ucNumRates;
1969 wpt_uint8 aRates[WDI_RATESET_EID_MAX];
1970} WDI_RateSet;
1971
1972/*---------------------------------------------------------------------------
1973 WDI_AciAifsnType
1974 access category record
1975---------------------------------------------------------------------------*/
1976typedef struct
1977{
1978 wpt_uint8 rsvd : 1;
1979 wpt_uint8 aci : 2;
1980 wpt_uint8 acm : 1;
1981 wpt_uint8 aifsn : 4;
1982} WDI_AciAifsnType;
1983
1984/*---------------------------------------------------------------------------
1985 WDI_CWType
1986 contention window size
1987---------------------------------------------------------------------------*/
1988typedef struct
1989{
1990 wpt_uint8 max : 4;
1991 wpt_uint8 min : 4;
1992} WDI_CWType;
1993
1994/*---------------------------------------------------------------------------
1995 WDI_EdcaParamRecord
1996---------------------------------------------------------------------------*/
1997typedef struct
1998{
1999 /*Access Category Record*/
2000 WDI_AciAifsnType wdiACI;
2001
2002 /*Contention WIndow Size*/
2003 WDI_CWType wdiCW;
2004
2005 /*TX Oportunity Limit*/
2006 wpt_uint16 usTXOPLimit;
2007} WDI_EdcaParamRecord;
2008
2009/*---------------------------------------------------------------------------
2010 WDI_EDCAParamsType
2011---------------------------------------------------------------------------*/
2012typedef struct
2013{
2014 /*BSS Index*/
2015 wpt_uint8 ucBSSIdx;
2016
2017 /*?*/
2018 wpt_boolean bHighPerformance;
2019
2020 /*Best Effort*/
2021 WDI_EdcaParamRecord wdiACBE;
2022
2023 /*Background*/
2024 WDI_EdcaParamRecord wdiACBK;
2025
2026 /*Video*/
2027 WDI_EdcaParamRecord wdiACVI;
2028
2029 /*Voice*/
2030 WDI_EdcaParamRecord acvo; // voice
2031} WDI_EDCAParamsType;
2032
2033/* operMode in ADD BSS message */
2034#define WDI_BSS_OPERATIONAL_MODE_AP 0
2035#define WDI_BSS_OPERATIONAL_MODE_STA 1
2036
2037/*---------------------------------------------------------------------------
2038 WDI_ConfigBSSRspParamsType
2039---------------------------------------------------------------------------*/
2040typedef struct
2041{
2042 /*Status of the response*/
2043 WDI_Status wdiStatus;
2044
2045 /*BSSID of the BSS*/
2046 wpt_macAddr macBSSID;
2047
2048 /*BSS Index*/
2049 wpt_uint8 ucBSSIdx;
2050
2051 /*Unicast DPU signature*/
2052 wpt_uint8 ucUcastSig;
2053
2054 /*Broadcast DPU Signature*/
2055 wpt_uint8 ucBcastSig;
2056
2057 /*MAC Address of STA*/
2058 wpt_macAddr macSTA;
2059
2060 /*BSS STA ID*/
2061 wpt_uint8 ucSTAIdx;
2062
2063#ifdef WLAN_FEATURE_VOWIFI
2064 /*HAL fills in the tx power used for mgmt frames in this field */
2065 wpt_int8 ucTxMgmtPower;
2066#endif
2067
2068}WDI_ConfigBSSRspParamsType;
2069
2070/*---------------------------------------------------------------------------
2071 WDI_DelBSSReqParamsType
2072---------------------------------------------------------------------------*/
2073typedef struct
2074{
2075 /*BSS Index of the BSS*/
2076 wpt_uint8 ucBssIdx;
2077
2078 /*Request status callback offered by UMAC - it is called if the current
2079 req has returned PENDING as status; it delivers the status of sending
2080 the message over the BUS */
2081 WDI_ReqStatusCb wdiReqStatusCB;
2082
2083 /*The user data passed in by UMAC, it will be sent back when the above
2084 function pointer will be called */
2085 void* pUserData;
2086}WDI_DelBSSReqParamsType;
2087
2088/*---------------------------------------------------------------------------
2089 WDI_DelBSSRspParamsType
2090---------------------------------------------------------------------------*/
2091typedef struct
2092{
2093 /*Status of the response*/
2094 WDI_Status wdiStatus;
2095
2096 /*BSSID of the BSS*/
2097 wpt_macAddr macBSSID;
2098
2099 wpt_uint8 ucBssIdx;
2100
2101}WDI_DelBSSRspParamsType;
2102
2103/*---------------------------------------------------------------------------
2104 WDI_ConfigSTARspParamsType
2105---------------------------------------------------------------------------*/
2106typedef struct
2107{
2108 /*Status of the response*/
2109 WDI_Status wdiStatus;
2110
2111 /*STA Idx allocated by HAL*/
2112 wpt_uint8 ucSTAIdx;
2113
2114 /*MAC Address of STA*/
2115 wpt_macAddr macSTA;
2116
2117 /* BSSID Index of BSS to which the station is associated */
2118 wpt_uint8 ucBssIdx;
2119
2120 /* DPU Index - PTK */
2121 wpt_uint8 ucDpuIndex;
2122
2123 /* Bcast DPU Index - GTK */
2124 wpt_uint8 ucBcastDpuIndex;
2125
2126 /* Management DPU Index - IGTK - Why is it called bcastMgmtDpuIdx? */
2127 wpt_uint8 ucBcastMgmtDpuIdx;
2128
2129 /*Unicast DPU signature*/
2130 wpt_uint8 ucUcastSig;
2131
2132 /*Broadcast DPU Signature*/
2133 wpt_uint8 ucBcastSig;
2134
2135 /* IGTK DPU signature*/
2136 wpt_uint8 ucMgmtSig;
2137
2138}WDI_ConfigSTARspParamsType;
2139
2140/*---------------------------------------------------------------------------
2141 WDI_PostAssocRspParamsType
2142---------------------------------------------------------------------------*/
2143typedef struct
2144{
2145 /*Status of the response*/
2146 WDI_Status wdiStatus;
2147
2148 /*Parameters related to the BSS*/
2149 WDI_ConfigBSSRspParamsType bssParams;
2150
2151 /*Parameters related to the self STA*/
2152 WDI_ConfigSTARspParamsType staParams;
2153
2154}WDI_PostAssocRspParamsType;
2155
2156/*---------------------------------------------------------------------------
2157 WDI_DelSTAReqParamsType
2158---------------------------------------------------------------------------*/
2159typedef struct
2160{
2161 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
2162 wpt_uint8 ucSTAIdx;
2163
2164 /*Request status callback offered by UMAC - it is called if the current
2165 req has returned PENDING as status; it delivers the status of sending
2166 the message over the BUS */
2167 WDI_ReqStatusCb wdiReqStatusCB;
2168
2169 /*The user data passed in by UMAC, it will be sent back when the above
2170 function pointer will be called */
2171 void* pUserData;
2172}WDI_DelSTAReqParamsType;
2173
2174/*---------------------------------------------------------------------------
2175 WDI_DelSTARspParamsType
2176---------------------------------------------------------------------------*/
2177typedef struct
2178{
2179 /*Status of the response*/
2180 WDI_Status wdiStatus;
2181
2182 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
2183 wpt_uint8 ucSTAIdx;
2184}WDI_DelSTARspParamsType;
2185
2186/*---------------------------------------------------------------------------
2187 WDI_EncryptType
2188---------------------------------------------------------------------------*/
2189typedef enum
2190{
2191 WDI_ENCR_NONE,
2192 WDI_ENCR_WEP40,
2193 WDI_ENCR_WEP104,
2194 WDI_ENCR_TKIP,
2195 WDI_ENCR_CCMP,
2196#if defined(FEATURE_WLAN_WAPI)
2197 WDI_ENCR_WPI,
2198#endif
2199 WDI_ENCR_AES_128_CMAC
2200} WDI_EncryptType;
2201
2202/*---------------------------------------------------------------------------
2203 WDI_KeyDirectionType
2204---------------------------------------------------------------------------*/
2205typedef enum
2206{
2207 WDI_TX_ONLY,
2208 WDI_RX_ONLY,
2209 WDI_TX_RX,
Jeff Johnson295189b2012-06-20 16:38:30 -07002210 WDI_TX_DEFAULT,
Jeff Johnson295189b2012-06-20 16:38:30 -07002211 WDI_DONOT_USE_KEY_DIRECTION
2212} WDI_KeyDirectionType;
2213
2214#define WDI_MAX_ENCR_KEYS 4
2215#define WDI_MAX_KEY_LENGTH 32
2216#if defined(FEATURE_WLAN_WAPI)
2217#define WDI_MAX_KEY_RSC_LEN 16
2218#define WDI_WAPI_KEY_RSC_LEN 16
2219#else
2220#define WDI_MAX_KEY_RSC_LEN 8
2221#endif
2222
2223typedef struct
2224{
2225 /* Key ID */
2226 wpt_uint8 keyId;
2227 /* 0 for multicast */
2228 wpt_uint8 unicast;
2229 /* Key Direction */
2230 WDI_KeyDirectionType keyDirection;
2231 /* Usage is unknown */
2232 wpt_uint8 keyRsc[WDI_MAX_KEY_RSC_LEN];
2233 /* =1 for authenticator, =0 for supplicant */
2234 wpt_uint8 paeRole;
2235 wpt_uint16 keyLength;
2236 wpt_uint8 key[WDI_MAX_KEY_LENGTH];
2237
2238}WDI_KeysType;
2239
2240/*---------------------------------------------------------------------------
2241 WDI_SetBSSKeyReqInfoType
2242---------------------------------------------------------------------------*/
2243typedef struct
2244{
2245 /*BSS Index of the BSS*/
2246 wpt_uint8 ucBssIdx;
2247
2248 /*Encryption Type used with peer*/
2249 WDI_EncryptType wdiEncType;
2250
2251 /*Number of keys*/
2252 wpt_uint8 ucNumKeys;
2253
2254 /*Array of keys.*/
2255 WDI_KeysType aKeys[WDI_MAX_ENCR_KEYS];
2256
2257 /*Control for Replay Count, 1= Single TID based replay count on Tx
2258 0 = Per TID based replay count on TX */
2259 wpt_uint8 ucSingleTidRc;
2260}WDI_SetBSSKeyReqInfoType;
2261
2262/*---------------------------------------------------------------------------
2263 WDI_SetBSSKeyReqParamsType
2264---------------------------------------------------------------------------*/
2265typedef struct
2266{
2267 /*Key Info */
2268 WDI_SetBSSKeyReqInfoType wdiBSSKeyInfo;
2269
2270 /*Request status callback offered by UMAC - it is called if the current
2271 req has returned PENDING as status; it delivers the status of sending
2272 the message over the BUS */
2273 WDI_ReqStatusCb wdiReqStatusCB;
2274
2275 /*The user data passed in by UMAC, it will be sent back when the above
2276 function pointer will be called */
2277 void* pUserData;
2278}WDI_SetBSSKeyReqParamsType;
2279
2280/*---------------------------------------------------------------------------
2281 WDI_WepType
2282---------------------------------------------------------------------------*/
2283typedef enum
2284{
2285 WDI_WEP_STATIC,
2286 WDI_WEP_DYNAMIC
2287
2288} WDI_WepType;
2289
2290/*---------------------------------------------------------------------------
2291 WDI_RemoveBSSKeyReqInfoType
2292---------------------------------------------------------------------------*/
2293typedef struct
2294{
2295 /*BSS Index of the BSS*/
2296 wpt_uint8 ucBssIdx;
2297
2298 /*Encryption Type used with peer*/
2299 WDI_EncryptType wdiEncType;
2300
2301 /*Key Id*/
2302 wpt_uint8 ucKeyId;
2303
2304 /*STATIC/DYNAMIC. Used in Nullifying in Key Descriptors for Static/Dynamic
2305 keys*/
2306 WDI_WepType wdiWEPType;
2307}WDI_RemoveBSSKeyReqInfoType;
2308
2309/*---------------------------------------------------------------------------
2310 WDI_RemoveBSSKeyReqParamsType
2311---------------------------------------------------------------------------*/
2312typedef struct
2313{
2314 /*Key Info */
2315 WDI_RemoveBSSKeyReqInfoType wdiKeyInfo;
2316
2317 /*Request status callback offered by UMAC - it is called if the current
2318 req has returned PENDING as status; it delivers the status of sending
2319 the message over the BUS */
2320 WDI_ReqStatusCb wdiReqStatusCB;
2321
2322 /*The user data passed in by UMAC, it will be sent back when the above
2323 function pointer will be called */
2324 void* pUserData;
2325}WDI_RemoveBSSKeyReqParamsType;
2326
2327/*---------------------------------------------------------------------------
2328 WDI_SetSTAKeyReqInfoType
2329---------------------------------------------------------------------------*/
2330typedef struct
2331{
2332 /*STA Index*/
2333 wpt_uint8 ucSTAIdx;
2334
2335 /*Encryption Type used with peer*/
2336 WDI_EncryptType wdiEncType;
2337
2338 /*STATIC/DYNAMIC*/
2339 WDI_WepType wdiWEPType;
2340
2341 /*Default WEP key, valid only for static WEP, must between 0 and 3.*/
2342 wpt_uint8 ucDefWEPIdx;
2343
2344 /*Number of keys*/
2345 wpt_uint8 ucNumKeys;
2346
2347 /*Array of keys.*/
2348 WDI_KeysType wdiKey[WDI_MAX_ENCR_KEYS];
2349
2350 /*Control for Replay Count, 1= Single TID based replay count on Tx
2351 0 = Per TID based replay count on TX */
2352 wpt_uint8 ucSingleTidRc;
2353}WDI_SetSTAKeyReqInfoType;
2354
2355/*---------------------------------------------------------------------------
2356 WDI_ConfigBSSReqInfoType
2357---------------------------------------------------------------------------*/
2358typedef struct
2359{
2360 /*Peer BSSID*/
2361 wpt_macAddr macBSSID;
2362
2363 /*Self MAC Address*/
2364 wpt_macAddr macSelfAddr;
2365
2366 /*BSS Type*/
2367 WDI_BssType wdiBSSType;
2368
2369 /*Operational Mode: AP =0, STA = 1*/
2370 wpt_uint8 ucOperMode;
2371
2372 /*Network Type*/
2373 WDI_NwType wdiNWType;
2374
2375 /*Used to classify PURE_11G/11G_MIXED to program MTU*/
2376 wpt_uint8 ucShortSlotTimeSupported;
2377
2378 /*Co-exist with 11a STA*/
2379 wpt_uint8 ucllaCoexist;
2380
2381 /*Co-exist with 11b STA*/
2382 wpt_uint8 ucllbCoexist;
2383
2384 /*Co-exist with 11g STA*/
2385 wpt_uint8 ucllgCoexist;
2386
2387 /*Coexistence with 11n STA*/
2388 wpt_uint8 ucHT20Coexist;
2389
2390 /*Non GF coexist flag*/
2391 wpt_uint8 ucllnNonGFCoexist;
2392
2393 /*TXOP protection support*/
2394 wpt_uint8 ucTXOPProtectionFullSupport;
2395
2396 /*RIFS mode*/
2397 wpt_uint8 ucRIFSMode;
2398
2399 /*Beacon Interval in TU*/
2400 wpt_uint16 usBeaconInterval;
2401
2402 /*DTIM period*/
2403 wpt_uint8 ucDTIMPeriod;
2404
2405 /*TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz*/
2406 wpt_uint8 ucTXChannelWidthSet;
2407
2408 /*Operating channel*/
2409 wpt_uint8 ucCurrentOperChannel;
2410
2411 /*Extension channel for channel bonding*/
2412 wpt_uint8 ucCurrentExtChannel;
2413
2414 /*Context of the station being added in HW.*/
2415 WDI_ConfigStaReqInfoType wdiSTAContext;
2416
2417 /*SSID of the BSS*/
2418 WDI_MacSSid wdiSSID;
2419
2420 /*HAL should update the existing BSS entry, if this flag is set. UMAC will
2421 set this flag in case of RE-ASSOC, where we want to reuse the old BSSID*/
2422 WDI_ConfigAction wdiAction;
2423
2424 /*Basic Rate Set*/
2425 WDI_RateSet wdiRateSet;
2426
2427 /*Enable/Disable HT capabilities of the BSS*/
2428 wpt_uint8 ucHTCapable;
2429
2430 /* Enable/Disable OBSS protection */
2431 wpt_uint8 ucObssProtEnabled;
2432
2433 /*RMF enabled/disabled*/
2434 wpt_uint8 ucRMFEnabled;
2435
2436 /*Determines the current HT Operating Mode operating mode of the
2437 802.11n STA*/
2438 WDI_HTOperatingMode wdiHTOperMod;
2439
2440 /*Dual CTS Protection: 0 - Unused, 1 - Used*/
2441 wpt_uint8 ucDualCTSProtection;
2442
2443 /* Probe Response Max retries */
2444 wpt_uint8 ucMaxProbeRespRetryLimit;
2445
2446 /* To Enable Hidden ssid */
2447 wpt_uint8 bHiddenSSIDEn;
2448
2449 /* To Enable Disable FW Proxy Probe Resp */
2450 wpt_uint8 bProxyProbeRespEn;
2451
2452 /* Boolean to indicate if EDCA params are valid. UMAC might not have valid
2453 EDCA params or might not desire to apply EDCA params during config BSS.
2454 0 implies Not Valid ; Non-Zero implies valid*/
2455 wpt_uint8 ucEDCAParamsValid;
2456
2457 /*EDCA Parameters for BK*/
2458 WDI_EdcaParamRecord wdiBKEDCAParams;
2459
2460 /*EDCA Parameters for BE*/
2461 WDI_EdcaParamRecord wdiBEEDCAParams;
2462
2463 /*EDCA Parameters for VI*/
2464 WDI_EdcaParamRecord wdiVIEDCAParams;
2465
2466 /*EDCA Parameters for VO*/
2467 WDI_EdcaParamRecord wdiVOEDCAParams;
2468
2469#ifdef WLAN_FEATURE_VOWIFI
2470 /*max power to be used after applying the power constraint, if any */
2471 wpt_int8 cMaxTxPower;
2472#endif
2473
2474 /* Persona for the BSS can be STA,AP,GO,CLIENT, same as Connection Mode */
2475 wpt_uint8 ucPersona;
2476
2477 /* Spectrum Mangement Indicator */
2478 wpt_uint8 bSpectrumMgtEn;
2479
2480#ifdef WLAN_FEATURE_VOWIFI_11R
2481 wpt_uint8 bExtSetStaKeyParamValid;
2482 WDI_SetSTAKeyReqInfoType wdiExtSetKeyParam;
2483#endif
2484
Jeff Johnsone7245742012-09-05 17:12:55 -07002485#ifdef WLAN_FEATURE_11AC
2486 wpt_uint8 ucVhtCapableSta;
2487 wpt_uint8 ucVhtTxChannelWidthSet;
2488#endif
2489
Jeff Johnson295189b2012-06-20 16:38:30 -07002490}WDI_ConfigBSSReqInfoType;
2491
2492/*---------------------------------------------------------------------------
2493 WDI_PostAssocReqParamsType
2494---------------------------------------------------------------------------*/
2495typedef struct
2496{
2497 /*Config STA arguments.*/
2498 WDI_ConfigStaReqInfoType wdiSTAParams;
2499
2500 /*Config BSS Arguments*/
2501 WDI_ConfigBSSReqInfoType wdiBSSParams;
2502
2503 /*Request status callback offered by UMAC - it is called if the current
2504 req has returned PENDING as status; it delivers the status of sending
2505 the message over the BUS */
2506 WDI_ReqStatusCb wdiReqStatusCB;
2507
2508 /*The user data passed in by UMAC, it will be sent back when the above
2509 function pointer will be called */
2510 void* pUserData;
2511}WDI_PostAssocReqParamsType;
2512
2513/*---------------------------------------------------------------------------
2514 WDI_ConfigBSSReqParamsType
2515---------------------------------------------------------------------------*/
2516typedef struct
2517{
2518 /*Info for the Join request that will be sent down to the device*/
2519 WDI_ConfigBSSReqInfoType wdiReqInfo;
2520
2521 /*Request status callback offered by UMAC - it is called if the current
2522 req has returned PENDING as status; it delivers the status of sending
2523 the message over the BUS */
2524 WDI_ReqStatusCb wdiReqStatusCB;
2525
2526 /*The user data passed in by UMAC, it will be sent back when the above
2527 function pointer will be called */
2528 void* pUserData;
2529}WDI_ConfigBSSReqParamsType;
2530
2531/*---------------------------------------------------------------------------
2532 WDI_SetSTAKeyReqParamsType
2533---------------------------------------------------------------------------*/
2534typedef struct
2535{
2536 /*Key Info*/
2537 WDI_SetSTAKeyReqInfoType wdiKeyInfo;
2538
2539 /*Request status callback offered by UMAC - it is called if the current
2540 req has returned PENDING as status; it delivers the status of sending
2541 the message over the BUS */
2542 WDI_ReqStatusCb wdiReqStatusCB;
2543
2544 /*The user data passed in by UMAC, it will be sent back when the above
2545 function pointer will be called */
2546 void* pUserData;
2547}WDI_SetSTAKeyReqParamsType;
2548
2549/*---------------------------------------------------------------------------
2550 WDI_RemoveSTAKeyReqInfoType
2551---------------------------------------------------------------------------*/
2552typedef struct
2553{
2554 /*STA Index*/
2555 wpt_uint8 ucSTAIdx;
2556
2557 /*Encryption Type used with peer*/
2558 WDI_EncryptType wdiEncType;
2559
2560 /*Key Id*/
2561 wpt_uint8 ucKeyId;
2562
2563 /*Whether to invalidate the Broadcast key or Unicast key. In case of WEP,
2564 the same key is used for both broadcast and unicast.*/
2565 wpt_uint8 ucUnicast;
2566}WDI_RemoveSTAKeyReqInfoType;
2567
2568/*---------------------------------------------------------------------------
2569 WDI_RemoveSTAKeyReqParamsType
2570---------------------------------------------------------------------------*/
2571typedef struct
2572{
2573 /*Key Info */
2574 WDI_RemoveSTAKeyReqInfoType wdiKeyInfo;
2575
2576 /*Request status callback offered by UMAC - it is called if the current
2577 req has returned PENDING as status; it delivers the status of sending
2578 the message over the BUS */
2579 WDI_ReqStatusCb wdiReqStatusCB;
2580
2581 /*The user data passed in by UMAC, it will be sent back when the above
2582 function pointer will be called */
2583 void* pUserData;
2584}WDI_RemoveSTAKeyReqParamsType;
2585
2586/*---------------------------------------------------------------------------
2587 QOS Parameters
2588---------------------------------------------------------------------------*/
2589
2590/*---------------------------------------------------------------------------
2591 WDI_TSInfoTfc
2592---------------------------------------------------------------------------*/
2593typedef struct
2594{
2595 wpt_uint16 ackPolicy:2;
2596 wpt_uint16 userPrio:3;
2597 wpt_uint16 psb:1;
2598 wpt_uint16 aggregation : 1;
2599 wpt_uint16 accessPolicy : 2;
2600 wpt_uint16 direction : 2;
2601 wpt_uint16 tsid : 4;
2602 wpt_uint16 trafficType : 1;
2603} WDI_TSInfoTfc;
2604
2605/*---------------------------------------------------------------------------
2606 WDI_TSInfoSch
2607---------------------------------------------------------------------------*/
2608typedef struct
2609{
2610 wpt_uint8 rsvd : 7;
2611 wpt_uint8 schedule : 1;
2612} WDI_TSInfoSch;
2613
2614/*---------------------------------------------------------------------------
2615 WDI_TSInfoType
2616---------------------------------------------------------------------------*/
2617typedef struct
2618{
2619 WDI_TSInfoTfc wdiTraffic;
2620 WDI_TSInfoSch wdiSchedule;
2621} WDI_TSInfoType;
2622
2623/*---------------------------------------------------------------------------
2624 WDI_TspecIEType
2625---------------------------------------------------------------------------*/
2626typedef struct
2627{
2628 wpt_uint8 ucType;
2629 wpt_uint8 ucLength;
2630 WDI_TSInfoType wdiTSinfo;
2631 wpt_uint16 usNomMsduSz;
2632 wpt_uint16 usMaxMsduSz;
2633 wpt_uint32 uMinSvcInterval;
2634 wpt_uint32 uMaxSvcInterval;
2635 wpt_uint32 uInactInterval;
2636 wpt_uint32 uSuspendInterval;
2637 wpt_uint32 uSvcStartTime;
2638 wpt_uint32 uMinDataRate;
2639 wpt_uint32 uMeanDataRate;
2640 wpt_uint32 uPeakDataRate;
2641 wpt_uint32 uMaxBurstSz;
2642 wpt_uint32 uDelayBound;
2643 wpt_uint32 uMinPhyRate;
2644 wpt_uint16 usSurplusBw;
2645 wpt_uint16 usMediumTime;
2646}WDI_TspecIEType;
2647
2648/*---------------------------------------------------------------------------
2649 WDI_AddTSReqInfoType
2650---------------------------------------------------------------------------*/
2651typedef struct
2652{
2653 /*STA Index*/
2654 wpt_uint8 ucSTAIdx;
2655
2656 /*Identifier for TSpec*/
2657 wpt_uint16 ucTspecIdx;
2658
2659 /*Tspec IE negotiated OTA*/
2660 WDI_TspecIEType wdiTspecIE;
2661
2662 /*UAPSD delivery and trigger enabled flags */
2663 wpt_uint8 ucUapsdFlags;
2664
2665 /*SI for each AC*/
2666 wpt_uint8 ucServiceInterval[WDI_MAX_NO_AC];
2667
2668 /*Suspend Interval for each AC*/
2669 wpt_uint8 ucSuspendInterval[WDI_MAX_NO_AC];
2670
2671 /*DI for each AC*/
2672 wpt_uint8 ucDelayedInterval[WDI_MAX_NO_AC];
2673
2674}WDI_AddTSReqInfoType;
2675
2676
2677/*---------------------------------------------------------------------------
2678 WDI_AddTSReqParamsType
2679---------------------------------------------------------------------------*/
2680typedef struct
2681{
2682 /*TSpec Info */
2683 WDI_AddTSReqInfoType wdiTsInfo;
2684
2685 /*Request status callback offered by UMAC - it is called if the current
2686 req has returned PENDING as status; it delivers the status of sending
2687 the message over the BUS */
2688 WDI_ReqStatusCb wdiReqStatusCB;
2689
2690 /*The user data passed in by UMAC, it will be sent back when the above
2691 function pointer will be called */
2692 void* pUserData;
2693}WDI_AddTSReqParamsType;
2694
2695/*---------------------------------------------------------------------------
2696 WDI_DelTSReqInfoType
2697---------------------------------------------------------------------------*/
2698typedef struct
2699{
2700 /*STA Index*/
2701 wpt_uint8 ucSTAIdx;
2702
2703 /*Identifier for TSpec*/
2704 wpt_uint16 ucTspecIdx;
2705
2706 /*BSSID of the BSS*/
2707 wpt_macAddr macBSSID;
2708}WDI_DelTSReqInfoType;
2709
2710/*---------------------------------------------------------------------------
2711 WDI_DelTSReqParamsType
2712---------------------------------------------------------------------------*/
2713typedef struct
2714{
2715 /*Del TSpec Info*/
2716 WDI_DelTSReqInfoType wdiDelTSInfo;
2717
2718 /*Request status callback offered by UMAC - it is called if the current
2719 req has returned PENDING as status; it delivers the status of sending
2720 the message over the BUS */
2721 WDI_ReqStatusCb wdiReqStatusCB;
2722
2723 /*The user data passed in by UMAC, it will be sent back when the above
2724 function pointer will be called */
2725 void* pUserData;
2726}WDI_DelTSReqParamsType;
2727
2728/*---------------------------------------------------------------------------
2729 WDI_UpdateEDCAInfoType
2730---------------------------------------------------------------------------*/
2731typedef struct
2732{
krunal soni0b366c02013-07-17 19:55:57 -07002733 /*BSS Index of the BSS*/
2734 wpt_uint16 ucBssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07002735
Jeff Johnson295189b2012-06-20 16:38:30 -07002736 /*EDCA params for BE*/
2737 WDI_EdcaParamRecord wdiEdcaBEInfo;
2738
2739 /*EDCA params for BK*/
2740 WDI_EdcaParamRecord wdiEdcaBKInfo;
2741
2742 /*EDCA params for VI*/
2743 WDI_EdcaParamRecord wdiEdcaVIInfo;
2744
2745 /*EDCA params for VO*/
2746 WDI_EdcaParamRecord wdiEdcaVOInfo;
2747
2748}WDI_UpdateEDCAInfoType;
2749
2750/*---------------------------------------------------------------------------
2751 WDI_UpdateEDCAParamsType
2752---------------------------------------------------------------------------*/
2753typedef struct
2754{
2755 /*EDCA Info */
2756 WDI_UpdateEDCAInfoType wdiEDCAInfo;
2757
2758 /*Request status callback offered by UMAC - it is called if the current
2759 req has returned PENDING as status; it delivers the status of sending
2760 the message over the BUS */
2761 WDI_ReqStatusCb wdiReqStatusCB;
2762
2763 /*The user data passed in by UMAC, it will be sent back when the above
2764 function pointer will be called */
2765 void* pUserData;
2766}WDI_UpdateEDCAParamsType;
2767
2768/*---------------------------------------------------------------------------
2769 WDI_AddBASessionReqinfoType
2770---------------------------------------------------------------------------*/
2771typedef struct
2772{
2773 /*Indicates the station for which BA is added..*/
2774 wpt_uint8 ucSTAIdx;
2775
2776 /*The peer mac address*/
2777 wpt_macAddr macPeerAddr;
2778
2779 /*TID for which BA was negotiated*/
2780 wpt_uint8 ucBaTID;
2781
2782 /*Delayed or imediate */
2783 wpt_uint8 ucBaPolicy;
2784
2785 /*The number of buffers for this TID (baTID)*/
2786 wpt_uint16 usBaBufferSize;
2787
2788 /*BA timeout in TU's*/
2789 wpt_uint16 usBaTimeout;
2790
2791 /*b0..b3 - Fragment Number - Always set to 0
2792 b4..b15 - Starting Sequence Number of first MSDU for which this BA is setup*/
2793 wpt_uint16 usBaSSN;
2794
2795 /*Originator/Recipient*/
2796 wpt_uint8 ucBaDirection;
2797
2798}WDI_AddBASessionReqinfoType;
2799
2800
2801/*---------------------------------------------------------------------------
2802 WDI_AddBASessionReqParamsType
2803---------------------------------------------------------------------------*/
2804typedef struct
2805{
2806 /*BA Session Info Type*/
2807 WDI_AddBASessionReqinfoType wdiBASessionInfoType;
2808
2809 /*Request status callback offered by UMAC - it is called if the current
2810 req has returned PENDING as status; it delivers the status of sending
2811 the message over the BUS */
2812 WDI_ReqStatusCb wdiReqStatusCB;
2813
2814 /*The user data passed in by UMAC, it will be sent back when the above
2815 function pointer will be called */
2816 void* pUserData;
2817}WDI_AddBASessionReqParamsType;
2818
2819/*---------------------------------------------------------------------------
2820 WDI_AddBASessionRspParamsType
2821---------------------------------------------------------------------------*/
2822typedef struct
2823{
2824 /*Status of the response*/
2825 WDI_Status wdiStatus;
2826
2827 /* Dialog token */
2828 wpt_uint8 ucBaDialogToken;
2829
2830 /* TID for which the BA session has been setup */
2831 wpt_uint8 ucBaTID;
2832
2833 /* BA Buffer Size allocated for the current BA session */
2834 wpt_uint8 ucBaBufferSize;
2835
2836 /* BA session ID */
2837 wpt_uint16 usBaSessionID;
2838
2839 /* Reordering Window buffer */
2840 wpt_uint8 ucWinSize;
2841
2842 /*Station Index to id the sta */
2843 wpt_uint8 ucSTAIdx;
2844
2845 /* Starting Sequence Number */
2846 wpt_uint16 usBaSSN;
2847
2848}WDI_AddBASessionRspParamsType;
2849
2850/*---------------------------------------------------------------------------
Siddharth Bhal171788a2014-09-29 21:02:40 +05302851 WDI_SpoofMacAddrRspParamType
2852---------------------------------------------------------------------------*/
2853typedef struct
2854{
2855 /* wdi status */
2856 wpt_uint32 wdiStatus;
2857
2858 /* Reserved Field */
2859 wpt_uint32 reserved;
2860
2861}WDI_SpoofMacAddrRspParamType;
2862/*---------------------------------------------------------------------------
Siddharth Bhal64246172015-02-27 01:04:37 +05302863 WDI_GetFrameLogRspParamType
2864---------------------------------------------------------------------------*/
2865typedef struct
2866{
2867 /* wdi status */
2868 wpt_uint32 wdiStatus;
2869}WDI_GetFrameLogRspParamType;
2870/*---------------------------------------------------------------------------
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302871 WDI_FWLoggingInitRspParamType
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05302872---------------------------------------------------------------------------*/
2873typedef struct
2874{
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302875 //FW mail box address
2876 wpt_uint64 logMailBoxAddr;
2877 wpt_uint32 status;
2878 //Logging mail box version
2879 wpt_uint8 logMailBoxVer;
2880 //Qshrink is enabled
2881 wpt_boolean logCompressEnabled;
c_manjeecfd1efb2015-09-25 19:32:34 +05302882 /* store the size of fw mem dump */
2883 wpt_uint32 fw_mem_dump_max_size;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302884 //Reserved for future purpose
Siddharth Bhald1be97f2015-05-27 22:39:59 +05302885 wpt_uint32 reserved1;
2886 wpt_uint32 reserved2;
2887}WDI_FWLoggingInitRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302888
Gupta, Kapil7c34b322015-09-30 13:12:35 +05302889typedef struct
2890{
2891 /* wdi status */
2892 wpt_uint32 status;
2893}WDI_RssiMonitorStartRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302894
Gupta, Kapil7c34b322015-09-30 13:12:35 +05302895typedef struct
2896{
2897 /* wdi status */
2898 wpt_uint32 status;
2899}WDI_RssiMonitorStopRspParamType;
Sachin Ahuja715aafc2015-07-21 23:35:10 +05302900/*---------------------------------------------------------------------------
2901 WDI_FatalEventLogsRspParamType
2902---------------------------------------------------------------------------*/
2903typedef struct
2904{
2905 /* wdi status */
2906 wpt_uint32 wdiStatus;
2907}WDI_FatalEventLogsRspParamType;
2908
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05302909/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07002910 WDI_AddBAReqinfoType
2911---------------------------------------------------------------------------*/
2912typedef struct
2913{
2914 /*Indicates the station for which BA is added..*/
2915 wpt_uint8 ucSTAIdx;
2916
2917 /* Session Id */
2918 wpt_uint8 ucBaSessionID;
2919
2920 /* Reorder Window Size */
2921 wpt_uint8 ucWinSize;
2922
2923#ifdef FEATURE_ON_CHIP_REORDERING
2924 wpt_boolean bIsReorderingDoneOnChip;
2925#endif
2926
2927}WDI_AddBAReqinfoType;
2928
2929
2930/*---------------------------------------------------------------------------
2931 WDI_AddBAReqParamsType
2932---------------------------------------------------------------------------*/
2933typedef struct
2934{
2935 /*BA Info Type*/
2936 WDI_AddBAReqinfoType wdiBAInfoType;
2937
2938 /*Request status callback offered by UMAC - it is called if the current
2939 req has returned PENDING as status; it delivers the status of sending
2940 the message over the BUS */
2941 WDI_ReqStatusCb wdiReqStatusCB;
2942
2943 /*The user data passed in by UMAC, it will be sent back when the above
2944 function pointer will be called */
2945 void* pUserData;
2946}WDI_AddBAReqParamsType;
2947
2948
2949/*---------------------------------------------------------------------------
2950 WDI_AddBARspinfoType
2951---------------------------------------------------------------------------*/
2952typedef struct
2953{
2954 /*Status of the response*/
2955 WDI_Status wdiStatus;
2956
2957 /* Dialog token */
2958 wpt_uint8 ucBaDialogToken;
2959
2960}WDI_AddBARspinfoType;
2961
2962/*---------------------------------------------------------------------------
2963 WDI_TriggerBAReqCandidateType
2964---------------------------------------------------------------------------*/
2965typedef struct
2966{
2967 /* STA index */
2968 wpt_uint8 ucSTAIdx;
2969
2970 /* TID bit map for the STA's*/
2971 wpt_uint8 ucTidBitmap;
2972
2973}WDI_TriggerBAReqCandidateType;
2974
2975
2976/*---------------------------------------------------------------------------
2977 WDI_TriggerBAReqinfoType
2978---------------------------------------------------------------------------*/
2979typedef struct
2980{
2981 /*Indicates the station for which BA is added..*/
2982 wpt_uint8 ucSTAIdx;
2983
2984 /* Session Id */
2985 wpt_uint8 ucBASessionID;
2986
2987 /* Trigger BA Request candidate count */
2988 wpt_uint16 usBACandidateCnt;
2989
2990 /* WDI_TriggerBAReqCandidateType followed by this*/
2991
2992}WDI_TriggerBAReqinfoType;
2993
2994
2995/*---------------------------------------------------------------------------
2996 WDI_TriggerBAReqParamsType
2997---------------------------------------------------------------------------*/
2998typedef struct
2999{
3000 /*BA Trigger Info Type*/
3001 WDI_TriggerBAReqinfoType wdiTriggerBAInfoType;
3002
3003 /*Request status callback offered by UMAC - it is called if the current
3004 req has returned PENDING as status; it delivers the status of sending
3005 the message over the BUS */
3006 WDI_ReqStatusCb wdiReqStatusCB;
3007
3008 /*The user data passed in by UMAC, it will be sent back when the above
3009 function pointer will be called */
3010 void* pUserData;
3011}WDI_TriggerBAReqParamsType;
3012
3013/*---------------------------------------------------------------------------
3014 WDI_AddBAInfoType
3015---------------------------------------------------------------------------*/
3016typedef struct
3017{
3018 wpt_uint16 fBaEnable : 1;
3019 wpt_uint16 startingSeqNum: 12;
3020 wpt_uint16 reserved : 3;
3021}WDI_AddBAInfoType;
3022
3023/*---------------------------------------------------------------------------
3024 WDI_TriggerBARspCandidateType
3025---------------------------------------------------------------------------*/
3026#define STA_MAX_TC 8
3027
3028typedef struct
3029{
3030 /* STA index */
3031 wpt_macAddr macSTA;
3032
3033 /* BA Info */
3034 WDI_AddBAInfoType wdiBAInfo[STA_MAX_TC];
3035}WDI_TriggerBARspCandidateType;
3036
3037/*---------------------------------------------------------------------------
3038 WDI_TriggerBARspParamsType
3039---------------------------------------------------------------------------*/
3040typedef struct
3041{
3042 /*Status of the response*/
3043 WDI_Status wdiStatus;
3044
3045 /*BSSID of the BSS*/
3046 wpt_macAddr macBSSID;
3047
3048 /* Trigger BA response candidate count */
3049 wpt_uint16 usBaCandidateCnt;
3050
3051 /* WDI_TriggerBARspCandidateType followed by this*/
3052
3053}WDI_TriggerBARspParamsType;
3054
3055/*---------------------------------------------------------------------------
3056 WDI_DelBAReqinfoType
3057---------------------------------------------------------------------------*/
3058typedef struct
3059{
3060 /*Indicates the station for which BA is added..*/
3061 wpt_uint8 ucSTAIdx;
3062
3063 /*TID for which BA was negotiated*/
3064 wpt_uint8 ucBaTID;
3065
3066 /*Originator/Recipient*/
3067 wpt_uint8 ucBaDirection;
3068
3069}WDI_DelBAReqinfoType;
3070
3071/*---------------------------------------------------------------------------
3072 WDI_DelBAReqParamsType
3073---------------------------------------------------------------------------*/
3074typedef struct
3075{
3076 /*BA Info */
3077 WDI_DelBAReqinfoType wdiBAInfo;
3078
3079 /*Request status callback offered by UMAC - it is called if the current
3080 req has returned PENDING as status; it delivers the status of sending
3081 the message over the BUS */
3082 WDI_ReqStatusCb wdiReqStatusCB;
3083
3084 /*The user data passed in by UMAC, it will be sent back when the above
3085 function pointer will be called */
3086 void* pUserData;
3087}WDI_DelBAReqParamsType;
3088
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -08003089/*---------------------------------------------------------------------------
3090 WDI_UpdateChannelReqinfoType
3091---------------------------------------------------------------------------*/
3092typedef struct
3093{
3094 /** primary 20 MHz channel frequency in mhz */
3095 wpt_uint32 mhz;
3096 /** Center frequency 1 in MHz*/
3097 wpt_uint32 band_center_freq1;
3098 /** Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode*/
3099 wpt_uint32 band_center_freq2;
3100 /* The first 26 bits are a bit mask to indicate any channel flags,
3101 (see WLAN_HAL_CHAN_FLAG*)
3102 The last 6 bits indicate the mode (see tChannelPhyModeType)*/
3103 wpt_uint32 channel_info;
3104 /** contains min power, max power, reg power and reg class id. */
3105 wpt_uint32 reg_info_1;
3106 /** contains antennamax */
3107 wpt_uint32 reg_info_2;
3108}WDI_UpdateChannelReqinfoType;
3109
3110typedef struct
3111{
3112 wpt_uint8 numchan;
3113 WDI_UpdateChannelReqinfoType *pchanParam;
3114}WDI_UpdateChannelReqType;
3115/*---------------------------------------------------------------------------
3116 WDI_UpdateChReqParamsType
3117---------------------------------------------------------------------------*/
3118typedef struct
3119{
3120 /*BA Info */
3121 WDI_UpdateChannelReqType wdiUpdateChanParams;
3122
3123 /*Request status callback offered by UMAC - it is called if the current
3124 req has returned PENDING as status; it delivers the status of sending
3125 the message over the BUS */
3126 WDI_ReqStatusCb wdiReqStatusCB;
3127
3128 /*The user data passed in by UMAC, it will be sent back when the above
3129 function pointer will be called */
3130 void* pUserData;
3131}WDI_UpdateChReqParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003132
3133/*---------------------------------------------------------------------------
3134 WDI_SwitchCHRspParamsType
3135---------------------------------------------------------------------------*/
3136typedef struct
3137{
3138 /*Status of the response*/
3139 WDI_Status wdiStatus;
3140
3141 /*Indicates the channel that WLAN is on*/
3142 wpt_uint8 ucChannel;
3143
3144#ifdef WLAN_FEATURE_VOWIFI
3145 /*HAL fills in the tx power used for mgmt frames in this field.*/
3146 wpt_int8 ucTxMgmtPower;
3147#endif
3148
3149}WDI_SwitchCHRspParamsType;
3150
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08003151/*--------------------------------------------------------------------
3152 WDI_SwitchChRspParamsType_V1
3153--------------------------------------------------------------------*/
3154typedef struct
3155{
3156 /*Status of the response*/
3157 WDI_Status wdiStatus;
3158
3159 /*Indicates the channel that WLAN is on*/
3160 wpt_uint8 ucChannel;
3161
3162#ifdef WLAN_FEATURE_VOWIFI
3163 /*HAL fills in the tx power used for mgmt frames in this field.*/
3164 wpt_int8 ucTxMgmtPower;
3165#endif
3166
3167 /* Source of Channel Switch */
3168 WDI_ChanSwitchSource channelSwitchSrc;
3169}WDI_SwitchChRspParamsType_V1;
3170
Jeff Johnson295189b2012-06-20 16:38:30 -07003171/*---------------------------------------------------------------------------
3172 WDI_ConfigSTAReqParamsType
3173---------------------------------------------------------------------------*/
3174typedef struct
3175{
3176 /*Info for the Join request that will be sent down to the device*/
3177 WDI_ConfigStaReqInfoType wdiReqInfo;
3178
3179 /*Request status callback offered by UMAC - it is called if the current
3180 req has returned PENDING as status; it delivers the status of sending
3181 the message over the BUS */
3182 WDI_ReqStatusCb wdiReqStatusCB;
3183
3184 /*The user data passed in by UMAC, it will be sent back when the above
3185 function pointer will be called */
3186 void* pUserData;
3187}WDI_ConfigSTAReqParamsType;
3188
3189
3190/*---------------------------------------------------------------------------
3191 WDI_UpdateBeaconParamsInfoType
3192---------------------------------------------------------------------------*/
3193
3194typedef struct
3195{
3196 /*BSS Index of the BSS*/
3197 wpt_uint8 ucBssIdx;
3198
3199 /*shortPreamble mode. HAL should update all the STA rates when it
3200 receives this message*/
3201 wpt_uint8 ucfShortPreamble;
3202 /* short Slot time.*/
3203 wpt_uint8 ucfShortSlotTime;
3204 /* Beacon Interval */
3205 wpt_uint16 usBeaconInterval;
3206 /*Protection related */
3207 wpt_uint8 ucllaCoexist;
3208 wpt_uint8 ucllbCoexist;
3209 wpt_uint8 ucllgCoexist;
3210 wpt_uint8 ucHt20MhzCoexist;
3211 wpt_uint8 ucllnNonGFCoexist;
3212 wpt_uint8 ucfLsigTXOPProtectionFullSupport;
3213 wpt_uint8 ucfRIFSMode;
3214
3215 wpt_uint16 usChangeBitmap;
3216}WDI_UpdateBeaconParamsInfoType;
3217
Mohit Khanna4a70d262012-09-11 16:30:12 -07003218#ifdef WLAN_FEATURE_11AC
3219typedef struct
3220{
3221 wpt_uint16 opMode;
3222 wpt_uint16 staId;
3223}WDI_UpdateVHTOpMode;
3224#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003225
3226/*---------------------------------------------------------------------------
3227 WDI_UpdateBeaconParamsType
3228---------------------------------------------------------------------------*/
3229typedef struct
3230{
3231 /*Update Beacon Params Info*/
3232 WDI_UpdateBeaconParamsInfoType wdiUpdateBeaconParamsInfo;
3233
3234 /*Request status callback offered by UMAC - it is called if the current
3235 req has returned PENDING as status; it delivers the status of sending
3236 the message over the BUS */
3237 WDI_ReqStatusCb wdiReqStatusCB;
3238
3239 /*The user data passed in by UMAC, it will be sent back when the above
3240 function pointer will be called */
3241 void* pUserData;
3242}WDI_UpdateBeaconParamsType;
3243
3244/*---------------------------------------------------------------------------
3245 WDI_SendBeaconParamsInfoType
3246---------------------------------------------------------------------------*/
3247
3248typedef struct {
3249
3250 /*BSSID of the BSS*/
3251 wpt_macAddr macBSSID;
3252
3253 /* Beacon data */
3254 wpt_uint8 beacon[WDI_BEACON_TEMPLATE_SIZE];
3255
3256 /* length of the template */
3257 wpt_uint32 beaconLength;
3258
Jeff Johnson295189b2012-06-20 16:38:30 -07003259 /* TIM IE offset from the beginning of the template.*/
3260 wpt_uint32 timIeOffset;
Jeff Johnson295189b2012-06-20 16:38:30 -07003261
Jeff Johnson295189b2012-06-20 16:38:30 -07003262 /* P2P IE offset from the beginning of the template */
3263 wpt_uint16 usP2PIeOffset;
Jeff Johnson295189b2012-06-20 16:38:30 -07003264} WDI_SendBeaconParamsInfoType;
3265
3266/*---------------------------------------------------------------------------
3267 WDI_SendBeaconParamsType
3268---------------------------------------------------------------------------*/
3269typedef struct
3270{
3271 /*Send Beacon Params Info*/
3272 WDI_SendBeaconParamsInfoType wdiSendBeaconParamsInfo;
3273
3274 /*Request status callback offered by UMAC - it is called if the current
3275 req has returned PENDING as status; it delivers the status of sending
3276 the message over the BUS */
3277 WDI_ReqStatusCb wdiReqStatusCB;
3278
3279 /*The user data passed in by UMAC, it will be sent back when the above
3280 function pointer will be called */
3281 void* pUserData;
3282}WDI_SendBeaconParamsType;
3283
3284/*---------------------------------------------------------------------------
3285 WDI_LinkStateType
3286---------------------------------------------------------------------------*/
3287typedef enum
3288{
3289 WDI_LINK_IDLE_STATE = 0,
3290 WDI_LINK_PREASSOC_STATE = 1,
3291 WDI_LINK_POSTASSOC_STATE = 2,
3292 WDI_LINK_AP_STATE = 3,
3293 WDI_LINK_IBSS_STATE = 4,
3294
3295 // BT-AMP Case
3296 WDI_LINK_BTAMP_PREASSOC_STATE = 5,
3297 WDI_LINK_BTAMP_POSTASSOC_STATE = 6,
3298 WDI_LINK_BTAMP_AP_STATE = 7,
3299 WDI_LINK_BTAMP_STA_STATE = 8,
3300
3301 // Reserved for HAL internal use
3302 WDI_LINK_LEARN_STATE = 9,
3303 WDI_LINK_SCAN_STATE = 10,
3304 WDI_LINK_FINISH_SCAN_STATE = 11,
3305 WDI_LINK_INIT_CAL_STATE = 12,
3306 WDI_LINK_FINISH_CAL_STATE = 13,
Jeff Johnson295189b2012-06-20 16:38:30 -07003307 WDI_LINK_LISTEN_STATE = 14,
Gopichand Nakkala924e4552013-05-08 19:18:14 +05303308 WDI_LINK_SEND_ACTION_STATE = 15,
Padma, Santhosh Kumar5c317832017-01-20 15:53:00 +05303309#ifdef WLAN_FEATURE_LFR_MBB
3310 WDI_LINK_PRE_AUTH_REASSOC_STATE = 17,
3311#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003312 WDI_LINK_MAX = 0x7FFFFFFF
3313} WDI_LinkStateType;
3314
3315/*---------------------------------------------------------------------------
3316 WDI_SetLinkReqInfoType
3317---------------------------------------------------------------------------*/
3318typedef struct
3319{
3320 /*BSSID of the BSS*/
3321 wpt_macAddr macBSSID;
3322
3323 /*Link state*/
3324 WDI_LinkStateType wdiLinkState;
3325
3326 /*BSSID of the BSS*/
3327 wpt_macAddr macSelfStaMacAddr;
3328}WDI_SetLinkReqInfoType;
3329
3330/*---------------------------------------------------------------------------
3331 WDI_SetLinkReqParamsType
3332---------------------------------------------------------------------------*/
3333typedef struct
3334{
3335 /*Link Info*/
3336 WDI_SetLinkReqInfoType wdiLinkInfo;
3337
3338 /*Request status callback offered by UMAC - it is called if the current
3339 req has returned PENDING as status; it delivers the status of sending
3340 the message over the BUS */
3341 WDI_ReqStatusCb wdiReqStatusCB;
3342
3343 /*The user data passed in by UMAC, it will be sent back when the above
3344 function pointer will be called */
3345 void* pUserData;
3346}WDI_SetLinkReqParamsType;
3347
3348/*---------------------------------------------------------------------------
3349 WDI_GetStatsParamsInfoType
3350---------------------------------------------------------------------------*/
3351typedef struct
3352{
3353 /*Indicates the station for which Get Stats are requested..*/
3354 wpt_uint8 ucSTAIdx;
3355
3356 /* categories of stats requested */
3357 wpt_uint32 uStatsMask;
3358}WDI_GetStatsParamsInfoType;
3359
3360/*---------------------------------------------------------------------------
3361 WDI_GetStatsReqParamsType
3362---------------------------------------------------------------------------*/
3363typedef struct
3364{
3365 /*Get Stats Params Info*/
3366 WDI_GetStatsParamsInfoType wdiGetStatsParamsInfo;
3367
3368 /*Request status callback offered by UMAC - it is called if the current
3369 req has returned PENDING as status; it delivers the status of sending
3370 the message over the BUS */
3371 WDI_ReqStatusCb wdiReqStatusCB;
3372
3373 /*The user data passed in by UMAC, it will be sent back when the above
3374 function pointer will be called */
3375 void* pUserData;
3376}WDI_GetStatsReqParamsType;
3377
3378/*---------------------------------------------------------------------------
3379 WDI_GetStatsRspParamsType
3380---------------------------------------------------------------------------*/
3381typedef struct
3382{
3383 /*message type is same as the request type*/
3384 wpt_uint16 usMsgType;
3385
3386 /* length of the entire request, includes the pStatsBuf length too*/
3387 wpt_uint16 usMsgLen;
3388
3389 /*Result of the operation*/
3390 WDI_Status wdiStatus;
3391
3392 /*Indicates the station for which Get Stats are requested..*/
3393 wpt_uint8 ucSTAIdx;
3394
3395 /* categories of stats requested */
3396 wpt_uint32 uStatsMask;
3397
3398 /* The Stats buffer starts here and can be an aggregate of more than one statistics
3399 * structure depending on statsMask.*/
3400}WDI_GetStatsRspParamsType;
3401
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003402#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08003403/*---------------------------------------------------------------------------
3404 WDI_GetRoamRssiParamsInfoType
3405---------------------------------------------------------------------------*/
3406typedef struct
3407{
3408 /*Indicates the station for which Get Stats are requested..*/
3409 wpt_uint8 ucSTAIdx;
3410
3411 /* categories of stats requested */
3412 wpt_uint32 uStatsMask;
3413}WDI_GetRoamRssiParamsInfoType;
3414
3415/*---------------------------------------------------------------------------
3416 WDI_GetRoamRssiReqParamsType
3417---------------------------------------------------------------------------*/
3418typedef struct
3419{
3420 /*Get Roam Rssi Params Info*/
3421 WDI_GetRoamRssiParamsInfoType wdiGetRoamRssiParamsInfo;
3422
3423 /*Request status callback offered by UMAC - it is called if the current
3424 req has returned PENDING as status; it delivers the status of sending
3425 the message over the BUS */
3426 WDI_ReqStatusCb wdiReqStatusCB;
3427
3428 /*The user data passed in by UMAC, it will be sent back when the above
3429 function pointer will be called */
3430 void* pUserData;
3431}WDI_GetRoamRssiReqParamsType;
3432
3433/*---------------------------------------------------------------------------
3434 WDI_GetRoamRssiRspParamsType
3435---------------------------------------------------------------------------*/
3436typedef struct
3437{
3438 /*Result of the operation*/
3439 WDI_Status wdiStatus;
3440
3441 /*Indicates the station for which Get Stats are requested..*/
3442 wpt_uint8 ucSTAIdx;
3443
3444 /* roam rssi requested */
3445 wpt_int8 rssi;
3446
3447 /* The Stats buffer starts here and can be an aggregate of more than one statistics
3448 * structure depending on statsMask.*/
3449}WDI_GetRoamRssiRspParamsType;
3450#endif
3451
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003452#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07003453/*---------------------------------------------------------------------------
3454 WDI_TSMStatsParamsInfoType
3455---------------------------------------------------------------------------*/
3456typedef struct
3457{
3458 /*Indicates the station for which Get Stats are requested..*/
3459 wpt_uint8 ucTid;
3460
3461 wpt_macAddr bssid;
3462}WDI_TSMStatsParamsInfoType;
3463
3464/*---------------------------------------------------------------------------
3465 WDI_TSMStatsReqParamsType
3466---------------------------------------------------------------------------*/
3467typedef struct
3468{
3469 /*Get TSM Stats Params Info*/
3470 WDI_TSMStatsParamsInfoType wdiTsmStatsParamsInfo;
3471
3472 WDI_ReqStatusCb wdiReqStatusCB;
3473
3474 /*The user data passed in by UMAC, it will be sent back when the above
3475 function pointer will be called */
3476 void* pUserData;
3477
3478}WDI_TSMStatsReqParamsType;
3479
3480
3481/*---------------------------------------------------------------------------
3482 WDI_TSMStatsRspParamsType
3483---------------------------------------------------------------------------*/
3484typedef struct
3485{
3486 /*Indicates the status of the operation */
3487 WDI_Status wdiStatus;
3488
3489 wpt_uint16 UplinkPktQueueDly;
3490 wpt_uint16 UplinkPktQueueDlyHist[4];
3491 wpt_uint32 UplinkPktTxDly;
3492 wpt_uint16 UplinkPktLoss;
3493 wpt_uint16 UplinkPktCount;
3494 wpt_uint8 RoamingCount;
3495 wpt_uint16 RoamingDly;
3496}WDI_TSMStatsRspParamsType;
3497
3498
3499#endif
3500/*---------------------------------------------------------------------------
3501 WDI_UpdateCfgReqParamsType
3502---------------------------------------------------------------------------*/
3503typedef struct
3504{
3505 /*This is a TLV formatted buffer containing all config values that can
3506 be set through the DAL Interface
3507
3508 The TLV is expected to be formatted like this:
3509
3510 0 7 15 31 ....
3511 | CONFIG ID | CFG LEN | RESERVED | CFG BODY |
3512
3513 Or from a C construct point of VU it would look like this:
3514
3515 typedef struct WPT_PACK_POST
3516 {
3517 #ifdef WPT_BIG_ENDIAN
3518 wpt_uint32 ucCfgId:8;
3519 wpt_uint32 ucCfgLen:8;
3520 wpt_uint32 usReserved:16;
3521 #else
3522 wpt_uint32 usReserved:16;
3523 wpt_uint32 ucCfgLen:8;
3524 wpt_uint32 ucCfgId:8;
3525 #endif
3526
3527 wpt_uint8 ucCfgBody[ucCfgLen];
3528 }WDI_ConfigType;
3529
3530 Multiple such tuplets are to be placed in the config buffer. One for
3531 each required configuration item:
3532
3533 | TLV 1 | TLV2 | ....
3534
3535 The buffer is expected to be a flat area of memory that can be manipulated
3536 with standard memory routines.
3537
3538 For more info please check paragraph 2.3.1 Config Structure from the
3539 HAL LLD.
3540
3541 For a list of accepted configuration list and IDs please look up
3542 wlan_qct_dal_cfg.h
3543 */
3544 void* pConfigBuffer;
3545
3546 /*Length of the config buffer above*/
3547 wpt_uint32 uConfigBufferLen;
3548
3549 /*Request status callback offered by UMAC - it is called if the current
3550 req has returned PENDING as status; it delivers the status of sending
3551 the message over the BUS */
3552 WDI_ReqStatusCb wdiReqStatusCB;
3553
3554 /*The user data passed in by UMAC, it will be sent back when the above
3555 function pointer will be called */
3556 void* pUserData;
3557}WDI_UpdateCfgReqParamsType;
3558
3559/*---------------------------------------------------------------------------
3560 WDI_UpdateProbeRspTemplateInfoType
3561---------------------------------------------------------------------------*/
3562//Default Beacon template size
3563#define WDI_PROBE_RSP_TEMPLATE_SIZE 0x180
3564
3565#define WDI_PROBE_REQ_BITMAP_IE_LEN 8
3566
3567typedef struct
3568{
3569 /*BSSID for which the Probe Template is to be used*/
3570 wpt_macAddr macBSSID;
3571
Jeff Johnson295189b2012-06-20 16:38:30 -07003572 /*Template Len*/
3573 wpt_uint32 uProbeRespTemplateLen;
3574
3575 /*Bitmap for the IEs that are to be handled at SLM level*/
3576 wpt_uint32 uaProxyProbeReqValidIEBmap[WDI_PROBE_REQ_BITMAP_IE_LEN];
3577
Sreelakshmi Konamki7d7f6ca2017-05-15 15:32:02 +05303578 /*Probe response template*/
3579 wpt_uint8 *pProbeRespTemplate;
3580
Jeff Johnson295189b2012-06-20 16:38:30 -07003581}WDI_UpdateProbeRspTemplateInfoType;
3582
3583/*---------------------------------------------------------------------------
3584 WDI_UpdateProbeRspParamsType
3585---------------------------------------------------------------------------*/
3586typedef struct
3587{
3588 /*Link Info*/
3589 WDI_UpdateProbeRspTemplateInfoType wdiProbeRspTemplateInfo;
3590
3591 /*Request status callback offered by UMAC - it is called if the current
3592 req has returned PENDING as status; it delivers the status of sending
3593 the message over the BUS */
3594 WDI_ReqStatusCb wdiReqStatusCB;
3595
3596 /*The user data passed in by UMAC, it will be sent back when the above
3597 function pointer will be called */
3598 void* pUserData;
3599}WDI_UpdateProbeRspTemplateParamsType;
3600
3601/*---------------------------------------------------------------------------
3602 WDI_NvDownloadReqBlobInfo
3603---------------------------------------------------------------------------*/
3604
3605typedef struct
3606{
3607 /* Blob starting address*/
3608 void *pBlobAddress;
3609
3610 /* Blob size */
3611 wpt_uint32 uBlobSize;
3612
3613}WDI_NvDownloadReqBlobInfo;
3614
3615/*---------------------------------------------------------------------------
3616 WDI_NvDownloadReqParamsType
3617---------------------------------------------------------------------------*/
3618typedef struct
3619{
3620 /*NV Blob Info*/
3621 WDI_NvDownloadReqBlobInfo wdiBlobInfo;
3622
3623 /*Request status callback offered by UMAC - it is called if the current
3624 req has returned PENDING as status; it delivers the status of sending
3625 the message over the BUS */
3626 WDI_ReqStatusCb wdiReqStatusCB;
3627
3628 /*The user data passed in by UMAC, it will be sent back when the above
3629 function pointer will be called */
3630 void* pUserData;
3631
3632}WDI_NvDownloadReqParamsType;
3633
3634/*---------------------------------------------------------------------------
3635 WDI_NvDownloadRspInfoType
3636---------------------------------------------------------------------------*/
3637typedef struct
3638{
3639 /*Status of the response*/
3640 WDI_Status wdiStatus;
3641
3642}WDI_NvDownloadRspInfoType;
3643
3644/*---------------------------------------------------------------------------
3645 WDI_SetMaxTxPowerInfoType
3646---------------------------------------------------------------------------*/
3647
3648typedef struct
3649{
3650 /*BSSID is needed to identify which session issued this request. As the request has
3651 power constraints, this should be applied only to that session*/
3652 wpt_macAddr macBSSId;
3653
3654
3655 wpt_macAddr macSelfStaMacAddr;
3656
3657 /* In request power == MaxTxpower to be used.*/
3658 wpt_int8 ucPower;
3659
3660}WDI_SetMaxTxPowerInfoType;
3661
3662/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003663 WDI_SetTxPowerInfoType
3664---------------------------------------------------------------------------*/
3665
3666typedef struct
3667{
3668 wpt_uint8 bssIdx;
3669 /* In request power == MaxTxpower to be used.*/
3670 wpt_uint8 ucPower;
3671
3672}WDI_SetTxPowerInfoType;
3673
3674/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07003675 WDI_SetMaxTxPowerParamsType
3676---------------------------------------------------------------------------*/
3677typedef struct
3678{
3679 /*Link Info*/
3680 WDI_SetMaxTxPowerInfoType wdiMaxTxPowerInfo;
3681
3682 /*Request status callback offered by UMAC - it is called if the current
3683 req has returned PENDING as status; it delivers the status of sending
3684 the message over the BUS */
3685 WDI_ReqStatusCb wdiReqStatusCB;
3686
3687 /*The user data passed in by UMAC, it will be sent back when the above
3688 function pointer will be called */
3689 void* pUserData;
3690}WDI_SetMaxTxPowerParamsType;
3691
schang86c22c42013-03-13 18:41:24 -07003692/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07003693 WDI_Band
3694---------------------------------------------------------------------------*/
3695typedef enum
3696{
3697 WDI_BAND_ALL,
3698 WDI_BAND_24,
3699 WDI_BAND_5G,
3700 WDI_BAND_MAX,
3701}eWDIBand;
3702
3703/*---------------------------------------------------------------------------
3704 WDI_MaxTxPowerPerBandInfoType
3705---------------------------------------------------------------------------*/
3706typedef struct
3707{
3708 eWDIBand bandInfo;
3709 /* In request power == MaxTxpower to be used.*/
3710 wpt_uint8 ucPower;
3711}WDI_MaxTxPowerPerBandInfoType;
3712
3713/*---------------------------------------------------------------------------
3714 WDI_SetMaxTxPowerPerBandParamsType
3715---------------------------------------------------------------------------*/
3716typedef struct
3717{
3718 /*Link Info*/
3719 WDI_MaxTxPowerPerBandInfoType wdiMaxTxPowerPerBandInfo;
3720
3721 /*Request status callback offered by UMAC - it is called if the current
3722 req has returned PENDING as status; it delivers the status of sending
3723 the message over the BUS */
3724 WDI_ReqStatusCb wdiReqStatusCB;
3725
3726 /*The user data passed in by UMAC, it will be sent back when the above
3727 function pointer will be called */
3728 void* pUserData;
3729}WDI_SetMaxTxPowerPerBandParamsType;
3730
3731/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003732 WDI_SetTxPowerParamsType
3733---------------------------------------------------------------------------*/
3734typedef struct
3735{
3736 /*Link Info*/
3737 WDI_SetTxPowerInfoType wdiTxPowerInfo;
3738
3739 /*Request status callback offered by UMAC - it is called if the current
3740 req has returned PENDING as status; it delivers the status of sending
3741 the message over the BUS */
3742 WDI_ReqStatusCb wdiReqStatusCB;
3743
3744 /*The user data passed in by UMAC, it will be sent back when the above
3745 function pointer will be called */
3746 void* pUserData;
3747}WDI_SetTxPowerParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003748
3749/*---------------------------------------------------------------------------
3750 WDI_SetMaxTxPowerRspMsg
3751---------------------------------------------------------------------------*/
3752
3753typedef struct
3754{
3755 /* In response, power==tx power used for management frames*/
3756 wpt_int8 ucPower;
3757
3758 /*Result of the operation*/
3759 WDI_Status wdiStatus;
3760
3761}WDI_SetMaxTxPowerRspMsg;
3762
schang86c22c42013-03-13 18:41:24 -07003763/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07003764 WDI_SetMaxTxPowerPerBandRspMsg
3765---------------------------------------------------------------------------*/
3766typedef struct
3767{
3768 /* In response, power==tx power used for management frames*/
3769 wpt_int8 ucPower;
3770
3771 /*Result of the operation*/
3772 WDI_Status wdiStatus;
3773
3774}WDI_SetMaxTxPowerPerBandRspMsg;
3775
3776/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07003777 WDI_SetTxPowerRspMsg
3778---------------------------------------------------------------------------*/
3779
3780typedef struct
3781{
3782 /* In response, power==tx power used for management frames*/
3783 wpt_int8 ucPower;
3784
3785 /*Result of the operation*/
3786 WDI_Status wdiStatus;
3787
3788}WDI_SetTxPowerRspMsg;
3789
Jeff Johnson295189b2012-06-20 16:38:30 -07003790typedef struct
3791{
3792 wpt_uint8 ucOpp_ps;
3793 wpt_uint32 uCtWindow;
3794 wpt_uint8 ucCount;
3795 wpt_uint32 uDuration;
3796 wpt_uint32 uInterval;
3797 wpt_uint32 uSingle_noa_duration;
3798 wpt_uint8 ucPsSelection;
3799}WDI_SetP2PGONOAReqInfoType;
3800
3801/*---------------------------------------------------------------------------
3802 WDI_SetP2PGONOAReqParamsType
3803---------------------------------------------------------------------------*/
3804typedef struct
3805{
3806 /*P2P GO NOA Req*/
3807 WDI_SetP2PGONOAReqInfoType wdiP2PGONOAInfo;
3808
3809 /*Request status callback offered by UMAC - it is called if the current
3810 req has returned PENDING as status; it delivers the status of sending
3811 the message over the BUS */
3812 WDI_ReqStatusCb wdiReqStatusCB;
3813
3814 /*The user data passed in by UMAC, it will be sent back when the above
3815 function pointer will be called */
3816 void* pUserData;
3817}WDI_SetP2PGONOAReqParamsType;
Jeff Johnson295189b2012-06-20 16:38:30 -07003818
Naresh Jayaramc7cbd782014-02-04 17:38:23 +05303819#define WDI_MAX_SUPP_CHANNELS 128
3820#define WDI_MAX_SUPP_OPER_CLASSES 32
3821
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05303822typedef struct
3823{
3824 wpt_uint16 uStaIdx;
3825 wpt_uint8 uIsResponder;
3826 wpt_uint8 uUapsdQueues;
3827 wpt_uint8 uMaxSp;
3828 wpt_uint8 uIsBufSta;
Naresh Jayaramc7cbd782014-02-04 17:38:23 +05303829 wpt_uint8 uIsOffChannelSupported;
3830 wpt_uint8 peerCurrOperClass;
3831 wpt_uint8 selfCurrOperClass;
3832 wpt_uint8 validChannelsLen;
3833 wpt_uint8 validChannels[WDI_MAX_SUPP_CHANNELS];
3834 wpt_uint8 validOperClassesLen;
3835 wpt_uint8 validOperClasses[WDI_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05303836}WDI_SetTDLSLinkEstablishReqInfoType;
3837/*---------------------------------------------------------------------------
3838 WDI_SetTDLSLinkEstablishReqParamsType
3839---------------------------------------------------------------------------*/
3840typedef struct
3841{
3842 /*TDLS Link Establish Req*/
3843 WDI_SetTDLSLinkEstablishReqInfoType wdiTDLSLinkEstablishInfo;
3844
3845 /*Request status callback offered by UMAC - it is called if the current
3846 req has returned PENDING as status; it delivers the status of sending
3847 the message over the BUS */
3848 WDI_ReqStatusCb wdiReqStatusCB;
3849
3850 /*The user data passed in by UMAC, it will be sent back when the above
3851 function pointer will be called */
3852 void* pUserData;
3853}WDI_SetTDLSLinkEstablishReqParamsType;
3854
Gopichand Nakkala574f6d12013-06-27 19:38:43 +05303855typedef struct
3856{
3857 /*Result of the operation*/
3858 WDI_Status wdiStatus;
3859
3860 /*STA Idx*/
3861 wpt_uint16 uStaIdx;
3862}WDI_SetTdlsLinkEstablishReqResp;
Jeff Johnson295189b2012-06-20 16:38:30 -07003863
Atul Mittalc0f739f2014-07-31 13:47:47 +05303864
3865
3866typedef struct
3867{
3868 /*STA Index*/
3869 wpt_uint8 staIdx;
3870 /* if this is 1, self is initiator otherwise responder only*/
3871 wpt_uint8 isOffchannelInitiator;
3872 /*TDLS off channel related params */
3873 wpt_uint8 targetOperClass;
3874 wpt_uint8 targetChannel;
3875 wpt_uint8 secondaryChannelOffset;
3876 wpt_uint8 reserved[64];
3877}WDI_SetTDLSChanSwitchReqInfoType;
3878
3879typedef struct
3880{
3881 WDI_SetTDLSChanSwitchReqInfoType wdiTDLSChanSwitchReqInfo;
3882 WDI_ReqStatusCb wdiReqStatusCB;
3883 void* pUserData;
3884}WDI_SetTDLSChanSwitchReqParamsType;
3885
3886
3887typedef struct
3888{
3889 /*Result of the operation*/
3890 WDI_Status wdiStatus;
3891
3892 /*STA Idx*/
3893 wpt_uint16 uStaIdx;
3894}WDI_SetTdlsChanSwitchReqResp;
Jeff Johnson295189b2012-06-20 16:38:30 -07003895/*---------------------------------------------------------------------------
3896 WDI_SetAddSTASelfParamsType
3897---------------------------------------------------------------------------*/
3898typedef struct
3899{
3900 /*Self Station MAC address*/
3901 wpt_macAddr selfMacAddr;
3902
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -07003903 /*Self STA device mode*/
3904 wpt_uint32 currDeviceMode;
3905
Jeff Johnson295189b2012-06-20 16:38:30 -07003906 /*Status of the operation*/
3907 wpt_uint32 uStatus;
3908}WDI_AddSTASelfInfoType;
3909
3910/*---------------------------------------------------------------------------
3911 WDI_SetAddSTASelfParamsType
3912---------------------------------------------------------------------------*/
3913typedef struct
3914{
3915 /* Add Sta Self Req */
3916 WDI_AddSTASelfInfoType wdiAddSTASelfInfo;
3917
3918 /*Request status callback offered by UMAC - it is called if the current
3919 req has returned PENDING as status; it delivers the status of sending
3920 the message over the BUS */
3921 WDI_ReqStatusCb wdiReqStatusCB;
3922
3923 /*The user data passed in by UMAC, it will be sent back when the above
3924 function pointer will be called */
3925 void* pUserData;
3926}WDI_AddSTASelfReqParamsType;
3927
3928
3929/*---------------------------------------------------------------------------
3930 WDI_AddSTASelfRspParamsType
3931---------------------------------------------------------------------------*/
3932typedef struct
3933{
3934 /*Status of the response*/
3935 WDI_Status wdiStatus;
3936
3937 /*STA Idx allocated by HAL*/
3938 wpt_uint8 ucSTASelfIdx;
3939
3940 /* DPU Index (IGTK, PTK, GTK all same) */
3941 wpt_uint8 dpuIdx;
3942
3943 /* DPU Signature */
3944 wpt_uint8 dpuSignature;
3945
3946 /*Self STA Mac*/
3947 wpt_macAddr macSelfSta;
3948
3949}WDI_AddSTASelfRspParamsType;
3950
3951/*---------------------------------------------------------------------------
3952 WDI_DelSTASelfReqParamsType
3953 Del Sta Self info passed to WDI form WDA
3954---------------------------------------------------------------------------*/
3955typedef struct
3956{
3957 wpt_macAddr selfMacAddr;
3958
3959}WDI_DelSTASelfInfoType;
3960
3961/*---------------------------------------------------------------------------
3962 WDI_DelSTASelfReqParamsType
3963 Del Sta Self info passed to WDI form WDA
3964---------------------------------------------------------------------------*/
3965typedef struct
3966{
3967 /*Del Sta Self Info Type */
3968 WDI_DelSTASelfInfoType wdiDelStaSelfInfo;
3969 /*Request status callback offered by UMAC - it is called if the current req
3970 has returned PENDING as status; it delivers the status of sending the message
3971 over the BUS */
3972 WDI_ReqStatusCb wdiReqStatusCB;
3973 /*The user data passed in by UMAC, it will be sent back when the above
3974 function pointer will be called */
3975 void* pUserData;
3976}WDI_DelSTASelfReqParamsType;
3977
3978/*---------------------------------------------------------------------------
3979 WDI_DelSTASelfRspParamsType
3980---------------------------------------------------------------------------*/
3981typedef struct
3982{
3983 /*Status of the response*/
3984 WDI_Status wdiStatus;
3985
3986 /*STA Index returned during DAL_PostAssocReq or DAL_ConfigStaReq*/
3987// wpt_uint8 ucSTAIdx;
3988}WDI_DelSTASelfRspParamsType;
3989
3990/*---------------------------------------------------------------------------
3991 WDI_UapsdInfoType
3992 UAPSD parameters passed per AC to WDA from UMAC
3993---------------------------------------------------------------------------*/
3994typedef struct
3995{
3996 wpt_uint8 ucSTAIdx; // STA index
3997 wpt_uint8 ucAc; // Access Category
3998 wpt_uint8 ucUp; // User Priority
3999 wpt_uint32 uSrvInterval; // Service Interval
4000 wpt_uint32 uSusInterval; // Suspend Interval
4001 wpt_uint32 uDelayInterval; // Delay Interval
4002} WDI_UapsdInfoType;
4003
4004/*---------------------------------------------------------------------------
4005 WDI_SetUapsdAcParamsReqParamsType
4006 UAPSD parameters passed per AC to WDI from WDA
4007---------------------------------------------------------------------------*/
4008typedef struct
4009{
4010 /*Enter BMPS Info Type, same as tEnterBmpsParams */
4011 WDI_UapsdInfoType wdiUapsdInfo;
4012 /*Request status callback offered by UMAC - it is called if the current req
4013 has returned PENDING as status; it delivers the status of sending the message
4014 over the BUS */
4015 WDI_ReqStatusCb wdiReqStatusCB;
4016 /*The user data passed in by UMAC, it will be sent back when the above
4017 function pointer will be called */
4018 void* pUserData;
4019}WDI_SetUapsdAcParamsReqParamsType;
4020
4021/*---------------------------------------------------------------------------
4022 WDI_EnterBmpsReqinfoType
4023 Enter BMPS parameters passed to WDA from UMAC
4024---------------------------------------------------------------------------*/
4025typedef struct
4026{
4027 //TBTT value derived from the last beacon
4028 wpt_uint8 ucBssIdx;
4029 wpt_uint64 uTbtt;
4030 wpt_uint8 ucDtimCount;
4031 //DTIM period given to HAL during association may not be valid,
4032 //if association is based on ProbeRsp instead of beacon.
4033 wpt_uint8 ucDtimPeriod;
4034 /* DXE physical addr to be passed down to RIVA. RIVA HAL will use it to program
4035 DXE when DXE wakes up from power save*/
4036 unsigned int dxePhyAddr;
4037
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08004038 // For ESE and 11R Roaming
Jeff Johnson295189b2012-06-20 16:38:30 -07004039 wpt_uint32 rssiFilterPeriod;
4040 wpt_uint32 numBeaconPerRssiAverage;
4041 wpt_uint8 bRssiFilterEnable;
4042}WDI_EnterBmpsReqinfoType;
4043
4044/*---------------------------------------------------------------------------
4045 WDI_EnterBmpsReqParamsType
4046 Enter BMPS parameters passed to WDI from WDA
4047---------------------------------------------------------------------------*/
4048typedef struct
4049{
4050 /*Enter BMPS Info Type, same as tEnterBmpsParams */
4051 WDI_EnterBmpsReqinfoType wdiEnterBmpsInfo;
4052 /*Request status callback offered by UMAC - it is called if the current req
4053 has returned PENDING as status; it delivers the status of sending the message
4054 over the BUS */
4055 WDI_ReqStatusCb wdiReqStatusCB;
4056 /*The user data passed in by UMAC, it will be sent back when the above
4057 function pointer will be called */
4058 void* pUserData;
4059}WDI_EnterBmpsReqParamsType;
4060
4061/*---------------------------------------------------------------------------
Mihir Shetea4306052014-03-25 00:02:54 +05304062 WDI_EnterImpsReqParamsType
4063 Enter IMPS parameters passed to WDI from WDA
4064---------------------------------------------------------------------------*/
4065typedef struct
4066{
4067 /*Request status callback offered by UMAC - it is called if the current req
4068 has returned PENDING as status; it delivers the status of sending the message
4069 over the BUS */
4070 WDI_ReqStatusCb wdiReqStatusCB;
4071 /*The user data passed in by UMAC, it will be sent back when the above
4072 function pointer will be called */
4073 void* pUserData;
4074}WDI_EnterImpsReqParamsType;
4075
4076/*---------------------------------------------------------------------------
Mahesh A Saptasagar329813b2014-12-15 12:16:51 +05304077 WDI_ExitImpsReqParamsType
4078 Exit IMPS parameters passed to WDI from WDA
4079----------------------------------------------------------------------------*/
4080typedef struct
4081{
4082 /*Request status callback offered by UMAC */
4083 WDI_ReqStatusCb wdiReqStatusCB;
4084 /*The user data passed in by UMAC, it will be sent back when the above
4085 function pointer will be called */
4086 void* pUserData;
4087
4088}WDI_ExitImpsReqParamsType;
4089
4090/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004091 WDI_EnterBmpsReqParamsType
4092 Enter BMPS parameters passed from WDI to WDA
4093---------------------------------------------------------------------------*/
4094typedef struct
4095{
4096 /*Status of the response*/
4097 WDI_Status wdiStatus;
4098
4099 /*BssIDX of the session*/
4100 wpt_uint8 bssIdx;
4101}WDI_EnterBmpsRspParamsType;
4102
4103/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004104 WDI_ExitBmpsReqinfoType
4105 Exit BMPS parameters passed to WDA from UMAC
4106---------------------------------------------------------------------------*/
4107typedef struct
4108{
4109 wpt_uint8 ucSendDataNull;
Jeff Johnsone7245742012-09-05 17:12:55 -07004110 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004111}WDI_ExitBmpsReqinfoType;
4112
4113/*---------------------------------------------------------------------------
4114 WDI_ExitBmpsReqParamsType
4115 Exit BMPS parameters passed to WDI from WDA
4116---------------------------------------------------------------------------*/
4117typedef struct
4118{
4119 /*Exit BMPS Info Type, same as tExitBmpsParams */
4120 WDI_ExitBmpsReqinfoType wdiExitBmpsInfo;
4121 /*Request status callback offered by UMAC - it is called if the current req
4122 has returned PENDING as status; it delivers the status of sending the message
4123 over the BUS */
4124 WDI_ReqStatusCb wdiReqStatusCB;
4125 /*The user data passed in by UMAC, it will be sent back when the above
4126 function pointer will be called */
4127 void* pUserData;
4128}WDI_ExitBmpsReqParamsType;
4129
4130/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004131 WDI_ExitBmpsReqParamsType
4132 Exit BMPS parameters passed from WDI to WDA
4133---------------------------------------------------------------------------*/
4134typedef struct
4135{
4136 /*Status of the response*/
4137 WDI_Status wdiStatus;
4138
4139 /*BssIDX of the session*/
4140 wpt_uint8 bssIdx;
4141}WDI_ExitBmpsRspParamsType;
4142
4143/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004144 WDI_EnterUapsdReqinfoType
4145 Enter UAPSD parameters passed to WDA from UMAC
4146---------------------------------------------------------------------------*/
4147typedef struct
4148{
4149 wpt_uint8 ucBkDeliveryEnabled:1;
4150 wpt_uint8 ucBeDeliveryEnabled:1;
4151 wpt_uint8 ucViDeliveryEnabled:1;
4152 wpt_uint8 ucVoDeliveryEnabled:1;
4153 wpt_uint8 ucBkTriggerEnabled:1;
4154 wpt_uint8 ucBeTriggerEnabled:1;
4155 wpt_uint8 ucViTriggerEnabled:1;
4156 wpt_uint8 ucVoTriggerEnabled:1;
Jeff Johnsone7245742012-09-05 17:12:55 -07004157 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004158}WDI_EnterUapsdReqinfoType;
4159
4160/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004161 WDI_EnterUapsdRspParamsType
4162 Enter UAPSD parameters passed from WDI to WDA
4163---------------------------------------------------------------------------*/
4164typedef struct
4165{
4166 /*Status of the response*/
4167 WDI_Status wdiStatus;
4168
4169 /*BssIDX of the session*/
4170 wpt_uint8 bssIdx;
4171}WDI_EnterUapsdRspParamsType;
4172
4173/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004174 WDI_EnterUapsdReqinfoType
4175 Enter UAPSD parameters passed to WDI from WDA
4176---------------------------------------------------------------------------*/
4177typedef struct
4178{
4179 /*Enter UAPSD Info Type, same as tUapsdParams */
4180 WDI_EnterUapsdReqinfoType wdiEnterUapsdInfo;
4181 /*Request status callback offered by UMAC - it is called if the current req
4182 has returned PENDING as status; it delivers the status of sending the message
4183 over the BUS */
4184 WDI_ReqStatusCb wdiReqStatusCB;
4185 /*The user data passed in by UMAC, it will be sent back when the above
4186 function pointer will be called */
4187 void* pUserData;
4188}WDI_EnterUapsdReqParamsType;
4189
4190/*---------------------------------------------------------------------------
4191 WDI_UpdateUapsdReqinfoType
4192 Update UAPSD parameters passed to WDA from UMAC
4193---------------------------------------------------------------------------*/
4194typedef struct
4195{
4196 wpt_uint8 ucSTAIdx;
4197 wpt_uint8 ucUapsdACMask;
4198 wpt_uint32 uMaxSpLen;
4199}WDI_UpdateUapsdReqinfoType;
4200
4201/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004202 WDI_ExitUapsdReqinfoType
4203 Exit UAPSD parameters passed to WDA from UMAC
4204---------------------------------------------------------------------------*/
4205typedef struct
4206{
4207 wpt_uint8 bssIdx;
4208}WDI_ExitUapsdReqinfoType;
4209
4210/*---------------------------------------------------------------------------
4211 WDI_ExitUapsdReqParamsType
4212 Exit UAPSD parameters passed to WDI from WDA
4213---------------------------------------------------------------------------*/
4214typedef struct
4215{
4216 /*Exit UAPSD Info Type, same as tUapsdParams */
4217 WDI_ExitUapsdReqinfoType wdiExitUapsdInfo;
4218 /*Request status callback offered by UMAC - it is called if the current req
4219 has returned PENDING as status; it delivers the status of sending the message
4220 over the BUS */
4221 WDI_ReqStatusCb wdiReqStatusCB;
4222 /*The user data passed in by UMAC, it will be sent back when the above
4223 function pointer will be called */
4224 void* pUserData;
4225}WDI_ExitUapsdReqParamsType;
4226
4227/*---------------------------------------------------------------------------
4228 WDI_ExitUapsdRspParamsType
4229 Exit UAPSD parameters passed from WDI to WDA
4230---------------------------------------------------------------------------*/
4231typedef struct
4232{
4233 /*Status of the response*/
4234 WDI_Status wdiStatus;
4235
4236 /*BssIDX of the session*/
4237 wpt_uint8 bssIdx;
4238}WDI_ExitUapsdRspParamsType;
4239
4240/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004241 WDI_UpdateUapsdReqParamsType
4242 Update UAPSD parameters passed to WDI form WDA
4243---------------------------------------------------------------------------*/
4244typedef struct
4245{
4246 /*Update UAPSD Info Type, same as tUpdateUapsdParams */
4247 WDI_UpdateUapsdReqinfoType wdiUpdateUapsdInfo;
4248 /*Request status callback offered by UMAC - it is called if the current req
4249 has returned PENDING as status; it delivers the status of sending the message
4250 over the BUS */
4251 WDI_ReqStatusCb wdiReqStatusCB;
4252 /*The user data passed in by UMAC, it will be sent back when the above
4253 function pointer will be called */
4254 void* pUserData;
4255}WDI_UpdateUapsdReqParamsType;
4256
4257/*---------------------------------------------------------------------------
4258 WDI_ConfigureRxpFilterReqParamsType
4259 RXP filter parameters passed to WDI form WDA
4260---------------------------------------------------------------------------*/
4261typedef struct
4262{
4263 /* Mode of Mcast and Bcast filters configured */
4264 wpt_uint8 ucSetMcstBcstFilterSetting;
4265
4266 /* Mcast Bcast Filters enable/disable*/
4267 wpt_uint8 ucSetMcstBcstFilter;
4268}WDI_RxpFilterReqParamsType;
4269
4270typedef struct
4271{
4272 /* Rxp Filter */
4273 WDI_RxpFilterReqParamsType wdiRxpFilterParam;
4274
4275 /*Request status callback offered by UMAC - it is called if the current req
4276 has returned PENDING as status; it delivers the status of sending the message
4277 over the BUS */
4278 WDI_ReqStatusCb wdiReqStatusCB;
4279 /*The user data passed in by UMAC, it will be sent back when the above
4280 function pointer will be called */
4281 void* pUserData;
4282}WDI_ConfigureRxpFilterReqParamsType;
4283
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05304284typedef struct
4285{
4286 wpt_uint8 enableFlag;
4287 wpt_uint8 frameType;
4288 wpt_uint8 frameSize;
4289 wpt_uint8 bufferMode;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304290 wpt_uint8 continuousFrameLogging;
4291 wpt_uint8 minLogBufferSize;
4292 wpt_uint8 maxLogBufferSize;
4293}WDI_FWLoggingInitReqInfoType;
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05304294
Siddharth Bhal64246172015-02-27 01:04:37 +05304295typedef struct
4296{
Gupta, Kapil7c34b322015-09-30 13:12:35 +05304297 wpt_uint32 requestId;
4298 wpt_uint8 minRssi;
4299 wpt_uint8 maxRssi;
4300 wpt_macAddr currentBssId;
4301}WDI_RssiMonitorReqInfoType;
4302
4303typedef struct
4304{
Sachin Ahuja715aafc2015-07-21 23:35:10 +05304305 wpt_uint32 reason_code;
4306}WDI_FatalEventLogsReqInfoType;
4307
4308
4309typedef struct
4310{
Siddharth Bhal64246172015-02-27 01:04:37 +05304311 wpt_uint8 flags;
4312}WDI_GetFrameLogReqInfoType;
4313
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304314typedef struct
4315{
Hanumantha Reddy Pothulae00a7e22015-09-15 20:11:30 +05304316 wpt_uint16 status;
4317 wpt_uint16 doneIndicationForSource;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304318 wpt_uint64 logBuffAddress[MAX_NUM_OF_BUFFER];
Siddharth Bhald1be97f2015-05-27 22:39:59 +05304319 wpt_uint32 logBuffLength[MAX_NUM_OF_BUFFER];
4320}WDI_FWLoggingDXEdoneIndInfoType;
4321
Jeff Johnson295189b2012-06-20 16:38:30 -07004322/*---------------------------------------------------------------------------
4323 WDI_BeaconFilterInfoType
4324 Beacon Filtering data structures passed to WDA form UMAC
4325---------------------------------------------------------------------------*/
4326typedef struct
4327{
4328 wpt_uint16 usCapabilityInfo;
4329 wpt_uint16 usCapabilityMask;
4330 wpt_uint16 usBeaconInterval;
4331 wpt_uint16 usIeNum;
Madan Mohan Koyyalamudia84edda2012-10-15 14:58:25 -07004332 wpt_uint8 bssIdx;
4333 wpt_uint8 reserved;
Jeff Johnson295189b2012-06-20 16:38:30 -07004334}WDI_BeaconFilterInfoType;
4335
4336/*---------------------------------------------------------------------------
4337 WDI_BeaconFilterReqParamsType
4338 Beacon Filtering parameters passed to WDI form WDA
4339---------------------------------------------------------------------------*/
4340typedef struct
4341{
4342 /*Beacon Filtering Info Type, same as tBeaconFilterMsg */
4343 WDI_BeaconFilterInfoType wdiBeaconFilterInfo;
4344 /*Beacon Filter(s) follow the "usIeNum" field, hence the array to ease the
4345 copy of params from WDA to WDI */
4346 wpt_uint8 aFilters[WDI_BEACON_FILTER_LEN];
4347 /*Request status callback offered by UMAC - it is called if the current req
4348 has returned PENDING as status; it delivers the status of sending the message
4349 over the BUS */
4350 WDI_ReqStatusCb wdiReqStatusCB;
4351 /*The user data passed in by UMAC, it will be sent back when the above
4352 function pointer will be called */
4353 void* pUserData;
4354}WDI_BeaconFilterReqParamsType;
4355
4356/*---------------------------------------------------------------------------
4357 WDI_RemBeaconFilterInfoType
4358 Beacon Filtering data structures (to be reomoved) passed to WDA form UMAC
4359---------------------------------------------------------------------------*/
4360typedef struct
4361{
4362 wpt_uint8 ucIeCount;
4363 wpt_uint8 ucRemIeId[1];
4364}WDI_RemBeaconFilterInfoType;
4365
4366/*---------------------------------------------------------------------------
4367 WDI_RemBeaconFilterReqParamsType
4368 Beacon Filtering parameters (to be reomoved)passed to WDI form WDA
4369---------------------------------------------------------------------------*/
4370typedef struct
4371{
4372 /*Beacon Filtering Info Type, same as tBeaconFilterMsg */
4373 WDI_RemBeaconFilterInfoType wdiBeaconFilterInfo;
4374 /*Request status callback offered by UMAC - it is called if the current req
4375 has returned PENDING as status; it delivers the status of sending the message
4376 over the BUS */
4377 WDI_ReqStatusCb wdiReqStatusCB;
4378 /*The user data passed in by UMAC, it will be sent back when the above
4379 function pointer will be called */
4380 void* pUserData;
4381}WDI_RemBeaconFilterReqParamsType;
4382
4383/*---------------------------------------------------------------------------
4384 WDI_RSSIThresholdsType
4385 RSSI thresholds data structures (to be reomoved) passed to WDA form UMAC
4386---------------------------------------------------------------------------*/
4387typedef struct
4388{
4389 wpt_int8 ucRssiThreshold1 : 8;
4390 wpt_int8 ucRssiThreshold2 : 8;
4391 wpt_int8 ucRssiThreshold3 : 8;
4392 wpt_uint8 bRssiThres1PosNotify : 1;
4393 wpt_uint8 bRssiThres1NegNotify : 1;
4394 wpt_uint8 bRssiThres2PosNotify : 1;
4395 wpt_uint8 bRssiThres2NegNotify : 1;
4396 wpt_uint8 bRssiThres3PosNotify : 1;
4397 wpt_uint8 bRssiThres3NegNotify : 1;
4398 wpt_uint8 bReserved10 : 2;
4399} WDI_RSSIThresholdsType;
4400
4401/*---------------------------------------------------------------------------
4402 WDI_SetRSSIThresholdsReqParamsType
4403 RSSI thresholds parameters (to be reomoved)passed to WDI form WDA
4404---------------------------------------------------------------------------*/
4405typedef struct
4406{
4407 /*RSSI thresholds Info Type, same as WDI_RSSIThresholds */
4408 WDI_RSSIThresholdsType wdiRSSIThresholdsInfo;
4409 /*Request status callback offered by UMAC - it is called if the current req
4410 has returned PENDING as status; it delivers the status of sending the message
4411 over the BUS */
4412 WDI_ReqStatusCb wdiReqStatusCB;
4413 /*The user data passed in by UMAC, it will be sent back when the above
4414 function pointer will be called */
4415 void* pUserData;
4416}WDI_SetRSSIThresholdsReqParamsType;
4417
4418/*---------------------------------------------------------------------------
4419 WDI_HostOffloadReqType
4420 host offload info passed to WDA form UMAC
4421---------------------------------------------------------------------------*/
4422#ifdef WLAN_NS_OFFLOAD
4423typedef struct
4424{
4425 wpt_uint8 srcIPv6Addr[16];
4426 wpt_uint8 selfIPv6Addr[16];
4427 //Only support 2 possible Network Advertisement IPv6 address
4428 wpt_uint8 targetIPv6Addr1[16];
4429 wpt_uint8 targetIPv6Addr2[16];
4430 wpt_uint8 selfMacAddr[6];
4431 wpt_uint8 srcIPv6AddrValid : 1;
4432 wpt_uint8 targetIPv6Addr1Valid : 1;
4433 wpt_uint8 targetIPv6Addr2Valid : 1;
Gopichand Nakkala746a9452013-06-11 12:45:54 +05304434 wpt_uint8 slotIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004435} WDI_NSOffloadParams;
4436#endif //WLAN_NS_OFFLOAD
4437
4438typedef struct
4439{
4440 wpt_uint8 ucOffloadType;
4441 wpt_uint8 ucEnableOrDisable;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004442 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004443 union
4444 {
4445 wpt_uint8 aHostIpv4Addr [4];
4446 wpt_uint8 aHostIpv6Addr [16];
4447 } params;
4448} WDI_HostOffloadReqType;
4449
4450/*---------------------------------------------------------------------------
4451 WDI_HostOffloadReqParamsType
4452 host offload info passed to WDI form WDA
4453---------------------------------------------------------------------------*/
4454typedef struct
4455{
4456 /*Host offload Info Type, same as tHalHostOffloadReq */
4457 WDI_HostOffloadReqType wdiHostOffloadInfo;
4458#ifdef WLAN_NS_OFFLOAD
4459 WDI_NSOffloadParams wdiNsOffloadParams;
4460#endif //WLAN_NS_OFFLOAD
4461 /*Request status callback offered by UMAC - it is called if the current req
4462 has returned PENDING as status; it delivers the status of sending the message
4463 over the BUS */
4464 WDI_ReqStatusCb wdiReqStatusCB;
4465 /*The user data passed in by UMAC, it will be sent back when the above
4466 function pointer will be called */
4467 void* pUserData;
4468}WDI_HostOffloadReqParamsType;
4469
4470/*---------------------------------------------------------------------------
4471 WDI_KeepAliveReqType
4472 Keep Alive info passed to WDA form UMAC
4473---------------------------------------------------------------------------*/
4474typedef struct
4475{
4476 wpt_uint8 ucPacketType;
4477 wpt_uint32 ucTimePeriod;
4478 wpt_uint8 aHostIpv4Addr[4];
4479 wpt_uint8 aDestIpv4Addr[4];
4480 wpt_uint8 aDestMacAddr[6];
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004481 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004482} WDI_KeepAliveReqType;
4483
4484/*---------------------------------------------------------------------------
4485 WDI_KeepAliveReqParamsType
4486 Keep Alive passed to WDI form WDA
4487---------------------------------------------------------------------------*/
4488typedef struct
4489{
4490 /* Keep Alive Info Type, same as tHalKeepAliveReq */
4491 WDI_KeepAliveReqType wdiKeepAliveInfo;
4492 /*Request status callback offered by UMAC - it is called if the current req
4493 has returned PENDING as status; it delivers the status of sending the message
4494 over the BUS */
4495 WDI_ReqStatusCb wdiReqStatusCB;
4496 /*The user data passed in by UMAC, it will be sent back when the above
4497 function pointer will be called */
4498 void* pUserData;
4499}WDI_KeepAliveReqParamsType;
4500
4501/*---------------------------------------------------------------------------
4502 WDI_WowlAddBcPtrnInfoType
4503 Wowl add ptrn info passed to WDA form UMAC
4504---------------------------------------------------------------------------*/
4505typedef struct
4506{
4507 wpt_uint8 ucPatternId; // Pattern ID
4508 // Pattern byte offset from beginning of the 802.11 packet to start of the
4509 // wake-up pattern
4510 wpt_uint8 ucPatternByteOffset;
4511 wpt_uint8 ucPatternSize; // Non-Zero Pattern size
4512 wpt_uint8 ucPattern[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern
4513 wpt_uint8 ucPatternMaskSize; // Non-zero pattern mask size
4514 wpt_uint8 ucPatternMask[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern mask
4515 wpt_uint8 ucPatternExt[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern
4516 wpt_uint8 ucPatternMaskExt[WDI_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra pattern mask
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004517 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004518} WDI_WowlAddBcPtrnInfoType;
4519
4520/*---------------------------------------------------------------------------
4521 WDI_WowlAddBcPtrnReqParamsType
4522 Wowl add ptrn info passed to WDI form WDA
4523---------------------------------------------------------------------------*/
4524typedef struct
4525{
4526 /*Wowl add ptrn Info Type, same as tpSirWowlAddBcastPtrn */
4527 WDI_WowlAddBcPtrnInfoType wdiWowlAddBcPtrnInfo;
4528 /*Request status callback offered by UMAC - it is called if the current req
4529 has returned PENDING as status; it delivers the status of sending the message
4530 over the BUS */
4531 WDI_ReqStatusCb wdiReqStatusCB;
4532 /*The user data passed in by UMAC, it will be sent back when the above
4533 function pointer will be called */
4534 void* pUserData;
4535}WDI_WowlAddBcPtrnReqParamsType;
4536
4537/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004538 WDI_WowlAddBcPtrnRspParamsType
4539 Wowl add ptrn info passed from WDI to WDA
4540---------------------------------------------------------------------------*/
4541typedef struct
4542{
4543 /*Status of the response*/
4544 WDI_Status wdiStatus;
4545 /*BssIDX of the session*/
4546 wpt_uint8 bssIdx;
4547}WDI_WowlAddBcPtrnRspParamsType;
4548
4549/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004550 WDI_WowlDelBcPtrnInfoType
4551 Wowl add ptrn info passed to WDA form UMAC
4552---------------------------------------------------------------------------*/
4553typedef struct
4554{
4555 /* Pattern ID of the wakeup pattern to be deleted */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004556 wpt_uint8 ucPatternId;
4557 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004558} WDI_WowlDelBcPtrnInfoType;
4559
4560/*---------------------------------------------------------------------------
4561 WDI_WowlDelBcPtrnReqParamsType
4562 Wowl add ptrn info passed to WDI form WDA
4563---------------------------------------------------------------------------*/
4564typedef struct
4565{
4566 /*Wowl delete ptrn Info Type, same as WDI_WowlDelBcastPtrn */
4567 WDI_WowlDelBcPtrnInfoType wdiWowlDelBcPtrnInfo;
4568 /*Request status callback offered by UMAC - it is called if the current req
4569 has returned PENDING as status; it delivers the status of sending the message
4570 over the BUS */
4571 WDI_ReqStatusCb wdiReqStatusCB;
4572 /*The user data passed in by UMAC, it will be sent back when the above
4573 function pointer will be called */
4574 void* pUserData;
4575}WDI_WowlDelBcPtrnReqParamsType;
4576
4577/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004578 WDI_WowlDelBcPtrnRspParamsType
4579 Wowl Del ptrn info passed from WDI to WDA
4580---------------------------------------------------------------------------*/
4581typedef struct
4582{
4583 /*Status of the response*/
4584 WDI_Status wdiStatus;
4585 /*BssIDX of the session*/
4586 wpt_uint8 bssIdx;
4587}WDI_WowlDelBcPtrnRspParamsType;
4588
4589/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004590 WDI_WowlEnterInfoType
4591 Wowl enter info passed to WDA form UMAC
4592---------------------------------------------------------------------------*/
4593typedef struct
4594{
4595 /* Enables/disables magic packet filtering */
4596 wpt_uint8 ucMagicPktEnable;
4597
4598 /* Magic pattern */
4599 wpt_macAddr magicPtrn;
4600
4601 /* Enables/disables packet pattern filtering in firmware.
4602 Enabling this flag enables broadcast pattern matching
4603 in Firmware. If unicast pattern matching is also desired,
4604 ucUcastPatternFilteringEnable flag must be set tot true
4605 as well
4606 */
4607 wpt_uint8 ucPatternFilteringEnable;
4608
4609 /* Enables/disables unicast packet pattern filtering.
4610 This flag specifies whether we want to do pattern match
4611 on unicast packets as well and not just broadcast packets.
4612 This flag has no effect if the ucPatternFilteringEnable
4613 (main controlling flag) is set to false
4614 */
4615 wpt_uint8 ucUcastPatternFilteringEnable;
4616
4617 /* This configuration is valid only when magicPktEnable=1.
4618 * It requests hardware to wake up when it receives the
4619 * Channel Switch Action Frame.
4620 */
4621 wpt_uint8 ucWowChnlSwitchRcv;
4622
4623 /* This configuration is valid only when magicPktEnable=1.
4624 * It requests hardware to wake up when it receives the
4625 * Deauthentication Frame.
4626 */
4627 wpt_uint8 ucWowDeauthRcv;
4628
4629 /* This configuration is valid only when magicPktEnable=1.
4630 * It requests hardware to wake up when it receives the
4631 * Disassociation Frame.
4632 */
4633 wpt_uint8 ucWowDisassocRcv;
4634
4635 /* This configuration is valid only when magicPktEnable=1.
4636 * It requests hardware to wake up when it has missed
4637 * consecutive beacons. This is a hardware register
4638 * configuration (NOT a firmware configuration).
4639 */
4640 wpt_uint8 ucWowMaxMissedBeacons;
4641
4642 /* This configuration is valid only when magicPktEnable=1.
4643 * This is a timeout value in units of microsec. It requests
4644 * hardware to unconditionally wake up after it has stayed
4645 * in WoWLAN mode for some time. Set 0 to disable this feature.
4646 */
4647 wpt_uint8 ucWowMaxSleepUsec;
4648
4649#ifdef WLAN_WAKEUP_EVENTS
4650 /* This configuration directs the WoW packet filtering to look for EAP-ID
4651 * requests embedded in EAPOL frames and use this as a wake source.
4652 */
4653 wpt_uint8 ucWoWEAPIDRequestEnable;
4654
4655 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
4656 * requests and use this as a wake source.
4657 */
4658 wpt_uint8 ucWoWEAPOL4WayEnable;
4659
4660 /* This configuration allows a host wakeup on an network scan offload match.
4661 */
4662 wpt_uint8 ucWowNetScanOffloadMatch;
4663
4664 /* This configuration allows a host wakeup on any GTK rekeying error.
4665 */
4666 wpt_uint8 ucWowGTKRekeyError;
4667
4668 /* This configuration allows a host wakeup on BSS connection loss.
4669 */
4670 wpt_uint8 ucWoWBSSConnLoss;
4671#endif // WLAN_WAKEUP_EVENTS
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004672
4673 /* BSSIDX used to find the current session
4674 */
4675 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07004676} WDI_WowlEnterInfoType;
4677
4678/*---------------------------------------------------------------------------
4679 WDI_WowlEnterReqParamsType
4680 Wowl enter info passed to WDI form WDA
4681---------------------------------------------------------------------------*/
4682typedef struct
4683{
4684 /*Wowl delete ptrn Info Type, same as WDI_SmeWowlEnterParams */
4685 WDI_WowlEnterInfoType wdiWowlEnterInfo;
4686 /*Request status callback offered by UMAC - it is called if the current req
4687 has returned PENDING as status; it delivers the status of sending the message
4688 over the BUS */
4689 WDI_ReqStatusCb wdiReqStatusCB;
4690 /*The user data passed in by UMAC, it will be sent back when the above
4691 function pointer will be called */
4692 void* pUserData;
4693}WDI_WowlEnterReqParamsType;
4694
4695/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004696 WDI_WowlEnterRsqParamsType
4697 Wowl enter info passed from WDI to WDA
4698---------------------------------------------------------------------------*/
4699typedef struct
4700{
4701 /*Status of the response message*/
4702 WDI_Status status;
4703
4704 /* BSSIDX used to find the current session
4705 */
4706 wpt_uint8 bssIdx;
4707}WDI_WowlEnterRspParamsType;
4708
4709/*---------------------------------------------------------------------------
4710 WDI_WowlExitInfoType
4711 Wowl exit info passed to WDA form UMAC
4712 ---------------------------------------------------------------------------*/
4713typedef struct
4714{
4715 /* BSSIDX used to find the current session
4716 */
4717 wpt_uint8 bssIdx;
4718} WDI_WowlExitInfoType;
4719
4720/*---------------------------------------------------------------------------
4721 WDI_WowlExitReqParamsType
4722 Wowl exit info passed to WDI form WDA
4723---------------------------------------------------------------------------*/
4724typedef struct
4725{
4726 /*Wowl delete ptrn Info Type, same as WDI_SmeWowlEnterParams */
4727 WDI_WowlExitInfoType wdiWowlExitInfo;
4728 /*Request status callback offered by UMAC - it is called if the current req
4729 has returned PENDING as status; it delivers the status of sending the message
4730 over the BUS */
4731 WDI_ReqStatusCb wdiReqStatusCB;
4732 /*The user data passed in by UMAC, it will be sent back when the above
4733 function pointer will be called */
4734 void* pUserData;
4735}WDI_WowlExitReqParamsType;
4736
4737/*---------------------------------------------------------------------------
4738 WDI_WowlExitRspParamsType
4739 Wowl exit info passed from WDI to WDA
4740---------------------------------------------------------------------------*/
4741typedef struct
4742{
4743 /*Status of the response message*/
4744 WDI_Status status;
4745
4746 /* BSSIDX used to find the current session
4747 */
4748 wpt_uint8 bssIdx;
4749}WDI_WowlExitRspParamsType;
4750
4751/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07004752 WDI_ConfigureAppsCpuWakeupStateReqParamsType
4753 Apps Cpu Wakeup State parameters passed to WDI form WDA
4754---------------------------------------------------------------------------*/
4755typedef struct
4756{
4757 /*Depicts the state of the Apps CPU */
4758 wpt_boolean bIsAppsAwake;
4759 /*Request status callback offered by UMAC - it is called if the current req
4760 has returned PENDING as status; it delivers the status of sending the message
4761 over the BUS */
4762 WDI_ReqStatusCb wdiReqStatusCB;
4763 /*The user data passed in by UMAC, it will be sent back when the above
4764 function pointer will be called */
4765 void* pUserData;
4766}WDI_ConfigureAppsCpuWakeupStateReqParamsType;
4767/*---------------------------------------------------------------------------
4768 WDI_FlushAcReqinfoType
4769---------------------------------------------------------------------------*/
4770typedef struct
4771{
4772 // Message Type
4773 wpt_uint16 usMesgType;
4774
4775 // Message Length
4776 wpt_uint16 usMesgLen;
4777
4778 // Station Index. originates from HAL
4779 wpt_uint8 ucSTAId;
4780
4781 // TID for which the transmit queue is being flushed
4782 wpt_uint8 ucTid;
4783
4784}WDI_FlushAcReqinfoType;
4785
4786/*---------------------------------------------------------------------------
4787 WDI_FlushAcReqParamsType
4788---------------------------------------------------------------------------*/
4789typedef struct
4790{
4791 /*AC Info */
4792 WDI_FlushAcReqinfoType wdiFlushAcInfo;
4793
4794 /*Request status callback offered by UMAC - it is called if the current
4795 req has returned PENDING as status; it delivers the status of sending
4796 the message over the BUS */
4797 WDI_ReqStatusCb wdiReqStatusCB;
4798
4799 /*The user data passed in by UMAC, it will be sent back when the above
4800 function pointer will be called */
4801 void* pUserData;
4802}WDI_FlushAcReqParamsType;
4803
4804/*---------------------------------------------------------------------------
4805 WDI_BtAmpEventinfoType
4806 BT-AMP Event Structure
4807---------------------------------------------------------------------------*/
4808typedef struct
4809{
4810 wpt_uint8 ucBtAmpEventType;
4811
4812} WDI_BtAmpEventinfoType;
4813
4814/*---------------------------------------------------------------------------
4815 WDI_BtAmpEventParamsType
4816---------------------------------------------------------------------------*/
4817typedef struct
4818{
4819 /*BT AMP event Info */
4820 WDI_BtAmpEventinfoType wdiBtAmpEventInfo;
4821
4822 /*Request status callback offered by UMAC - it is called if the current
4823 req has returned PENDING as status; it delivers the status of sending
4824 the message over the BUS */
4825 WDI_ReqStatusCb wdiReqStatusCB;
4826
4827 /*The user data passed in by UMAC, it will be sent back when the above
4828 function pointer will be called */
4829 void* pUserData;
4830}WDI_BtAmpEventParamsType;
4831
Jeff Johnsone7245742012-09-05 17:12:55 -07004832#ifdef FEATURE_OEM_DATA_SUPPORT
4833
4834#ifndef OEM_DATA_REQ_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -08004835#define OEM_DATA_REQ_SIZE 134
Jeff Johnsone7245742012-09-05 17:12:55 -07004836#endif
4837#ifndef OEM_DATA_RSP_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -08004838#define OEM_DATA_RSP_SIZE 1968
Jeff Johnsone7245742012-09-05 17:12:55 -07004839#endif
4840
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304841#ifndef NEW_OEM_DATA_REQ_SIZE
4842#define NEW_OEM_DATA_REQ_SIZE 292
4843#endif
4844
4845#ifndef NEW_OEM_DATA_RSP_SIZE
4846#define NEW_OEM_DATA_RSP_SIZE 2100
4847#endif
4848
Jeff Johnsone7245742012-09-05 17:12:55 -07004849/*----------------------------------------------------------------------------
4850 WDI_oemDataReqInfoType
4851----------------------------------------------------------------------------*/
4852typedef struct
4853{
4854 wpt_macAddr selfMacAddr;
4855 wpt_uint8 oemDataReq[OEM_DATA_REQ_SIZE];
4856}WDI_oemDataReqInfoType;
4857
4858/*----------------------------------------------------------------------------
4859 WDI_oemDataReqParamsType
4860----------------------------------------------------------------------------*/
4861typedef struct
4862{
4863 /*Request status callback offered by UMAC - it is called if the current
4864 req has returned PENDING as status; it delivers the status of sending
4865 the message over the BUS */
4866 WDI_ReqStatusCb wdiReqStatusCB;
4867
4868 /*The user data passed in by UMAC, it will be sent back when the above
4869 function pointer will be called */
4870 void* pUserData;
4871
4872 /*OEM DATA REQ Info */
4873 WDI_oemDataReqInfoType wdiOemDataReqInfo;
4874
4875}WDI_oemDataReqParamsType;
4876
4877/*----------------------------------------------------------------------------
4878 WDI_oemDataRspParamsType
4879----------------------------------------------------------------------------*/
4880typedef struct
4881{
4882 wpt_uint8 oemDataRsp[OEM_DATA_RSP_SIZE];
4883}WDI_oemDataRspParamsType;
4884
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304885/*----------------------------------------------------------------------------
4886 OEM DATA REQ NEW/OEM DATA RSP NEW - DATA STRUCTURES
4887----------------------------------------------------------------------------*/
4888/* Structure for defining req sent to the PE */
4889typedef struct
4890{
Padma, Santhosh Kumar70380cf2016-01-11 18:42:20 +05304891 wpt_macAddr selfMacAddr;
4892 wpt_uint8 reserved[2];
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304893 wpt_uint8 oemDataReqNew[NEW_OEM_DATA_REQ_SIZE];
4894} WDI_OemDataReqNew, WDI_OemDataReqNewConfig;
4895
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +05304896/*************************************************************************************************************/
4897
Jeff Johnsone7245742012-09-05 17:12:55 -07004898#endif /* FEATURE_OEM_DATA_SUPPORT */
Jeff Johnson295189b2012-06-20 16:38:30 -07004899
4900#ifdef WLAN_FEATURE_VOWIFI_11R
4901/*---------------------------------------------------------------------------
4902 WDI_AggrAddTSReqInfoType
4903---------------------------------------------------------------------------*/
4904typedef struct
4905{
4906 /*STA Index*/
4907 wpt_uint8 ucSTAIdx;
4908
4909 /*Identifier for TSpec*/
4910 wpt_uint8 ucTspecIdx;
4911
4912 /*Tspec IE negotiated OTA*/
4913 WDI_TspecIEType wdiTspecIE[WDI_MAX_NO_AC];
4914
4915 /*UAPSD delivery and trigger enabled flags */
4916 wpt_uint8 ucUapsdFlags;
4917
4918 /*SI for each AC*/
4919 wpt_uint8 ucServiceInterval[WDI_MAX_NO_AC];
4920
4921 /*Suspend Interval for each AC*/
4922 wpt_uint8 ucSuspendInterval[WDI_MAX_NO_AC];
4923
4924 /*DI for each AC*/
4925 wpt_uint8 ucDelayedInterval[WDI_MAX_NO_AC];
4926
4927}WDI_AggrAddTSReqInfoType;
4928
4929
4930/*---------------------------------------------------------------------------
4931 WDI_AggrAddTSReqParamsType
4932---------------------------------------------------------------------------*/
4933typedef struct
4934{
4935 /*TSpec Info */
4936 WDI_AggrAddTSReqInfoType wdiAggrTsInfo;
4937
4938 /*Request status callback offered by UMAC - it is called if the current
4939 req has returned PENDING as status; it delivers the status of sending
4940 the message over the BUS */
4941 WDI_ReqStatusCb wdiReqStatusCB;
4942
4943 /*The user data passed in by UMAC, it will be sent back when the above
4944 function pointer will be called */
4945 void* pUserData;
4946}WDI_AggrAddTSReqParamsType;
4947
4948#endif /* WLAN_FEATURE_VOWIFI_11R */
4949
Jeff Johnson295189b2012-06-20 16:38:30 -07004950/*---------------------------------------------------------------------------
4951 WDI_FTMCommandReqType
4952---------------------------------------------------------------------------*/
4953typedef struct
4954{
4955 /* FTM Command Body length */
4956 wpt_uint32 bodyLength;
4957 /* Actual FTM Command body */
4958 void *FTMCommandBody;
4959}WDI_FTMCommandReqType;
Jeff Johnson295189b2012-06-20 16:38:30 -07004960
4961/*---------------------------------------------------------------------------
4962 WDI_WlanSuspendInfoType
4963---------------------------------------------------------------------------*/
4964typedef struct
4965{
4966 /* Mode of Mcast and Bcast filters configured */
4967 wpt_uint8 ucConfiguredMcstBcstFilterSetting;
4968}WDI_WlanSuspendInfoType;
4969
4970/*---------------------------------------------------------------------------
4971 WDI_SuspendParamsType
4972---------------------------------------------------------------------------*/
4973typedef struct
4974{
4975 WDI_WlanSuspendInfoType wdiSuspendParams;
4976
4977 /*Request status callback offered by UMAC - it is called if the current
4978 req has returned PENDING as status; it delivers the status of sending
4979 the message over the BUS */
4980 WDI_ReqStatusCb wdiReqStatusCB;
4981
4982 /*The user data passed in by UMAC, it will be sent back when the above
4983 function pointer will be called */
4984 void* pUserData;
4985
4986}WDI_SuspendParamsType;
4987
4988/*---------------------------------------------------------------------------
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08004989 WDI_TrafficStatsType - This is collected for each STA
4990---------------------------------------------------------------------------*/
4991
4992typedef struct
4993{
4994 /* TX stats */
4995 wpt_uint32 txBytesPushed;
4996 wpt_uint32 txPacketsPushed;
4997
4998 /* RX stats */
4999 wpt_uint32 rxBytesRcvd;
5000 wpt_uint32 rxPacketsRcvd;
5001 wpt_uint32 rxTimeTotal;
5002}WDI_TrafficStatsType;
5003
5004typedef struct
5005{
5006 WDI_TrafficStatsType *pTrafficStats;
5007 wpt_uint32 length;
5008 wpt_uint32 duration;
5009
5010 /*Request status callback offered by UMAC - it is called if the current
5011 req has returned PENDING as status; it delivers the status of sending
5012 the message over the BUS */
5013 WDI_ReqStatusCb wdiReqStatusCB;
5014
5015 /*The user data passed in by UMAC, it will be sent back when the above
5016 function pointer will be called */
5017 void* pUserData;
5018}WDI_TrafficStatsIndType;
5019
Chet Lanctot186b5732013-03-18 10:26:30 -07005020#ifdef WLAN_FEATURE_11W
5021typedef struct
5022{
5023
5024 wpt_boolean bExcludeUnencrypt;
5025 wpt_macAddr bssid;
5026 /*Request status callback offered by UMAC - it is called if the current
5027 req has returned PENDING as status; it delivers the status of sending
5028 the message over the BUS */
5029 WDI_ReqStatusCb wdiReqStatusCB;
5030
5031 /*The user data passed in by UMAC, it will be sent back when the above
5032 function pointer will be called */
5033 void* pUserData;
5034}WDI_ExcludeUnencryptIndType;
5035#endif
5036
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08005037/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07005038 WDI_WlanResumeInfoType
5039---------------------------------------------------------------------------*/
5040typedef struct
5041{
5042 /* Mode of Mcast and Bcast filters configured */
5043 wpt_uint8 ucConfiguredMcstBcstFilterSetting;
5044}WDI_WlanResumeInfoType;
5045
5046/*---------------------------------------------------------------------------
5047 WDI_ResumeParamsType
5048---------------------------------------------------------------------------*/
5049typedef struct
5050{
5051 WDI_WlanResumeInfoType wdiResumeParams;
5052
5053 /*Request status callback offered by UMAC - it is called if the current
5054 req has returned PENDING as status; it delivers the status of sending
5055 the message over the BUS */
5056 WDI_ReqStatusCb wdiReqStatusCB;
5057
5058 /*The user data passed in by UMAC, it will be sent back when the above
5059 function pointer will be called */
5060 void* pUserData;
5061
5062}WDI_ResumeParamsType;
5063
5064#ifdef WLAN_FEATURE_GTK_OFFLOAD
5065/*---------------------------------------------------------------------------
5066 * WDI_GTK_OFFLOAD_REQ
5067 *--------------------------------------------------------------------------*/
5068
5069typedef struct
5070{
5071 wpt_uint32 ulFlags; /* optional flags */
5072 wpt_uint8 aKCK[16]; /* Key confirmation key */
5073 wpt_uint8 aKEK[16]; /* key encryption key */
5074 wpt_uint64 ullKeyReplayCounter; /* replay counter */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005075 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005076} WDI_GtkOffloadReqParams;
5077
5078typedef struct
5079{
5080 WDI_GtkOffloadReqParams gtkOffloadReqParams;
5081
5082 /*Request status callback offered by UMAC - it is called if the current
5083 req has returned PENDING as status; it delivers the status of sending
5084 the message over the BUS */
5085 WDI_ReqStatusCb wdiReqStatusCB;
5086
5087 /*The user data passed in by UMAC, it will be sent back when the above
5088 function pointer will be called */
5089 void* pUserData;
5090} WDI_GtkOffloadReqMsg;
5091
5092/*---------------------------------------------------------------------------
5093 * WDI_GTK_OFFLOAD_RSP
5094 *--------------------------------------------------------------------------*/
5095typedef struct
5096{
5097 /* success or failure */
5098 wpt_uint32 ulStatus;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005099 /*BssIdx of the response */
5100 wpt_uint8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07005101} WDI_GtkOffloadRspParams;
5102
5103typedef struct
5104{
5105 WDI_GtkOffloadRspParams gtkOffloadRspParams;
5106
5107 /*Request status callback offered by UMAC - it is called if the current
5108 req has returned PENDING as status; it delivers the status of sending
5109 the message over the BUS */
5110 WDI_ReqStatusCb wdiReqStatusCB;
5111
5112 /*The user data passed in by UMAC, it will be sent back when the above
5113 function pointer will be called */
5114 void* pUserData;
5115} WDI_GtkOffloadRspMsg;
5116
5117
5118/*---------------------------------------------------------------------------
5119* WDI_GTK_OFFLOAD_GETINFO_REQ
5120*--------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005121typedef struct
5122{
5123 /*BssIdx of the response */
5124 wpt_macAddr bssId;
5125} WDI_GtkOffloadGetInfoReqParams;
Jeff Johnson295189b2012-06-20 16:38:30 -07005126
5127typedef struct
5128{
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005129
5130 WDI_GtkOffloadGetInfoReqParams WDI_GtkOffloadGetInfoReqParams;
Jeff Johnson295189b2012-06-20 16:38:30 -07005131 /*Request status callback offered by UMAC - it is called if the current
5132 req has returned PENDING as status; it delivers the status of sending
5133 the message over the BUS */
5134 WDI_ReqStatusCb wdiReqStatusCB;
5135
5136 /*The user data passed in by UMAC, it will be sent back when the above
5137 function pointer will be called */
5138 void* pUserData;
5139} WDI_GtkOffloadGetInfoReqMsg;
5140
5141/*---------------------------------------------------------------------------
5142* WDI_GTK_OFFLOAD_GETINFO_RSP
5143*--------------------------------------------------------------------------*/
5144typedef struct
5145{
5146 wpt_uint32 ulStatus; /* success or failure */
5147 wpt_uint64 ullKeyReplayCounter; /* current replay counter value */
5148 wpt_uint32 ulTotalRekeyCount; /* total rekey attempts */
5149 wpt_uint32 ulGTKRekeyCount; /* successful GTK rekeys */
5150 wpt_uint32 ulIGTKRekeyCount; /* successful iGTK rekeys */
Gopichand Nakkala870cbae2013-03-15 21:16:09 +05305151 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005152} WDI_GtkOffloadGetInfoRspParams;
5153
5154typedef struct
5155{
5156 WDI_GtkOffloadGetInfoRspParams gtkOffloadGetInfoRspParams;
5157
5158 /*Request status callback offered by UMAC - it is called if the current
5159 req has returned PENDING as status; it delivers the status of sending
5160 the message over the BUS */
5161 WDI_ReqStatusCb wdiReqStatusCB;
5162
5163 /*The user data passed in by UMAC, it will be sent back when the above
5164 function pointer will be called */
5165 void* pUserData;
5166} WDI_GtkOffloadGetInfoRspMsg;
5167#endif // WLAN_FEATURE_GTK_OFFLOAD
5168
5169/*---------------------------------------------------------------------------
5170 WDI_SuspendResumeRspParamsType
5171---------------------------------------------------------------------------*/
5172typedef struct
5173{
5174 /*Status of the response*/
5175 WDI_Status wdiStatus;
5176}WDI_SuspendResumeRspParamsType;
5177
Leo Chang9056f462013-08-01 19:21:11 -07005178#ifdef FEATURE_WLAN_LPHB
5179/*---------------------------------------------------------------------------
5180 WDI Low Power Heart Beat Config request
5181 Copy from sirApi.h to avoid compile error
5182---------------------------------------------------------------------------*/
5183#define WDI_LPHB_FILTER_LEN 64
5184
5185typedef enum
5186{
5187 WDI_LPHB_SET_EN_PARAMS_INDID = 0x0001,
5188 WDI_LPHB_SET_TCP_PARAMS_INDID,
5189 WDI_LPHB_SET_TCP_PKT_FILTER_INDID,
5190 WDI_LPHB_SET_UDP_PARAMS_INDID,
5191 WDI_LPHB_SET_UDP_PKT_FILTER_INDID,
5192 WDI_LPHB_SET_NETWORK_INFO_INDID,
5193} WDI_LPHBIndType;
5194
5195typedef struct
5196{
5197 wpt_uint8 enable;
5198 wpt_uint8 item;
5199 wpt_uint8 session;
5200} WDI_LPHBEnableStruct;
5201
5202typedef struct
5203{
5204 wpt_uint32 srv_ip;
5205 wpt_uint32 dev_ip;
5206 wpt_uint16 src_port;
5207 wpt_uint16 dst_port;
5208 wpt_uint16 timeout;
5209 wpt_uint8 session;
5210 wpt_uint8 gateway_mac[WDI_MAC_ADDR_LEN];
Leo Changd9df8aa2013-09-26 13:32:26 -07005211 wpt_uint16 timePeriodSec; // in seconds
5212 wpt_uint32 tcpSn;
Leo Chang9056f462013-08-01 19:21:11 -07005213} WDI_LPHBTcpParamStruct;
5214
5215typedef struct
5216{
5217 wpt_uint16 length;
5218 wpt_uint8 offset;
5219 wpt_uint8 session;
5220 wpt_uint8 filter[WDI_LPHB_FILTER_LEN];
5221} WDI_LPHBTcpFilterStruct;
5222
5223typedef struct
5224{
5225 wpt_uint32 srv_ip;
5226 wpt_uint32 dev_ip;
5227 wpt_uint16 src_port;
5228 wpt_uint16 dst_port;
5229 wpt_uint16 interval;
5230 wpt_uint16 timeout;
5231 wpt_uint8 session;
5232 wpt_uint8 gateway_mac[WDI_MAC_ADDR_LEN];
5233} WDI_LPHBUdpParamStruct;
5234
5235typedef struct
5236{
5237 wpt_uint16 length;
5238 wpt_uint8 offset;
5239 wpt_uint8 session;
5240 wpt_uint8 filter[WDI_LPHB_FILTER_LEN];
5241} WDI_LPHBUdpFilterStruct;
5242
5243typedef struct
5244{
5245 wpt_uint16 cmd;
5246 wpt_uint16 dummy;
5247 union
5248 {
5249 WDI_LPHBEnableStruct lphbEnableReq;
5250 WDI_LPHBTcpParamStruct lphbTcpParamReq;
5251 WDI_LPHBTcpFilterStruct lphbTcpFilterReq;
5252 WDI_LPHBUdpParamStruct lphbUdpParamReq;
5253 WDI_LPHBUdpFilterStruct lphbUdpFilterReq;
5254 } params;
5255} WDI_LPHBReq;
5256#endif /* FEATURE_WLAN_LPHB */
Jeff Johnson295189b2012-06-20 16:38:30 -07005257
Jeff Johnson295189b2012-06-20 16:38:30 -07005258/*---------------------------------------------------------------------------
5259 WDI_AuthType
5260---------------------------------------------------------------------------*/
5261typedef enum
5262{
5263 WDI_AUTH_TYPE_ANY = 0,
5264
5265 WDI_AUTH_TYPE_NONE,
5266 WDI_AUTH_TYPE_OPEN_SYSTEM,
5267 WDI_AUTH_TYPE_SHARED_KEY,
5268
5269 WDI_AUTH_TYPE_WPA,
5270 WDI_AUTH_TYPE_WPA_PSK,
5271 WDI_AUTH_TYPE_WPA_NONE,
5272
5273 WDI_AUTH_TYPE_RSN,
5274 WDI_AUTH_TYPE_RSN_PSK,
5275 WDI_AUTH_TYPE_FT_RSN,
5276 WDI_AUTH_TYPE_FT_RSN_PSK,
5277 WDI_AUTH_TYPE_WAPI_WAI_CERTIFICATE,
5278 WDI_AUTH_TYPE_WAPI_WAI_PSK,
5279 WDI_AUTH_TYPE_MAX = 0xFFFFFFFF /*expanding the type to UINT32*/
5280
5281}WDI_AuthType;
5282
5283/*---------------------------------------------------------------------------
5284 WDI_EdType
5285---------------------------------------------------------------------------*/
5286typedef enum
5287{
5288 WDI_ED_ANY = 0,
5289 WDI_ED_NONE,
5290 WDI_ED_WEP40,
5291 WDI_ED_WEP104,
5292 WDI_ED_TKIP,
5293 WDI_ED_CCMP,
5294 WDI_ED_WPI,
5295 WDI_ED_AES_128_CMAC,
5296 WDI_ED_MAX = 0xFFFFFFFF /*expanding the type to UINT32*/
5297} WDI_EdType;
5298
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005299#ifdef FEATURE_WLAN_SCAN_PNO
5300
5301/*Max number of channels for a given network supported by PNO*/
5302#define WDI_PNO_MAX_NETW_CHANNELS 26
5303
5304/*Max number of channels for a given network supported by PNO*/
5305#define WDI_PNO_MAX_NETW_CHANNELS_EX 60
5306
5307/*The max number of programable networks for PNO*/
5308#define WDI_PNO_MAX_SUPP_NETWORKS 16
5309
5310/*The max number of scan timers programable in Riva*/
5311#define WDI_PNO_MAX_SCAN_TIMERS 10
5312
5313#define WDI_PNO_MAX_PROBE_SIZE 450
Jeff Johnson295189b2012-06-20 16:38:30 -07005314
5315/*---------------------------------------------------------------------------
5316 WDI_PNOMode
5317---------------------------------------------------------------------------*/
5318typedef enum
5319{
5320 /*Network offload is to start immediately*/
5321 WDI_PNO_MODE_IMMEDIATE,
5322
5323 /*Network offload is to start on host suspend*/
5324 WDI_PNO_MODE_ON_SUSPEND,
5325
5326 /*Network offload is to start on host resume*/
5327 WDI_PNO_MODE_ON_RESUME,
5328 WDI_PNO_MODE_MAX = 0xFFFFFFFF
5329} WDI_PNOMode;
5330
5331/* SSID broadcast type */
5332typedef enum
5333{
5334 WDI_BCAST_UNKNOWN = 0,
5335 WDI_BCAST_NORMAL = 1,
5336 WDI_BCAST_HIDDEN = 2,
5337
5338 WDI_BCAST_TYPE_MAX = 0xFFFFFFFF
5339} WDI_SSIDBcastType;
5340
5341/*---------------------------------------------------------------------------
5342 WDI_NetworkType
5343---------------------------------------------------------------------------*/
5344typedef struct
5345{
5346 /*The SSID of the preferred network*/
5347 WDI_MacSSid ssId;
5348
5349 /*The authentication method of the preferred network*/
5350 WDI_AuthType wdiAuth;
5351
5352 /*The encryption method of the preferred network*/
5353 WDI_EdType wdiEncryption;
5354
5355 /*SSID broadcast type, normal, hidden or unknown*/
5356 WDI_SSIDBcastType wdiBcastNetworkType;
5357
5358 /*channel count - 0 for all channels*/
5359 wpt_uint8 ucChannelCount;
5360
5361 /*the actual channels*/
Madan Mohan Koyyalamudi4bb5d2e2013-09-26 17:36:46 +05305362 wpt_uint8 aChannels[WDI_PNO_MAX_NETW_CHANNELS_EX];
Jeff Johnson295189b2012-06-20 16:38:30 -07005363
5364 /*rssi threshold that a network must meet to be considered, 0 - for any*/
5365 wpt_uint8 rssiThreshold;
5366} WDI_NetworkType;
5367
5368
5369/*---------------------------------------------------------------------------
5370 WDI_ScanTimer
5371---------------------------------------------------------------------------*/
5372typedef struct
5373{
5374 /*The timer value*/
5375 wpt_uint32 uTimerValue;
5376
5377 /*The amount of time we should be repeating the interval*/
5378 wpt_uint32 uTimerRepeat;
5379} WDI_ScanTimer;
5380
5381/*---------------------------------------------------------------------------
5382 WDI_ScanTimersType
5383---------------------------------------------------------------------------*/
5384typedef struct
5385{
5386 /*The number of value pair intervals present in the array*/
5387 wpt_uint8 ucScanTimersCount;
5388
5389 /*The time-repeat value pairs*/
5390 WDI_ScanTimer aTimerValues[WDI_PNO_MAX_SCAN_TIMERS];
5391} WDI_ScanTimersType;
5392
5393/*---------------------------------------------------------------------------
5394 WDI_PNOScanReqType
5395---------------------------------------------------------------------------*/
5396typedef struct
5397{
5398 /*Enable or disable PNO feature*/
5399 wpt_uint8 bEnable;
5400
5401 /*PNO mode requested*/
5402 WDI_PNOMode wdiModePNO;
5403
5404 /*Network count*/
5405 wpt_uint8 ucNetworksCount;
5406
5407 /*The networks to look for*/
5408 WDI_NetworkType aNetworks[WDI_PNO_MAX_SUPP_NETWORKS];
5409
5410 /*Scan timer intervals*/
5411 WDI_ScanTimersType scanTimers;
5412
5413 /*Probe template for 2.4GHz band*/
5414 wpt_uint16 us24GProbeSize;
5415 wpt_uint8 a24GProbeTemplate[WDI_PNO_MAX_PROBE_SIZE];
5416
5417 /*Probe template for 5GHz band*/
5418 wpt_uint16 us5GProbeSize;
5419 wpt_uint8 a5GProbeTemplate[WDI_PNO_MAX_PROBE_SIZE];
5420} WDI_PNOScanReqType;
5421
5422/*---------------------------------------------------------------------------
5423 WDI_PNOScanReqParamsType
5424 PNO info passed to WDI form WDA
5425---------------------------------------------------------------------------*/
5426typedef struct
5427{
5428 /* PNO Info Type, same as tPrefNetwListParams */
5429 WDI_PNOScanReqType wdiPNOScanInfo;
5430 /* Request status callback offered by UMAC - it is called if the current req
5431 has returned PENDING as status; it delivers the status of sending the message
5432 over the BUS */
5433 WDI_ReqStatusCb wdiReqStatusCB;
5434 /* The user data passed in by UMAC, it will be sent back when the above
5435 function pointer will be called */
5436 void* pUserData;
5437} WDI_PNOScanReqParamsType;
5438
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005439/*---------------------------------------------------------------------------
5440 WDI_SetRssiFilterReqParamsType
5441 PNO info passed to WDI form WDA
5442---------------------------------------------------------------------------*/
5443typedef struct
5444{
5445 /* RSSI Threshold */
5446 wpt_uint8 rssiThreshold;
5447 /* Request status callback offered by UMAC - it is called if the current req
5448 has returned PENDING as status; it delivers the status of sending the message
5449 over the BUS */
5450 WDI_ReqStatusCb wdiReqStatusCB;
5451 /* The user data passed in by UMAC, it will be sent back when the above
5452 function pointer will be called */
5453 void* pUserData;
5454} WDI_SetRssiFilterReqParamsType;
5455
5456/*---------------------------------------------------------------------------
5457 WDI_UpdateScanParamsInfo
5458---------------------------------------------------------------------------*/
5459typedef struct
5460{
5461 /*Is 11d enabled*/
5462 wpt_uint8 b11dEnabled;
5463
5464 /*Was UMAc able to find the regulatory domain*/
5465 wpt_uint8 b11dResolved;
5466
5467 /*Number of channel allowed in the regulatory domain*/
5468 wpt_uint8 ucChannelCount;
5469
5470 /*The actual channels allowed in the regulatory domain*/
5471 wpt_uint8 aChannels[WDI_PNO_MAX_NETW_CHANNELS_EX];
5472
5473 /*Passive min channel time*/
5474 wpt_uint16 usPassiveMinChTime;
5475
5476 /*Passive max channel time*/
5477 wpt_uint16 usPassiveMaxChTime;
5478
5479 /*Active min channel time*/
5480 wpt_uint16 usActiveMinChTime;
5481
5482 /*Active max channel time*/
5483 wpt_uint16 usActiveMaxChTime;
5484
5485 /*channel bonding info*/
5486 wpt_uint8 cbState;
5487} WDI_UpdateScanParamsInfo;
5488
5489/*---------------------------------------------------------------------------
5490 WDI_UpdateScanParamsInfoType
5491 UpdateScanParams info passed to WDI form WDA
5492---------------------------------------------------------------------------*/
5493typedef struct
5494{
5495 /* PNO Info Type, same as tUpdateScanParams */
5496 WDI_UpdateScanParamsInfo wdiUpdateScanParamsInfo;
5497 /* Request status callback offered by UMAC - it is called if the current req
5498 has returned PENDING as status; it delivers the status of sending the message
5499 over the BUS */
5500 WDI_ReqStatusCb wdiReqStatusCB;
5501 /* The user data passed in by UMAC, it will be sent back when the above
5502 function pointer will be called */
5503 void* pUserData;
5504} WDI_UpdateScanParamsInfoType;
5505#endif //FEATURE_WLAN_SCAN_PNO
5506
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005507#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
5508
Varun Reddy Yeturu52231ea2014-02-06 12:00:56 -08005509#define WDI_ROAM_SCAN_MAX_CHANNELS 80
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005510#define WDI_ROAM_SCAN_MAX_PROBE_SIZE 450
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005511
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005512typedef struct
5513{
5514 /*The SSID of the preferred network*/
5515 WDI_MacSSid ssId;
5516 wpt_uint8 currAPbssid[WDI_MAC_ADDR_LEN];
5517
5518 /*The authentication method of the preferred network*/
5519 WDI_AuthType authentication;
5520
5521 /*The encryption method of the preferred network*/
5522 WDI_EdType encryption;
5523 WDI_EdType mcencryption;
5524
5525 /*SSID broadcast type, normal, hidden or unknown*/
5526 //WDI_SSIDBcastType wdiBcastNetworkType;
5527
5528 /*channel count - 0 for all channels*/
5529 wpt_uint8 ChannelCount;
5530
5531 /*the actual channels*/
5532 wpt_uint8 ChannelCache[WDI_ROAM_SCAN_MAX_CHANNELS];
5533
5534} WDI_RoamNetworkType;
5535
5536typedef struct WDIMobilityDomainInfo
5537{
5538 wpt_uint8 mdiePresent;
5539 wpt_uint16 mobilityDomain;
5540} WDI_MobilityDomainInfo;
5541
5542/*---------------------------------------------------------------------------
5543 WDI_RoamOffloadScanInfo
5544---------------------------------------------------------------------------*/
5545typedef struct
5546{
5547 wpt_boolean RoamScanOffloadEnabled;
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08005548 wpt_boolean MAWCEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005549 wpt_uint8 LookupThreshold;
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08005550 wpt_uint8 RxSensitivityThreshold;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005551 wpt_uint8 RoamRssiDiff;
5552 wpt_uint8 ChannelCacheType;
5553 wpt_uint8 Command;
5554 wpt_uint8 StartScanReason;
5555 wpt_uint16 NeighborScanTimerPeriod;
5556 wpt_uint16 NeighborRoamScanRefreshPeriod;
5557 wpt_uint16 NeighborScanChannelMinTime;
5558 wpt_uint16 NeighborScanChannelMaxTime;
5559 wpt_uint16 EmptyRefreshScanPeriod;
5560 wpt_uint8 ValidChannelCount;
5561 wpt_uint8 ValidChannelList[WDI_ROAM_SCAN_MAX_CHANNELS];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005562 wpt_boolean IsESEEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005563 /*Probe template for 2.4GHz band*/
5564 wpt_uint16 us24GProbeSize;
5565 wpt_uint8 a24GProbeTemplate[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
5566
5567 /*Probe template for 5GHz band*/
5568 wpt_uint16 us5GProbeSize;
5569 wpt_uint8 a5GProbeTemplate[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005570 /*LFR BG Scan will currently look for only one network to which it is initially connected.
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005571 * As per requirement, later, the following structure can be used as an array of networks.*/
5572 WDI_RoamNetworkType ConnectedNetwork;
5573 WDI_MobilityDomainInfo MDID;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005574 wpt_uint8 nProbes;
5575 wpt_uint16 HomeAwayTime;
Sreelakshmi Konamki70bfdaf2017-05-29 18:47:29 +05305576 wpt_uint8 WeakZoneRssiThresholdForRoam;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005577} WDI_RoamOffloadScanInfo;
5578
5579typedef struct
5580{
5581 /* Start Roam Candidate Lookup Offload Back Ground Info Type */
5582 WDI_RoamOffloadScanInfo wdiRoamOffloadScanInfo;
5583 /* Request status callback offered by UMAC - it is called if the current req
5584 has returned PENDING as status; it delivers the status of sending the message
5585 over the BUS */
5586 WDI_ReqStatusCb wdiReqStatusCB;
5587 /* The user data passed in by UMAC, it will be sent back when the above
5588 function pointer will be called */
5589 void* pUserData;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07005590} WDI_RoamScanOffloadReqParamsType;
Kapil Gupta04ab1992016-06-26 13:36:51 +05305591
5592typedef struct
5593{
5594 wpt_uint32 requestId;
5595 wpt_uint32 rateUpThreshold;
5596 wpt_uint32 rateDownThreshold;
5597 wpt_uint32 isPERRoamCCAEnabled;
5598 wpt_uint32 waitPeriodForNextPERScan;
5599 wpt_uint32 PERtimerThreshold;
5600 wpt_uint32 PERroamTriggerPercent;
Kapil Guptac69c28a2016-08-25 14:11:17 +05305601 wpt_int16 PERRoamFullScanThreshold;
Kapil Gupta04ab1992016-06-26 13:36:51 +05305602} WDI_PERRoamOffloadScanInfo;
5603
5604typedef struct
5605{
5606 wpt_boolean roamScanReq; // Request info for all peers
5607} WDI_PERRoamTriggerScanInfo;
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08005608#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07005609
5610/*---------------------------------------------------------------------------
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +05305611 WDI_HT40ObssScanIndType
5612---------------------------------------------------------------------------*/
5613typedef struct
5614{
5615 wpt_uint8 cmdType;
5616 wpt_uint8 scanType;
5617 wpt_uint16 OBSSScanPassiveDwellTime; // In TUs
5618 wpt_uint16 OBSSScanActiveDwellTime; // In TUs
5619 wpt_uint16 BSSChannelWidthTriggerScanInterval; // In seconds
5620 wpt_uint16 OBSSScanPassiveTotalPerChannel; // In TUs
5621 wpt_uint16 OBSSScanActiveTotalPerChannel; // In TUs
5622 wpt_uint16 BSSWidthChannelTransitionDelayFactor;
5623 wpt_uint16 OBSSScanActivityThreshold;
5624 wpt_uint8 selfStaIdx;
5625 wpt_uint8 bssIdx;
5626 wpt_uint8 fortyMHZIntolerent;
5627 wpt_uint8 channelCount;
5628 wpt_uint8 channels[WDI_ROAM_SCAN_MAX_CHANNELS];
5629 wpt_uint8 currentOperatingClass;
5630 wpt_uint16 ieFieldLen;
5631 wpt_uint8 ieField[WDI_ROAM_SCAN_MAX_PROBE_SIZE];
5632} WDI_HT40ObssScanIndType;
5633
5634
5635/*---------------------------------------------------------------------------
5636 WDI_OBSSScanIndParamsType
5637---------------------------------------------------------------------------*/
5638typedef struct
5639{
5640 WDI_HT40ObssScanIndType wdiHT40ObssScanParam;
5641
5642 /*Request status callback offered by UMAC - it is called if the current
5643 req has returned PENDING as status; it delivers the status of sending
5644 the message over the BUS */
5645 WDI_ReqStatusCb wdiReqStatusCB;
5646
5647 /*The user data passed in by UMAC, it will be sent back when the above
5648 function pointer will be called */
5649 void* pUserData;
5650
5651}WDI_HT40ObssScanParamsType;
5652
5653/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07005654 WDI_UpdateScanParamsInfo
5655---------------------------------------------------------------------------*/
5656typedef struct
5657{
5658 /* Ignore DTIM */
5659 wpt_uint32 uIgnoreDTIM;
5660
5661 /*DTIM Period*/
5662 wpt_uint32 uDTIMPeriod;
5663
5664 /* Listen Interval */
5665 wpt_uint32 uListenInterval;
5666
5667 /* Broadcast Multicas Filter */
5668 wpt_uint32 uBcastMcastFilter;
5669
5670 /* Beacon Early Termination */
5671 wpt_uint32 uEnableBET;
5672
5673 /* Beacon Early Termination Interval */
5674 wpt_uint32 uBETInterval;
5675
Yue Mac24062f2013-05-13 17:01:29 -07005676 /* MAX LI for modulated DTIM */
5677 wpt_uint32 uMaxLIModulatedDTIM;
5678
Jeff Johnson295189b2012-06-20 16:38:30 -07005679} WDI_SetPowerParamsInfo;
5680
5681/*---------------------------------------------------------------------------
5682 WDI_UpdateScanParamsInfoType
5683 UpdateScanParams info passed to WDI form WDA
5684---------------------------------------------------------------------------*/
5685typedef struct
5686{
5687 /* Power params Info Type, same as tSetPowerParamsReq */
5688 WDI_SetPowerParamsInfo wdiSetPowerParamsInfo;
5689 /* Request status callback offered by UMAC - it is called if the current req
5690 has returned PENDING as status; it delivers the status of sending the message
5691 over the BUS */
5692 WDI_ReqStatusCb wdiReqStatusCB;
5693 /* The user data passed in by UMAC, it will be sent back when the above
5694 function pointer will be called */
5695 void* pUserData;
5696}WDI_SetPowerParamsReqParamsType;
5697
5698/*---------------------------------------------------------------------------
5699 WDI_SetTxPerTrackingConfType
5700 Wowl add ptrn info passed to WDA form UMAC
5701---------------------------------------------------------------------------*/
5702typedef struct
5703{
5704 wpt_uint8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */
5705 wpt_uint8 ucTxPerTrackingPeriod; /* Check period, unit is sec. */
5706 wpt_uint8 ucTxPerTrackingRatio; /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. */
5707 wpt_uint32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */
5708} WDI_TxPerTrackingParamType;
5709
5710/*---------------------------------------------------------------------------
5711 WDI_SetTxPerTrackingReqParamsType
5712 Tx PER Tracking parameters passed to WDI from WDA
5713---------------------------------------------------------------------------*/
5714typedef struct
5715{
5716 /* Configurations for Tx PER Tracking */
5717 WDI_TxPerTrackingParamType wdiTxPerTrackingParam;
5718 /*Request status callback offered by UMAC - it is called if the current req
5719 has returned PENDING as status; it delivers the status of sending the message
5720 over the BUS */
5721 WDI_ReqStatusCb wdiReqStatusCB;
5722 /*The user data passed in by UMAC, it will be sent back when the above
5723 function pointer will be called */
5724 void* pUserData;
5725}WDI_SetTxPerTrackingReqParamsType;
5726
5727#ifdef WLAN_FEATURE_PACKET_FILTERING
5728/*---------------------------------------------------------------------------
5729 Packet Filtering Parameters
5730---------------------------------------------------------------------------*/
5731
5732#define WDI_IPV4_ADDR_LEN 4
5733#define WDI_MAC_ADDR_LEN 6
5734#define WDI_MAX_FILTER_TEST_DATA_LEN 8
5735#define WDI_MAX_NUM_MULTICAST_ADDRESS 240
5736#define WDI_MAX_NUM_FILTERS 20
5737#define WDI_MAX_NUM_TESTS_PER_FILTER 10
5738
5739//
5740// Receive Filter Parameters
5741//
5742typedef enum
5743{
5744 WDI_RCV_FILTER_TYPE_INVALID,
5745 WDI_RCV_FILTER_TYPE_FILTER_PKT,
5746 WDI_RCV_FILTER_TYPE_BUFFER_PKT,
5747 WDI_RCV_FILTER_TYPE_MAX_ENUM_SIZE
5748}WDI_ReceivePacketFilterType;
5749
5750typedef enum
5751{
5752 WDI_FILTER_HDR_TYPE_INVALID,
5753 WDI_FILTER_HDR_TYPE_MAC,
5754 WDI_FILTER_HDR_TYPE_ARP,
5755 WDI_FILTER_HDR_TYPE_IPV4,
5756 WDI_FILTER_HDR_TYPE_IPV6,
5757 WDI_FILTER_HDR_TYPE_UDP,
5758 WDI_FILTER_HDR_TYPE_MAX
5759}WDI_RcvPktFltProtocolType;
5760
5761typedef enum
5762{
5763 WDI_FILTER_CMP_TYPE_INVALID,
5764 WDI_FILTER_CMP_TYPE_EQUAL,
5765 WDI_FILTER_CMP_TYPE_MASK_EQUAL,
5766 WDI_FILTER_CMP_TYPE_NOT_EQUAL,
5767 WDI_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
5768 WDI_FILTER_CMP_TYPE_MAX
5769}WDI_RcvPktFltCmpFlagType;
5770
5771typedef struct
5772{
5773 WDI_RcvPktFltProtocolType protocolLayer;
5774 WDI_RcvPktFltCmpFlagType cmpFlag;
5775/* Length of the data to compare */
5776 wpt_uint16 dataLength;
5777/* from start of the respective frame header */
5778 wpt_uint8 dataOffset;
5779 wpt_uint8 reserved; /* Reserved field */
5780/* Data to compare */
5781 wpt_uint8 compareData[WDI_MAX_FILTER_TEST_DATA_LEN];
5782/* Mask to be applied on the received packet data before compare */
5783 wpt_uint8 dataMask[WDI_MAX_FILTER_TEST_DATA_LEN];
5784}WDI_RcvPktFilterFieldParams;
5785
5786typedef struct
5787{
5788 wpt_uint8 filterId;
5789 wpt_uint8 filterType;
5790 wpt_uint32 numFieldParams;
5791 wpt_uint32 coalesceTime;
Jeff Johnsone7245742012-09-05 17:12:55 -07005792 wpt_macAddr selfMacAddr;
5793 wpt_macAddr bssId;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005794 WDI_RcvPktFilterFieldParams paramsData[1];
5795
Jeff Johnson295189b2012-06-20 16:38:30 -07005796}WDI_RcvPktFilterCfgType;
5797
5798typedef struct
5799{
5800 /*Request status callback offered by UMAC - it is called if the current
5801 req has returned PENDING as status; it delivers the status of sending
5802 the message over the BUS */
5803 WDI_ReqStatusCb wdiReqStatusCB;
5804
5805 /*The user data passed in by UMAC, it will be sent back when the above
5806 function pointer will be called */
5807 void* pUserData;
5808
5809 // Variable length packet filter field params
5810 WDI_RcvPktFilterCfgType wdiPktFilterCfg;
5811} WDI_SetRcvPktFilterReqParamsType;
5812
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005813typedef struct
5814{
5815 /*Result of the operation*/
5816 WDI_Status wdiStatus;
5817 /* BSSIDX of the Set Receive Filter
5818 */
5819 wpt_uint8 bssIdx;
5820} WDI_SetRcvPktFilterRspParamsType;
5821
Jeff Johnson295189b2012-06-20 16:38:30 -07005822//
5823// Filter Packet Match Count Parameters
5824//
5825typedef struct
5826{
5827 /*Request status callback offered by UMAC - it is called if the current
5828 req has returned PENDING as status; it delivers the status of sending
5829 the message over the BUS */
5830 WDI_ReqStatusCb wdiReqStatusCB;
5831
5832 /*The user data passed in by UMAC, it will be sent back when the above
5833 function pointer will be called */
5834 void* pUserData;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005835
5836 /* BSSID of the Match count
5837 */
5838 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005839} WDI_RcvFltPktMatchCntReqParamsType;
5840
5841typedef struct
5842{
5843 wpt_uint8 filterId;
5844 wpt_uint32 matchCnt;
5845} WDI_RcvFltPktMatchCnt;
5846
5847typedef struct
5848{
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005849 /*Result of the operation*/
5850 WDI_Status wdiStatus;
Jeff Johnson295189b2012-06-20 16:38:30 -07005851
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005852 /* BSSIDX of the Match count response
5853 */
5854 wpt_uint8 bssIdx;
5855
Jeff Johnson295189b2012-06-20 16:38:30 -07005856} WDI_RcvFltPktMatchCntRspParamsType;
5857
Jeff Johnson295189b2012-06-20 16:38:30 -07005858//
5859// Receive Filter Clear Parameters
5860//
5861typedef struct
5862{
5863 wpt_uint32 status; /* only valid for response message */
5864 wpt_uint8 filterId;
Jeff Johnsone7245742012-09-05 17:12:55 -07005865 wpt_macAddr selfMacAddr;
5866 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005867}WDI_RcvFltPktClearParam;
5868
5869typedef struct
5870{
5871 WDI_RcvFltPktClearParam filterClearParam;
5872 /*Request status callback offered by UMAC - it is called if the current
5873 req has returned PENDING as status; it delivers the status of sending
5874 the message over the BUS */
5875 WDI_ReqStatusCb wdiReqStatusCB;
5876
5877 /*The user data passed in by UMAC, it will be sent back when the above
5878 function pointer will be called */
5879 void* pUserData;
5880} WDI_RcvFltPktClearReqParamsType;
5881
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005882typedef struct
5883{
5884 /*Result of the operation*/
5885 WDI_Status wdiStatus;
5886 /* BSSIDX of the Match count response
5887 */
5888 wpt_uint8 bssIdx;
5889
5890} WDI_RcvFltPktClearRspParamsType;
5891
Jeff Johnson295189b2012-06-20 16:38:30 -07005892//
5893// Multicast Address List Parameters
5894//
5895typedef struct
5896{
5897 wpt_uint32 ulMulticastAddrCnt;
5898 wpt_macAddr multicastAddr[WDI_MAX_NUM_MULTICAST_ADDRESS];
Jeff Johnsone7245742012-09-05 17:12:55 -07005899 wpt_macAddr selfMacAddr;
5900 wpt_macAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07005901} WDI_RcvFltMcAddrListType;
5902
5903typedef struct
5904{
5905 WDI_RcvFltMcAddrListType mcAddrList;
5906 /*Request status callback offered by UMAC - it is called if the current
5907 req has returned PENDING as status; it delivers the status of sending
5908 the message over the BUS */
5909 WDI_ReqStatusCb wdiReqStatusCB;
5910
5911 /*The user data passed in by UMAC, it will be sent back when the above
5912 function pointer will be called */
5913 void* pUserData;
5914} WDI_RcvFltPktSetMcListReqParamsType;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07005915
5916typedef struct
5917{
5918 /*Result of the operation*/
5919 WDI_Status wdiStatus;
5920 /* BSSIDX of the Match count response
5921 */
5922 wpt_uint8 bssIdx;
5923} WDI_RcvFltPktSetMcListRspParamsType;
5924
Jeff Johnson295189b2012-06-20 16:38:30 -07005925#endif // WLAN_FEATURE_PACKET_FILTERING
5926
5927/*---------------------------------------------------------------------------
5928 WDI_HALDumpCmdReqInfoType
5929---------------------------------------------------------------------------*/
5930typedef struct
5931{
5932 /*command*/
5933 wpt_uint32 command;
5934
5935 /*Arguments*/
5936 wpt_uint32 argument1;
5937 wpt_uint32 argument2;
5938 wpt_uint32 argument3;
5939 wpt_uint32 argument4;
5940
5941}WDI_HALDumpCmdReqInfoType;
5942
5943/*---------------------------------------------------------------------------
5944 WDI_HALDumpCmdReqParamsType
5945---------------------------------------------------------------------------*/
5946typedef struct
5947{
5948 /*NV Blob Info*/
5949 WDI_HALDumpCmdReqInfoType wdiHALDumpCmdInfoType;
5950
5951 /*Request status callback offered by UMAC - it is called if the current
5952 req has returned PENDING as status; it delivers the status of sending
5953 the message over the BUS */
5954 WDI_ReqStatusCb wdiReqStatusCB;
5955
5956 /*The user data passed in by UMAC, it will be sent back when the above
5957 function pointer will be called */
5958 void* pUserData;
5959
5960}WDI_HALDumpCmdReqParamsType;
5961
5962
5963/*---------------------------------------------------------------------------
5964 WDI_HALDumpCmdRspParamsType
5965---------------------------------------------------------------------------*/
5966typedef struct
5967{
5968 /*Result of the operation*/
5969 WDI_Status wdiStatus;
5970
5971 /* length of the buffer */
5972 wpt_uint16 usBufferLen;
5973
5974 /* Buffer */
5975 wpt_uint8 *pBuffer;
5976}WDI_HALDumpCmdRspParamsType;
5977
5978
5979/*---------------------------------------------------------------------------
5980 WDI_SetTmLevelReqType
5981---------------------------------------------------------------------------*/
5982typedef struct
5983{
5984 wpt_uint16 tmMode;
5985 wpt_uint16 tmLevel;
5986 void* pUserData;
5987}WDI_SetTmLevelReqType;
5988
5989/*---------------------------------------------------------------------------
5990 WDI_SetTmLevelRspType
5991---------------------------------------------------------------------------*/
5992typedef struct
5993{
5994 WDI_Status wdiStatus;
5995 void* pUserData;
5996}WDI_SetTmLevelRspType;
5997
Leo Chang9056f462013-08-01 19:21:11 -07005998#ifdef FEATURE_WLAN_LPHB
5999/*---------------------------------------------------------------------------
6000 WDI_LPHBConfigParamsType
6001---------------------------------------------------------------------------*/
6002typedef struct
6003{
6004 void* pLphsConfIndData;
6005}WDI_LPHBConfigParamsType;
6006#endif /* FEATURE_WLAN_LPHB */
6007
Yue Mab9c86f42013-08-14 15:59:08 -07006008/*---------------------------------------------------------------------------
6009 WDI_AddPeriodicTxPtrnInfoType
6010---------------------------------------------------------------------------*/
6011typedef struct
6012{
6013 /* MAC Address for the adapter */
6014 wpt_macAddr macAddr;
6015
6016 wpt_uint8 ucPtrnId; // Pattern ID
6017 wpt_uint16 ucPtrnSize; // Pattern size
6018 wpt_uint32 usPtrnIntervalMs; // In msec
6019 wpt_uint8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
6020} WDI_AddPeriodicTxPtrnInfoType;
6021
6022/*---------------------------------------------------------------------------
6023 WDI_DelPeriodicTxPtrnInfoType
6024---------------------------------------------------------------------------*/
6025typedef struct
6026{
6027 /* MAC Address for the adapter */
6028 wpt_macAddr macAddr;
6029
6030 /* Bitmap of pattern IDs that needs to be deleted */
6031 wpt_uint32 ucPatternIdBitmap;
6032} WDI_DelPeriodicTxPtrnInfoType;
6033
6034/*---------------------------------------------------------------------------
6035 WDI_AddPeriodicTxPtrnParamsType
6036---------------------------------------------------------------------------*/
6037typedef struct
6038{
6039 WDI_AddPeriodicTxPtrnInfoType wdiAddPeriodicTxPtrnParams;
6040
6041 /*Request status callback offered by UMAC - it is called if the current
6042 req has returned PENDING as status; it delivers the status of sending
6043 the message over the BUS */
6044 WDI_ReqStatusCb wdiReqStatusCB;
6045
6046 /*The user data passed in by UMAC, it will be sent back when the above
6047 function pointer will be called */
6048 void* pUserData;
6049} WDI_AddPeriodicTxPtrnParamsType;
6050
6051/*---------------------------------------------------------------------------
Srinivas Dasari32a79262015-02-19 13:04:49 +05306052 WDI_NanRequestType
6053---------------------------------------------------------------------------*/
6054typedef struct
6055{
6056 wpt_uint16 request_data_len;
6057 wpt_uint8 request_data[1];
6058} WDI_NanRequestType;
6059
6060
6061/*---------------------------------------------------------------------------
Yue Mab9c86f42013-08-14 15:59:08 -07006062 WDI_DelPeriodicTxPtrnParamsType
6063---------------------------------------------------------------------------*/
6064typedef struct
6065{
6066 WDI_DelPeriodicTxPtrnInfoType wdiDelPeriodicTxPtrnParams;
6067
6068 /*Request status callback offered by UMAC - it is called if the current
6069 req has returned PENDING as status; it delivers the status of sending
6070 the message over the BUS */
6071 WDI_ReqStatusCb wdiReqStatusCB;
6072
6073 /*The user data passed in by UMAC, it will be sent back when the above
6074 function pointer will be called */
6075 void* pUserData;
6076} WDI_DelPeriodicTxPtrnParamsType;
6077
Abhishek Singh00b71972016-01-07 10:51:04 +05306078#ifdef WLAN_FEATURE_RMC
6079/*---------------------------------------------------------------------------
6080 WDI_IbssPeerInfoParams
6081---------------------------------------------------------------------------*/
6082typedef struct
6083{
6084 wpt_uint8 wdiStaIdx; //StaIdx
6085 wpt_uint32 wdiTxRate; //Tx Rate
6086 wpt_uint32 wdiMcsIndex; //MCS Index
6087 wpt_uint32 wdiTxRateFlags; //TxRate Flags
6088 wpt_int8 wdiRssi; //RSSI
6089}WDI_IbssPeerInfoParams;
6090
6091/*---------------------------------------------------------------------------
6092 WDI_IbssPeerInfoRspParams
6093---------------------------------------------------------------------------*/
6094typedef struct
6095{
6096 wpt_uint32 wdiStatus; // Return status
6097 wpt_uint8 wdiNumPeers; // Number of peers
6098 WDI_IbssPeerInfoParams *wdiPeerInfoParams; // Peer Info parameters
6099}WDI_IbssPeerInfoRspParams;
6100
6101/*---------------------------------------------------------------------------
6102 WDI_GetIbssPeerInfoRspType
6103---------------------------------------------------------------------------*/
6104typedef struct
6105{
6106 WDI_IbssPeerInfoRspParams wdiPeerInfoRspParams;
6107
6108 /*Request status callback offered by UMAC - it is called if the current
6109 req has returned PENDING as status; it delivers the status of sending
6110 the message over the BUS */
6111 WDI_ReqStatusCb wdiReqStatusCB;
6112
6113 /*The user data passed in by UMAC, it will be sent back when the above
6114 function pointer will be called */
6115 void* pUserData;
6116}WDI_GetIbssPeerInfoRspType;
6117
6118/*---------------------------------------------------------------------------
6119 WDI_IbssPeerInfoReqType
6120---------------------------------------------------------------------------*/
6121typedef struct
6122{
6123 wpt_boolean wdiAllPeerInfoReqd; // Request info for all peers
6124 wpt_uint8 wdiStaIdx; // STA Index
6125 wpt_uint8 wdiBssIdx; // BSS Index
6126}WDI_IbssPeerInfoReqType;
6127
6128#endif /* WLAN_FEATURE_RMC */
6129
Dino Mycle41bdc942014-06-10 11:30:24 +05306130#ifdef WLAN_FEATURE_EXTSCAN
6131
6132#define WDI_WLAN_EXTSCAN_MAX_CHANNELS 16
6133#define WDI_WLAN_EXTSCAN_MAX_BUCKETS 16
6134#define WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS 128
Dino Mycle41bdc942014-06-10 11:30:24 +05306135
6136typedef enum
6137{
6138 WDI_WIFI_BAND_UNSPECIFIED,
6139 WDI_WIFI_BAND_BG = 1, // 2.4 GHz
6140 WDI_WIFI_BAND_A = 2, // 5 GHz without DFS
6141 WDI_WIFI_BAND_ABG = 3, // 2.4 GHz + 5 GHz; no DFS
6142 WDI_WIFI_BAND_A_DFS = 4, // 5 GHz DFS only
6143 WDI_WIFI_BAND_A_WITH_DFS = 6, // 5 GHz with DFS
6144 WDI_WIFI_BAND_ABG_WITH_DFS = 7, // 2.4 GHz + 5 GHz with DFS
6145
6146 /* Keep it last */
6147 WDI_WIFI_BAND_MAX
6148} WDI_WifiBand;
6149
6150typedef struct
6151{
6152 wpt_uint32 channel; // frequency
6153 wpt_uint32 dwellTimeMs; // dwell time hint
6154 wpt_uint8 passive; // 0 => active,
6155 // 1 => passive scan; ignored for DFS
6156 wpt_uint8 chnlClass;
6157} WDI_WifiScanChannelSpec;
6158
6159typedef struct
6160{
6161 wpt_uint8 bucket; // bucket index, 0 based
6162 WDI_WifiBand band; // when UNSPECIFIED, use channel list
6163
6164 /*
6165 * desired period, in millisecond; if this is too
6166 * low, the firmware should choose to generate results as fast as
6167 * it can instead of failing the command byte
6168 */
6169 wpt_uint32 period;
6170
6171 /*
6172 * 0 => normal reporting (reporting rssi history
6173 * only, when rssi history buffer is % full)
6174 * 1 => same as 0 + report a scan completion event after scanning
6175 * this bucket
6176 * 2 => same as 1 + forward scan results (beacons/probe responses + IEs)
6177 * in real time to HAL
6178 */
6179 wpt_uint8 reportEvents;
6180
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306181 wpt_uint32 max_period;
6182 wpt_uint32 exponent;
6183 wpt_uint32 step_count;
6184
Dino Mycle41bdc942014-06-10 11:30:24 +05306185 wpt_uint8 numChannels;
6186
6187 /*
6188 * channels to scan; these may include DFS channels
6189 */
6190 WDI_WifiScanChannelSpec channels[WDI_WLAN_EXTSCAN_MAX_CHANNELS];
6191} WDI_WifiScanBucketSpec;
6192
6193typedef struct
6194{
6195 wpt_uint32 requestId;
6196 wpt_uint8 sessionId;
6197 wpt_uint32 basePeriod; // base timer period
6198 wpt_uint32 maxAPperScan;
6199
6200 /* in %, when buffer is this much full, wake up host */
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306201 wpt_uint32 reportThresholdPercent;
6202 wpt_uint32 reportThresholdNumScans;
Dino Mycle41bdc942014-06-10 11:30:24 +05306203
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05306204 wpt_uint32 homeAwayTime; //in units of milliseconds
Dino Mycle41bdc942014-06-10 11:30:24 +05306205 wpt_uint8 numBuckets;
6206 WDI_WifiScanBucketSpec buckets[WDI_WLAN_EXTSCAN_MAX_BUCKETS];
6207} WDI_EXTScanStartReqParams;
6208
6209typedef struct
6210{
6211 wpt_uint32 requestId;
6212 wpt_uint8 sessionId;
6213} WDI_EXTScanStopReqParams;
6214
6215typedef struct
6216{
6217 wpt_uint32 requestId;
6218 wpt_uint8 sessionId;
6219
6220 /*
6221 * 1 return cached results and flush it
6222 * 0 return cached results and do not flush
6223 */
6224 wpt_boolean flush;
6225} WDI_EXTScanGetCachedResultsReqParams;
6226
6227typedef struct
6228{
6229 wpt_uint32 requestId;
6230 wpt_uint8 sessionId;
6231} WDI_EXTScanGetCapabilitiesReqParams;
6232
6233typedef struct
6234{
6235 wpt_uint8 bssid[6]; /* BSSID */
6236 wpt_int32 low; // low threshold
6237 wpt_int32 high; // high threshold
Dino Mycle41bdc942014-06-10 11:30:24 +05306238} WDI_APThresholdParam;
6239
6240typedef struct
6241{
6242 wpt_int32 requestId;
6243 wpt_int8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar37f4fd12015-08-19 14:37:37 +05306244 wpt_uint32 lostBssidSampleSize;
6245 wpt_int32 numBssid; // number of hotlist APs
Dino Mycle41bdc942014-06-10 11:30:24 +05306246 WDI_APThresholdParam ap[WDI_WLAN_EXTSCAN_MAX_HOTLIST_APS]; // hotlist APs
6247} WDI_EXTScanSetBSSIDHotlistReqParams;
6248
6249typedef struct
6250{
6251 wpt_uint32 requestId;
6252 wpt_uint8 sessionId;
6253} WDI_EXTScanResetBSSIDHotlistReqParams;
6254
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05306255typedef struct
6256{
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +05306257 wpt_boolean pause;
6258 wpt_uint32 reserved;
6259} WDI_HighPriorityDataInfoIndParams;
6260
Dino Mycle41bdc942014-06-10 11:30:24 +05306261#endif /* WLAN_FEATURE_EXTSCAN */
6262
Sunil Duttbd736ed2014-05-26 21:19:41 +05306263#ifdef WLAN_FEATURE_LINK_LAYER_STATS
6264typedef struct
6265{
6266 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306267 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306268 wpt_uint32 mpduSizeThreshold;
6269 wpt_uint32 aggressiveStatisticsGathering;
6270}WDI_LLStatsSetReqType;
6271
6272typedef struct
6273{
6274 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306275 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306276 wpt_uint32 paramIdMask;
6277}WDI_LLStatsGetReqType;
6278
6279typedef struct
6280{
6281 wpt_uint32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05306282 wpt_macAddr macAddr;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306283 wpt_uint32 statsClearReqMask;
6284 wpt_uint8 stopReq;
6285}WDI_LLStatsClearReqType;
Dino Mycled3d50022014-07-07 12:58:25 +05306286
Sunil Duttbd736ed2014-05-26 21:19:41 +05306287#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
6288
Siddharth Bhal171788a2014-09-29 21:02:40 +05306289/*---------------------------------------------------------------------------
6290 WDI_SPOOF_MAC_ADDR_REQ
6291---------------------------------------------------------------------------*/
6292typedef struct
6293{
6294 /* Spoof MAC Address for FW */
6295 wpt_macAddr macAddr;
6296
6297 /* Reserved Params/fields */
6298 wpt_uint32 params;
6299 wpt_uint32 reserved;
6300} WDI_SpoofMacAddrInfoType;
Sunil Duttbd736ed2014-05-26 21:19:41 +05306301
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05306302//This is to force compiler to use the maximum of an int for enum
6303#define SIR_MAX_ENUM_SIZE 0x7FFFFFFF
6304// Enum to specify whether key is used
6305// for TX only, RX only or both
6306typedef enum
6307{
6308 eWDI_TX_ONLY,
6309 eWDI_RX_ONLY,
6310 eWDI_TX_RX,
6311 eWDI_TX_DEFAULT,
6312 eWDI_DONOT_USE_KEY_DIRECTION = SIR_MAX_ENUM_SIZE
6313} tWDIKeyDirection;
6314
6315// MAX key length when ULA is used
6316#define SIR_MAC_MAX_KEY_LENGTH 32
6317/* Max key size including the WAPI and TKIP */
6318#define WLAN_MAX_KEY_RSC_LEN 16
6319// Definition for Encryption Keys
6320//typedef struct sSirKeys
6321typedef struct
6322{
6323 wpt_uint8 keyId;
6324 wpt_uint8 unicast; // 0 for multicast
6325 tWDIKeyDirection keyDirection;
6326 wpt_uint8 keyRsc[WLAN_MAX_KEY_RSC_LEN]; // Usage is unknown
6327 wpt_uint8 paeRole; // =1 for authenticator,
6328 // =0 for supplicant
6329 wpt_uint16 keyLength;
6330 wpt_uint8 key[SIR_MAC_MAX_KEY_LENGTH];
6331} tWDIKeys, *tpWDIKeys;
6332
6333typedef enum
6334{
6335 eWDI_WEP_STATIC,
6336 eWDI_WEP_DYNAMIC,
6337} tWDIWepType;
6338
6339// Encryption type enum used with peer
6340typedef enum
6341{
6342 eWDI_ED_NONE,
6343 eWDI_ED_WEP40,
6344 eWDI_ED_WEP104,
6345 eWDI_ED_TKIP,
6346 eWDI_ED_CCMP,
6347#if defined(FEATURE_WLAN_WAPI)
6348 eWDI_ED_WPI,
6349#endif
6350 /* DPU HW treats encryption mode 4 plus RMF bit set in TX BD as BIP.
6351 * Thus while setting BIP encryption mode in corresponding DPU Desc
6352 * eSIR_ED_AES_128_CMAC should be set to eSIR_ED_CCMP
6353 */
6354 eWDI_ED_AES_128_CMAC,
6355 eWDI_ED_NOT_IMPLEMENTED = SIR_MAX_ENUM_SIZE
6356} tWDIEdType;
6357#define SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS 4
6358/*
6359 * This is used by PE to configure the key information on a given station.
6360 * When the secType is WEP40 or WEP104, the defWEPIdx is used to locate
6361 * a preconfigured key from a BSS the station assoicated with; otherwise
6362 * a new key descriptor is created based on the key field.
6363 */
6364typedef struct
6365{
6366 wpt_uint16 staIdx;
6367 tWDIEdType encType; // Encryption/Decryption type
6368 tWDIWepType wepType; // valid only for WEP
6369 wpt_uint8 defWEPIdx; // Default WEP key, valid only for static WEP, must between 0 and 3
6370 tWDIKeys key[SIR_WDI_MAX_NUM_OF_DEFAULT_KEYS]; // valid only for non-static WEP encyrptions
6371 wpt_uint8 singleTidRc; // 1=Single TID based Replay Count, 0=Per TID based RC
6372 wpt_uint8 sessionId; // PE session id for PE<->HAL interface
6373} tWDISetStaKeyParams, *tpWDISetStaKeyParams;
6374
6375typedef struct
6376{
6377 tWDISetStaKeyParams keyParams;
6378 wpt_uint8 pn[6];
6379}wpt_encConfigParams;
6380
6381typedef struct
6382{
6383 wpt_uint16 length;
6384 wpt_uint8 data[WDI_DISA_MAX_PAYLOAD_SIZE];
6385}wpt_payload;
6386
6387typedef struct
6388{
6389 wpt_80211Header macHeader;
6390 wpt_encConfigParams encParams;
6391 wpt_payload data;
6392}wpt_pkt80211;
6393
Katya Nigamf0511f62015-05-05 16:40:57 +05306394#define NUM_FILTERS_SUPPORTED 1
6395typedef struct
6396{
6397 wpt_macAddr macAddr;
6398 wpt_uint8 isA1filter;
6399 wpt_uint8 isA2filter;
6400 wpt_uint8 isA3filter;
6401}WDI_filter;
6402
6403typedef struct
6404{
6405 /* start or stop */
6406 wpt_uint8 state;
6407 /*Conversion of packet required or not*/
6408 wpt_uint8 is80211to803ConReq;
6409 wpt_uint32 ChannelNo;
6410 wpt_uint32 ChannelBW;
6411 wpt_uint8 crcCheckEnabled;
6412 wpt_uint8 numOfMacFilters;
6413 WDI_filter mmFilters[NUM_FILTERS_SUPPORTED];
6414 wpt_uint64 typeSubtypeBitmap;
6415 wpt_uint64 rsvd;
6416
6417}WDI_MonStartReqType;
6418
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306419typedef struct
6420{
6421 wpt_uint8 paramType;
6422 wpt_uint32 paramValue;
6423 wpt_macAddr bssId;
6424}WDI_WifiConfigSetReqType;
6425
Anurag Chouhan83026002016-12-13 22:46:21 +05306426#ifdef DHCP_SERVER_OFFLOAD
6427/**
6428 * wdi_set_dhcp_server_offload_t - dhcp server offload info
6429 * @bssidx: bss index
6430 * @enable: enable od disable
6431 * @srv_ipv4: server ip address
6432 * @start_lsb: starting lsb addredd of pool
6433 * @num_client: number of clients supported
6434 */
6435typedef struct {
6436 wpt_uint8 bssidx;
6437 wpt_uint32 enable;
6438 wpt_uint32 srv_ipv4; /* server IP */
6439 wpt_uint32 start_lsb; /* starting address assigned to client */
6440 wpt_uint32 num_client; /* number of clients we support */
6441} wdi_set_dhcp_server_offload_t;
6442
6443/**
6444 * wdi_dhcp_server_offload_rsp_param_t - dhcp server offload response
6445 * @status: status for the command success or failure
6446 */
6447typedef struct
6448{
6449 /* wdi status */
6450 wpt_uint32 status;
6451} wdi_dhcp_server_offload_rsp_param_t;
6452#endif /* DHCP_SERVER_OFFLOAD */
6453
Anurag Chouhan0b29de02016-12-16 13:18:40 +05306454#ifdef MDNS_OFFLOAD
6455/**
6456 * The purpose of the multicast Domain Name System (mDNS) is to resolve host
6457 * names to IP addresses within small networks that do not include a local
6458 * name server. It utilizes essentially the same programming interfaces, packet
6459 * formats and operating semantics as the unicast DNS, and the advantage is
6460 * zero configuration service while no need for central or global server.
6461 * Based on mDNS, the DNS-SD (Service Discovery) allows clients to discover a
6462 * named list of services by type in a specified domain using standard
6463 * DNS queries. Here, we provide the ability to advertise the available
6464 * services by responding to mDNS queries.
6465 */
6466
6467/**
6468 * wdi_mdns_enable_offload_cmd_req - mdns enable request
6469 * @bss_idx: bss index
6470 * @enable: enable
6471 */
6472typedef struct {
6473 wpt_uint8 bss_idx;
6474 wpt_uint32 enable;
6475} wdi_mdns_enable_offload_cmd_req;
6476
6477/**
6478 * wdi_mdns_enable_offload_rsp_param_t - mDNS enable offload response
6479 * @status: status for the command success or failure
6480 */
6481typedef struct
6482{
6483 wpt_uint32 status;
6484} wdi_mdns_enable_offload_rsp_param_t;
6485
6486#define WMI_MAX_MDNS_FQDN_LEN 64
6487#define WMI_MAX_MDNS_RESP_LEN 512
6488#define WMI_MDNS_FQDN_TYPE_GENERAL 0
6489#define WMI_MDNS_FQDN_TYPE_UNIQUE 1
6490
6491/**
6492 * wdi_mdns_set_fqdn_cmd_req - set fqdn request
6493 * @bss_idx: bss index
6494 * @type: type of fqdn, general or unique
6495 * @fqdn_len: length of fqdn
6496 * @fqdn_data: TLV byte stream of fqdn data of length fqdn_len fully-qualified
6497 * domain name to check if match with the received queries
6498 */
6499typedef struct {
6500 wpt_uint8 bss_idx;
6501 wpt_uint32 type;
6502 wpt_uint32 fqdn_len;
6503 wpt_uint8 fqdn_data[WMI_MAX_MDNS_FQDN_LEN];
6504} wdi_mdns_set_fqdn_cmd_req;
6505
6506/**
6507 * wdi_mdns_set_fqdn_rsp_param_t - mDNS set fqdn response
6508 * @status: status for the command success or failure
6509 */
6510typedef struct
6511{
6512 wpt_uint32 status;
6513} wdi_mdns_set_fqdn_rsp_param_t;
6514
6515/**
6516 * wdi_mdns_set_resp_req - mDNS response request
6517 * @bss_idx: bss index
6518 * @ar_count: Answer Resource Record count
6519 * @resp_len: length of response
6520 * @resp_data: TLV byte stream of resp data of length resp_len responses consisits of Resource Records
6521 */
6522typedef struct {
6523 wpt_uint8 bss_idx;
6524 wpt_uint32 ar_count;
6525 wpt_uint32 resp_len;
6526 wpt_uint8 resp_data[WMI_MAX_MDNS_RESP_LEN];
6527} wdi_mdns_set_resp_req;
6528
6529/**
6530 * wdi_mdns_set_rsp_param_t - mDNS set response rsp
6531 * @status: status for the command success or failure
6532 */
6533typedef struct
6534{
6535 wpt_uint32 status;
6536} wdi_mdns_set_rsp_param_t;
6537
6538/**
6539 * wdi_mdns_get_stats_req - get mdns stats request
6540 * @bss_idx: bss index
6541 */
6542typedef struct {
6543 wpt_uint8 bss_idx;
6544} wdi_mdns_get_stats_req;
6545
6546/**
6547 * wdi_mdns_stats_rsp_t - mdns stats
6548 * @bss_idx: bss index
6549 * @current_ts: curTimestamp in milliseconds
6550 * @last_querry_ts: last received Query in milliseconds
6551 * @last_resp_ts: last sent Response in milliseconds
6552 * @tot_queries: stats of received queries
6553 * @tot_matches: stats of macth queries
6554 * @tot_rsp: stats of responses
6555 * @status: indicate the current status of mDNS offload
6556 */
6557typedef struct {
6558 wpt_uint8 bss_idx;
6559 wpt_uint32 current_ts;
6560 wpt_uint32 last_querry_ts;
6561 wpt_uint32 last_resp_ts;
6562 wpt_uint32 tot_queries;
6563 wpt_uint32 tot_matches;
6564 wpt_uint32 tot_rsp;
6565 wpt_uint32 status;
6566} wdi_mdns_stats_rsp_param_t;
6567#endif /* MDNS_OFFLOAD */
6568
Kapil Gupta3d923fb2016-12-20 18:59:27 +05306569#ifdef WLAN_FEATURE_APFIND
6570struct WDI_APFind_cmd
6571{
6572 wpt_uint32 data_len;
6573 wpt_uint8 data[];
6574};
6575#endif
6576
c_manjeecfd1efb2015-09-25 19:32:34 +05306577/**
6578 * struct WDI_FwrMemDumpReqType - firmware memory dump request details.
6579.*.@FWMemDumpReqCb - Associated Callback
6580 *.@fwMemDumpReqContext - Callback context
6581 * @reserved - reserved field 1.
6582 *
6583 * This structure carries information about the firmware
6584 * memory dump request.
6585 */
6586typedef struct
6587{
6588 wpt_uint32 reserved1;
6589}WDI_FwrMemDumpReqType;
6590
6591/**
6592 * struct WDI_FwrMemDumpRsp - firmware dump response details.
6593 *
6594 * This structure is used to store the firmware dump
6595 * response from the firmware.
6596 */
6597typedef struct
6598{
6599 wpt_uint32 dump_status;
6600}WDI_FwrMemDumpRsp;
6601
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05306602typedef struct
6603{
6604 wpt_uint32 wificonfigset_status;
6605}WDI_WifconfigSetRsp;
c_manjeecfd1efb2015-09-25 19:32:34 +05306606
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +05306607/**
6608 * struct WDI_ModifyRoamParamsReqType - Modified roam parameter details.
6609 *
6610 */
6611
6612typedef struct {
6613 wpt_uint8 param;
6614 wpt_uint32 value;
6615}WDI_ModifyRoamParamsReqType;
6616
Selvaraj, Sridharc045b8b2016-04-06 12:22:35 +05306617/**
6618 * struct WDI_AllowedActionFramesInd - Allowed Action frames details
6619 *
6620 */
6621struct WDI_AllowedActionFramesInd {
6622 wpt_uint32 bitmask;
6623 wpt_uint32 reserved;
6624};
Agrawal Ashish17ef5082016-10-17 18:33:21 +05306625
6626struct WDI_sap_ofl_enable_params{
6627
6628 wpt_macAddr macAddr;
6629 /** enable/disable sap auth offload */
6630 wpt_uint32 enable;
6631 /** authentication mode (defined above) */
6632 wpt_uint32 rsn_authmode;
6633 /** unicast cipher set */
6634 wpt_uint32 rsn_ucastcipherset;
6635 /** mcast/group cipher set */
6636 wpt_uint32 rsn_mcastcipherset;
6637 /** mcast/group management frames cipher set */
6638 wpt_uint32 rsn_mcastmgmtcipherset;
6639 /** sap channel */
6640 wpt_uint32 channel;
6641 /** length of psk */
6642 wpt_uint32 psk_len;
6643 wpt_uint8 key[64];
6644};
6645
Manjeet Singh3ed79242017-01-11 19:04:32 +05306646/**
6647 * wdi_cap_tsf_params_t - wdi capture tsf params
6648 * @bssidx: bss index
6649 * @capTSFget: whether get/set request
6650 *
6651 */
6652 typedef struct {
6653 wpt_uint8 bss_idx;
6654 wpt_uint8 capTSFget;
6655} wdi_cap_tsf_params_t;
6656
6657/**
6658 * wdi_cap_tsf_rsp_t - capture tsf response
6659 * @bssidx: bss index
6660 * @capTSFget: whether get/set request
6661 *
6662 */
6663 typedef struct {
6664 wpt_uint32 status;
6665 wpt_uint32 tsf_lo;
6666 wpt_uint32 tsf_hi;
6667} wdi_cap_tsf_rsp_t;
Agrawal Ashish17ef5082016-10-17 18:33:21 +05306668
Jeff Johnson295189b2012-06-20 16:38:30 -07006669/*----------------------------------------------------------------------------
6670 * WDI callback types
6671 *--------------------------------------------------------------------------*/
6672
6673/*---------------------------------------------------------------------------
6674 WDI_StartRspCb
6675
6676 DESCRIPTION
6677
6678 This callback is invoked by DAL when it has received a Start response from
6679 the underlying device.
6680
6681 PARAMETERS
6682
6683 IN
6684 wdiRspParams: response parameters received from HAL
6685 pUserData: user data
6686
6687
6688 RETURN VALUE
6689 The result code associated with performing the operation
6690---------------------------------------------------------------------------*/
6691typedef void (*WDI_StartRspCb)(WDI_StartRspParamsType* pwdiRspParams,
6692 void* pUserData);
6693
6694/*---------------------------------------------------------------------------
6695 WDI_StartRspCb
6696
6697 DESCRIPTION
6698
6699 This callback is invoked by DAL when it has received a Stop response from
6700 the underlying device.
6701
6702 PARAMETERS
6703
6704 IN
6705 wdiStatus: response status received from HAL
6706 pUserData: user data
6707
6708
6709
6710 RETURN VALUE
6711 The result code associated with performing the operation
6712---------------------------------------------------------------------------*/
6713typedef void (*WDI_StopRspCb)(WDI_Status wdiStatus,
6714 void* pUserData);
6715
6716/*---------------------------------------------------------------------------
6717 WDI_StartRspCb
6718
6719 DESCRIPTION
6720
6721 This callback is invoked by DAL when it has received an Init Scan response
6722 from the underlying device.
6723
6724 PARAMETERS
6725
6726 IN
6727 wdiStatus: response status received from HAL
6728 pUserData: user data
6729
6730
6731
6732 RETURN VALUE
6733 The result code associated with performing the operation
6734---------------------------------------------------------------------------*/
6735typedef void (*WDI_InitScanRspCb)(WDI_Status wdiStatus,
6736 void* pUserData);
6737
6738
6739/*---------------------------------------------------------------------------
6740 WDI_StartRspCb
6741
6742 DESCRIPTION
6743
6744 This callback is invoked by DAL when it has received a StartScan response
6745 from the underlying device.
6746
6747 PARAMETERS
6748
6749 IN
6750 wdiParams: response params received from HAL
6751 pUserData: user data
6752
6753
6754
6755 RETURN VALUE
6756 The result code associated with performing the operation
6757---------------------------------------------------------------------------*/
6758typedef void (*WDI_StartScanRspCb)(WDI_StartScanRspParamsType* wdiParams,
6759 void* pUserData);
6760
6761
6762/*---------------------------------------------------------------------------
6763 WDI_StartRspCb
6764
6765 DESCRIPTION
6766
6767 This callback is invoked by DAL when it has received a End Scan response
6768 from the underlying device.
6769
6770 PARAMETERS
6771
6772 IN
6773 wdiStatus: response status received from HAL
6774 pUserData: user data
6775
6776
6777
6778 RETURN VALUE
6779 The result code associated with performing the operation
6780---------------------------------------------------------------------------*/
6781typedef void (*WDI_EndScanRspCb)(WDI_Status wdiStatus,
6782 void* pUserData);
6783
6784
6785/*---------------------------------------------------------------------------
6786 WDI_StartRspCb
6787
6788 DESCRIPTION
6789
6790 This callback is invoked by DAL when it has received a Finish Scan response
6791 from the underlying device.
6792
6793 PARAMETERS
6794
6795 IN
6796 wdiStatus: response status received from HAL
6797 pUserData: user data
6798
6799
6800
6801 RETURN VALUE
6802 The result code associated with performing the operation
6803---------------------------------------------------------------------------*/
6804typedef void (*WDI_FinishScanRspCb)(WDI_Status wdiStatus,
6805 void* pUserData);
6806
6807
6808/*---------------------------------------------------------------------------
6809 WDI_StartRspCb
6810
6811 DESCRIPTION
6812
6813 This callback is invoked by DAL when it has received a Join response from
6814 the underlying device.
6815
6816 PARAMETERS
6817
6818 IN
6819 wdiStatus: response status received from HAL
6820 pUserData: user data
6821
6822
6823
6824 RETURN VALUE
6825 The result code associated with performing the operation
6826---------------------------------------------------------------------------*/
6827typedef void (*WDI_JoinRspCb)(WDI_Status wdiStatus,
6828 void* pUserData);
6829
6830
6831/*---------------------------------------------------------------------------
6832 WDI_StartRspCb
6833
6834 DESCRIPTION
6835
6836 This callback is invoked by DAL when it has received a Config BSS response
6837 from the underlying device.
6838
6839 PARAMETERS
6840
6841 IN
6842 wdiConfigBSSRsp: response parameters received from HAL
6843 pUserData: user data
6844
6845
6846 RETURN VALUE
6847 The result code associated with performing the operation
6848---------------------------------------------------------------------------*/
6849typedef void (*WDI_ConfigBSSRspCb)(
6850 WDI_ConfigBSSRspParamsType* pwdiConfigBSSRsp,
6851 void* pUserData);
6852
6853
6854/*---------------------------------------------------------------------------
6855 WDI_StartRspCb
6856
6857 DESCRIPTION
6858
6859 This callback is invoked by DAL when it has received a Del BSS response from
6860 the underlying device.
6861
6862 PARAMETERS
6863
6864 IN
6865 wdiDelBSSRsp: response parameters received from HAL
6866 pUserData: user data
6867
6868
6869 RETURN VALUE
6870 The result code associated with performing the operation
6871---------------------------------------------------------------------------*/
6872typedef void (*WDI_DelBSSRspCb)(WDI_DelBSSRspParamsType* pwdiDelBSSRsp,
6873 void* pUserData);
6874
6875
6876/*---------------------------------------------------------------------------
6877 WDI_StartRspCb
6878
6879 DESCRIPTION
6880
6881 This callback is invoked by DAL when it has received a Post Assoc response
6882 from the underlying device.
6883
6884 PARAMETERS
6885
6886 IN
6887 wdiRspParams: response parameters received from HAL
6888 pUserData: user data
6889
6890
6891 RETURN VALUE
6892 The result code associated with performing the operation
6893---------------------------------------------------------------------------*/
6894typedef void (*WDI_PostAssocRspCb)(
6895 WDI_PostAssocRspParamsType* pwdiPostAssocRsp,
6896 void* pUserData);
6897
6898
6899/*---------------------------------------------------------------------------
6900 WDI_StartRspCb
6901
6902 DESCRIPTION
6903
6904 This callback is invoked by DAL when it has received a Del STA response from
6905 the underlying device.
6906
6907 PARAMETERS
6908
6909 IN
6910 wdiDelSTARsp: response parameters received from HAL
6911 pUserData: user data
6912
6913
6914 RETURN VALUE
6915 The result code associated with performing the operation
6916---------------------------------------------------------------------------*/
6917typedef void (*WDI_DelSTARspCb)(WDI_DelSTARspParamsType* pwdiDelSTARsp,
6918 void* pUserData);
6919
6920
6921
6922/*---------------------------------------------------------------------------
6923 WDI_StartRspCb
6924
6925 DESCRIPTION
6926
6927 This callback is invoked by DAL when it has received a Set BSS Key response
6928 from the underlying device.
6929
6930 PARAMETERS
6931
6932 IN
6933 wdiStatus: response status received from HAL
6934 pUserData: user data
6935
6936
6937
6938 RETURN VALUE
6939 The result code associated with performing the operation
6940---------------------------------------------------------------------------*/
6941typedef void (*WDI_SetBSSKeyRspCb)(WDI_Status wdiStatus,
6942 void* pUserData);
6943
6944/*---------------------------------------------------------------------------
6945 WDI_StartRspCb
6946
6947 DESCRIPTION
6948
6949 This callback is invoked by DAL when it has received a Remove BSS Key
6950 response from the underlying device.
6951
6952 PARAMETERS
6953
6954 IN
6955 wdiStatus: response status received from HAL
6956 pUserData: user data
6957
6958
6959
6960 RETURN VALUE
6961 The result code associated with performing the operation
6962---------------------------------------------------------------------------*/
6963typedef void (*WDI_RemoveBSSKeyRspCb)(WDI_Status wdiStatus,
6964 void* pUserData);
6965
6966/*---------------------------------------------------------------------------
6967 WDI_StartRspCb
6968
6969 DESCRIPTION
6970
6971 This callback is invoked by DAL when it has received a Set STA Key response
6972 from the underlying device.
6973
6974 PARAMETERS
6975
6976 IN
6977 wdiStatus: response status received from HAL
6978 pUserData: user data
6979
6980
Jeff Johnson295189b2012-06-20 16:38:30 -07006981 RETURN VALUE
6982 The result code associated with performing the operation
6983---------------------------------------------------------------------------*/
6984typedef void (*WDI_SetSTAKeyRspCb)(WDI_Status wdiStatus,
6985 void* pUserData);
6986
Jeff Johnson295189b2012-06-20 16:38:30 -07006987/*---------------------------------------------------------------------------
6988 WDI_StartRspCb
6989
6990 DESCRIPTION
6991
6992 This callback is invoked by DAL when it has received a Remove STA Key
6993 response from the underlying device.
6994
6995 PARAMETERS
6996
6997 IN
6998 wdiStatus: response status received from HAL
6999 pUserData: user data
7000
Siddharth Bhal171788a2014-09-29 21:02:40 +05307001
Jeff Johnson295189b2012-06-20 16:38:30 -07007002 RETURN VALUE
7003 The result code associated with performing the operation
7004---------------------------------------------------------------------------*/
7005typedef void (*WDI_RemoveSTAKeyRspCb)(WDI_Status wdiStatus,
7006 void* pUserData);
7007
7008
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08007009#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07007010/*---------------------------------------------------------------------------
7011 WDI_TsmRspCb
7012
7013 DESCRIPTION
7014
7015 This callback is invoked by DAL when it has received a TSM Stats response from the underlying device.
7016
7017 PARAMETERS
7018
7019 IN
7020 pTSMStats: response status received from HAL
7021 pUserData: user data
7022
7023
7024
7025 RETURN VALUE
7026 The result code associated with performing the operation
7027---------------------------------------------------------------------------*/
7028typedef void (*WDI_TsmRspCb)(WDI_TSMStatsRspParamsType *pTSMStats,
7029 void* pUserData);
7030#endif
7031
7032/*---------------------------------------------------------------------------
7033 WDI_StartRspCb
7034
7035 DESCRIPTION
7036
7037 This callback is invoked by DAL when it has received a Add TS response from
7038 the underlying device.
7039
7040 PARAMETERS
7041
7042 IN
7043 wdiStatus: response status received from HAL
7044 pUserData: user data
7045
7046
7047
7048 RETURN VALUE
7049 The result code associated with performing the operation
7050---------------------------------------------------------------------------*/
7051typedef void (*WDI_AddTsRspCb)(WDI_Status wdiStatus,
7052 void* pUserData);
7053
7054/*---------------------------------------------------------------------------
7055 WDI_StartRspCb
7056
7057 DESCRIPTION
7058
7059 This callback is invoked by DAL when it has received a Del TS response from
7060 the underlying device.
7061
7062 PARAMETERS
7063
7064 IN
7065 wdiStatus: response status received from HAL
7066 pUserData: user data
7067
7068
7069
7070 RETURN VALUE
7071 The result code associated with performing the operation
7072---------------------------------------------------------------------------*/
7073typedef void (*WDI_DelTsRspCb)(WDI_Status wdiStatus,
7074 void* pUserData);
7075
7076/*---------------------------------------------------------------------------
7077 WDI_StartRspCb
7078
7079 DESCRIPTION
7080
7081 This callback is invoked by DAL when it has received an Update EDCA Params
7082 response from the underlying device.
7083
7084 PARAMETERS
7085
7086 IN
7087 wdiStatus: response status received from HAL
7088 pUserData: user data
7089
7090
7091
7092 RETURN VALUE
7093 The result code associated with performing the operation
7094---------------------------------------------------------------------------*/
7095typedef void (*WDI_UpdateEDCAParamsRspCb)(WDI_Status wdiStatus,
7096 void* pUserData);
7097
7098/*---------------------------------------------------------------------------
7099 WDI_StartRspCb
7100
7101 DESCRIPTION
7102
7103 This callback is invoked by DAL when it has received a Add BA response from
7104 the underlying device.
7105
7106 PARAMETERS
7107
7108 IN
7109 wdiStatus: response status received from HAL
7110 pUserData: user data
7111
7112
7113
7114 RETURN VALUE
7115 The result code associated with performing the operation
7116---------------------------------------------------------------------------*/
7117typedef void (*WDI_AddBASessionRspCb)(
7118 WDI_AddBASessionRspParamsType* wdiAddBASessionRsp,
7119 void* pUserData);
7120
7121
7122/*---------------------------------------------------------------------------
7123 WDI_StartRspCb
7124
7125 DESCRIPTION
7126
7127 This callback is invoked by DAL when it has received a Del BA response from
7128 the underlying device.
7129
7130 PARAMETERS
7131
7132 IN
7133 wdiStatus: response status received from HAL
7134 pUserData: user data
7135
7136
7137
7138 RETURN VALUE
7139 The result code associated with performing the operation
7140---------------------------------------------------------------------------*/
7141typedef void (*WDI_DelBARspCb)(WDI_Status wdiStatus,
7142 void* pUserData);
7143
7144
7145/*---------------------------------------------------------------------------
7146 WDI_StartRspCb
7147
7148 DESCRIPTION
7149
7150 This callback is invoked by DAL when it has received a Switch Ch response
7151 from the underlying device.
7152
7153 PARAMETERS
7154
7155 IN
7156 wdiRspParams: response parameters received from HAL
7157 pUserData: user data
7158
7159
7160 RETURN VALUE
7161 The result code associated with performing the operation
7162---------------------------------------------------------------------------*/
7163typedef void (*WDI_SwitchChRspCb)(WDI_SwitchCHRspParamsType* pwdiSwitchChRsp,
7164 void* pUserData);
7165
Kalikinkar dhara1e83b772014-02-06 12:59:22 -08007166typedef void (*WDI_SwitchChRspCb_V1)(WDI_SwitchChRspParamsType_V1* pwdiSwitchChRsp,
7167 void* pUserData);
7168
Jeff Johnson295189b2012-06-20 16:38:30 -07007169
7170/*---------------------------------------------------------------------------
7171 WDI_StartRspCb
7172
7173 DESCRIPTION
7174
7175 This callback is invoked by DAL when it has received a Config STA response
7176 from the underlying device.
7177
7178 PARAMETERS
7179
7180 IN
7181 wdiRspParams: response parameters received from HAL
7182 pUserData: user data
7183
7184
7185 RETURN VALUE
7186 The result code associated with performing the operation
7187---------------------------------------------------------------------------*/
7188typedef void (*WDI_ConfigSTARspCb)(
7189 WDI_ConfigSTARspParamsType* pwdiConfigSTARsp,
7190 void* pUserData);
7191
7192
7193/*---------------------------------------------------------------------------
7194 WDI_StartRspCb
7195
7196 DESCRIPTION
7197
7198 This callback is invoked by DAL when it has received a Set Link State
7199 response from the underlying device.
7200
7201 PARAMETERS
7202
7203 IN
7204 wdiRspParams: response parameters received from HAL
7205 pUserData: user data
7206
7207
7208 RETURN VALUE
7209 The result code associated with performing the operation
7210---------------------------------------------------------------------------*/
7211typedef void (*WDI_SetLinkStateRspCb)( WDI_Status wdiStatus,
7212 void* pUserData);
7213
7214
7215/*---------------------------------------------------------------------------
7216 WDI_StartRspCb
7217
7218 DESCRIPTION
7219
7220 This callback is invoked by DAL when it has received a Get Stats response
7221 from the underlying device.
7222
7223 PARAMETERS
7224
7225 IN
7226 wdiRspParams: response parameters received from HAL
7227 pUserData: user data
7228
7229
7230 RETURN VALUE
7231 The result code associated with performing the operation
7232---------------------------------------------------------------------------*/
7233typedef void (*WDI_GetStatsRspCb)(WDI_GetStatsRspParamsType* pwdiGetStatsRsp,
7234 void* pUserData);
7235
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08007236#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08007237/*---------------------------------------------------------------------------
7238 WDI_GetRoamRssiRspCb
7239
7240 DESCRIPTION
7241
7242 This callback is invoked by DAL when it has received a Get Roam Rssi response
7243 from the underlying device.
7244
7245 PARAMETERS
7246
7247 IN
7248 wdiRspParams: response parameters received from HAL
7249 pUserData: user data
7250
7251
7252 RETURN VALUE
7253 The result code associated with performing the operation
7254---------------------------------------------------------------------------*/
7255typedef void (*WDI_GetRoamRssiRspCb)(WDI_GetRoamRssiRspParamsType* pwdiGetRoamRssiRsp,
7256 void* pUserData);
7257#endif
7258
Jeff Johnson295189b2012-06-20 16:38:30 -07007259
7260/*---------------------------------------------------------------------------
7261 WDI_StartRspCb
7262
7263 DESCRIPTION
7264
7265 This callback is invoked by DAL when it has received a Update Cfg response
7266 from the underlying device.
7267
7268 PARAMETERS
7269
7270 IN
7271 wdiStatus: response status received from HAL
7272 pUserData: user data
7273
7274
7275 RETURN VALUE
7276 The result code associated with performing the operation
7277---------------------------------------------------------------------------*/
7278typedef void (*WDI_UpdateCfgRspCb)(WDI_Status wdiStatus,
7279 void* pUserData);
7280
7281/*---------------------------------------------------------------------------
7282 WDI_AddBARspCb
7283
7284 DESCRIPTION
7285
7286 This callback is invoked by DAL when it has received a ADD BA response
7287 from the underlying device.
7288
7289 PARAMETERS
7290
7291 IN
7292 wdiStatus: response status received from HAL
7293 pUserData: user data
7294
7295
7296 RETURN VALUE
7297 The result code associated with performing the operation
7298---------------------------------------------------------------------------*/
7299typedef void (*WDI_AddBARspCb)(WDI_AddBARspinfoType* wdiAddBARsp,
7300 void* pUserData);
7301
7302/*---------------------------------------------------------------------------
7303 WDI_TriggerBARspCb
7304
7305 DESCRIPTION
7306
7307 This callback is invoked by DAL when it has received a ADD BA response
7308 from the underlying device.
7309
7310 PARAMETERS
7311
7312 IN
7313 wdiStatus: response status received from HAL
7314 pUserData: user data
7315
7316
7317 RETURN VALUE
7318 The result code associated with performing the operation
7319---------------------------------------------------------------------------*/
7320typedef void (*WDI_TriggerBARspCb)(WDI_TriggerBARspParamsType* wdiTriggerBARsp,
7321 void* pUserData);
7322
7323
7324/*---------------------------------------------------------------------------
7325 WDI_UpdateBeaconParamsRspCb
7326
7327 DESCRIPTION
7328
7329 This callback is invoked by DAL when it has received a Update Beacon Params response from
7330 the underlying device.
7331
7332 PARAMETERS
7333
7334 IN
7335 wdiStatus: response status received from HAL
7336 pUserData: user data
7337
7338
7339
7340 RETURN VALUE
7341 The result code associated with performing the operation
7342---------------------------------------------------------------------------*/
7343typedef void (*WDI_UpdateBeaconParamsRspCb)(WDI_Status wdiStatus,
7344 void* pUserData);
7345
7346/*---------------------------------------------------------------------------
7347 WDI_SendBeaconParamsRspCb
7348
7349 DESCRIPTION
7350
7351 This callback is invoked by DAL when it has received a Send Beacon Params response from
7352 the underlying device.
7353
7354 PARAMETERS
7355
7356 IN
7357 wdiStatus: response status received from HAL
7358 pUserData: user data
7359
7360
7361
7362 RETURN VALUE
7363 The result code associated with performing the operation
7364---------------------------------------------------------------------------*/
7365typedef void (*WDI_SendBeaconParamsRspCb)(WDI_Status wdiStatus,
7366 void* pUserData);
7367
7368/*---------------------------------------------------------------------------
7369 WDA_SetMaxTxPowerRspCb
7370
7371 DESCRIPTION
7372
7373 This callback is invoked by DAL when it has received a set max Tx Power response from
7374 the underlying device.
7375
7376 PARAMETERS
7377
7378 IN
7379 wdiStatus: response status received from HAL
7380 pUserData: user data
7381
7382
7383
7384 RETURN VALUE
7385 The result code associated with performing the operation
7386---------------------------------------------------------------------------*/
7387typedef void (*WDA_SetMaxTxPowerRspCb)(WDI_SetMaxTxPowerRspMsg *wdiSetMaxTxPowerRsp,
7388 void* pUserData);
7389
7390/*---------------------------------------------------------------------------
Arif Hussaina5ebce02013-08-09 15:09:58 -07007391 WDA_SetMaxTxPowerPerBandRspCb
7392
7393 DESCRIPTION
7394
7395 This callback is invoked by DAL when it has received a
7396 set max Tx Power Per Band response from the underlying device.
7397
7398 PARAMETERS
7399
7400 IN
7401 wdiSetMaxTxPowerPerBandRsp: response status received from HAL
7402 pUserData: user data
7403
7404 RETURN VALUE
7405 The result code associated with performing the operation
7406---------------------------------------------------------------------------*/
7407typedef void (*WDA_SetMaxTxPowerPerBandRspCb)(WDI_SetMaxTxPowerPerBandRspMsg
7408 *wdiSetMaxTxPowerPerBandRsp,
7409 void* pUserData);
7410
7411/*---------------------------------------------------------------------------
schang86c22c42013-03-13 18:41:24 -07007412 WDA_SetTxPowerRspCb
7413
7414 DESCRIPTION
7415
7416 This callback is invoked by DAL when it has received a set max Tx Power response from
7417 the underlying device.
7418
7419 PARAMETERS
7420
7421 IN
7422 wdiStatus: response status received from HAL
7423 pUserData: user data
7424
7425 RETURN VALUE
7426 The result code associated with performing the operation
7427---------------------------------------------------------------------------*/
7428typedef void (*WDA_SetTxPowerRspCb)(WDI_SetTxPowerRspMsg *wdiSetTxPowerRsp,
7429 void* pUserData);
7430
7431/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007432 WDI_UpdateProbeRspTemplateRspCb
7433
7434 DESCRIPTION
7435
7436 This callback is invoked by DAL when it has received a Probe RSP Template
7437 Update response 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_UpdateProbeRspTemplateRspCb)(WDI_Status wdiStatus,
7451 void* pUserData);
7452
Jeff Johnson295189b2012-06-20 16:38:30 -07007453/*---------------------------------------------------------------------------
7454 WDI_SetP2PGONOAReqParamsRspCb
7455
7456 DESCRIPTION
7457
7458 This callback is invoked by DAL when it has received a P2P GO NOA Params response from
7459 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---------------------------------------------------------------------------*/
7472typedef void (*WDI_SetP2PGONOAReqParamsRspCb)(WDI_Status wdiStatus,
7473 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007474
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307475/*---------------------------------------------------------------------------
7476 WDI_SetTDLSLinkEstablishReqParamsRspCb
7477
7478 DESCRIPTION
7479
7480 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7481 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---------------------------------------------------------------------------*/
Gopichand Nakkala574f6d12013-06-27 19:38:43 +05307494typedef void (*WDI_SetTDLSLinkEstablishReqParamsRspCb)(WDI_SetTdlsLinkEstablishReqResp *
7495 wdiSetTdlsLinkEstablishReqRsp,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05307496 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007497
7498/*---------------------------------------------------------------------------
Atul Mittalc0f739f2014-07-31 13:47:47 +05307499 WDI_SetTDLSChanSwitchReqParamsRspCb
7500
7501 DESCRIPTION
7502
7503 This callback is invoked by DAL when it has received a TDLS Link Establish Req response from
7504 the underlying device.
7505
7506 PARAMETERS
7507
7508 IN
7509 wdiStatus: response status received from HAL
7510 pUserData: user data
7511
7512
7513
7514 RETURN VALUE
7515 The result code associated with performing the operation
7516---------------------------------------------------------------------------*/
7517typedef void (*WDI_SetTDLSChanSwitchReqParamsRspCb)(WDI_SetTdlsChanSwitchReqResp *
7518 wdiSetTdlsChanSwitchReqRsp,
7519 void* pUserData);
7520/*---------------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -07007521 WDI_SetPwrSaveCfgCb
7522
7523 DESCRIPTION
7524
7525 This callback is invoked by DAL when it has received a set Power Save CFG
7526 response from the underlying device.
7527
7528 PARAMETERS
7529
7530 IN
7531 wdiStatus: response status received from HAL
7532 pUserData: user data
7533
7534
7535
7536 RETURN VALUE
7537 The result code associated with performing the operation
7538---------------------------------------------------------------------------*/
7539typedef void (*WDI_SetPwrSaveCfgCb)(WDI_Status wdiStatus,
7540 void* pUserData);
7541
7542/*---------------------------------------------------------------------------
7543 WDI_SetUapsdAcParamsCb
7544
7545 DESCRIPTION
7546
7547 This callback is invoked by DAL when it has received a set UAPSD params
7548 response from the underlying device.
7549
7550 PARAMETERS
7551
7552 IN
7553 wdiStatus: response status received from HAL
7554 pUserData: user data
7555
7556
7557
7558 RETURN VALUE
7559 The result code associated with performing the operation
7560---------------------------------------------------------------------------*/
7561typedef void (*WDI_SetUapsdAcParamsCb)(WDI_Status wdiStatus,
7562 void* pUserData);
7563
7564/*---------------------------------------------------------------------------
7565 WDI_EnterImpsRspCb
7566
7567 DESCRIPTION
7568
7569 This callback is invoked by DAL when it has received a Enter IMPS response
7570 from the underlying device.
7571
7572 PARAMETERS
7573
7574 IN
7575 wdiStatus: response status received from HAL
7576 pUserData: user data
7577
7578
7579
7580 RETURN VALUE
7581 The result code associated with performing the operation
7582---------------------------------------------------------------------------*/
7583typedef void (*WDI_EnterImpsRspCb)(WDI_Status wdiStatus,
7584 void* pUserData);
7585
7586/*---------------------------------------------------------------------------
7587 WDI_ExitImpsRspCb
7588
7589 DESCRIPTION
7590
7591 This callback is invoked by DAL when it has received a Exit IMPS response
7592 from the underlying device.
7593
7594 PARAMETERS
7595
7596 IN
7597 wdiStatus: response status received from HAL
7598 pUserData: user data
7599
7600
7601
7602 RETURN VALUE
7603 The result code associated with performing the operation
7604---------------------------------------------------------------------------*/
7605typedef void (*WDI_ExitImpsRspCb)(WDI_Status wdiStatus,
7606 void* pUserData);
7607
7608/*---------------------------------------------------------------------------
7609 WDI_EnterBmpsRspCb
7610
7611 DESCRIPTION
7612
7613 This callback is invoked by DAL when it has received a enter BMPS response
7614 from the underlying device.
7615
7616 PARAMETERS
7617
7618 IN
7619 wdiStatus: response status received from HAL
7620 pUserData: user data
7621
7622
7623
7624 RETURN VALUE
7625 The result code associated with performing the operation
7626---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007627typedef void (*WDI_EnterBmpsRspCb)(WDI_EnterBmpsRspParamsType *pwdiEnterBmpsRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007628 void* pUserData);
7629
7630/*---------------------------------------------------------------------------
7631 WDI_ExitBmpsRspCb
7632
7633 DESCRIPTION
7634
7635 This callback is invoked by DAL when it has received a exit BMPS response
7636 from the underlying device.
7637
7638 PARAMETERS
7639
7640 IN
7641 wdiStatus: response status received from HAL
7642 pUserData: user data
7643
7644
7645
7646 RETURN VALUE
7647 The result code associated with performing the operation
7648---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007649typedef void (*WDI_ExitBmpsRspCb)( WDI_ExitBmpsRspParamsType *pwdiExitBmpsRspParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007650 void* pUserData);
7651
7652/*---------------------------------------------------------------------------
7653 WDI_EnterUapsdRspCb
7654
7655 DESCRIPTION
7656
7657 This callback is invoked by DAL when it has received a enter UAPSD response
7658 from the underlying device.
7659
7660 PARAMETERS
7661
7662 IN
7663 wdiStatus: response status received from HAL
7664 pUserData: user data
7665
7666
7667
7668 RETURN VALUE
7669 The result code associated with performing the operation
7670---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007671typedef void (*WDI_EnterUapsdRspCb)( WDI_EnterUapsdRspParamsType *pwdiEnterUapsdRspParam,
Jeff Johnson295189b2012-06-20 16:38:30 -07007672 void* pUserData);
7673
7674/*---------------------------------------------------------------------------
7675 WDI_ExitUapsdRspCb
7676
7677 DESCRIPTION
7678
7679 This callback is invoked by DAL when it has received a exit UAPSD response
7680 from the underlying device.
7681
7682 PARAMETERS
7683
7684 IN
7685 wdiStatus: response status received from HAL
7686 pUserData: user data
7687
7688
7689
7690 RETURN VALUE
7691 The result code associated with performing the operation
7692---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007693typedef void (*WDI_ExitUapsdRspCb)(WDI_ExitUapsdRspParamsType *pwidExitUapsdRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007694 void* pUserData);
7695
7696/*---------------------------------------------------------------------------
7697 WDI_UpdateUapsdParamsCb
7698
7699 DESCRIPTION
7700
7701 This callback is invoked by DAL when it has received a update UAPSD params
7702 response from the underlying device.
7703
7704 PARAMETERS
7705
7706 IN
7707 wdiStatus: response status received from HAL
7708 pUserData: user data
7709
7710
7711
7712 RETURN VALUE
7713 The result code associated with performing the operation
7714---------------------------------------------------------------------------*/
7715typedef void (*WDI_UpdateUapsdParamsCb)(WDI_Status wdiStatus,
7716 void* pUserData);
7717
7718/*---------------------------------------------------------------------------
7719 WDI_ConfigureRxpFilterCb
7720
7721 DESCRIPTION
7722
7723 This callback is invoked by DAL when it has received a config RXP filter
7724 response from the underlying device.
7725
7726 PARAMETERS
7727
7728 IN
7729 wdiStatus: response status received from HAL
7730 pUserData: user data
7731
7732
7733
7734 RETURN VALUE
7735 The result code associated with performing the operation
7736---------------------------------------------------------------------------*/
7737typedef void (*WDI_ConfigureRxpFilterCb)(WDI_Status wdiStatus,
7738 void* pUserData);
7739
7740/*---------------------------------------------------------------------------
7741 WDI_SetBeaconFilterCb
7742
7743 DESCRIPTION
7744
7745 This callback is invoked by DAL when it has received a set beacon filter
7746 response from the underlying device.
7747
7748 PARAMETERS
7749
7750 IN
7751 wdiStatus: response status received from HAL
7752 pUserData: user data
7753
7754
7755
7756 RETURN VALUE
7757 The result code associated with performing the operation
7758---------------------------------------------------------------------------*/
7759typedef void (*WDI_SetBeaconFilterCb)(WDI_Status wdiStatus,
7760 void* pUserData);
7761
7762/*---------------------------------------------------------------------------
7763 WDI_RemBeaconFilterCb
7764
7765 DESCRIPTION
7766
7767 This callback is invoked by DAL when it has received a remove beacon filter
7768 response from the underlying device.
7769
7770 PARAMETERS
7771
7772 IN
7773 wdiStatus: response status received from HAL
7774 pUserData: user data
7775
7776
7777
7778 RETURN VALUE
7779 The result code associated with performing the operation
7780---------------------------------------------------------------------------*/
7781typedef void (*WDI_RemBeaconFilterCb)(WDI_Status wdiStatus,
7782 void* pUserData);
7783
7784/*---------------------------------------------------------------------------
7785 WDI_SetRSSIThresholdsCb
7786
7787 DESCRIPTION
7788
7789 This callback is invoked by DAL when it has received a set RSSI thresholds
7790 response from the underlying device.
7791
7792 PARAMETERS
7793
7794 IN
7795 wdiStatus: response status received from HAL
7796 pUserData: user data
7797
7798
7799
7800 RETURN VALUE
7801 The result code associated with performing the operation
7802---------------------------------------------------------------------------*/
7803typedef void (*WDI_SetRSSIThresholdsCb)(WDI_Status wdiStatus,
7804 void* pUserData);
7805
7806/*---------------------------------------------------------------------------
7807 WDI_HostOffloadCb
7808
7809 DESCRIPTION
7810
7811 This callback is invoked by DAL when it has received a host offload
7812 response from the underlying device.
7813
7814 PARAMETERS
7815
7816 IN
7817 wdiStatus: response status received from HAL
7818 pUserData: user data
7819
7820
7821
7822 RETURN VALUE
7823 The result code associated with performing the operation
7824---------------------------------------------------------------------------*/
7825typedef void (*WDI_HostOffloadCb)(WDI_Status wdiStatus,
7826 void* pUserData);
7827
7828/*---------------------------------------------------------------------------
7829 WDI_KeepAliveCb
7830
7831 DESCRIPTION
7832
7833 This callback is invoked by DAL when it has received a Keep Alive
7834 response from the underlying device.
7835
7836 PARAMETERS
7837
7838 IN
7839 wdiStatus: response status received from HAL
7840 pUserData: user data
7841
7842
7843
7844 RETURN VALUE
7845 The result code associated with performing the operation
7846---------------------------------------------------------------------------*/
7847typedef void (*WDI_KeepAliveCb)(WDI_Status wdiStatus,
7848 void* pUserData);
7849
7850/*---------------------------------------------------------------------------
7851 WDI_WowlAddBcPtrnCb
7852
7853 DESCRIPTION
7854
7855 This callback is invoked by DAL when it has received a Wowl add Bcast ptrn
7856 response from the underlying device.
7857
7858 PARAMETERS
7859
7860 IN
7861 wdiStatus: response status received from HAL
7862 pUserData: user data
7863
7864
7865
7866 RETURN VALUE
7867 The result code associated with performing the operation
7868---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007869typedef void (*WDI_WowlAddBcPtrnCb)( WDI_WowlAddBcPtrnRspParamsType *pwdiWowlAddBcPtrnParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07007870 void* pUserData);
7871
7872/*---------------------------------------------------------------------------
7873 WDI_WowlDelBcPtrnCb
7874
7875 DESCRIPTION
7876
7877 This callback is invoked by DAL when it has received a Wowl delete Bcast ptrn
7878 response from the underlying device.
7879
7880 PARAMETERS
7881
7882 IN
7883 wdiStatus: response status received from HAL
7884 pUserData: user data
7885
7886
7887
7888 RETURN VALUE
7889 The result code associated with performing the operation
7890---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007891typedef void (*WDI_WowlDelBcPtrnCb)( WDI_WowlDelBcPtrnRspParamsType *pwdiWowlDelBcstPtrRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007892 void* pUserData);
7893
7894/*---------------------------------------------------------------------------
7895 WDI_WowlEnterReqCb
7896
7897 DESCRIPTION
7898
7899 This callback is invoked by DAL when it has received a Wowl enter
7900 response from the underlying device.
7901
7902 PARAMETERS
7903
7904 IN
7905 wdiStatus: response status received from HAL
7906 pUserData: user data
7907
7908
7909
7910 RETURN VALUE
7911 The result code associated with performing the operation
7912---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007913typedef void (*WDI_WowlEnterReqCb)( WDI_WowlEnterRspParamsType *pwdiwowlEnterRsp,
7914 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07007915
7916/*---------------------------------------------------------------------------
7917 WDI_WowlExitReqCb
7918
7919 DESCRIPTION
7920
7921 This callback is invoked by DAL when it has received a Wowl exit
7922 response from the underlying device.
7923
7924 PARAMETERS
7925
7926 IN
7927 wdiStatus: response status received from HAL
7928 pUserData: user data
7929
7930
7931
7932 RETURN VALUE
7933 The result code associated with performing the operation
7934---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07007935typedef void (*WDI_WowlExitReqCb)( WDI_WowlExitRspParamsType *pwdiWowlExitRsp,
Jeff Johnson295189b2012-06-20 16:38:30 -07007936 void* pUserData);
7937
7938/*---------------------------------------------------------------------------
7939 WDI_ConfigureAppsCpuWakeupStateCb
7940
7941 DESCRIPTION
7942
7943 This callback is invoked by DAL when it has received a config Apps Cpu Wakeup
7944 State response from the underlying device.
7945
7946 PARAMETERS
7947
7948 IN
7949 wdiStatus: response status received from HAL
7950 pUserData: user data
7951
7952
7953
7954 RETURN VALUE
7955 The result code associated with performing the operation
7956---------------------------------------------------------------------------*/
7957typedef void (*WDI_ConfigureAppsCpuWakeupStateCb)(WDI_Status wdiStatus,
7958 void* pUserData);
7959/*---------------------------------------------------------------------------
7960 WDI_NvDownloadRspCb
7961
7962 DESCRIPTION
7963
7964 This callback is invoked by DAL when it has received a NV Download response
7965 from the underlying device.
7966
7967 PARAMETERS
7968
7969 IN
7970 wdiStatus:response status received from HAL
7971 pUserData:user data
7972
7973 RETURN VALUE
7974 The result code associated with performing the operation
7975---------------------------------------------------------------------------*/
7976typedef void (*WDI_NvDownloadRspCb)(WDI_NvDownloadRspInfoType* wdiNvDownloadRsp,
7977 void* pUserData);
7978/*---------------------------------------------------------------------------
7979 WDI_FlushAcRspCb
7980
7981 DESCRIPTION
7982
7983 This callback is invoked by DAL when it has received a Flush AC response from
7984 the underlying device.
7985
7986 PARAMETERS
7987
7988 IN
7989 wdiStatus: response status received from HAL
7990 pUserData: user data
7991
7992
7993
7994 RETURN VALUE
7995 The result code associated with performing the operation
7996---------------------------------------------------------------------------*/
7997typedef void (*WDI_FlushAcRspCb)(WDI_Status wdiStatus,
7998 void* pUserData);
7999
8000/*---------------------------------------------------------------------------
8001 WDI_BtAmpEventRspCb
8002
8003 DESCRIPTION
8004
8005 This callback is invoked by DAL when it has received a Bt AMP event response
8006 from the underlying device.
8007
8008 PARAMETERS
8009
8010 IN
8011 wdiStatus: response status received from HAL
8012 pUserData: user data
8013
8014
8015
8016 RETURN VALUE
8017 The result code associated with performing the operation
8018---------------------------------------------------------------------------*/
8019typedef void (*WDI_BtAmpEventRspCb)(WDI_Status wdiStatus,
8020 void* pUserData);
8021
Jeff Johnsone7245742012-09-05 17:12:55 -07008022#ifdef FEATURE_OEM_DATA_SUPPORT
8023/*---------------------------------------------------------------------------
8024 WDI_oemDataRspCb
8025
8026 DESCRIPTION
8027
8028 This callback is invoked by DAL when it has received a Start oem data response from
8029 the underlying device.
8030
8031 PARAMETERS
8032
8033 IN
8034 wdiStatus: response status received from HAL
8035 pUserData: user data
8036
8037
8038
8039 RETURN VALUE
8040 The result code associated with performing the operation
8041---------------------------------------------------------------------------*/
8042typedef void (*WDI_oemDataRspCb)(WDI_oemDataRspParamsType* wdiOemDataRspParams,
8043 void* pUserData);
8044
8045#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07008046
8047/*---------------------------------------------------------------------------
8048 WDI_HostResumeEventRspCb
8049
8050 DESCRIPTION
8051
8052 This callback is invoked by DAL when it has received a Bt AMP event response
8053 from the underlying device.
8054
8055 PARAMETERS
8056
8057 IN
8058 wdiStatus: response status received from HAL
8059 pUserData: user data
8060
8061
8062
8063 RETURN VALUE
8064 The result code associated with performing the operation
8065---------------------------------------------------------------------------*/
8066typedef void (*WDI_HostResumeEventRspCb)(
8067 WDI_SuspendResumeRspParamsType *resumeRspParams,
8068 void* pUserData);
8069
8070
8071#ifdef WLAN_FEATURE_VOWIFI_11R
8072/*---------------------------------------------------------------------------
8073 WDI_AggrAddTsRspCb
8074
8075 DESCRIPTION
8076
8077 This callback is invoked by DAL when it has received a Aggregated Add TS
8078 response from the underlying device.
8079
8080 PARAMETERS
8081
8082 IN
8083 wdiStatus: response status received from HAL
8084 pUserData: user data
8085
8086
8087
8088 RETURN VALUE
8089 The result code associated with performing the operation
8090---------------------------------------------------------------------------*/
8091typedef void (*WDI_AggrAddTsRspCb)(WDI_Status wdiStatus,
8092 void* pUserData);
8093#endif /* WLAN_FEATURE_VOWIFI_11R */
8094
Jeff Johnson295189b2012-06-20 16:38:30 -07008095/*---------------------------------------------------------------------------
8096 WDI_FTMCommandRspCb
8097
8098 DESCRIPTION
8099
8100 FTM Command response CB
8101
8102 PARAMETERS
8103
8104 IN
8105 ftmCMDRspdata: FTM response data from HAL
8106 pUserData: user data
8107
8108
8109 RETURN VALUE
8110 NONE
8111---------------------------------------------------------------------------*/
8112typedef void (*WDI_FTMCommandRspCb)(void *ftmCMDRspdata,
8113 void *pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008114
8115/*---------------------------------------------------------------------------
8116 WDI_AddSTASelfParamsRspCb
8117
8118 DESCRIPTION
8119
8120 This callback is invoked by DAL when it has received a Add Sta Self Params
8121 response from the underlying device.
8122
8123 PARAMETERS
8124
8125 IN
8126 wdiAddSelfSTARsp: response status received from HAL
8127 pUserData: user data
8128
8129
8130
8131 RETURN VALUE
8132 The result code associated with performing the operation
8133---------------------------------------------------------------------------*/
8134typedef void (*WDI_AddSTASelfParamsRspCb)(
8135 WDI_AddSTASelfRspParamsType* pwdiAddSelfSTARsp,
8136 void* pUserData);
8137
8138
8139/*---------------------------------------------------------------------------
8140 WDI_DelSTASelfRspCb
8141
8142 DESCRIPTION
8143
8144 This callback is invoked by DAL when it has received a host offload
8145 response from the underlying device.
8146
8147 PARAMETERS
8148
8149 IN
8150 wdiStatus: response status received from HAL
8151 pUserData: user data
8152
8153
8154
8155 RETURN VALUE
8156 The result code associated with performing the operation
8157---------------------------------------------------------------------------*/
8158typedef void (*WDI_DelSTASelfRspCb)
8159(
8160WDI_DelSTASelfRspParamsType* wdiDelStaSelfRspParams,
8161void* pUserData
8162);
8163
8164#ifdef FEATURE_WLAN_SCAN_PNO
8165/*---------------------------------------------------------------------------
8166 WDI_PNOScanCb
8167
8168 DESCRIPTION
8169
8170 This callback is invoked by DAL when it has received a Set PNO
8171 response from the underlying device.
8172
8173 PARAMETERS
8174
8175 IN
8176 wdiStatus: response status received from HAL
8177 pUserData: user data
8178
8179
8180
8181 RETURN VALUE
8182 The result code associated with performing the operation
8183---------------------------------------------------------------------------*/
8184typedef void (*WDI_PNOScanCb)(WDI_Status wdiStatus,
8185 void* pUserData);
8186
8187/*---------------------------------------------------------------------------
8188 WDI_PNOScanCb
8189
8190 DESCRIPTION
8191
8192 This callback is invoked by DAL when it has received a Set PNO
8193 response from the underlying device.
8194
8195 PARAMETERS
8196
8197 IN
8198 wdiStatus: response status received from HAL
8199 pUserData: user data
8200
8201
8202
8203 RETURN VALUE
8204 The result code associated with performing the operation
8205---------------------------------------------------------------------------*/
8206typedef void (*WDI_RssiFilterCb)(WDI_Status wdiStatus,
8207 void* pUserData);
8208
8209/*---------------------------------------------------------------------------
8210 WDI_UpdateScanParamsCb
8211
8212 DESCRIPTION
8213
8214 This callback is invoked by DAL when it has received a Update Scan Params
8215 response from the underlying device.
8216
8217 PARAMETERS
8218
8219 IN
8220 wdiStatus: response status received from HAL
8221 pUserData: user data
8222
8223
8224
8225 RETURN VALUE
8226 The result code associated with performing the operation
8227---------------------------------------------------------------------------*/
8228typedef void (*WDI_UpdateScanParamsCb)(WDI_Status wdiStatus,
8229 void* pUserData);
8230#endif // FEATURE_WLAN_SCAN_PNO
8231
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -08008232typedef void (*WDI_UpdateChannelRspCb)(WDI_Status wdiStatus,
8233 void* pUserData);
8234
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07008235#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
8236/*---------------------------------------------------------------------------
8237 WDI_RoamOffloadScanCb
8238
8239 DESCRIPTION
8240
8241 This callback is invoked by DAL when it has received a Start Roam Candidate Lookup Req
8242 response from the underlying device.
8243
8244 PARAMETERS
8245
8246 IN
8247 wdiStatus: response status received from HAL
8248 pUserData: user data
8249
8250
8251
8252 RETURN VALUE
8253 The result code associated with performing the operation
8254---------------------------------------------------------------------------*/
8255typedef void (*WDI_RoamOffloadScanCb)(WDI_Status wdiStatus,
8256 void* pUserData);
8257
Kapil Gupta04ab1992016-06-26 13:36:51 +05308258typedef void (*WDI_PERRoamOffloadScanCb)(WDI_Status wdiStatus, void *pUserData);
8259typedef void (*WDI_PERRoamTriggerScanCb)(WDI_Status wdiStatus, void *pUserData);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07008260#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07008261/*---------------------------------------------------------------------------
8262 WDI_SetTxPerTrackingRspCb
8263
8264 DESCRIPTION
8265
8266 This callback is invoked by DAL when it has received a Tx PER Tracking
8267 response from the underlying device.
8268
8269 PARAMETERS
8270
8271 IN
8272 wdiStatus: response status received from HAL
8273 pUserData: user data
8274
8275
8276
8277 RETURN VALUE
8278 The result code associated with performing the operation
8279---------------------------------------------------------------------------*/
8280typedef void (*WDI_SetTxPerTrackingRspCb)(WDI_Status wdiStatus,
8281 void* pUserData);
8282
8283#ifdef WLAN_FEATURE_PACKET_FILTERING
8284/*---------------------------------------------------------------------------
8285 WDI_8023MulticastListCb
8286
8287 DESCRIPTION
8288
8289 This callback is invoked by DAL when it has received a 8023 Multicast List
8290 response from the underlying device.
8291
8292 PARAMETERS
8293
8294 IN
8295 wdiStatus: response status received from HAL
8296 pUserData: user data
8297
8298
8299
8300 RETURN VALUE
8301 The result code associated with performing the operation
8302---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008303typedef void (*WDI_8023MulticastListCb)(
8304 WDI_RcvFltPktSetMcListRspParamsType *pwdiRcvFltPktSetMcListRspInfo,
8305 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008306
8307/*---------------------------------------------------------------------------
8308 WDI_ReceiveFilterSetFilterCb
8309
8310 DESCRIPTION
8311
8312 This callback is invoked by DAL when it has received a Receive Filter Set Filter
8313 response from the underlying device.
8314
8315 PARAMETERS
8316
8317 IN
8318 wdiStatus: response status received from HAL
8319 pUserData: user data
8320
8321
8322
8323 RETURN VALUE
8324 The result code associated with performing the operation
8325---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008326typedef void (*WDI_ReceiveFilterSetFilterCb)(
8327 WDI_SetRcvPktFilterRspParamsType *pwdiSetRcvPktFilterRspInfo,
8328 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008329
8330/*---------------------------------------------------------------------------
8331 WDI_FilterMatchCountCb
8332
8333 DESCRIPTION
8334
8335 This callback is invoked by DAL when it has received a Do PC Filter Match Count
8336 response from the underlying device.
8337
8338 PARAMETERS
8339
8340 IN
8341 wdiStatus: response status received from HAL
8342 pUserData: user data
8343
8344
8345
8346 RETURN VALUE
8347 The result code associated with performing the operation
8348---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008349typedef void (*WDI_FilterMatchCountCb)(
8350 WDI_RcvFltPktMatchCntRspParamsType *pwdiRcvFltPktMatchRspParams,
8351 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008352
8353/*---------------------------------------------------------------------------
8354 WDI_ReceiveFilterClearFilterCb
8355
8356 DESCRIPTION
8357
8358 This callback is invoked by DAL when it has received a Receive Filter Clear Filter
8359 response from the underlying device.
8360
8361 PARAMETERS
8362
8363 IN
8364 wdiStatus: response status received from HAL
8365 pUserData: user data
8366
8367
8368
8369 RETURN VALUE
8370 The result code associated with performing the operation
8371---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008372typedef void (*WDI_ReceiveFilterClearFilterCb)(
8373 WDI_RcvFltPktClearRspParamsType *pwdiRcvFltPktClearRspParamsType,
8374 void* pUserData);
Jeff Johnson295189b2012-06-20 16:38:30 -07008375#endif // WLAN_FEATURE_PACKET_FILTERING
8376
8377/*---------------------------------------------------------------------------
8378 WDI_HALDumpCmdRspCb
8379
8380 DESCRIPTION
8381
8382 This callback is invoked by DAL when it has received a HAL DUMP Command
8383response from
8384 the HAL layer.
8385
8386 PARAMETERS
8387
8388 IN
8389 wdiHalDumpCmdRsp: response status received from HAL
8390 pUserData: user data
8391
8392
8393
8394 RETURN VALUE
8395 The result code associated with performing the operation
8396---------------------------------------------------------------------------*/
8397typedef void (*WDI_HALDumpCmdRspCb)(WDI_HALDumpCmdRspParamsType* wdiHalDumpCmdRsp,
8398 void* pUserData);
8399
8400/*---------------------------------------------------------------------------
8401 WDI_SetPowerParamsCb
8402
8403 DESCRIPTION
8404
8405 This callback is invoked by DAL when it has received a Set Power Param
8406 response from the underlying device.
8407
8408 PARAMETERS
8409
8410 IN
8411 wdiStatus: response status received from HAL
8412 pUserData: user data
8413
8414
8415
8416 RETURN VALUE
8417 The result code associated with performing the operation
8418---------------------------------------------------------------------------*/
8419typedef void (*WDI_SetPowerParamsCb)(WDI_Status wdiStatus,
8420 void* pUserData);
8421
c_manjeecfd1efb2015-09-25 19:32:34 +05308422
8423/*---------------------------------------------------------------------------
8424 WDA_FwrMemDumpRespCallback
8425
8426 DESCRIPTION
8427
8428 This callback is invoked by DAL when it has received a Fwr Mem dump
8429 response from the underlying device.
8430
8431 PARAMETERS
8432
8433 IN
8434 wdiStatus: response status received from HAL
8435 pUserData: user data
8436 ---------------------------------------------------------------------------*/
8437typedef void (* WDI_FwrMemDumpCb) (WDI_FwrMemDumpRsp* wdiRsp,
8438 void* pUserData);
8439
8440
Jeff Johnson295189b2012-06-20 16:38:30 -07008441#ifdef WLAN_FEATURE_GTK_OFFLOAD
8442/*---------------------------------------------------------------------------
8443 WDI_GtkOffloadCb
8444
8445 DESCRIPTION
8446
8447 This callback is invoked by DAL when it has received a GTK offload
8448 response from the underlying device.
8449
8450 PARAMETERS
8451
8452 IN
8453 wdiStatus: response status received from HAL
8454 pUserData: user data
8455
8456
8457
8458 RETURN VALUE
8459 The result code associated with performing the operation
8460---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008461typedef void (*WDI_GtkOffloadCb)( WDI_GtkOffloadRspParams *pwdiGtkOffloadRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008462 void* pUserData);
8463
8464/*---------------------------------------------------------------------------
8465 WDI_GtkOffloadGetInfoCb
8466
8467 DESCRIPTION
8468
8469 This callback is invoked by DAL when it has received a GTK offload
8470 information response from the underlying device.
8471
8472 PARAMETERS
8473
8474 IN
8475 wdiStatus: response status received from HAL
8476 pUserData: user data
8477
8478
8479
8480 RETURN VALUE
8481 The result code associated with performing the operation
8482---------------------------------------------------------------------------*/
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07008483typedef void (*WDI_GtkOffloadGetInfoCb)( WDI_GtkOffloadGetInfoRspParams *pwdiGtkOffloadGetInfoRsparams,
Jeff Johnson295189b2012-06-20 16:38:30 -07008484 void* pUserData);
8485#endif // WLAN_FEATURE_GTK_OFFLOAD
8486
8487/*---------------------------------------------------------------------------
8488 WDI_SetTmLevelCb
8489
8490 DESCRIPTION
8491
8492 This callback is invoked by DAL when it has received a Set New TM Level
8493 done response from the underlying device.
8494
8495 PARAMETERS
8496
8497 IN
8498 wdiStatus: response status received from HAL
8499 pUserData: user data
8500
8501
8502
8503 RETURN VALUE
8504 The result code associated with performing the operation
8505---------------------------------------------------------------------------*/
8506typedef void (*WDI_SetTmLevelCb)(WDI_Status wdiStatus,
8507 void* pUserData);
8508
8509/*---------------------------------------------------------------------------
8510 WDI_featureCapsExchangeCb
8511
8512 DESCRIPTION
8513
8514 This callback is invoked by DAL when it has received a HAL Feature Capbility
8515 Exchange Response the HAL layer. This callback is put to mantain code
8516 similarity and is not being used right now.
8517
8518 PARAMETERS
8519
8520 IN
8521 wdiFeatCapRspParams: response parameters received from HAL
8522 pUserData: user data
8523
8524 RETURN VALUE
8525 The result code associated with performing the operation
8526---------------------------------------------------------------------------*/
8527typedef void (*WDI_featureCapsExchangeCb)(void* wdiFeatCapRspParams,
8528 void* pUserData);
8529
Mohit Khanna4a70d262012-09-11 16:30:12 -07008530#ifdef WLAN_FEATURE_11AC
8531typedef void (*WDI_UpdateVHTOpModeCb)(WDI_Status wdiStatus,
8532 void* pUserData);
8533#endif
8534
Leo Chang9056f462013-08-01 19:21:11 -07008535#ifdef FEATURE_WLAN_LPHB
8536typedef void (*WDI_LphbCfgCb)(WDI_Status wdiStatus,
8537 void* pUserData);
8538#endif /* FEATURE_WLAN_LPHB */
Mohit Khanna4a70d262012-09-11 16:30:12 -07008539
Abhishek Singh00b71972016-01-07 10:51:04 +05308540#ifdef WLAN_FEATURE_RMC
8541typedef void (*WDI_RmcRulerRspCb)(WDI_RmcRspParamsType *wdiRmcResponse,
8542 void* pUserData);
8543
8544typedef void (*WDI_IbssPeerInfoReqCb)(WDI_IbssPeerInfoRspParams *pInfoRspParams,
8545 void* pUserData);
8546
8547#endif /* WLAN_FEATURE_RMC */
8548
Rajeev79dbe4c2013-10-05 11:03:42 +05308549#ifdef FEATURE_WLAN_BATCH_SCAN
8550/*---------------------------------------------------------------------------
8551 WDI_SetBatchScanCb
8552
8553 DESCRIPTION
8554
8555 This callback is invoked by DAL when it has received a get batch scan
8556 response from the underlying device.
8557
8558 PARAMETERS
8559
8560 IN
8561 wdiStatus: response status received from HAL
8562 pUserData: user data
8563
8564
8565
8566 RETURN VALUE
8567 The result code associated with performing the operation
8568---------------------------------------------------------------------------*/
8569typedef void (*WDI_SetBatchScanCb)(void *pData, WDI_SetBatchScanRspType *pRsp);
8570
8571#endif
8572
c_hpothu92367912014-05-01 15:18:17 +05308573typedef void (*WDI_GetBcnMissRateCb)(wpt_uint8 status, wpt_uint32 bcnMissRate,
8574 void* pUserData);
Rajeev79dbe4c2013-10-05 11:03:42 +05308575
Dino Mycle41bdc942014-06-10 11:30:24 +05308576#ifdef WLAN_FEATURE_EXTSCAN
8577typedef void (*WDI_EXTScanStartRspCb)(void *pEventData,
8578 void *pUserData);
8579typedef void (*WDI_EXTScanStopRspCb)(void *pEventData,
8580 void *pUserData);
8581typedef void (*WDI_EXTScanGetCachedResultsRspCb)(void *pEventData,
8582 void *pUserData);
8583typedef void (*WDI_EXTScanGetCapabilitiesRspCb)(void *pEventData,
8584 void *pUserData);
8585typedef void (*WDI_EXTScanSetBSSIDHotlistRspCb)(void *pEventData,
8586 void *pUserData);
8587typedef void (*WDI_EXTScanResetBSSIDHotlistRspCb)(void *pEventData,
8588 void *pUserData);
Hanumanth Reddy Pothula9b4aa682015-08-21 19:58:01 +05308589
8590
Dino Mycle41bdc942014-06-10 11:30:24 +05308591#endif /* WLAN_FEATURE_EXTSCAN */
Sunil Duttbd736ed2014-05-26 21:19:41 +05308592
8593#ifdef WLAN_FEATURE_LINK_LAYER_STATS
8594typedef void (*WDI_LLStatsSetRspCb)(void *pEventData,
8595 void *pUserData);
8596typedef void (*WDI_LLStatsGetRspCb)(void *pEventData,
8597 void *pUserData);
8598typedef void (*WDI_LLStatsClearRspCb)(void *pEventData,
8599 void *pUserData);
8600#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
Siddharth Bhal171788a2014-09-29 21:02:40 +05308601
8602typedef void (*WDI_SetSpoofMacAddrRspCb)(
8603 WDI_SpoofMacAddrRspParamType* wdiRsp, void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308604
Abhishek Singh85b74712014-10-08 11:38:19 +05308605typedef void (*WDI_FWStatsGetRspCb)(WDI_Status status,void *fwStatsResp,
8606 void *pUserData);
Srinivas Dasari4dae48f2014-11-26 21:14:16 +05308607
8608typedef void (*WDI_EncryptMsgRspCb)(wpt_uint8 status, void *pEventData, void* pUserData);
Siddharth Bhald1be97f2015-05-27 22:39:59 +05308609typedef void (*WDI_FWLoggingInitRspCb)(
8610 WDI_FWLoggingInitRspParamType *wdiRsp, void *pUserData);
Siddharth Bhal64246172015-02-27 01:04:37 +05308611typedef void (*WDI_GetFrameLogRspCb)(
8612 WDI_GetFrameLogRspParamType *wdiRsp, void *pUserData);
Sachin Ahuja715aafc2015-07-21 23:35:10 +05308613typedef void (*WDI_FatalEventLogsRspCb)(
8614 WDI_FatalEventLogsRspParamType *wdiRsp, void *pUserData);
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05308615
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +05308616typedef void (*WDI_MonModeRspCb)(void *pEventData,void *pUserData);
Gupta, Kapil7c34b322015-09-30 13:12:35 +05308617typedef void (*WDI_RssiMonitorStartRspCb)(void *pEventData,void *pUserData);
8618typedef void (*WDI_RssiMonitorStopRspCb)(void *pEventData,void *pUserData);
Katya Nigamf0511f62015-05-05 16:40:57 +05308619
c_manjeecfd1efb2015-09-25 19:32:34 +05308620typedef void (*WDI_FwrMemDumpRspCb)(WDI_FwrMemDumpRsp *wdiRsp, void *pUserData);
8621
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05308622typedef void (*WDI_WifiConfigSetRspCb) (WDI_WifconfigSetRsp *wdiRsp, void *pUserData);
c_manjeecfd1efb2015-09-25 19:32:34 +05308623
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +05308624typedef void (*WDI_AntennaDivSelRspCb)(WDI_Status status,
8625 void *resp, void *pUserData);
8626
Anurag Chouhan6ee81542017-02-09 18:09:27 +05308627typedef void (*wdi_nud_set_arp_rsp_cb)(void *event_data,void *user_data);
8628typedef void (*wdi_nud_get_arp_rsp_cb)(void *event_data,void *user_data);
8629
Anurag Chouhan83026002016-12-13 22:46:21 +05308630#ifdef DHCP_SERVER_OFFLOAD
8631typedef void (*wdi_dhcp_srv_offload_rsp_cb)(void *event_data,void *user_data);
8632#endif /* DHCP_SERVER_OFFLOAD */
Anurag Chouhan0b29de02016-12-16 13:18:40 +05308633#ifdef MDNS_OFFLOAD
8634typedef void (*wdi_mdns_enable_rsp_cb)(void *event_data,void *user_data);
8635typedef void (*wdi_mdns_fqdn_rsp_cb)(void *event_data,void *user_data);
8636typedef void (*wdi_mdns_resp_rsp_cb)(void *event_data,void *user_data);
8637typedef void (*wdi_get_stats_rsp_cb)(void *event_data,void *user_data);
8638#endif /* MDNS_OFFLOAD */
8639
Manjeet Singh3ed79242017-01-11 19:04:32 +05308640typedef void (*wdi_tsf_rsp_cb)(void *event_data,void *user_data);
8641
Anurag Chouhan83026002016-12-13 22:46:21 +05308642
Jeff Johnson295189b2012-06-20 16:38:30 -07008643/*========================================================================
8644 * Function Declarations and Documentation
8645 ==========================================================================*/
8646
8647/*========================================================================
8648
8649 INITIALIZATION APIs
8650
8651==========================================================================*/
8652
8653/**
8654 @brief WDI_Init is used to initialize the DAL.
8655
8656 DAL will allocate all the resources it needs. It will open PAL, it will also
8657 open both the data and the control transport which in their turn will open
8658 DXE/SMD or any other drivers that they need.
8659
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308660 @param devHandle: pointer to the OS specific device handle
Jeff Johnson295189b2012-06-20 16:38:30 -07008661 ppWDIGlobalCtx: output pointer of Global Context
8662 pWdiDevCapability: output pointer of device capability
8663
8664 @return Result of the function call
8665*/
8666WDI_Status
8667WDI_Init
8668(
Arun Kumar Khandavalliebb19482014-03-25 13:56:53 +05308669 void* devHandle,
Jeff Johnson295189b2012-06-20 16:38:30 -07008670 void** ppWDIGlobalCtx,
8671 WDI_DeviceCapabilityType* pWdiDevCapability,
8672 unsigned int driverType
8673);
8674
8675/**
8676 @brief WDI_Start will be called when the upper MAC is ready to
8677 commence operation with the WLAN Device. Upon the call
8678 of this API the WLAN DAL will pack and send a HAL Start
8679 message to the lower RIVA sub-system if the SMD channel
8680 has been fully opened and the RIVA subsystem is up.
8681
8682 If the RIVA sub-system is not yet up and running DAL
8683 will queue the request for Open and will wait for the
8684 SMD notification before attempting to send down the
8685 message to HAL.
8686
8687 WDI_Init must have been called.
8688
8689 @param wdiStartParams: the start parameters as specified by
8690 the Device Interface
8691
8692 wdiStartRspCb: callback for passing back the response of
8693 the start operation received from the device
8694
8695 pUserData: user data will be passed back with the
8696 callback
8697
8698 @see WDI_Start
8699 @return Result of the function call
8700*/
8701WDI_Status
8702WDI_Start
8703(
8704 WDI_StartReqParamsType* pwdiStartParams,
8705 WDI_StartRspCb wdiStartRspCb,
8706 void* pUserData
8707);
8708
8709
8710/**
8711 @brief WDI_Stop will be called when the upper MAC is ready to
8712 stop any operation with the WLAN Device. Upon the call
8713 of this API the WLAN DAL will pack and send a HAL Stop
8714 message to the lower RIVA sub-system if the DAL Core is
8715 in started state.
8716
8717 In state BUSY this request will be queued.
8718
8719 Request will not be accepted in any other state.
8720
8721 WDI_Start must have been called.
8722
8723 @param wdiStopParams: the stop parameters as specified by
8724 the Device Interface
8725
8726 wdiStopRspCb: callback for passing back the response of
8727 the stop operation received from the device
8728
8729 pUserData: user data will be passed back with the
8730 callback
8731
8732 @see WDI_Start
8733 @return Result of the function call
8734*/
8735WDI_Status
8736WDI_Stop
8737(
8738 WDI_StopReqParamsType* pwdiStopParams,
8739 WDI_StopRspCb wdiStopRspCb,
8740 void* pUserData
8741);
8742
8743/**
8744 @brief WDI_Close will be called when the upper MAC no longer
8745 needs to interract with DAL. DAL will free its control
8746 block.
8747
8748 It is only accepted in state STOPPED.
8749
8750 WDI_Stop must have been called.
8751
8752 @param none
8753
8754 @see WDI_Stop
8755 @return Result of the function call
8756*/
8757WDI_Status
8758WDI_Close
8759(
8760 void
8761);
8762
8763
8764/**
8765 @brief WDI_Shutdown will be called during 'SSR shutdown' operation.
8766 This will do most of the WDI stop & close
8767 operations without doing any handshake with Riva
8768
8769 This will also make sure that the control transport
8770 will NOT be closed.
8771
8772 This request will not be queued.
8773
8774
8775 WDI_Start must have been called.
8776
8777 @param closeTransport: Close control channel if this is set
8778
8779 @return Result of the function call
8780*/
8781WDI_Status
8782WDI_Shutdown
8783(
8784 wpt_boolean closeTransport
8785);
8786
8787/*========================================================================
8788
8789 SCAN APIs
8790
8791==========================================================================*/
8792
8793/**
8794 @brief WDI_InitScanReq will be called when the upper MAC wants
8795 the WLAN Device to get ready for a scan procedure. Upon
8796 the call of this API the WLAN DAL will pack and send a
8797 HAL Init Scan request message to the lower RIVA
8798 sub-system if DAL is in state STARTED.
8799
8800 In state BUSY this request will be queued. Request won't
8801 be allowed in any other state.
8802
8803 WDI_Start must have been called.
8804
8805 @param wdiInitScanParams: the init scan parameters as specified
8806 by the Device Interface
8807
8808 wdiInitScanRspCb: callback for passing back the response
8809 of the init scan operation received from the device
8810
8811 pUserData: user data will be passed back with the
8812 callback
8813
8814 @see WDI_Start
8815 @return Result of the function call
8816*/
8817WDI_Status
8818WDI_InitScanReq
8819(
8820 WDI_InitScanReqParamsType* pwdiInitScanParams,
8821 WDI_InitScanRspCb wdiInitScanRspCb,
8822 void* pUserData
8823);
8824
8825/**
8826 @brief WDI_StartScanReq will be called when the upper MAC
8827 wishes to change the Scan channel on the WLAN Device.
8828 Upon the call of this API the WLAN DAL will pack and
8829 send a HAL Start Scan request message to the lower RIVA
8830 sub-system if DAL is in state STARTED.
8831
8832 In state BUSY this request will be queued. Request won't
8833 be allowed in any other state.
8834
8835 WDI_InitScanReq must have been called.
8836
8837 @param wdiStartScanParams: the start scan parameters as
8838 specified by the Device Interface
8839
8840 wdiStartScanRspCb: callback for passing back the
8841 response of the start scan operation received from the
8842 device
8843
8844 pUserData: user data will be passed back with the
8845 callback
8846
8847 @see WDI_InitScanReq
8848 @return Result of the function call
8849*/
8850WDI_Status
8851WDI_StartScanReq
8852(
8853 WDI_StartScanReqParamsType* pwdiStartScanParams,
8854 WDI_StartScanRspCb wdiStartScanRspCb,
8855 void* pUserData
8856);
8857
8858
8859/**
8860 @brief WDI_EndScanReq will be called when the upper MAC is
8861 wants to end scanning for a particular channel that it
8862 had set before by calling Scan Start on the WLAN Device.
8863 Upon the call of this API the WLAN DAL will pack and
8864 send a HAL End Scan request message to the lower RIVA
8865 sub-system if DAL is in state STARTED.
8866
8867 In state BUSY this request will be queued. Request won't
8868 be allowed in any other state.
8869
8870 WDI_StartScanReq must have been called.
8871
8872 @param wdiEndScanParams: the end scan parameters as specified
8873 by the Device Interface
8874
8875 wdiEndScanRspCb: callback for passing back the response
8876 of the end scan operation received from the device
8877
8878 pUserData: user data will be passed back with the
8879 callback
8880
8881 @see WDI_StartScanReq
8882 @return Result of the function call
8883*/
8884WDI_Status
8885WDI_EndScanReq
8886(
8887 WDI_EndScanReqParamsType* pwdiEndScanParams,
8888 WDI_EndScanRspCb wdiEndScanRspCb,
8889 void* pUserData
8890);
8891
8892
8893/**
8894 @brief WDI_FinishScanReq will be called when the upper MAC has
8895 completed the scan process on the WLAN Device. Upon the
8896 call of this API the WLAN DAL will pack and send a HAL
8897 Finish Scan Request request message to the lower RIVA
8898 sub-system if DAL is in state STARTED.
8899
8900 In state BUSY this request will be queued. Request won't
8901 be allowed in any other state.
8902
8903 WDI_InitScanReq must have been called.
8904
8905 @param wdiFinishScanParams: the finish scan parameters as
8906 specified by the Device Interface
8907
8908 wdiFinishScanRspCb: callback for passing back the
8909 response of the finish scan operation received from the
8910 device
8911
8912 pUserData: user data will be passed back with the
8913 callback
8914
8915 @see WDI_InitScanReq
8916 @return Result of the function call
8917*/
8918WDI_Status
8919WDI_FinishScanReq
8920(
8921 WDI_FinishScanReqParamsType* pwdiFinishScanParams,
8922 WDI_FinishScanRspCb wdiFinishScanRspCb,
8923 void* pUserData
8924);
8925
8926/*========================================================================
8927
8928 ASSOCIATION APIs
8929
8930==========================================================================*/
8931
8932/**
8933 @brief WDI_JoinReq will be called when the upper MAC is ready
8934 to start an association procedure to a BSS. Upon the
8935 call of this API the WLAN DAL will pack and send a HAL
8936 Join request message to the lower RIVA sub-system if
8937 DAL is in state STARTED.
8938
8939 In state BUSY this request will be queued. Request won't
8940 be allowed in any other state.
8941
8942 WDI_Start must have been called.
8943
8944 @param wdiJoinParams: the join parameters as specified by
8945 the Device Interface
8946
8947 wdiJoinRspCb: callback for passing back the response of
8948 the join operation received from the device
8949
8950 pUserData: user data will be passed back with the
8951 callback
8952
8953 @see WDI_Start
8954 @return Result of the function call
8955*/
8956WDI_Status
8957WDI_JoinReq
8958(
8959 WDI_JoinReqParamsType* pwdiJoinParams,
8960 WDI_JoinRspCb wdiJoinRspCb,
8961 void* pUserData
8962);
8963
8964/**
8965 @brief WDI_ConfigBSSReq will be called when the upper MAC
8966 wishes to configure the newly acquired or in process of
8967 being acquired BSS to the HW . Upon the call of this API
8968 the WLAN DAL will pack and send a HAL Config BSS request
8969 message to the lower RIVA sub-system if DAL is in state
8970 STARTED.
8971
8972 In state BUSY this request will be queued. Request won't
8973 be allowed in any other state.
8974
8975 WDI_JoinReq must have been called.
8976
8977 @param wdiConfigBSSParams: the config BSS parameters as
8978 specified by the Device Interface
8979
8980 wdiConfigBSSRspCb: callback for passing back the
8981 response of the config BSS operation received from the
8982 device
8983
8984 pUserData: user data will be passed back with the
8985 callback
8986
8987 @see WDI_JoinReq
8988 @return Result of the function call
8989*/
8990WDI_Status
8991WDI_ConfigBSSReq
8992(
8993 WDI_ConfigBSSReqParamsType* pwdiConfigBSSParams,
8994 WDI_ConfigBSSRspCb wdiConfigBSSRspCb,
8995 void* pUserData
8996);
8997
8998/**
8999 @brief WDI_DelBSSReq will be called when the upper MAC is
9000 dissasociating from the BSS and wishes to notify HW.
9001 Upon the call of this API the WLAN DAL will pack and
9002 send a HAL Del BSS request message to the lower RIVA
9003 sub-system if DAL is in state STARTED.
9004
9005 In state BUSY this request will be queued. Request won't
9006 be allowed in any other state.
9007
9008 WDI_ConfigBSSReq or WDI_PostAssocReq must have been called.
9009
9010 @param wdiDelBSSParams: the del BSS parameters as specified by
9011 the Device Interface
9012
9013 wdiDelBSSRspCb: callback for passing back the response
9014 of the del bss operation received from the device
9015
9016 pUserData: user data will be passed back with the
9017 callback
9018
9019 @see WDI_ConfigBSSReq, WDI_PostAssocReq
9020 @return Result of the function call
9021*/
9022WDI_Status
9023WDI_DelBSSReq
9024(
9025 WDI_DelBSSReqParamsType* pwdiDelBSSParams,
9026 WDI_DelBSSRspCb wdiDelBSSRspCb,
9027 void* pUserData
9028);
9029
9030/**
9031 @brief WDI_PostAssocReq will be called when the upper MAC has
9032 associated to a BSS and wishes to configure HW for
9033 associated state. Upon the call of this API the WLAN DAL
9034 will pack and send a HAL Post Assoc request message to
9035 the lower RIVA sub-system if DAL is in state STARTED.
9036
9037 In state BUSY this request will be queued. Request won't
9038 be allowed in any other state.
9039
9040 WDI_JoinReq must have been called.
9041
9042 @param wdiPostAssocReqParams: the assoc parameters as specified
9043 by the Device Interface
9044
9045 wdiPostAssocRspCb: callback for passing back the
9046 response of the post assoc operation received from the
9047 device
9048
9049 pUserData: user data will be passed back with the
9050 callback
9051
9052 @see WDI_JoinReq
9053 @return Result of the function call
9054*/
9055WDI_Status
9056WDI_PostAssocReq
9057(
9058 WDI_PostAssocReqParamsType* pwdiPostAssocReqParams,
9059 WDI_PostAssocRspCb wdiPostAssocRspCb,
9060 void* pUserData
9061);
9062
9063/**
9064 @brief WDI_DelSTAReq will be called when the upper MAC when an
9065 association with another STA has ended and the station
9066 must be deleted from HW. Upon the call of this API the
9067 WLAN DAL will pack and send a HAL Del STA request
9068 message to the lower RIVA sub-system if DAL is in state
9069 STARTED.
9070
9071 In state BUSY this request will be queued. Request won't
9072 be allowed in any other state.
9073
9074 WDI_PostAssocReq must have been called.
9075
9076 @param wdiDelSTAParams: the Del STA parameters as specified by
9077 the Device Interface
9078
9079 wdiDelSTARspCb: callback for passing back the response
9080 of the del STA operation received from the device
9081
9082 pUserData: user data will be passed back with the
9083 callback
9084
9085 @see WDI_PostAssocReq
9086 @return Result of the function call
9087*/
9088WDI_Status
9089WDI_DelSTAReq
9090(
9091 WDI_DelSTAReqParamsType* pwdiDelSTAParams,
9092 WDI_DelSTARspCb wdiDelSTARspCb,
9093 void* pUserData
9094);
9095
9096/*========================================================================
9097
9098 SECURITY APIs
9099
9100==========================================================================*/
9101
9102/**
9103 @brief WDI_SetBSSKeyReq will be called when the upper MAC ito
9104 install a BSS encryption key on the HW. Upon the call of
9105 this API the WLAN DAL will pack and send a HAL Start
9106 request message to the lower RIVA sub-system if DAL is
9107 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_PostAssocReq must have been called.
9113
9114 @param wdiSetBSSKeyParams: the BSS Key set parameters as
9115 specified by the Device Interface
9116
9117 wdiSetBSSKeyRspCb: callback for passing back the
9118 response of the set BSS Key operation received from the
9119 device
9120
9121 pUserData: user data will be passed back with the
9122 callback
9123
9124 @see WDI_PostAssocReq
9125 @return Result of the function call
9126*/
9127WDI_Status
9128WDI_SetBSSKeyReq
9129(
9130 WDI_SetBSSKeyReqParamsType* pwdiSetBSSKeyParams,
9131 WDI_SetBSSKeyRspCb wdiSetBSSKeyRspCb,
9132 void* pUserData
9133);
9134
9135
9136/**
9137 @brief WDI_RemoveBSSKeyReq will be called when the upper MAC to
9138 uninstall a BSS key from HW. Upon the call of this API
9139 the WLAN DAL will pack and send a HAL Remove BSS Key
9140 request message to the lower RIVA sub-system if DAL is
9141 in state STARTED.
9142
9143 In state BUSY this request will be queued. Request won't
9144 be allowed in any other state.
9145
9146 WDI_SetBSSKeyReq must have been called.
9147
9148 @param wdiRemoveBSSKeyParams: the remove BSS key parameters as
9149 specified by the Device Interface
9150
9151 wdiRemoveBSSKeyRspCb: callback for passing back the
9152 response of the remove BSS key operation received from
9153 the device
9154
9155 pUserData: user data will be passed back with the
9156 callback
9157
9158 @see WDI_SetBSSKeyReq
9159 @return Result of the function call
9160*/
9161WDI_Status
9162WDI_RemoveBSSKeyReq
9163(
9164 WDI_RemoveBSSKeyReqParamsType* pwdiRemoveBSSKeyParams,
9165 WDI_RemoveBSSKeyRspCb wdiRemoveBSSKeyRspCb,
9166 void* pUserData
9167);
9168
9169
9170/**
9171 @brief WDI_SetSTAKeyReq will be called when the upper MAC is
9172 ready to install a STA(ast) encryption key in HW. Upon
9173 the call of this API the WLAN DAL will pack and send a
9174 HAL Set STA Key request message to the lower RIVA
9175 sub-system if DAL is in state STARTED.
9176
9177 In state BUSY this request will be queued. Request won't
9178 be allowed in any other state.
9179
9180 WDI_PostAssocReq must have been called.
9181
9182 @param wdiSetSTAKeyParams: the set STA key parameters as
9183 specified by the Device Interface
9184
9185 wdiSetSTAKeyRspCb: callback for passing back the
9186 response of the set STA key operation received from the
9187 device
9188
9189 pUserData: user data will be passed back with the
9190 callback
9191
9192 @see WDI_PostAssocReq
9193 @return Result of the function call
9194*/
9195WDI_Status
9196WDI_SetSTAKeyReq
9197(
9198 WDI_SetSTAKeyReqParamsType* pwdiSetSTAKeyParams,
9199 WDI_SetSTAKeyRspCb wdiSetSTAKeyRspCb,
9200 void* pUserData
9201);
9202
9203
9204/**
9205 @brief WDI_RemoveSTAKeyReq will be called when the upper MAC
9206 wants to unistall a previously set STA key in HW. Upon
9207 the call of this API the WLAN DAL will pack and send a
9208 HAL Remove STA Key request message to the lower RIVA
9209 sub-system if DAL is in state STARTED.
9210
9211 In state BUSY this request will be queued. Request won't
9212 be allowed in any other state.
9213
9214 WDI_SetSTAKeyReq must have been called.
9215
9216 @param wdiRemoveSTAKeyParams: the remove STA key parameters as
9217 specified by the Device Interface
9218
9219 wdiRemoveSTAKeyRspCb: callback for passing back the
9220 response of the remove STA key operation received from
9221 the device
9222
9223 pUserData: user data will be passed back with the
9224 callback
9225
9226 @see WDI_SetSTAKeyReq
9227 @return Result of the function call
9228*/
9229WDI_Status
9230WDI_RemoveSTAKeyReq
9231(
9232 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTAKeyParams,
9233 WDI_RemoveSTAKeyRspCb wdiRemoveSTAKeyRspCb,
9234 void* pUserData
9235);
9236
9237/**
9238 @brief WDI_SetSTABcastKeyReq will be called when the upper MAC
9239 wants to install a STA Bcast encryption key on the HW.
9240 Upon the call of this API the WLAN DAL will pack and
9241 send a HAL Start request message to the lower RIVA
9242 sub-system if DAL is in state STARTED.
9243
9244 In state BUSY this request will be queued. Request won't
9245 be allowed in any other state.
9246
9247 WDI_PostAssocReq must have been called.
9248
9249 @param pwdiSetSTABcastKeyParams: the BSS Key set parameters as
9250 specified by the Device Interface
9251
9252 wdiSetSTABcastKeyRspCb: callback for passing back the
9253 response of the set BSS Key operation received from the
9254 device
9255
9256 pUserData: user data will be passed back with the
9257 callback
9258
9259 @see WDI_PostAssocReq
9260 @return Result of the function call
9261*/
9262WDI_Status
9263WDI_SetSTABcastKeyReq
9264(
9265 WDI_SetSTAKeyReqParamsType* pwdiSetSTABcastKeyParams,
9266 WDI_SetSTAKeyRspCb wdiSetSTABcastKeyRspCb,
9267 void* pUserData
9268);
9269
9270
9271/**
9272 @brief WDI_RemoveSTABcastKeyReq will be called when the upper
9273 MAC to uninstall a STA Bcast key from HW. Upon the call
9274 of this API the WLAN DAL will pack and send a HAL Remove
9275 STA Bcast Key request message to the lower RIVA
9276 sub-system if DAL is in state STARTED.
9277
9278 In state BUSY this request will be queued. Request won't
9279 be allowed in any other state.
9280
9281 WDI_SetSTABcastKeyReq must have been called.
9282
9283 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9284 parameters as specified by the Device
9285 Interface
9286
9287 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9288 response of the remove STA Bcast key operation received
9289 from the device
9290
9291 pUserData: user data will be passed back with the
9292 callback
9293
9294 @see WDI_SetSTABcastKeyReq
9295 @return Result of the function call
9296*/
9297WDI_Status
9298WDI_RemoveSTABcastKeyReq
9299(
9300 WDI_RemoveSTAKeyReqParamsType* pwdiRemoveSTABcastKeyParams,
9301 WDI_RemoveSTAKeyRspCb wdiRemoveSTABcastKeyRspCb,
9302 void* pUserData
9303);
9304
schang86c22c42013-03-13 18:41:24 -07009305
9306/**
9307 @brief WDI_SetTxPowerReq will be called when the upper
9308 MAC wants to set Tx Power to HW.
9309 In state BUSY this request will be queued. Request won't
9310 be allowed in any other state.
9311
9312
9313 @param pwdiSetTxPowerParams: set TS Power parameters
9314 BSSID and target TX Power with dbm included
9315
9316 wdiReqStatusCb: callback for passing back the response
9317
9318 pUserData: user data will be passed back with the
9319 callback
9320
9321 @return Result of the function call
9322*/
9323WDI_Status
9324WDI_SetTxPowerReq
9325(
9326 WDI_SetTxPowerParamsType* pwdiSetTxPowerParams,
9327 WDA_SetTxPowerRspCb wdiReqStatusCb,
9328 void* pUserData
9329);
9330
Jeff Johnson295189b2012-06-20 16:38:30 -07009331/**
9332 @brief WDI_SetMaxTxPowerReq will be called when the upper
9333 MAC wants to set Max Tx Power to HW. Upon the
9334 call of this API the WLAN DAL will pack and send a HAL
9335 Remove STA Bcast Key request message to the lower RIVA
9336 sub-system if DAL is in state STARTED.
9337
9338 In state BUSY this request will be queued. Request won't
9339 be allowed in any other state.
9340
9341 WDI_SetSTABcastKeyReq must have been called.
9342
9343 @param pwdiRemoveSTABcastKeyParams: the remove BSS key
9344 parameters as specified by the Device
9345 Interface
9346
9347 wdiRemoveSTABcastKeyRspCb: callback for passing back the
9348 response of the remove STA Bcast key operation received
9349 from the device
9350
9351 pUserData: user data will be passed back with the
9352 callback
9353
9354 @see WDI_SetMaxTxPowerReq
9355 @return Result of the function call
9356*/
9357WDI_Status
9358WDI_SetMaxTxPowerReq
9359(
9360 WDI_SetMaxTxPowerParamsType* pwdiSetMaxTxPowerParams,
9361 WDA_SetMaxTxPowerRspCb wdiReqStatusCb,
9362 void* pUserData
9363);
9364
Arif Hussaina5ebce02013-08-09 15:09:58 -07009365/**
9366 @brief WDI_SetMaxTxPowerPerBandReq will be called when the upper
9367 MAC wants to set Max Tx Power to HW for specific band. Upon the
9368 call of this API the WLAN DAL will pack and send a HAL
9369 Set Max Tx Power Per Band request message to the lower RIVA
9370 sub-system if DAL is in state STARTED.
9371
9372 In state BUSY this request will be queued. Request won't
9373 be allowed in any other state.
9374
9375
9376 @param WDI_SetMaxTxPowerPerBandParamsType: Max Tx Per Band Info
9377
9378 WDA_SetMaxTxPowerPerBandRspCb: This callback is invoked by DAL
9379 when it has received a set max Tx Power Per Band response from
9380 the underlying device.
9381
9382 pUserData: user data will be passed back with the
9383 callback
9384
9385 @see WDI_SetMaxTxPowerPerBandReq
9386 @return Result of the function call
9387*/
9388WDI_Status
9389WDI_SetMaxTxPowerPerBandReq
9390(
9391 WDI_SetMaxTxPowerPerBandParamsType* pwdiSetMaxTxPowerPerBandParams,
9392 WDA_SetMaxTxPowerPerBandRspCb wdiReqStatusCb,
9393 void* pUserData
9394);
9395
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08009396#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07009397/**
9398 @brief WDI_TSMStatsReq will be called by the upper MAC to fetch
9399 Traffic Stream metrics.
9400 In state BUSY this request will be queued. Request won't
9401 be allowed in any other state.
9402
9403 @param wdiAddTsReqParams: the add TS parameters as specified by
9404 the Device Interface
9405
9406 wdiAddTsRspCb: callback for passing back the response of
9407 the add TS operation received from the device
9408
9409 pUserData: user data will be passed back with the
9410 callback
9411
9412 @see WDI_PostAssocReq
9413 @return Result of the function call
9414*/
9415WDI_Status
9416WDI_TSMStatsReq
9417(
9418 WDI_TSMStatsReqParamsType* pwdiTsmStatsReqParams,
9419 WDI_TsmRspCb wdiTsmStatsRspCb,
9420 void* pUserData
9421);
9422
9423
9424#endif
9425
9426/*========================================================================
9427
9428 QoS and BA APIs
9429
9430==========================================================================*/
9431
9432/**
9433 @brief WDI_AddTSReq will be called when the upper MAC to inform
9434 the device of a successful add TSpec negotiation. HW
9435 needs to receive the TSpec Info from the UMAC in order
9436 to configure properly the QoS data traffic. Upon the
9437 call of this API the WLAN DAL will pack and send a HAL
9438 Add TS request message to the lower RIVA sub-system if
9439 DAL is in state STARTED.
9440
9441 In state BUSY this request will be queued. Request won't
9442 be allowed in any other state.
9443
9444 WDI_PostAssocReq must have been called.
9445
9446 @param wdiAddTsReqParams: the add TS parameters as specified by
9447 the Device Interface
9448
9449 wdiAddTsRspCb: callback for passing back the response of
9450 the add TS operation received from the device
9451
9452 pUserData: user data will be passed back with the
9453 callback
9454
9455 @see WDI_PostAssocReq
9456 @return Result of the function call
9457*/
9458WDI_Status
9459WDI_AddTSReq
9460(
9461 WDI_AddTSReqParamsType* pwdiAddTsReqParams,
9462 WDI_AddTsRspCb wdiAddTsRspCb,
9463 void* pUserData
9464);
9465
9466
9467
9468/**
9469 @brief WDI_DelTSReq will be called when the upper MAC has ended
9470 admission on a specific AC. This is to inform HW that
9471 QoS traffic parameters must be rest. Upon the call of
9472 this API the WLAN DAL will pack and send a HAL Del TS
9473 request message to the lower RIVA sub-system if DAL is
9474 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_AddTSReq must have been called.
9480
9481 @param wdiDelTsReqParams: the del TS parameters as specified by
9482 the Device Interface
9483
9484 wdiDelTsRspCb: callback for passing back the response of
9485 the del TS operation received from the device
9486
9487 pUserData: user data will be passed back with the
9488 callback
9489
9490 @see WDI_AddTSReq
9491 @return Result of the function call
9492*/
9493WDI_Status
9494WDI_DelTSReq
9495(
9496 WDI_DelTSReqParamsType* pwdiDelTsReqParams,
9497 WDI_DelTsRspCb wdiDelTsRspCb,
9498 void* pUserData
9499);
9500
9501
9502
9503/**
9504 @brief WDI_UpdateEDCAParams will be called when the upper MAC
9505 wishes to update the EDCA parameters used by HW for QoS
9506 data traffic. Upon the call of this API the WLAN DAL
9507 will pack and send a HAL Update EDCA Params request
9508 message to the lower RIVA sub-system if DAL is in state
9509 STARTED.
9510
9511 In state BUSY this request will be queued. Request won't
9512 be allowed in any other state.
9513
9514 WDI_PostAssocReq must have been called.
9515
9516 @param wdiUpdateEDCAParams: the start parameters as specified
9517 by the Device Interface
9518
9519 wdiUpdateEDCAParamsRspCb: callback for passing back the
9520 response of the start operation received from the device
9521
9522 pUserData: user data will be passed back with the
9523 callback
9524
9525 @see WDI_PostAssocReq
9526 @return Result of the function call
9527*/
9528WDI_Status
9529WDI_UpdateEDCAParams
9530(
9531 WDI_UpdateEDCAParamsType* pwdiUpdateEDCAParams,
9532 WDI_UpdateEDCAParamsRspCb wdiUpdateEDCAParamsRspCb,
9533 void* pUserData
9534);
9535
9536
9537
9538/**
9539 @brief WDI_AddBASessionReq will be called when the upper MAC has setup
9540 successfully a BA session and needs to notify the HW for
9541 the appropriate settings to take place. Upon the call of
9542 this API the WLAN DAL will pack and send a HAL Add BA
9543 request message to the lower RIVA sub-system if DAL is
9544 in state STARTED.
9545
9546 In state BUSY this request will be queued. Request won't
9547 be allowed in any other state.
9548
9549 WDI_PostAssocReq must have been called.
9550
9551 @param wdiAddBAReqParams: the add BA parameters as specified by
9552 the Device Interface
9553
9554 wdiAddBARspCb: callback for passing back the response of
9555 the add BA operation received from the device
9556
9557 pUserData: user data will be passed back with the
9558 callback
9559
9560 @see WDI_PostAssocReq
9561 @return Result of the function call
9562*/
9563WDI_Status
9564WDI_AddBASessionReq
9565(
9566 WDI_AddBASessionReqParamsType* pwdiAddBASessionReqParams,
9567 WDI_AddBASessionRspCb wdiAddBASessionRspCb,
9568 void* pUserData
9569);
9570
9571
9572/**
9573 @brief WDI_DelBAReq will be called when the upper MAC wants to
9574 inform HW that it has deleted a previously created BA
9575 session. Upon the call of this API the WLAN DAL will
9576 pack and send a HAL Del BA request message to the lower
9577 RIVA sub-system if DAL is in state STARTED.
9578
9579 In state BUSY this request will be queued. Request won't
9580 be allowed in any other state.
9581
9582 WDI_AddBAReq must have been called.
9583
9584 @param wdiDelBAReqParams: the del BA parameters as specified by
9585 the Device Interface
9586
9587 wdiDelBARspCb: callback for passing back the response of
9588 the del BA operation received from the device
9589
9590 pUserData: user data will be passed back with the
9591 callback
9592
9593 @see WDI_AddBAReq
9594 @return Result of the function call
9595*/
9596WDI_Status
9597WDI_DelBAReq
9598(
9599 WDI_DelBAReqParamsType* pwdiDelBAReqParams,
9600 WDI_DelBARspCb wdiDelBARspCb,
9601 void* pUserData
9602);
9603
9604/**
9605 @brief WDI_UpdateBeaconParamsReq will be called when the upper MAC wants to
9606 inform HW that there is a change in the beacon parameters
9607 Upon the call of this API the WLAN DAL will
9608 pack and send a UpdateBeacon Params message to the lower
9609 RIVA sub-system if DAL is in state STARTED.
9610
9611 In state BUSY this request will be queued. Request won't
9612 be allowed in any other state.
9613
9614 WDI_UpdateBeaconParamsReq must have been called.
9615
9616 @param WDI_UpdateBeaconParamsType: the Update Beacon parameters as specified by
9617 the Device Interface
9618
9619 WDI_UpdateBeaconParamsRspCb: callback for passing back the response of
9620 the Update Beacon Params operation received from the device
9621
9622 pUserData: user data will be passed back with the
9623 callback
9624
9625 @see WDI_AddBAReq
9626 @return Result of the function call
9627*/
9628
9629WDI_Status
9630WDI_UpdateBeaconParamsReq
9631(
9632 WDI_UpdateBeaconParamsType * pwdiUpdateBeaconParams,
9633 WDI_UpdateBeaconParamsRspCb wdiUpdateBeaconParamsRspCb,
9634 void* pUserData
9635);
9636
9637
9638/**
9639 @brief WDI_SendBeaconParamsReq will be called when the upper MAC wants to
9640 update the beacon template to be transmitted as BT MAP STA/IBSS/Soft AP
9641 Upon the call of this API the WLAN DAL will
9642 pack and send the beacon Template message to the lower
9643 RIVA sub-system if DAL is in state STARTED.
9644
9645 In state BUSY this request will be queued. Request won't
9646 be allowed in any other state.
9647
9648 WDI_SendBeaconParamsReq must have been called.
9649
9650 @param WDI_SendBeaconParamsType: the Update Beacon parameters as specified by
9651 the Device Interface
9652
9653 WDI_SendBeaconParamsRspCb: callback for passing back the response of
9654 the Send Beacon Params operation received from the device
9655
9656 pUserData: user data will be passed back with the
9657 callback
9658
9659 @see WDI_AddBAReq
9660 @return Result of the function call
9661*/
9662
9663WDI_Status
9664WDI_SendBeaconParamsReq
9665(
9666 WDI_SendBeaconParamsType* pwdiSendBeaconParams,
9667 WDI_SendBeaconParamsRspCb wdiSendBeaconParamsRspCb,
9668 void* pUserData
9669);
9670
9671
9672/**
9673 @brief WDI_UpdateProbeRspTemplateReq will be called when the
9674 upper MAC wants to update the probe response template to
9675 be transmitted as Soft AP
9676 Upon the call of this API the WLAN DAL will
9677 pack and send the probe rsp template message to the
9678 lower RIVA sub-system if DAL is in state STARTED.
9679
9680 In state BUSY this request will be queued. Request won't
9681 be allowed in any other state.
9682
9683
9684 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9685 specified by the Device Interface
9686
9687 wdiSendBeaconParamsRspCb: callback for passing back the
9688 response of the Send Beacon Params operation received
9689 from the device
9690
9691 pUserData: user data will be passed back with the
9692 callback
9693
9694 @see WDI_AddBAReq
9695 @return Result of the function call
9696*/
9697
9698WDI_Status
9699WDI_UpdateProbeRspTemplateReq
9700(
9701 WDI_UpdateProbeRspTemplateParamsType* pwdiUpdateProbeRspParams,
9702 WDI_UpdateProbeRspTemplateRspCb wdiSendBeaconParamsRspCb,
9703 void* pUserData
9704);
9705
Jeff Johnson295189b2012-06-20 16:38:30 -07009706/**
9707 @brief WDI_SetP2PGONOAReq will be called when the
9708 upper MAC wants to send Notice of Absence
9709 Upon the call of this API the WLAN DAL will
9710 pack and send the probe rsp template message to the
9711 lower RIVA sub-system if DAL is in state STARTED.
9712
9713 In state BUSY this request will be queued. Request won't
9714 be allowed in any other state.
9715
9716
9717 @param pwdiUpdateProbeRspParams: the Update Beacon parameters as
9718 specified by the Device Interface
9719
9720 wdiSendBeaconParamsRspCb: callback for passing back the
9721 response of the Send Beacon Params operation received
9722 from the device
9723
9724 pUserData: user data will be passed back with the
9725 callback
9726
9727 @see WDI_AddBAReq
9728 @return Result of the function call
9729*/
9730WDI_Status
9731WDI_SetP2PGONOAReq
9732(
9733 WDI_SetP2PGONOAReqParamsType* pwdiP2PGONOAReqParams,
9734 WDI_SetP2PGONOAReqParamsRspCb wdiP2PGONOAReqParamsRspCb,
9735 void* pUserData
9736);
Jeff Johnson295189b2012-06-20 16:38:30 -07009737
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05309738/**
9739 @brief WDI_SetTDLSLinkEstablishReq will be called when the
9740 upper MAC wants to send TDLS Link Establish Request Parameters
9741 Upon the call of this API the WLAN DAL will
9742 pack and send the TDLS Link Establish Request message to the
9743 lower RIVA 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
9749 @param pwdiTDLSLinkEstablishReqParams: TDLS Peer Parameters
9750 for Link Establishment (Used for PUAPSD , TDLS Off Channel ...)
9751
9752 wdiTDLSLinkEstablishReqRspCb: callback for passing back the
9753 response of the TDLS Link Establish request received
9754 from the device
9755
9756 pUserData: user data will be passed back with the
9757 callback
9758
9759 @see
9760 @return Result of the function call
9761*/
9762WDI_Status
9763WDI_SetTDLSLinkEstablishReq
9764(
9765 WDI_SetTDLSLinkEstablishReqParamsType* pwdiTDLSLinkEstablishReqParams,
9766 WDI_SetTDLSLinkEstablishReqParamsRspCb wdiTDLSLinkEstablishReqRspCb,
9767 void* pUserData
9768);
Jeff Johnson295189b2012-06-20 16:38:30 -07009769
Atul Mittalc0f739f2014-07-31 13:47:47 +05309770WDI_Status
9771WDI_SetTDLSChanSwitchReq
9772(
9773 WDI_SetTDLSChanSwitchReqParamsType* pwdiTDLSChanSwitchReqParams,
9774 WDI_SetTDLSChanSwitchReqParamsRspCb wdiTDLSChanSwitchRReqRspCb,
9775 void* pUserData
9776);
Jeff Johnson295189b2012-06-20 16:38:30 -07009777/*========================================================================
9778
9779 Power Save APIs
9780
9781==========================================================================*/
9782
9783/**
9784 @brief WDI_SetPwrSaveCfgReq will be called when the upper MAC
9785 wants to set the power save related configurations of
9786 the WLAN Device. Upon the call of this API the WLAN DAL
9787 will pack and send a HAL Update CFG request message to
9788 the lower RIVA sub-system if DAL is in state STARTED.
9789
9790 In state BUSY this request will be queued. Request won't
9791 be allowed in any other state.
9792
9793 WDI_Start must have been called.
9794
9795 @param pwdiPowerSaveCfg: the power save cfg parameters as
9796 specified by the Device Interface
9797
9798 wdiSetPwrSaveCfgCb: callback for passing back the
9799 response of the set power save cfg operation received
9800 from the device
9801
9802 pUserData: user data will be passed back with the
9803 callback
9804
9805 @see WDI_Start
9806 @return Result of the function call
9807*/
9808WDI_Status
9809WDI_SetPwrSaveCfgReq
9810(
9811 WDI_UpdateCfgReqParamsType* pwdiPowerSaveCfg,
9812 WDI_SetPwrSaveCfgCb wdiSetPwrSaveCfgCb,
9813 void* pUserData
9814);
9815
9816/**
9817 @brief WDI_EnterImpsReq will be called when the upper MAC to
9818 request the device to get into IMPS power state. Upon
9819 the call of this API the WLAN DAL will send a HAL Enter
9820 IMPS request message to the lower RIVA sub-system if DAL
9821 is in state STARTED.
9822
9823 In state BUSY this request will be queued. Request won't
9824 be allowed in any other state.
9825
9826
9827 @param wdiEnterImpsRspCb: callback for passing back the
9828 response of the Enter IMPS operation received from the
9829 device
9830
9831 pUserData: user data will be passed back with the
9832 callback
9833
9834 @see WDI_Start
9835 @return Result of the function call
9836*/
9837WDI_Status
9838WDI_EnterImpsReq
9839(
Mihir Shetea4306052014-03-25 00:02:54 +05309840 WDI_EnterImpsReqParamsType *pwdiEnterImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009841 WDI_EnterImpsRspCb wdiEnterImpsRspCb,
9842 void* pUserData
9843);
9844
9845/**
9846 @brief WDI_ExitImpsReq will be called when the upper MAC to
9847 request the device to get out of IMPS power state. Upon
9848 the call of this API the WLAN DAL will send a HAL Exit
9849 IMPS request message to the lower RIVA sub-system if DAL
9850 is in state STARTED.
9851
9852 In state BUSY this request will be queued. Request won't
9853 be allowed in any other state.
9854
9855
9856
9857 @param wdiExitImpsRspCb: callback for passing back the response
9858 of the Exit IMPS operation received from the device
9859
9860 pUserData: user data will be passed back with the
9861 callback
9862
9863 @see WDI_Start
9864 @return Result of the function call
9865*/
9866WDI_Status
9867WDI_ExitImpsReq
9868(
Mahesh A Saptasagar329813b2014-12-15 12:16:51 +05309869 WDI_ExitImpsReqParamsType *pwdiExitImpsReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009870 WDI_ExitImpsRspCb wdiExitImpsRspCb,
9871 void* pUserData
9872);
9873
9874/**
9875 @brief WDI_EnterBmpsReq will be called when the upper MAC to
9876 request the device to get into BMPS power state. Upon
9877 the call of this API the WLAN DAL will pack and send a
9878 HAL Enter BMPS request message to the lower RIVA
9879 sub-system if DAL is in state STARTED.
9880
9881 In state BUSY this request will be queued. Request won't
9882 be allowed in any other state.
9883
9884 WDI_PostAssocReq must have been called.
9885
9886 @param pwdiEnterBmpsReqParams: the Enter BMPS parameters as
9887 specified by the Device Interface
9888
9889 wdiEnterBmpsRspCb: callback for passing back the
9890 response of the Enter BMPS operation received from the
9891 device
9892
9893 pUserData: user data will be passed back with the
9894 callback
9895
9896 @see WDI_PostAssocReq
9897 @return Result of the function call
9898*/
9899WDI_Status
9900WDI_EnterBmpsReq
9901(
9902 WDI_EnterBmpsReqParamsType *pwdiEnterBmpsReqParams,
9903 WDI_EnterBmpsRspCb wdiEnterBmpsRspCb,
9904 void* pUserData
9905);
9906
9907/**
9908 @brief WDI_ExitBmpsReq will be called when the upper MAC to
9909 request the device to get out of BMPS power state. Upon
9910 the call of this API the WLAN DAL will pack and send a
9911 HAL Exit BMPS request message to the lower RIVA
9912 sub-system if DAL is in state STARTED.
9913
9914 In state BUSY this request will be queued. Request won't
9915 be allowed in any other state.
9916
9917 WDI_PostAssocReq must have been called.
9918
9919 @param pwdiExitBmpsReqParams: the Exit BMPS parameters as
9920 specified by the Device Interface
9921
9922 wdiExitBmpsRspCb: callback for passing back the response
9923 of the Exit BMPS operation received from the device
9924
9925 pUserData: user data will be passed back with the
9926 callback
9927
9928 @see WDI_PostAssocReq
9929 @return Result of the function call
9930*/
9931WDI_Status
9932WDI_ExitBmpsReq
9933(
9934 WDI_ExitBmpsReqParamsType *pwdiExitBmpsReqParams,
9935 WDI_ExitBmpsRspCb wdiExitBmpsRspCb,
9936 void* pUserData
9937);
9938
9939/**
9940 @brief WDI_EnterUapsdReq will be called when the upper MAC to
9941 request the device to get into UAPSD power state. Upon
9942 the call of this API the WLAN DAL will pack and send a
9943 HAL Enter UAPSD request message to the lower RIVA
9944 sub-system if DAL is in state STARTED.
9945
9946 In state BUSY this request will be queued. Request won't
9947 be allowed in any other state.
9948
9949 WDI_PostAssocReq must have been called.
9950 WDI_SetUapsdAcParamsReq must have been called.
9951
9952 @param pwdiEnterUapsdReqParams: the Enter UAPSD parameters as
9953 specified by the Device Interface
9954
9955 wdiEnterUapsdRspCb: callback for passing back the
9956 response of the Enter UAPSD operation received from the
9957 device
9958
9959 pUserData: user data will be passed back with the
9960 callback
9961
9962 @see WDI_PostAssocReq, WDI_SetUapsdAcParamsReq
9963 @return Result of the function call
9964*/
9965WDI_Status
9966WDI_EnterUapsdReq
9967(
9968 WDI_EnterUapsdReqParamsType *pwdiEnterUapsdReqParams,
9969 WDI_EnterUapsdRspCb wdiEnterUapsdRspCb,
9970 void* pUserData
9971);
9972
9973/**
9974 @brief WDI_ExitUapsdReq will be called when the upper MAC to
9975 request the device to get out of UAPSD power state. Upon
9976 the call of this API the WLAN DAL will send a HAL Exit
9977 UAPSD request message to the lower RIVA sub-system if
9978 DAL is in state STARTED.
9979
9980 In state BUSY this request will be queued. Request won't
9981 be allowed in any other state.
9982
9983 WDI_PostAssocReq must have been called.
9984
9985 @param wdiExitUapsdRspCb: callback for passing back the
9986 response of the Exit UAPSD operation received from the
9987 device
9988
9989 pUserData: user data will be passed back with the
9990 callback
9991
9992 @see WDI_PostAssocReq
9993 @return Result of the function call
9994*/
9995WDI_Status
9996WDI_ExitUapsdReq
9997(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07009998 WDI_ExitUapsdReqParamsType *pwdiExitUapsdReqParams,
Jeff Johnson295189b2012-06-20 16:38:30 -07009999 WDI_ExitUapsdRspCb wdiExitUapsdRspCb,
10000 void* pUserData
10001);
10002
10003/**
10004 @brief WDI_UpdateUapsdParamsReq will be called when the upper
10005 MAC wants to set the UAPSD related configurations
10006 of an associated STA (while acting as an AP) to the WLAN
10007 Device. Upon the call of this API the WLAN DAL will pack
10008 and send a HAL Update UAPSD params request message to
10009 the lower RIVA sub-system if DAL is in state STARTED.
10010
10011 In state BUSY this request will be queued. Request won't
10012 be allowed in any other state.
10013
10014 WDI_ConfigBSSReq must have been called.
10015
10016 @param pwdiUpdateUapsdReqParams: the UAPSD parameters
10017 as specified by the Device Interface
10018
10019 wdiUpdateUapsdParamsCb: callback for passing back the
10020 response of the update UAPSD params operation received
10021 from the device
10022
10023 pUserData: user data will be passed back with the
10024 callback
10025
10026 @see WDI_ConfigBSSReq
10027 @return Result of the function call
10028*/
10029WDI_Status
10030WDI_UpdateUapsdParamsReq
10031(
10032 WDI_UpdateUapsdReqParamsType *pwdiUpdateUapsdReqParams,
10033 WDI_UpdateUapsdParamsCb wdiUpdateUapsdParamsCb,
10034 void* pUserData
10035);
10036
10037/**
10038 @brief WDI_SetUapsdAcParamsReq will be called when the upper
10039 MAC wants to set the UAPSD related configurations before
10040 requesting for enter UAPSD power state to the WLAN
10041 Device. Upon the call of this API the WLAN DAL will pack
10042 and send a HAL Set UAPSD params request message to
10043 the lower RIVA sub-system if DAL is in state STARTED.
10044
10045 In state BUSY this request will be queued. Request won't
10046 be allowed in any other state.
10047
10048 WDI_PostAssocReq must have been called.
10049
10050 @param pwdiUapsdInfo: the UAPSD parameters as specified by
10051 the Device Interface
10052
10053 wdiSetUapsdAcParamsCb: callback for passing back the
10054 response of the set UAPSD params operation received from
10055 the device
10056
10057 pUserData: user data will be passed back with the
10058 callback
10059
10060 @see WDI_PostAssocReq
10061 @return Result of the function call
10062*/
10063WDI_Status
10064WDI_SetUapsdAcParamsReq
10065(
10066 WDI_SetUapsdAcParamsReqParamsType* pwdiPowerSaveCfg,
10067 WDI_SetUapsdAcParamsCb wdiSetUapsdAcParamsCb,
10068 void* pUserData
10069);
Sachin Ahuja715aafc2015-07-21 23:35:10 +053010070
10071
10072/**
10073 @brief WDI_FatalEventLogsReq will be called when the upper
10074 MAC wants to send the fatal event req. Upon the call of
10075 this API the WLAN DAL will pack and send a HAL
10076 Fatal event request message to the lower RIVA sub-system.
10077
10078 In state BUSY this request will be queued. Request won't
10079 be allowed in any other state.
10080
10081
10082 @param pwdiFatalEventLogsReqInfo: the Fatal event logs params
10083 as specified by the Device Interface
10084
10085 wdiFatalEventLogsRspCb: callback for passing back the
10086 response of the fatal event operation received
10087 from the device
10088
10089 pUserData: user data will be passed back with the
10090 callback
10091
10092 @return Result of the function call
10093*/
10094
10095WDI_Status
10096WDI_FatalEventLogsReq
10097(
10098 WDI_FatalEventLogsReqInfoType *pwdiFatalEventLogsReqInfo,
10099 WDI_FatalEventLogsRspCb wdiFatalEventLogsRspCb,
10100 void* pUserData
10101);
10102
Siddharth Bhal64246172015-02-27 01:04:37 +053010103/**
10104 @brief WDI_GetFrameLogReq will be called when the upper
10105 MAC wants to initialize frame logging. Upon the call of
10106 this API the WLAN DAL will pack and send a HAL
10107 Frame logging init request message to
10108 the lower RIVA sub-system.
10109
10110 In state BUSY this request will be queued. Request won't
10111 be allowed in any other state.
10112
10113
10114 @param pwdiGetFrameLogReqInfo: the Frame Logging params
10115 as specified by the Device Interface
10116
10117 wdiGetFrameLogReqCb: callback for passing back the
10118 response of the frame logging init operation received
10119 from the device
10120
10121 pUserData: user data will be passed back with the
10122 callback
10123
10124 @return Result of the function call
10125*/
10126WDI_Status
10127WDI_GetFrameLogReq
10128(
10129 WDI_GetFrameLogReqInfoType *pwdiGetFrameLogReqInfo,
10130 WDI_GetFrameLogRspCb wdiGetFrameLogReqCb,
10131 void* pUserData
10132);
Jeff Johnson295189b2012-06-20 16:38:30 -070010133
10134/**
Siddharth Bhald1be97f2015-05-27 22:39:59 +053010135 @brief WDI_FWLoggingInitReq will be called when the upper
Siddharth Bhalb7c421c2015-02-27 00:26:09 +053010136 MAC wants to initialize frame logging. Upon the call of
10137 this API the WLAN DAL will pack and send a HAL
10138 Frame logging init request message to
10139 the lower RIVA sub-system.
10140
10141 In state BUSY this request will be queued. Request won't
10142 be allowed in any other state.
10143
10144
Siddharth Bhald1be97f2015-05-27 22:39:59 +053010145 @param pwdiFWLoggingInitReqParams: the Frame Logging params
Siddharth Bhalb7c421c2015-02-27 00:26:09 +053010146 as specified by the Device Interface
10147
Siddharth Bhald1be97f2015-05-27 22:39:59 +053010148 wdiFWLoggingInitReqCb: callback for passing back the
Siddharth Bhalb7c421c2015-02-27 00:26:09 +053010149 response of the frame logging init operation received
10150 from the device
10151
10152 pUserData: user data will be passed back with the
10153 callback
10154
10155 @return Result of the function call
10156*/
10157WDI_Status
Siddharth Bhald1be97f2015-05-27 22:39:59 +053010158WDI_FWLoggingInitReq
Siddharth Bhalb7c421c2015-02-27 00:26:09 +053010159(
Siddharth Bhald1be97f2015-05-27 22:39:59 +053010160 WDI_FWLoggingInitReqInfoType *pwdiFWLoggingInitReqInfo,
10161 WDI_FWLoggingInitRspCb wdiFWLoggingInitReqCb,
Siddharth Bhalb7c421c2015-02-27 00:26:09 +053010162 void* pUserData
10163);
10164
10165/**
Gupta, Kapil7c34b322015-09-30 13:12:35 +053010166 @brief WDI_StartRssiMonitorReq will be called when the upper
10167 MAC wants to initialize Rssi Monitor on a bssid.
10168 Upon the call of this API the WLAN DAL will pack and
10169 send a HAL Rssi Monitor init request message to
10170 the lower RIVA sub-system.
10171
10172 In state BUSY this request will be queued. Request won't
10173 be allowed in any other state.
10174
10175
10176 @param pwdiRssiMonitorInfo: the Rssi Monitor params
10177 as specified by the Device Interface
10178
10179 wdiRssiMonitorStartRspCb: callback for passing back the
10180 response of the rssi monitor operation received
10181 from the device
10182
10183 pUserData: user data will be passed back with the
10184 callback
10185
10186 @return Result of the function call
10187*/
10188WDI_Status
10189WDI_StartRssiMonitorReq
10190(
10191 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
10192 WDI_RssiMonitorStartRspCb wdiRssiMonitorStartRspCb,
10193 void* pUserData
10194);
10195
10196
10197/**
10198 @brief WDI_StopRssiMonitorReq will be called when the upper
10199 MAC wants to stop Rssi Monitor on a bssid.
10200 Upon the call of this API the WLAN DAL will pack and
10201 send a HAL Rssi Monitor stop request message to
10202 the lower RIVA sub-system.
10203
10204 In state BUSY this request will be queued. Request won't
10205 be allowed in any other state.
10206
10207
10208 @param pwdiRssiMonitorInfo: the Rssi Monitor params
10209 as specified by the Device Interface
10210
10211 wdiRssiMonitorStopRspCb: callback for passing back the
10212 response of the rssi monitor operation received
10213 from the device
10214
10215 pUserData: user data will be passed back with the
10216 callback
10217
10218 @return Result of the function call
10219*/
10220WDI_Status
10221WDI_StopRssiMonitorReq
10222(
10223 WDI_RssiMonitorReqInfoType *pwdiRssiMonitorInfo,
10224 WDI_RssiMonitorStopRspCb wdiRssiMonitorStopRspCb,
10225 void* pUserData
10226);
10227
10228/**
Jeff Johnson295189b2012-06-20 16:38:30 -070010229 @brief WDI_ConfigureRxpFilterReq will be called when the upper
10230 MAC wants to set/reset the RXP filters for received pkts
10231 (MC, BC etc.). Upon the call of this API the WLAN DAL will pack
10232 and send a HAL configure RXP filter request message to
10233 the lower RIVA sub-system.
10234
10235 In state BUSY this request will be queued. Request won't
10236 be allowed in any other state.
10237
10238
10239 @param pwdiConfigureRxpFilterReqParams: the RXP
10240 filter as specified by the Device
10241 Interface
10242
10243 wdiConfigureRxpFilterCb: callback for passing back the
10244 response of the configure RXP filter operation received
10245 from the device
10246
10247 pUserData: user data will be passed back with the
10248 callback
10249
10250 @return Result of the function call
10251*/
10252WDI_Status
10253WDI_ConfigureRxpFilterReq
10254(
10255 WDI_ConfigureRxpFilterReqParamsType *pwdiConfigureRxpFilterReqParams,
10256 WDI_ConfigureRxpFilterCb wdiConfigureRxpFilterCb,
10257 void* pUserData
10258);
10259
10260/**
10261 @brief WDI_SetBeaconFilterReq will be called when the upper MAC
10262 wants to set the beacon filters while in power save.
10263 Upon the call of this API the WLAN DAL will pack and
10264 send a Beacon filter request message to the
10265 lower RIVA sub-system.
10266
10267 In state BUSY this request will be queued. Request won't
10268 be allowed in any other state.
10269
10270
10271 @param pwdiBeaconFilterReqParams: the beacon
10272 filter as specified by the Device
10273 Interface
10274
10275 wdiBeaconFilterCb: callback for passing back the
10276 response of the set beacon filter operation received
10277 from the device
10278
10279 pUserData: user data will be passed back with the
10280 callback
10281
10282 @return Result of the function call
10283*/
10284WDI_Status
10285WDI_SetBeaconFilterReq
10286(
10287 WDI_BeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10288 WDI_SetBeaconFilterCb wdiBeaconFilterCb,
10289 void* pUserData
10290);
10291
10292/**
10293 @brief WDI_RemBeaconFilterReq will be called when the upper MAC
10294 wants to remove the beacon filter for perticular IE
10295 while in power save. Upon the call of this API the WLAN
10296 DAL will pack and send a remove Beacon filter request
10297 message to the lower RIVA sub-system.
10298
10299 In state BUSY this request will be queued. Request won't
10300 be allowed in any other state.
10301
10302
10303 @param pwdiBeaconFilterReqParams: the beacon
10304 filter as specified by the Device
10305 Interface
10306
10307 wdiBeaconFilterCb: callback for passing back the
10308 response of the remove beacon filter operation received
10309 from the device
10310
10311 pUserData: user data will be passed back with the
10312 callback
10313
10314 @return Result of the function call
10315*/
10316WDI_Status
10317WDI_RemBeaconFilterReq
10318(
10319 WDI_RemBeaconFilterReqParamsType *pwdiBeaconFilterReqParams,
10320 WDI_RemBeaconFilterCb wdiBeaconFilterCb,
10321 void* pUserData
10322);
10323
10324/**
10325 @brief WDI_SetRSSIThresholdsReq will be called when the upper
10326 MAC wants to set the RSSI thresholds related
10327 configurations while in power save. Upon the call of
10328 this API the WLAN DAL will pack and send a HAL Set RSSI
10329 thresholds request message to the lower RIVA
10330 sub-system if DAL is 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 pwdiUapsdInfo: the UAPSD parameters as specified by
10338 the Device Interface
10339
10340 wdiSetUapsdAcParamsCb: callback for passing back the
10341 response of the set UAPSD params operation received from
10342 the 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_SetRSSIThresholdsReq
10352(
10353 WDI_SetRSSIThresholdsReqParamsType* pwdiRSSIThresholdsParams,
10354 WDI_SetRSSIThresholdsCb wdiSetRSSIThresholdsCb,
10355 void* pUserData
10356);
10357
10358/**
10359 @brief WDI_HostOffloadReq will be called when the upper MAC
10360 wants to set the filter to minimize unnecessary host
10361 wakeup due to broadcast traffic while in power save.
10362 Upon the call of this API the WLAN DAL will pack and
10363 send a HAL host offload request message to the
10364 lower RIVA sub-system if DAL is in state STARTED.
10365
10366 In state BUSY this request will be queued. Request won't
10367 be allowed in any other state.
10368
10369 WDI_PostAssocReq must have been called.
10370
10371 @param pwdiHostOffloadParams: the host offload as specified
10372 by the Device Interface
10373
10374 wdiHostOffloadCb: callback for passing back the response
10375 of the host offload operation received from the
10376 device
10377
10378 pUserData: user data will be passed back with the
10379 callback
10380
10381 @see WDI_PostAssocReq
10382 @return Result of the function call
10383*/
10384WDI_Status
10385WDI_HostOffloadReq
10386(
10387 WDI_HostOffloadReqParamsType* pwdiHostOffloadParams,
10388 WDI_HostOffloadCb wdiHostOffloadCb,
10389 void* pUserData
10390);
10391
10392/**
10393 @brief WDI_KeepAliveReq will be called when the upper MAC
10394 wants to set the filter to send NULL or unsolicited ARP responses
10395 and minimize unnecessary host wakeups due to while in power save.
10396 Upon the call of this API the WLAN DAL will pack and
10397 send a HAL Keep Alive request message to the
10398 lower RIVA sub-system if DAL is in state STARTED.
10399
10400 In state BUSY this request will be queued. Request won't
10401 be allowed in any other state.
10402
10403 WDI_PostAssocReq must have been called.
10404
10405 @param pwdiKeepAliveParams: the Keep Alive as specified
10406 by the Device Interface
10407
10408 wdiKeepAliveCb: callback for passing back the response
10409 of the Keep Alive operation received from the
10410 device
10411
10412 pUserData: user data will be passed back with the
10413 callback
10414
10415 @see WDI_PostAssocReq
10416 @return Result of the function call
10417*/
10418WDI_Status
10419WDI_KeepAliveReq
10420(
10421 WDI_KeepAliveReqParamsType* pwdiKeepAliveParams,
10422 WDI_KeepAliveCb wdiKeepAliveCb,
10423 void* pUserData
10424);
10425
10426/**
10427 @brief WDI_WowlAddBcPtrnReq will be called when the upper MAC
10428 wants to set the Wowl Bcast ptrn to minimize unnecessary
10429 host wakeup due to broadcast traffic while in power
10430 save. Upon the call of this API the WLAN DAL will pack
10431 and send a HAL Wowl Bcast ptrn request message to the
10432 lower RIVA sub-system if DAL is in state STARTED.
10433
10434 In state BUSY this request will be queued. Request won't
10435 be allowed in any other state.
10436
10437 WDI_PostAssocReq must have been called.
10438
10439 @param pwdiWowlAddBcPtrnParams: the Wowl bcast ptrn as
10440 specified by the Device Interface
10441
10442 wdiWowlAddBcPtrnCb: callback for passing back the
10443 response of the add Wowl bcast ptrn operation received
10444 from the device
10445
10446 pUserData: user data will be passed back with the
10447 callback
10448
10449 @see WDI_PostAssocReq
10450 @return Result of the function call
10451*/
10452WDI_Status
10453WDI_WowlAddBcPtrnReq
10454(
10455 WDI_WowlAddBcPtrnReqParamsType* pwdiWowlAddBcPtrnParams,
10456 WDI_WowlAddBcPtrnCb wdiWowlAddBcPtrnCb,
10457 void* pUserData
10458);
10459
10460/**
10461 @brief WDI_WowlDelBcPtrnReq will be called when the upper MAC
10462 wants to clear the Wowl Bcast ptrn. Upon the call of
10463 this API the WLAN DAL will pack and send a HAL delete
10464 Wowl Bcast ptrn request message to the lower RIVA
10465 sub-system if DAL is in state STARTED.
10466
10467 In state BUSY this request will be queued. Request won't
10468 be allowed in any other state.
10469
10470 WDI_WowlAddBcPtrnReq must have been called.
10471
10472 @param pwdiWowlDelBcPtrnParams: the Wowl bcast ptrn as
10473 specified by the Device Interface
10474
10475 wdiWowlDelBcPtrnCb: callback for passing back the
10476 response of the del Wowl bcast ptrn operation received
10477 from the device
10478
10479 pUserData: user data will be passed back with the
10480 callback
10481
10482 @see WDI_WowlAddBcPtrnReq
10483 @return Result of the function call
10484*/
10485WDI_Status
10486WDI_WowlDelBcPtrnReq
10487(
10488 WDI_WowlDelBcPtrnReqParamsType* pwdiWowlDelBcPtrnParams,
10489 WDI_WowlDelBcPtrnCb wdiWowlDelBcPtrnCb,
10490 void* pUserData
10491);
10492
10493/**
10494 @brief WDI_WowlEnterReq will be called when the upper MAC
10495 wants to enter the Wowl state to minimize unnecessary
10496 host wakeup while in power save. Upon the call of this
10497 API the WLAN DAL will pack and send a HAL Wowl enter
10498 request message to the lower RIVA sub-system if DAL is
10499 in state STARTED.
10500
10501 In state BUSY this request will be queued. Request won't
10502 be allowed in any other state.
10503
10504 WDI_PostAssocReq must have been called.
10505
10506 @param pwdiWowlEnterReqParams: the Wowl enter info as
10507 specified by the Device Interface
10508
10509 wdiWowlEnterReqCb: callback for passing back the
10510 response of the enter Wowl operation received from the
10511 device
10512
10513 pUserData: user data will be passed back with the
10514 callback
10515
10516 @see WDI_PostAssocReq
10517 @return Result of the function call
10518*/
10519WDI_Status
10520WDI_WowlEnterReq
10521(
10522 WDI_WowlEnterReqParamsType* pwdiWowlEnterParams,
10523 WDI_WowlEnterReqCb wdiWowlEnterCb,
10524 void* pUserData
10525);
10526
10527/**
10528 @brief WDI_WowlExitReq will be called when the upper MAC
10529 wants to exit the Wowl state. Upon the call of this API
10530 the WLAN DAL will pack and send a HAL Wowl exit request
10531 message to the lower RIVA sub-system if DAL is in state
10532 STARTED.
10533
10534 In state BUSY this request will be queued. Request won't
10535 be allowed in any other state.
10536
10537 WDI_WowlEnterReq must have been called.
10538
10539 @param pwdiWowlExitReqParams: the Wowl exit info as
10540 specified by the Device Interface
10541
10542 wdiWowlExitReqCb: callback for passing back the response
10543 of the exit Wowl operation received from the device
10544
10545 pUserData: user data will be passed back with the
10546 callback
10547
10548 @see WDI_WowlEnterReq
10549 @return Result of the function call
10550*/
10551WDI_Status
10552WDI_WowlExitReq
10553(
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -070010554 WDI_WowlExitReqParamsType* pwdiWowlExitParams,
Jeff Johnson295189b2012-06-20 16:38:30 -070010555 WDI_WowlExitReqCb wdiWowlExitCb,
10556 void* pUserData
10557);
10558
10559/**
10560 @brief WDI_ConfigureAppsCpuWakeupStateReq will be called when
10561 the upper MAC wants to dynamically adjusts the listen
10562 interval based on the WLAN/MSM activity. Upon the call
10563 of this API the WLAN DAL will pack and send a HAL
10564 configure Apps Cpu Wakeup State request message to the
10565 lower RIVA sub-system.
10566
10567 In state BUSY this request will be queued. Request won't
10568 be allowed in any other state.
10569
10570
10571 @param pwdiConfigureAppsCpuWakeupStateReqParams: the
10572 Apps Cpu Wakeup State as specified by the
10573 Device Interface
10574
10575 wdiConfigureAppsCpuWakeupStateCb: callback for passing
10576 back the response of the configure Apps Cpu Wakeup State
10577 operation received from the device
10578
10579 pUserData: user data will be passed back with the
10580 callback
10581
10582 @return Result of the function call
10583*/
10584WDI_Status
10585WDI_ConfigureAppsCpuWakeupStateReq
10586(
10587 WDI_ConfigureAppsCpuWakeupStateReqParamsType *pwdiConfigureAppsCpuWakeupStateReqParams,
10588 WDI_ConfigureAppsCpuWakeupStateCb wdiConfigureAppsCpuWakeupStateCb,
10589 void* pUserData
10590);
10591/**
10592 @brief WDI_FlushAcReq will be called when the upper MAC wants
10593 to to perform a flush operation on a given AC. Upon the
10594 call of this API the WLAN DAL will pack and send a HAL
10595 Flush AC request message to the lower RIVA sub-system if
10596 DAL is in state STARTED.
10597
10598 In state BUSY this request will be queued. Request won't
10599 be allowed in any other state.
10600
10601
10602 @param pwdiFlushAcReqParams: the Flush AC parameters as
10603 specified by the Device Interface
10604
10605 wdiFlushAcRspCb: callback for passing back the response
10606 of the Flush AC operation received from the device
10607
10608 pUserData: user data will be passed back with the
10609 callback
10610
10611 @return Result of the function call
10612*/
10613WDI_Status
10614WDI_FlushAcReq
10615(
10616 WDI_FlushAcReqParamsType* pwdiFlushAcReqParams,
10617 WDI_FlushAcRspCb wdiFlushAcRspCb,
10618 void* pUserData
10619);
10620
10621/**
10622 @brief WDI_BtAmpEventReq will be called when the upper MAC
10623 wants to notify the lower mac on a BT AMP event. This is
10624 to inform BTC-SLM that some BT AMP event occurred. Upon
10625 the call of this API the WLAN DAL will pack and send a
10626 HAL BT AMP event request message to the lower RIVA
10627 sub-system if DAL is in state STARTED.
10628
10629 In state BUSY this request will be queued. Request won't
10630 be allowed in any other state.
10631
10632
10633 @param wdiBtAmpEventReqParams: the BT AMP event parameters as
10634 specified by the Device Interface
10635
10636 wdiBtAmpEventRspCb: callback for passing back the
10637 response of the BT AMP event operation received from the
10638 device
10639
10640 pUserData: user data will be passed back with the
10641 callback
10642
10643 @return Result of the function call
10644*/
10645WDI_Status
10646WDI_BtAmpEventReq
10647(
10648 WDI_BtAmpEventParamsType* pwdiBtAmpEventReqParams,
10649 WDI_BtAmpEventRspCb wdiBtAmpEventRspCb,
10650 void* pUserData
10651);
10652
Jeff Johnsone7245742012-09-05 17:12:55 -070010653#ifdef FEATURE_OEM_DATA_SUPPORT
10654/**
10655 @brief WDI_Start oem data Req will be called when the upper MAC
10656 wants to notify the lower mac on a oem data Req event.Upon
10657 the call of this API the WLAN DAL will pack and send a
10658 HAL OEM Data Req event request message to the lower RIVA
10659 sub-system if DAL is in state STARTED.
10660
10661 In state BUSY this request will be queued. Request won't
10662 be allowed in any other state.
10663
10664
10665 @param pWdiOemDataReqParams: the oem data req parameters as
10666 specified by the Device Interface
10667
10668 wdiStartOemDataRspCb: callback for passing back the
10669 response of the Oem Data Req received from the
10670 device
10671
10672 pUserData: user data will be passed back with the
10673 callback
10674
10675 @return Result of the function call
10676*/
10677WDI_Status
10678WDI_StartOemDataReq
10679(
10680 WDI_oemDataReqParamsType* pWdiOemDataReqParams,
10681 WDI_oemDataRspCb wdiOemDataRspCb,
10682 void* pUserData
10683);
10684#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010685
10686/*========================================================================
10687
10688 CONTROL APIs
10689
10690==========================================================================*/
10691/**
10692 @brief WDI_SwitchChReq will be called when the upper MAC wants
10693 the WLAN HW to change the current channel of operation.
10694 Upon the call of this API the WLAN DAL will pack and
10695 send a HAL Start request message to the lower RIVA
10696 sub-system if DAL is in state STARTED.
10697
10698 In state BUSY this request will be queued. Request won't
10699 be allowed in any other state.
10700
10701 WDI_Start must have been called.
10702
10703 @param wdiSwitchChReqParams: the switch ch parameters as
10704 specified by the Device Interface
10705
10706 wdiSwitchChRspCb: callback for passing back the response
10707 of the switch ch operation received from the device
10708
10709 pUserData: user data will be passed back with the
10710 callback
10711
10712 @see WDI_Start
10713 @return Result of the function call
10714*/
10715WDI_Status
10716WDI_SwitchChReq
10717(
10718 WDI_SwitchChReqParamsType* pwdiSwitchChReqParams,
10719 WDI_SwitchChRspCb wdiSwitchChRspCb,
10720 void* pUserData
10721);
10722
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010723/**
Kalikinkar dhara1e83b772014-02-06 12:59:22 -080010724 @brief WDI_SwitchChReq_V1 is similar to WDI_SwitchChReq except
10725 it also send type source for the channel change.
10726 WDI_Start must have been called.
10727
10728 @param wdiSwitchChReqParams: the switch ch parameters as
10729 specified by the Device Interface
10730
10731 wdiSwitchChRspCb: callback for passing back the response
10732 of the switch ch operation received from the device
10733
10734 pUserData: user data will be passed back with the
10735 callback
10736
10737 @see WDI_Start
10738 @return Result of the function call
10739*/
10740
10741WDI_Status
10742WDI_SwitchChReq_V1
10743(
10744 WDI_SwitchChReqParamsType_V1* pwdiSwitchChReqParams,
10745 WDI_SwitchChRspCb_V1 wdiSwitchChRspCb,
10746 void* pUserData
10747);
10748
10749/**
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010750 @brief WDI_UpdateChannelReq will be called when the upper MAC
10751 wants to update the channel list on change in country code.
Manjunathappa Prakash86f78ca2014-02-10 18:09:15 -080010752 In state BUSY this request will be queued. Request won't
10753 be allowed in any other state.
10754
10755 WDI_UpdateChannelReq must have been called.
10756
10757 @param wdiUpdateChannelReqParams: the updated channel parameters
10758 as specified by the Device Interface
10759
10760 wdiUpdateChannelRspCb: callback for passing back the
10761 response of the update channel operation received from
10762 the device
10763
10764 pUserData: user data will be passed back with the
10765 callback
10766
10767 @return Result of the function call
10768*/
10769WDI_Status
10770WDI_UpdateChannelReq
10771(
10772 WDI_UpdateChReqParamsType *pwdiUpdateChannelReqParams,
10773 WDI_UpdateChannelRspCb wdiUpdateChannelRspCb,
10774 void* pUserData
10775);
Jeff Johnson295189b2012-06-20 16:38:30 -070010776
10777/**
10778 @brief WDI_ConfigSTAReq will be called when the upper MAC
10779 wishes to add or update a STA in HW. Upon the call of
10780 this API the WLAN DAL will pack and send a HAL Start
10781 message request message to the lower RIVA sub-system if
10782 DAL is in state STARTED.
10783
10784 In state BUSY this request will be queued. Request won't
10785 be allowed in any other state.
10786
10787 WDI_Start must have been called.
10788
10789 @param wdiConfigSTAReqParams: the config STA parameters as
10790 specified by the Device Interface
10791
10792 wdiConfigSTARspCb: callback for passing back the
10793 response of the config STA operation received from the
10794 device
10795
10796 pUserData: user data will be passed back with the
10797 callback
10798
10799 @see WDI_Start
10800 @return Result of the function call
10801*/
10802WDI_Status
10803WDI_ConfigSTAReq
10804(
10805 WDI_ConfigSTAReqParamsType* pwdiConfigSTAReqParams,
10806 WDI_ConfigSTARspCb wdiConfigSTARspCb,
10807 void* pUserData
10808);
10809
10810/**
10811 @brief WDI_SetLinkStateReq will be called when the upper MAC
10812 wants to change the state of an ongoing link. Upon the
10813 call of this API the WLAN DAL will pack and send a HAL
10814 Start message request message to the lower RIVA
10815 sub-system if DAL is in state STARTED.
10816
10817 In state BUSY this request will be queued. Request won't
10818 be allowed in any other state.
10819
10820 WDI_JoinReq must have been called.
10821
10822 @param wdiSetLinkStateReqParams: the set link state parameters
10823 as specified by the Device Interface
10824
10825 wdiSetLinkStateRspCb: callback for passing back the
10826 response of the set link state operation received from
10827 the device
10828
10829 pUserData: user data will be passed back with the
10830 callback
10831
10832 @see WDI_JoinStartReq
10833 @return Result of the function call
10834*/
10835WDI_Status
10836WDI_SetLinkStateReq
10837(
10838 WDI_SetLinkReqParamsType* pwdiSetLinkStateReqParams,
10839 WDI_SetLinkStateRspCb wdiSetLinkStateRspCb,
10840 void* pUserData
10841);
10842
10843
10844/**
10845 @brief WDI_GetStatsReq will be called when the upper MAC wants
10846 to get statistics (MIB counters) from the device. Upon
10847 the call of this API the WLAN DAL will pack and send a
10848 HAL Start request message to the lower RIVA sub-system
10849 if DAL is in state STARTED.
10850
10851 In state BUSY this request will be queued. Request won't
10852 be allowed in any other state.
10853
10854 WDI_Start must have been called.
10855
10856 @param wdiGetStatsReqParams: the stats parameters to get as
10857 specified by the Device Interface
10858
10859 wdiGetStatsRspCb: callback for passing back the response
10860 of the get stats operation received from the device
10861
10862 pUserData: user data will be passed back with the
10863 callback
10864
10865 @see WDI_Start
10866 @return Result of the function call
10867*/
10868WDI_Status
10869WDI_GetStatsReq
10870(
10871 WDI_GetStatsReqParamsType* pwdiGetStatsReqParams,
10872 WDI_GetStatsRspCb wdiGetStatsRspCb,
10873 void* pUserData
10874);
10875
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080010876#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -080010877/**
10878 @brief WDI_GetRoamRssiReq will be called when the upper MAC wants
10879 to get roam rssi from the device. Upon
10880 the call of this API the WLAN DAL will pack and send a
10881 HAL Start request message to the lower RIVA sub-system
10882 if DAL is in state STARTED.
10883
10884 In state BUSY this request will be queued. Request won't
10885 be allowed in any other state.
10886
10887 WDI_Start must have been called.
10888
10889 @param wdiGetRoamRssiReqParams: the stats parameters to get as
10890 specified by the Device Interface
10891
10892 wdiGetRoamRssispCb: callback for passing back the response
10893 of the get stats operation received from the device
10894
10895 pUserData: user data will be passed back with the
10896 callback
10897
10898 @see WDI_Start
10899 @return Result of the function call
10900*/
10901WDI_Status
10902WDI_GetRoamRssiReq
10903(
10904 WDI_GetRoamRssiReqParamsType* pwdiGetRoamRssiReqParams,
10905 WDI_GetRoamRssiRspCb wdiGetRoamRssiRspCb,
10906 void* pUserData
10907);
10908#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070010909
10910/**
10911 @brief WDI_UpdateCfgReq will be called when the upper MAC when
10912 it wishes to change the configuration of the WLAN
10913 Device. Upon the call of this API the WLAN DAL will pack
10914 and send a HAL Update CFG request message to the lower
10915 RIVA sub-system if DAL is in state STARTED.
10916
10917 In state BUSY this request will be queued. Request won't
10918 be allowed in any other state.
10919
10920 WDI_Start must have been called.
10921
10922 @param wdiUpdateCfgReqParams: the update cfg parameters as
10923 specified by the Device Interface
10924
10925 wdiUpdateCfgsRspCb: callback for passing back the
10926 response of the update cfg operation received from the
10927 device
10928
10929 pUserData: user data will be passed back with the
10930 callback
10931
10932 @see WDI_Start
10933 @return Result of the function call
10934*/
10935WDI_Status
10936WDI_UpdateCfgReq
10937(
10938 WDI_UpdateCfgReqParamsType* pwdiUpdateCfgReqParams,
10939 WDI_UpdateCfgRspCb wdiUpdateCfgsRspCb,
10940 void* pUserData
10941);
10942
10943/**
10944 @brief WDI_NvDownloadReq will be called by the UMAC to dowload the NV blob
10945 to the NV memory.
10946
10947 @param wdiNvDownloadReqParams: the NV Download parameters as specified by
10948 the Device Interface
10949
10950 wdiNvDownloadRspCb: callback for passing back the response of
10951 the NV Download operation received from the device
10952
10953 pUserData: user data will be passed back with the
10954 callback
10955
10956 @see WDI_PostAssocReq
10957 @return Result of the function call
10958*/
10959WDI_Status
10960WDI_NvDownloadReq
10961(
10962 WDI_NvDownloadReqParamsType* pwdiNvDownloadReqParams,
10963 WDI_NvDownloadRspCb wdiNvDownloadRspCb,
10964 void* pUserData
10965);
10966/**
10967 @brief WDI_AddBAReq will be called when the upper MAC has setup
10968 successfully a BA session and needs to notify the HW for
10969 the appropriate settings to take place. Upon the call of
10970 this API the WLAN DAL will pack and send a HAL Add BA
10971 request message to the lower RIVA sub-system if DAL is
10972 in state STARTED.
10973
10974 In state BUSY this request will be queued. Request won't
10975 be allowed in any other state.
10976
10977 WDI_PostAssocReq must have been called.
10978
10979 @param wdiAddBAReqParams: the add BA parameters as specified by
10980 the Device Interface
10981
10982 wdiAddBARspCb: callback for passing back the response of
10983 the add BA operation received from the device
10984
10985 pUserData: user data will be passed back with the
10986 callback
10987
10988 @see WDI_PostAssocReq
10989 @return Result of the function call
10990*/
10991WDI_Status
10992WDI_AddBAReq
10993(
10994 WDI_AddBAReqParamsType* pwdiAddBAReqParams,
10995 WDI_AddBARspCb wdiAddBARspCb,
10996 void* pUserData
10997);
10998
10999/**
11000 @brief WDI_TriggerBAReq will be called when the upper MAC has setup
11001 successfully a BA session and needs to notify the HW for
11002 the appropriate settings to take place. Upon the call of
11003 this API the WLAN DAL will pack and send a HAL Add BA
11004 request message to the lower RIVA sub-system if DAL is
11005 in state STARTED.
11006
11007 In state BUSY this request will be queued. Request won't
11008 be allowed in any other state.
11009
11010 WDI_PostAssocReq must have been called.
11011
11012 @param wdiAddBAReqParams: the add BA parameters as specified by
11013 the Device Interface
Abhishek Singhac9abe62016-02-05 18:07:41 +053011014 baReqParamUserDataSize: user data size of wdiAddBAReqParams
Jeff Johnson295189b2012-06-20 16:38:30 -070011015 wdiAddBARspCb: callback for passing back the response of
11016 the add BA operation received from the device
11017
11018 pUserData: user data will be passed back with the
11019 callback
11020
11021 @see WDI_PostAssocReq
11022 @return Result of the function call
11023*/
11024WDI_Status
11025WDI_TriggerBAReq
11026(
11027 WDI_TriggerBAReqParamsType* pwdiTriggerBAReqParams,
Abhishek Singhac9abe62016-02-05 18:07:41 +053011028 wpt_uint8 baReqParamUserDataSize,
Jeff Johnson295189b2012-06-20 16:38:30 -070011029 WDI_TriggerBARspCb wdiTriggerBARspCb,
11030 void* pUserData
11031);
11032
11033
11034/**
11035 @brief WDI_IsHwFrameTxTranslationCapable checks to see if HW
11036 frame xtl is enabled for a particular STA.
11037
11038 WDI_PostAssocReq must have been called.
11039
11040 @param uSTAIdx: STA index
11041
11042 @see WDI_PostAssocReq
11043 @return Result of the function call
11044*/
11045wpt_boolean WDI_IsHwFrameTxTranslationCapable
11046(
11047 wpt_uint8 uSTAIdx
11048);
11049
Katya Nigam6201c3e2014-05-27 17:51:42 +053011050
11051/**
11052 @brief WDI_IsSelfSTA - check if staid is self sta index
11053
11054 @param pWDICtx: pointer to the WLAN DAL context
11055 ucSTAIdx: station index
11056
11057 @return Result of the function call
11058*/
11059
11060wpt_boolean
11061WDI_IsSelfSTA
11062(
11063 void* pWDICtx,
11064 wpt_uint8 ucSTAIdx
11065);
11066
11067
Jeff Johnson295189b2012-06-20 16:38:30 -070011068#ifdef WLAN_FEATURE_VOWIFI_11R
11069/**
11070 @brief WDI_AggrAddTSReq will be called when the upper MAC to inform
11071 the device of a successful add TSpec negotiation for 11r. HW
11072 needs to receive the TSpec Info from the UMAC in order
11073 to configure properly the QoS data traffic. Upon the
11074 call of this API the WLAN DAL will pack and send a HAL
11075 Aggregated Add TS request message to the lower RIVA sub-system if
11076 DAL is in state STARTED.
11077
11078 In state BUSY this request will be queued. Request won't
11079 be allowed in any other state.
11080
11081 WDI_PostAssocReq must have been called.
11082
11083 @param wdiAggrAddTsReqParams: the add TS parameters as specified by
11084 the Device Interface
11085
11086 wdiAggrAddTsRspCb: callback for passing back the response of
11087 the add TS operation received from the device
11088
11089 pUserData: user data will be passed back with the
11090 callback
11091
11092 @see WDI_PostAssocReq
11093 @return Result of the function call
11094*/
11095WDI_Status
11096WDI_AggrAddTSReq
11097(
11098 WDI_AggrAddTSReqParamsType* pwdiAddTsReqParams,
11099 WDI_AggrAddTsRspCb wdiAggrAddTsRspCb,
11100 void* pUserData
11101);
11102#endif /* WLAN_FEATURE_VOWIFI_11R */
11103/**
11104 @brief WDI_STATableInit - Initializes the STA tables.
11105 Allocates the necesary memory.
11106
11107
11108 @param pWDICtx: pointer to the WLAN DAL context
11109
11110 @see
11111 @return Result of the function call
11112*/
11113
11114WDI_Status WDI_StubRunTest
11115(
11116 wpt_uint8 ucTestNo
11117);
11118
Jeff Johnson295189b2012-06-20 16:38:30 -070011119/**
11120 @brief WDI_FTMCommandReq -
11121 Route FTMRequest Command to HAL
11122
11123 @param ftmCommandReq: FTM request command body
11124 @param ftmCommandRspCb: Response CB
11125 @param pUserData: User data will be included with CB
11126
11127 @return Result of the function call
11128*/
11129WDI_Status WDI_FTMCommandReq
11130(
11131 WDI_FTMCommandReqType *ftmCommandReq,
11132 WDI_FTMCommandRspCb ftmCommandRspCb,
11133 void *pUserData
11134);
Jeff Johnson295189b2012-06-20 16:38:30 -070011135
11136/**
11137 @brief WDI_HostResumeReq will be called
11138
11139 In state BUSY this request will be queued. Request won't
11140 be allowed in any other state.
11141
11142
11143 @param pwdiResumeReqParams: as specified by
11144 the Device Interface
11145
11146 wdiResumeReqRspCb: callback for passing back the response of
11147 the Resume Req received from the device
11148
11149 pUserData: user data will be passed back with the
11150 callback
11151
11152 @see WDI_PostAssocReq
11153 @return Result of the function call
11154*/
11155WDI_Status
11156WDI_HostResumeReq
11157(
11158 WDI_ResumeParamsType* pwdiResumeReqParams,
11159 WDI_HostResumeEventRspCb wdiResumeReqRspCb,
11160 void* pUserData
11161);
11162
11163/**
11164 @brief WDI_GetAvailableResCount - Function to get the available resource
11165 for data and managemnt frames.
11166
11167 @param pContext: pointer to the WDI context
11168 @param wdiResPool: type of resource pool requesting
11169 @see
11170 @return Result of the function call
11171*/
11172
11173wpt_uint32 WDI_GetAvailableResCount
11174(
11175 void *pContext,
11176 WDI_ResPoolType wdiResPool
11177);
11178
11179/**
11180 @brief WDI_SetAddSTASelfReq will be called when the
11181 UMAC wanted to add self STA while opening any new session
11182 In state BUSY this request will be queued. Request won't
11183 be allowed in any other state.
11184
11185
11186 @param pwdiAddSTASelfParams: the add self sta parameters as
11187 specified by the Device Interface
11188
11189 pUserData: user data will be passed back with the
11190 callback
11191
11192 @see
11193 @return Result of the function call
11194*/
11195WDI_Status
11196WDI_AddSTASelfReq
11197(
11198 WDI_AddSTASelfReqParamsType* pwdiAddSTASelfReqParams,
11199 WDI_AddSTASelfParamsRspCb wdiAddSTASelfReqParamsRspCb,
11200 void* pUserData
11201);
11202
11203
11204/**
11205 @brief WDI_DelSTASelfReq will be called .
11206
11207 @param WDI_DelSTASelfReqParamsType
11208
11209 WDI_DelSTASelfRspCb: callback for passing back the
11210 response of the del sta self operation received from the
11211 device
11212
11213 pUserData: user data will be passed back with the
11214 callback
11215
11216 @see WDI_PostAssocReq
11217 @return Result of the function call
11218*/
11219WDI_Status
11220WDI_DelSTASelfReq
11221(
11222 WDI_DelSTASelfReqParamsType* pwdiDelStaSelfParams,
11223 WDI_DelSTASelfRspCb wdiDelStaSelfRspCb,
11224 void* pUserData
11225);
11226
11227/**
11228 @brief WDI_HostSuspendInd
11229
11230 Suspend Indication from the upper layer will be sent
11231 down to HAL
11232
11233 @param WDI_SuspendParamsType
11234
11235 @see
11236
11237 @return Status of the request
11238*/
11239WDI_Status
11240WDI_HostSuspendInd
11241(
11242 WDI_SuspendParamsType* pwdiSuspendIndParams
11243);
11244
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -080011245/**
11246 @brief WDI_TrafficStatsInd
11247
11248 Traffic Stats from the upper layer will be sent
11249 down to HAL
11250
11251 @param WDI_TrafficStatsIndType
11252
11253 @see
11254
11255 @return Status of the request
11256*/
11257WDI_Status
11258WDI_TrafficStatsInd
11259(
11260 WDI_TrafficStatsIndType *pWdiTrafficStatsIndParams
11261);
11262
Chet Lanctot186b5732013-03-18 10:26:30 -070011263#ifdef WLAN_FEATURE_11W
11264/**
11265 @brief WDI_ExcludeUnencryptedInd
11266 Register with HAL to receive/drop unencrypted frames
11267
11268 @param WDI_ExcludeUnencryptIndType
11269
11270 @see
11271
11272 @return Status of the request
11273*/
11274WDI_Status
11275WDI_ExcludeUnencryptedInd
11276(
11277 WDI_ExcludeUnencryptIndType *pWdiExcUnencParams
11278);
11279#endif
11280
Yue Mab9c86f42013-08-14 15:59:08 -070011281/**
11282 @brief WDI_AddPeriodicTxPtrnInd
11283
11284 @param WDI_AddPeriodicTxPtrnParamsType
11285
11286 @see
11287
11288 @return Status of the request
11289*/
11290WDI_Status
11291WDI_AddPeriodicTxPtrnInd
11292(
11293 WDI_AddPeriodicTxPtrnParamsType *addPeriodicTxPtrnParams
11294);
11295
11296/**
11297 @brief WDI_DelPeriodicTxPtrnInd
11298
11299 @param WDI_DelPeriodicTxPtrnParamsType
11300
11301 @see
11302
11303 @return Status of the request
11304*/
11305WDI_Status
11306WDI_DelPeriodicTxPtrnInd
11307(
11308 WDI_DelPeriodicTxPtrnParamsType *delPeriodicTxPtrnParams
11309);
11310
Jeff Johnson295189b2012-06-20 16:38:30 -070011311#ifdef FEATURE_WLAN_SCAN_PNO
11312/**
11313 @brief WDI_SetPreferredNetworkList
11314
11315 @param pwdiPNOScanReqParams: the Set PNO as specified
11316 by the Device Interface
11317
11318 wdiPNOScanCb: callback for passing back the response
11319 of the Set PNO operation received from the
11320 device
11321
11322 pUserData: user data will be passed back with the
11323 callback
11324
11325 @see WDI_PostAssocReq
11326 @return Result of the function call
11327*/
11328WDI_Status
11329WDI_SetPreferredNetworkReq
11330(
11331 WDI_PNOScanReqParamsType* pwdiPNOScanReqParams,
11332 WDI_PNOScanCb wdiPNOScanCb,
11333 void* pUserData
11334);
11335
11336/**
11337 @brief WDI_SetRssiFilterReq
11338
11339 @param pwdiRssiFilterReqParams: the Set RSSI Filter as
11340 specified by the Device Interface
11341
11342 wdiRssiFilterCb: callback for passing back the response
11343 of the Set RSSI Filter operation received from the
11344 device
11345
11346 pUserData: user data will be passed back with the
11347 callback
11348
11349 @see WDI_PostAssocReq
11350 @return Result of the function call
11351*/
11352WDI_Status
11353WDI_SetRssiFilterReq
11354(
11355 WDI_SetRssiFilterReqParamsType* pwdiRssiFilterReqParams,
11356 WDI_RssiFilterCb wdiRssiFilterCb,
11357 void* pUserData
11358);
11359
11360/**
11361 @brief WDI_UpdateScanParams
11362
11363 @param pwdiUpdateScanParamsInfoType: the Update Scan Params as specified
11364 by the Device Interface
11365
11366 wdiUpdateScanParamsCb: callback for passing back the response
11367 of the Set PNO operation received from the
11368 device
11369
11370 pUserData: user data will be passed back with the
11371 callback
11372
11373 @see WDI_PostAssocReq
11374 @return Result of the function call
11375*/
11376WDI_Status
11377WDI_UpdateScanParamsReq
11378(
11379 WDI_UpdateScanParamsInfoType* pwdiUpdateScanParamsInfoType,
11380 WDI_UpdateScanParamsCb wdiUpdateScanParamsCb,
11381 void* pUserData
11382);
11383#endif // FEATURE_WLAN_SCAN_PNO
11384
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011385#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
11386/**
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011387 @brief WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011388
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011389 @param pwdiRoamScanOffloadReqParams: Start Roam Candidate Lookup Req as specified
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011390 by the Device Interface
11391
11392 wdiRoamOffloadScanCb: callback for passing back the response
11393 of the Start Roam Candidate Lookup operation received from the
11394 device
11395
11396 pUserData: user data will be passed back with the
11397 callback
11398
11399 @return Result of the function call
11400*/
11401WDI_Status
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011402WDI_RoamScanOffloadReq
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011403(
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070011404 WDI_RoamScanOffloadReqParamsType *pwdiRoamScanOffloadReqParams,
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011405 WDI_RoamOffloadScanCb wdiRoamOffloadScancb,
11406 void* pUserData
11407);
Kapil Gupta04ab1992016-06-26 13:36:51 +053011408
11409WDI_Status
11410WDI_PERRoamScanOffloadReq
11411(
11412 WDI_PERRoamOffloadScanInfo *pwdiRoamScanOffloadReqParams,
11413 WDI_PERRoamOffloadScanCb wdiRoamOffloadScancb,
11414 void* pUserData
11415);
11416
11417WDI_Status
11418WDI_PERRoamScanTriggerReq
11419(
11420 WDI_PERRoamTriggerScanInfo *pwdiRoamScanTriggerReqParams,
11421 WDI_PERRoamTriggerScanCb wdiRoamTriggerScancb,
11422 void* pUserData
11423);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070011424#endif
11425
Jeff Johnson295189b2012-06-20 16:38:30 -070011426/**
11427 @brief WDI_SetTxPerTrackingReq will be called when the upper MAC
11428 wants to set the Tx Per Tracking configurations.
11429 Upon the call of this API the WLAN DAL will pack
11430 and send a HAL Set Tx Per Tracking request message to the
11431 lower RIVA sub-system if DAL is in state STARTED.
11432
11433 In state BUSY this request will be queued. Request won't
11434 be allowed in any other state.
11435
11436 @param wdiSetTxPerTrackingConf: the Set Tx PER Tracking configurations as
11437 specified by the Device Interface
11438
11439 wdiSetTxPerTrackingCb: callback for passing back the
11440 response of the set Tx PER Tracking configurations operation received
11441 from the device
11442
11443 pUserData: user data will be passed back with the
11444 callback
11445
11446 @return Result of the function call
11447*/
11448WDI_Status
11449WDI_SetTxPerTrackingReq
11450(
11451 WDI_SetTxPerTrackingReqParamsType* pwdiSetTxPerTrackingReqParams,
11452 WDI_SetTxPerTrackingRspCb pwdiSetTxPerTrackingRspCb,
11453 void* pUserData
11454);
11455
11456/**
11457 @brief WDI_SetTmLevelReq
11458 If HW Thermal condition changed, driver should react based on new
11459 HW thermal condition.
11460
11461 @param pwdiSetTmLevelReq: New thermal condition information
11462
11463 pwdiSetTmLevelRspCb: callback
11464
11465 usrData: user data will be passed back with the
11466 callback
11467
11468 @return Result of the function call
11469*/
11470WDI_Status
11471WDI_SetTmLevelReq
11472(
11473 WDI_SetTmLevelReqType *pwdiSetTmLevelReq,
11474 WDI_SetTmLevelCb pwdiSetTmLevelRspCb,
11475 void *usrData
11476);
11477
11478#ifdef WLAN_FEATURE_PACKET_FILTERING
11479/**
11480 @brief WDI_8023MulticastListReq
11481
11482 @param pwdiRcvFltPktSetMcListReqInfo: the Set 8023 Multicast
11483 List as specified by the Device Interface
11484
11485 wdi8023MulticastListCallback: callback for passing back
11486 the response of the Set 8023 Multicast List operation
11487 received from the device
11488
11489 pUserData: user data will be passed back with the
11490 callback
11491
11492 @see WDI_PostAssocReq
11493 @return Result of the function call
11494*/
11495WDI_Status
11496WDI_8023MulticastListReq
11497(
11498 WDI_RcvFltPktSetMcListReqParamsType* pwdiRcvFltPktSetMcListReqInfo,
11499 WDI_8023MulticastListCb wdi8023MulticastListCallback,
11500 void* pUserData
11501);
11502
11503/**
11504 @brief WDI_ReceiveFilterSetFilterReq
11505
11506 @param pwdiSetRcvPktFilterReqInfo: the Set Receive Filter as
11507 specified by the Device Interface
11508
11509 wdiReceiveFilterSetFilterReqCallback: callback for
11510 passing back the response of the Set Receive Filter
11511 operation received from the device
11512
11513 pUserData: user data will be passed back with the
11514 callback
11515
11516 @see WDI_PostAssocReq
11517 @return Result of the function call
11518*/
11519WDI_Status
11520WDI_ReceiveFilterSetFilterReq
11521(
11522 WDI_SetRcvPktFilterReqParamsType* pwdiSetRcvPktFilterReqInfo,
11523 WDI_ReceiveFilterSetFilterCb wdiReceiveFilterSetFilterReqCallback,
11524 void* pUserData
11525);
11526
11527/**
11528 @brief WDI_PCFilterMatchCountReq
11529
11530 @param pwdiRcvFltPktMatchCntReqInfo: get D0 PC Filter Match
11531 Count
11532
11533 wdiPCFilterMatchCountCallback: callback for passing back
11534 the response of the D0 PC Filter Match Count operation
11535 received from the device
11536
11537 pUserData: user data will be passed back with the
11538 callback
11539
11540 @see WDI_PostAssocReq
11541 @return Result of the function call
11542*/
11543WDI_Status
11544WDI_FilterMatchCountReq
11545(
11546 WDI_RcvFltPktMatchCntReqParamsType* pwdiRcvFltPktMatchCntReqInfo,
11547 WDI_FilterMatchCountCb wdiFilterMatchCountCallback,
11548 void* pUserData
11549);
11550
11551/**
11552 @brief WDI_ReceiveFilterClearFilterReq
11553
11554 @param pwdiRcvFltPktClearReqInfo: the Clear Filter as
11555 specified by the Device Interface
11556
11557 wdiReceiveFilterClearFilterCallback: callback for
11558 passing back the response of the Clear Filter
11559 operation received from the device
11560
11561 pUserData: user data will be passed back with the
11562 callback
11563
11564 @see WDI_PostAssocReq
11565 @return Result of the function call
11566*/
11567WDI_Status
11568WDI_ReceiveFilterClearFilterReq
11569(
11570 WDI_RcvFltPktClearReqParamsType* pwdiRcvFltPktClearReqInfo,
11571 WDI_ReceiveFilterClearFilterCb wdiReceiveFilterClearFilterCallback,
11572 void* pUserData
11573);
11574#endif // WLAN_FEATURE_PACKET_FILTERING
11575
11576/**
11577 @brief WDI_HALDumpCmdReq
11578 Post HAL DUMP Command Event
11579
11580 @param halDumpCmdReqParams: Hal Dump Command Body
11581 @param halDumpCmdRspCb: callback for passing back the
11582 response
11583 @param pUserData: Client Data
11584
11585 @see
11586 @return Result of the function call
11587*/
11588WDI_Status WDI_HALDumpCmdReq(
11589 WDI_HALDumpCmdReqParamsType *halDumpCmdReqParams,
11590 WDI_HALDumpCmdRspCb halDumpCmdRspCb,
11591 void *pUserData
11592);
11593
11594
11595/**
11596 @brief WDI_SetPowerParamsReq
11597
11598 @param pwdiPowerParamsReqParams: the Set Power Params as
11599 specified by the Device Interface
11600
11601 wdiPowerParamsCb: callback for passing back the response
11602 of the Set Power Params operation received from the
11603 device
11604
11605 pUserData: user data will be passed back with the
11606 callback
11607
11608 @return Result of the function call
11609*/
11610WDI_Status
11611WDI_SetPowerParamsReq
11612(
11613 WDI_SetPowerParamsReqParamsType* pwdiPowerParamsReqParams,
11614 WDI_SetPowerParamsCb wdiPowerParamsCb,
11615 void* pUserData
11616);
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +053011617/**
11618 @brief WDI_dhcpStartInd
11619 Forward the DHCP Start event
11620
11621 @param
11622
11623 wdiDHCPInd: device mode and MAC address is passed
11624
11625 @see
11626 @return Result of the function call
11627*/
11628
11629WDI_Status
11630WDI_dhcpStartInd
11631(
11632 WDI_DHCPInd *wdiDHCPInd
11633);
11634/**
11635 @brief WDI_dhcpStopReq
11636 Forward the DHCP Stop event
11637
11638 @param
11639
11640 wdiDHCPInd: device mode and MAC address is passed
11641
11642 @see
11643 @return Result of the function call
11644*/
11645
11646WDI_Status
11647WDI_dhcpStopInd
11648(
11649 WDI_DHCPInd *wdiDHCPInd
11650);
Jeff Johnson295189b2012-06-20 16:38:30 -070011651
Abhishek Singh00b71972016-01-07 10:51:04 +053011652#ifdef WLAN_FEATURE_RMC
11653WDI_Status
11654WDI_RmcRulerReq
11655(
11656 WDI_RmcRulerReqParams *wdiRmcRulerReqParams,
11657 WDI_RmcRulerRspCb rmcRulerRspCb,
11658 void *usrData
11659);
11660
11661WDI_Status
11662WDI_RmcUpdateInd
11663(
11664 WDI_RmcUpdateIndParams *wdiRmcUpdateIndParams
11665);
11666#endif /* WLAN_FEATURE_RMC */
11667
Chittajit Mitraf5413a42013-10-18 14:20:08 -070011668/**
11669 @brief WDI_RateUpdateInd will be called when the upper MAC
11670 requests the device to update rates.
11671
11672 In state BUSY this request will be queued. Request won't
11673 be allowed in any other state.
11674
11675
11676 @param wdiRateUpdateIndParams
11677
11678
11679 @see WDI_Start
11680 @return Result of the function call
11681*/
11682WDI_Status
11683WDI_RateUpdateInd
11684(
11685 WDI_RateUpdateIndParams *wdiRateUpdateIndParams
11686);
11687
Abhishek Singh00b71972016-01-07 10:51:04 +053011688#ifdef WLAN_FEATURE_RMC
11689/**
11690 @brief WDI_TXFailMonitorStartStopInd
11691 Forward TX monitor start/stop event
11692
11693 @param
11694
11695 WDI_TXFailMonitorInd
11696
11697 @see
11698 @return Result of the function call
11699*/
11700
11701WDI_Status
11702WDI_TXFailMonitorStartStopInd
11703(
11704 WDI_TXFailMonitorInd *wdiTXFailMonitorInd
11705);
11706#endif /* WLAN_FEATURE_RMC */
11707
Jeff Johnson295189b2012-06-20 16:38:30 -070011708#ifdef WLAN_FEATURE_GTK_OFFLOAD
11709/**
11710 @brief WDI_GTKOffloadReq will be called when the upper MAC
11711 wants to set GTK Rekey Counter while in power save. Upon
11712 the call of this API the WLAN DAL will pack and send a
11713 HAL GTK offload request message to the lower RIVA
11714 sub-system if DAL is in state STARTED.
11715
11716 In state BUSY this request will be queued. Request won't
11717 be allowed in any other state.
11718
11719 WDI_PostAssocReq must have been called.
11720
11721 @param pwdiGtkOffloadParams: the GTK offload as specified
11722 by the Device Interface
11723
11724 wdiGtkOffloadCb: callback for passing back the response
11725 of the GTK offload operation received from the device
11726
11727 pUserData: user data will be passed back with the
11728 callback
11729
11730 @see WDI_PostAssocReq
11731 @return Result of the function call
11732*/
11733WDI_Status
11734WDI_GTKOffloadReq
11735(
11736 WDI_GtkOffloadReqMsg* pwdiGtkOffloadReqMsg,
11737 WDI_GtkOffloadCb wdiGtkOffloadCb,
11738 void* pUserData
11739);
11740
11741/**
11742 @brief WDI_GTKOffloadGetInfoReq will be called when the upper
11743 MAC wants to get GTK Rekey Counter while in power save.
11744 Upon the call of this API the WLAN DAL will pack and
11745 send a HAL GTK offload request message to the lower RIVA
11746 sub-system if DAL is in state STARTED.
11747
11748 In state BUSY this request will be queued. Request won't
11749 be allowed in any other state.
11750
11751 WDI_PostAssocReq must have been called.
11752
11753 @param pwdiGtkOffloadGetInfoReqMsg: the GTK Offload
11754 Information Message as specified by the
11755 Device Interface
11756
11757 wdiGtkOffloadGetInfoCb: callback for passing back the
11758 response of the GTK offload operation received from the
11759 device
11760
11761 pUserData: user data will be passed back with the
11762 callback
11763
11764 @see WDI_PostAssocReq
11765 @return Result of the function call
11766*/
11767WDI_Status
11768WDI_GTKOffloadGetInfoReq
11769(
11770 WDI_GtkOffloadGetInfoReqMsg* pwdiGtkOffloadGetInfoReqMsg,
11771 WDI_GtkOffloadGetInfoCb wdiGtkOffloadGetInfoCb,
11772 void* pUserData
11773);
11774#endif // WLAN_FEATURE_GTK_OFFLOAD
11775
11776/**
11777 @brief WDI_featureCapsExchangeReq
11778 Post feature capability bitmap exchange event.
11779 Host will send its own capability to FW in this req and
11780 expect FW to send its capability back as a bitmap in Response
11781
11782 @param
11783
11784 wdiFeatCapsExcRspCb: callback called on getting the response.
11785 It is kept to mantain similarity between WDI reqs and if needed, can
11786 be used in future. Currently, It is set to NULL
11787
11788 pUserData: user data will be passed back with the
11789 callback
11790
11791 @see
11792 @return Result of the function call
11793*/
11794WDI_Status
11795WDI_featureCapsExchangeReq
11796(
11797 WDI_featureCapsExchangeCb wdiFeatureCapsExchangeCb,
11798 void* pUserData
11799);
11800
11801/**
Yathish9f22e662012-12-10 14:21:35 -080011802 @brief Disable Active mode offload in Host
11803
11804 @param void
11805 @see
11806 @return void
11807*/
11808void
11809WDI_disableCapablityFeature(wpt_uint8 feature_index);
11810
11811
11812/**
Jeff Johnson295189b2012-06-20 16:38:30 -070011813 @brief WDI_getHostWlanFeatCaps
11814 WDI API that returns whether the feature passed to it as enum value in
11815 "placeHolderInCapBitmap" is supported by Host or not. It uses WDI global
11816 variable storing host capability bitmap to find this. This can be used by
11817 other moduels to decide certain things like call different APIs based on
11818 whether a particular feature is supported.
11819
11820 @param
11821
11822 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap in wlan_hal_msg.h.
11823
11824 @see
11825 @return
11826 0 - if the feature is NOT supported in host
11827 any non-zero value - if the feature is SUPPORTED in host.
11828*/
11829wpt_uint8 WDI_getHostWlanFeatCaps(wpt_uint8 feat_enum_value);
11830
11831/**
11832 @brief WDI_getFwWlanFeatCaps
11833 WDI API that returns whether the feature passed to it as enum value in
11834 "placeHolderInCapBitmap" is supported by FW or not. It uses WDI global
11835 variable storing host capability bitmap to find this. This can be used by
11836 other moduels to decide certain things like call different APIs based on
11837 whether a particular feature is supported.
11838
11839 @param
11840
Jeff Johnsone7245742012-09-05 17:12:55 -070011841 feat_enum_value: enum value for the feature as in placeHolderInCapBitmap
11842 in wlan_hal_msg.h.
Jeff Johnson295189b2012-06-20 16:38:30 -070011843
11844 @see
11845 @return
11846 0 - if the feature is NOT supported in FW
11847 any non-zero value - if the feature is SUPPORTED in FW.
11848*/
11849wpt_uint8 WDI_getFwWlanFeatCaps(wpt_uint8 feat_enum_value);
11850
11851/**
11852 @brief WDI_GetWcnssCompiledApiVersion - Function to get wcnss compiled
11853 api version
11854
11855 @param WDI_WlanVersionType: Wlan version structure
11856 @see
11857 @return none
11858*/
11859
11860void WDI_GetWcnssCompiledApiVersion
11861(
11862 WDI_WlanVersionType *pWcnssApiVersion
11863);
11864
Mohit Khanna4a70d262012-09-11 16:30:12 -070011865#ifdef WLAN_FEATURE_11AC
11866WDI_Status
11867WDI_UpdateVHTOpModeReq
11868(
11869 WDI_UpdateVHTOpMode *pData,
11870 WDI_UpdateVHTOpModeCb wdiUpdateVHTOpModeCb,
11871 void* pUserData
11872);
Jeff Johnson295189b2012-06-20 16:38:30 -070011873
Mohit Khanna4a70d262012-09-11 16:30:12 -070011874#endif
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011875
11876/**
11877 @brief WDI_TransportChannelDebug -
11878 Display DXE Channel debugging information
11879 User may request to display DXE channel snapshot
11880 Or if host driver detects any abnormal stcuk may display
11881
Jeff Johnsonb88db982012-12-10 13:34:59 -080011882 @param displaySnapshot : Display DXE snapshot option
Mihir Shete40a55652014-03-02 14:14:47 +053011883 @param debugFlags : Enable stall detect features
11884 defined by WPAL_DeviceDebugFlags
11885 These features may effect
11886 data performance.
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011887 @see
11888 @return none
11889*/
11890void WDI_TransportChannelDebug
11891(
11892 wpt_boolean displaySnapshot,
Mihir Shete40a55652014-03-02 14:14:47 +053011893 wpt_uint8 debugFlags
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -070011894);
11895
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011896/**
Sravan Kumar Kairame9d186c2015-11-27 23:37:02 +053011897 @brief WDI_TransportKickDxe -
11898 Request Kick DXE when first HDD TX time out
11899 happens
11900 @param none
11901 @see
11902 @return none
11903*/
11904void WDI_TransportKickDxe(void);
11905
11906/**
Madan Mohan Koyyalamudi0bfd0002012-10-24 14:39:37 -070011907 @brief WDI_SsrTimerCB
11908 Callback function for SSR timer, if this is called then the graceful
11909 shutdown for Riva did not happen.
11910
11911 @param pUserData : user data to timer
11912
11913 @see
11914 @return none
11915*/
11916void
11917WDI_SsrTimerCB
11918(
11919 void *pUserData
11920);
11921
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -070011922/**
11923 @brief WDI_SetEnableSSR -
11924 This API is called to enable/disable SSR on WDI timeout.
11925
11926 @param enableSSR : enable/disable SSR
11927
11928 @see
11929 @return none
11930*/
11931void WDI_SetEnableSSR(wpt_boolean enableSSR);
11932
Leo Chang9056f462013-08-01 19:21:11 -070011933#ifdef FEATURE_WLAN_LPHB
11934/**
11935 @brief WDI_LPHBConfReq
11936 This API is called to config FW LPHB rule
11937
11938 @param lphbconfParam : LPHB rule should config to FW
11939 usrData : Client context
11940 lphbCfgCb : Configuration status callback
11941 @see
11942 @return SUCCESS or FAIL
11943*/
11944WDI_Status WDI_LPHBConfReq
11945(
11946 void *lphbconfParam,
11947 void *usrData,
11948 WDI_LphbCfgCb lphbCfgCb
11949);
11950#endif /* FEATURE_WLAN_LPHB */
Rajeev79dbe4c2013-10-05 11:03:42 +053011951
Dino Mycle41bdc942014-06-10 11:30:24 +053011952#ifdef WLAN_FEATURE_EXTSCAN
11953/**
11954 @brief WDI_EXTScanStartReq
11955 This API is called to send EXTScan start request to FW
11956
11957 @param pwdiEXTScanStartReqParams : pointer to the request params.
11958 wdiEXTScanStartRspCb : callback on getting the response.
11959 usrData : Client context
11960 @see
11961 @return SUCCESS or FAIL
11962*/
11963WDI_Status WDI_EXTScanStartReq
11964(
11965 WDI_EXTScanStartReqParams* pwdiEXTScanStartReqParams,
11966 WDI_EXTScanStartRspCb wdiEXTScanStartRspCb,
11967 void* pUserData
11968);
11969
11970/**
11971 @brief WDI_EXTScanStopReq
11972 This API is called to stop the EXTScan operations in the FW
11973
11974 @param pwdiEXTScanStopReqParams : pointer to the request params.
11975 wdiEXTScanStopRspCb : callback on getting the response.
11976 usrData : Client context
11977 @see
11978 @return SUCCESS or FAIL
11979*/
11980WDI_Status WDI_EXTScanStopReq
11981(
11982 WDI_EXTScanStopReqParams* pwdiEXTScanStopReqParams,
11983 WDI_EXTScanStopRspCb wdiEXTScanStopRspCb,
11984 void* pUserData
11985);
11986
11987/**
11988 @brief WDI_EXTScanGetCachedResultsReq
11989 This API is called to send get link layer stats request in FW
11990
11991 @param pwdiEXTScanGetCachedResultsReqParams : pointer to the request params.
11992 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
11993 usrData : Client context
11994 @see
11995 @return SUCCESS or FAIL
11996*/
11997WDI_Status WDI_EXTScanGetCachedResultsReq
11998(
11999 WDI_EXTScanGetCachedResultsReqParams* pwdiEXTScanGetCachedResultsReqParams,
12000 WDI_EXTScanGetCachedResultsRspCb wdiEXTScanGetCachedResultsRspCb,
12001 void* pUserData
12002);
12003
12004/**
12005 @brief WDI_EXTScanGetCapabilitiesReq
12006 This API is called to send get EXTScan capabilities from FW
12007
12008 @param pwdiEXTScanGetCachedResultsReqParams : pointer to the request params.
12009 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
12010 usrData : Client context
12011 @see
12012 @return SUCCESS or FAIL
12013*/
12014WDI_Status WDI_EXTScanGetCapabilitiesReq
12015(
12016 WDI_EXTScanGetCapabilitiesReqParams* pwdiEXTScanGetCapabilitiesReqParams,
12017 WDI_EXTScanGetCapabilitiesRspCb wdiEXTScanGetCapabilitiesRspCb,
12018 void* pUserData
12019);
12020
12021/**
12022 @brief WDI_EXTScanSetBSSIDHotlistReq
12023 This API is called to send Set BSSID Hotlist Request FW
12024
12025 @param pwdiEXTScanSetBssidHotlistReqParams : pointer to the request params.
12026 wdiEXTScanSetBSSIDHotlistRspCb : callback on getting the response.
12027 usrData : Client context
12028 @see
12029 @return SUCCESS or FAIL
12030*/
12031WDI_Status WDI_EXTScanSetBSSIDHotlistReq
12032(
12033 WDI_EXTScanSetBSSIDHotlistReqParams* pwdiEXTScanSetBSSIDHotlistReqParams,
12034 WDI_EXTScanSetBSSIDHotlistRspCb wdiEXTScanSetBSSIDHotlistRspCb,
12035 void* pUserData
12036);
12037
12038/**
12039 @brief WDI_EXTScanResetBSSIDHotlistReq
12040 This API is called to send Reset BSSID Hotlist Request FW
12041
12042 @param pwdiEXTScanResetBssidHotlistReqParams : pointer to the request params.
12043 wdiEXTScanGetCachedResultsRspCb : callback on getting the response.
12044 usrData : Client context
12045 @see
12046 @return SUCCESS or FAIL
12047*/
12048WDI_Status WDI_EXTScanResetBSSIDHotlistReq
12049(
12050 WDI_EXTScanResetBSSIDHotlistReqParams* pwdiEXTScanResetBSSIDHotlistReqParams,
12051 WDI_EXTScanResetBSSIDHotlistRspCb wdiEXTScanResetBSSIDHotlistRspCb,
12052 void* pUserData
12053);
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +053012054
12055/**
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +053012056 @brief WDI_HighPriorityDataInfoInd
12057
12058 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
12059
12060 @return SUCCESS or FAIL
12061*/
12062WDI_Status
12063WDI_HighPriorityDataInfoInd
12064(
12065 WDI_HighPriorityDataInfoIndParams* pHighPriorityDataInfoIndParams
12066);
12067
Dino Mycle41bdc942014-06-10 11:30:24 +053012068#endif /* WLAN_FEATURE_EXTSCAN */
12069
Sunil Duttbd736ed2014-05-26 21:19:41 +053012070#ifdef WLAN_FEATURE_LINK_LAYER_STATS
12071/**
12072 @brief WDI_LLStatsSetReq
12073 This API is called to send set link layer stats request to FW
12074
12075 @param pwdiLLStatsSetReqParams : pointer to set link layer stats params
12076 wdiLLStatsSetRspCb : set link layer stats response callback
12077 usrData : Client context
12078 @see
12079 @return SUCCESS or FAIL
12080*/
12081WDI_Status WDI_LLStatsSetReq
12082(
12083 WDI_LLStatsSetReqType* pwdiLLStatsSetReqParams,
12084 WDI_LLStatsSetRspCb wdiLLStatsSetRspCb,
12085 void* pUserData
12086);
12087
12088/**
12089 @brief WDI_LLStatsGetReq
12090 This API is called to send get link layer stats request in FW
12091
12092 @param pwdiLLStatsGetParams : pointer to get link layer stats params
12093 wdiLLStatsGetRspCb : get link layer stats response callback
12094 usrData : Client context
12095 @see
12096 @return SUCCESS or FAIL
12097*/
12098WDI_Status WDI_LLStatsGetReq
12099(
12100 WDI_LLStatsGetReqType* pwdiLLStatsGetReqParams,
12101 WDI_LLStatsGetRspCb wdiLLStatsGetRspCb,
12102 void* pUserData
12103);
12104
12105/**
12106 @brief WDI_LLStatsClearReq
12107 This API is called to set clear link layer stats request in FW
12108
12109 @param pwdiLLStatsClearReqParams : pointer to clear link layer stats params
12110 iwdiLLStatsClearRspCb : clear link layer stats response callback
12111 usrData : Client context
12112 @see
12113 @return SUCCESS or FAIL
12114*/
12115WDI_Status WDI_LLStatsClearReq
12116(
12117 WDI_LLStatsClearReqType* pwdiLLStatsClearReqParams,
12118 WDI_LLStatsClearRspCb wdiLLStatsClearRspCb,
12119 void* pUserData
12120);
12121#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
12122
Abhishek Singh85b74712014-10-08 11:38:19 +053012123WDI_Status WDI_FWStatsGetReq
12124(
12125 void* pwdiFWStatsGetReqParams,
12126 WDI_FWStatsGetRspCb wdiFWStatsGetRspCb,
12127 wpt_uint32 pUserData
12128);
12129
Katya Nigamf0511f62015-05-05 16:40:57 +053012130WDI_Status WDI_MonStartReq
12131(
12132 WDI_MonStartReqType* pwdiMonStartReqParams,
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053012133 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053012134 void* pUserData
12135);
12136
12137WDI_Status WDI_MonStopReq
12138(
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +053012139 WDI_MonModeRspCb wdiMonModeRspCb,
Katya Nigamf0511f62015-05-05 16:40:57 +053012140 void* pUserData
12141);
12142
Rajeev79dbe4c2013-10-05 11:03:42 +053012143#ifdef FEATURE_WLAN_BATCH_SCAN
12144/**
12145 @brief WDI_SetBatchScanReq
12146 This API is called to set batch scan request in FW
12147
12148 @param pBatchScanReqParam : pointer to set batch scan re param
12149 usrData : Client context
12150 setBatchScanRspCb : set batch scan resp callback
12151 @see
12152 @return SUCCESS or FAIL
12153*/
12154WDI_Status WDI_SetBatchScanReq
12155(
12156 void *pBatchScanReqParam,
12157 void *usrData,
12158 WDI_SetBatchScanCb setBatchScanRspCb
12159);
12160
12161/**
12162 @brief WDI_StopBatchScanInd
12163
12164 @param none
12165
12166 @see
12167
12168 @return Status of the request
12169*/
12170WDI_Status
12171WDI_StopBatchScanInd(WDI_StopBatchScanIndType *pWdiReq);
12172
12173/**
12174 @brief WDI_TriggerBatchScanResultInd
12175 This API is called to pull batch scan result from FW
12176
12177 @param pBatchScanReqParam : pointer to trigger batch scan ind param
12178 usrData : Client context
12179 setBatchScanRspCb : get batch scan resp callback
12180 @see
12181 @return SUCCESS or FAIL
12182*/
12183WDI_Status
12184WDI_TriggerBatchScanResultInd(WDI_TriggerBatchScanResultIndType *pWdiReq);
12185
12186
12187#endif /*FEATURE_WLAN_BATCH_SCAN*/
12188
Abhishek Singh00b71972016-01-07 10:51:04 +053012189#ifdef WLAN_FEATURE_RMC
12190/**
12191 @brief Process peer info req
12192
12193 @param pWDICtx: pointer to the WLAN DAL context
12194 pEventData: pointer to the event information structure
12195
12196 @see
12197 @return Result of the function call
12198*/
12199
12200WDI_Status
12201WDI_IbssPeerInfoReq
12202(
12203 WDI_IbssPeerInfoReqType* wdiPeerInfoReqParams,
12204 WDI_IbssPeerInfoReqCb wdiIbssPeerInfoReqCb,
12205 void* pUserData
12206);
12207#endif /* WLAN_FEATURE_RMC */
12208
Sandeep Puligilla8b8b74b2014-02-10 16:39:05 +053012209/**
12210 @brief wdi_HT40OBSSScanInd
12211 This API is called to start OBSS scan
12212
12213 @param pWdiReq : pointer to get ind param
12214 @see
12215 @return SUCCESS or FAIL
12216*/
12217
12218WDI_Status WDI_HT40OBSSScanInd(WDI_HT40ObssScanParamsType *pWdiReq);
12219
12220/**
12221 @brief wdi_HT40OBSSStopScanInd
12222 This API is called to stop OBSS scan
12223
12224 @param bssIdx : bssIdx to stop
12225 @see
12226 @return SUCCESS or FAIL
12227*/
12228
12229WDI_Status WDI_HT40OBSSStopScanInd(wpt_uint8 bssIdx);
12230
c_hpothu92367912014-05-01 15:18:17 +053012231
12232WDI_Status WDI_GetBcnMissRate( void *pUserData,
12233 WDI_GetBcnMissRateCb wdiGetBcnMissRateCb,
12234 wpt_uint8 *bssid
12235 );
Siddharth Bhal171788a2014-09-29 21:02:40 +053012236WDI_Status
12237WDI_SetSpoofMacAddrReq
12238(
12239WDI_SpoofMacAddrInfoType *pWdiReq,
12240 WDI_SetSpoofMacAddrRspCb setSpoofMacAddrRspCb,
12241 void* pUserData
12242);
c_hpothu92367912014-05-01 15:18:17 +053012243
Srinivas Dasari4dae48f2014-11-26 21:14:16 +053012244WDI_Status
12245WDI_EncryptMsgReq(void* pwdiEncryptMsgParams,
12246 WDI_EncryptMsgRspCb wdiEncryptMsgCbRsp,
12247 void* pUserData
12248 );
Srinivas Dasari32a79262015-02-19 13:04:49 +053012249
c_manjeecfd1efb2015-09-25 19:32:34 +053012250WDI_Status
12251WDI_FwrMemDumpReq
12252
12253(
12254 WDI_FwrMemDumpReqType *pwdiFwrMemDumpReqInfo,
12255 WDI_FwrMemDumpCb wdiFwrMemDumpRspCb,
12256 void* pUserData
12257);
12258
12259
Srinivas Dasari32a79262015-02-19 13:04:49 +053012260/**
12261 @brief WDI_NanRequest
12262 NAN request
12263
12264 @param pwdiNanRequest: data
12265
12266 pwdiNanCb: callback
12267
12268 usrData: user data will be passed back with the
12269 callback
12270
12271 @return Result of the function call
12272*/
12273WDI_Status
12274WDI_NanRequest
12275(
12276 WDI_NanRequestType *pwdiNanRequest,
12277 void *usrData
12278);
12279
Abhishek Singh41988ba2015-05-25 19:42:29 +053012280/**
12281 @brief WDI_SetRtsCtsHTVhtInd
12282 Set RTS/CTS indication for diff modes.
12283
12284 @param rtsCtsVal: Bit mask value to enable RTS/CTS for different modes
12285
12286 @return Result of the function call
12287*/
12288
12289WDI_Status
12290WDI_SetRtsCtsHTVhtInd
12291(
12292 wpt_uint32 rtsCtsVal
12293);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012294
Sourav Mohapatra2416e0e2018-03-05 18:44:21 +053012295/**
12296 * WDI_set_vowifi_mode_ind() - Set VOWIFI mode request
12297 *
12298 * @enable - boolean value that determines the state
12299 *
12300 * Return: success if the value is sent
12301 */
12302WDI_Status WDI_set_vowifi_mode_ind(wpt_boolean enable);
12303
Mihir Shete5affadc2015-05-29 20:54:57 +053012304WDI_Status
12305WDI_FWLoggingDXEdoneInd
12306(
Hanumantha Reddy Pothulae00a7e22015-09-15 20:11:30 +053012307 wpt_uint32 logType
Mihir Shete5affadc2015-05-29 20:54:57 +053012308);
Srinivas Dasari32a79262015-02-19 13:04:49 +053012309
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +053012310/**
12311 @brief WDI_EnableDisableCAEventInd
12312 Enable/Disable Chan Avoidance indication
12313
12314 @param val: Enable/Disable Chan Avoidance indication
12315
12316 @return Result of the function call
12317*/
12318
12319WDI_Status
12320WDI_EnableDisableCAEventInd
12321(
12322wpt_uint32 val
12323);
12324
Padma, Santhosh Kumar2ccac212015-10-20 17:27:27 +053012325#ifdef FEATURE_OEM_DATA_SUPPORT
12326
12327/**
12328 @brief WDI_HighPriorityDataInfoInd
12329
12330 @param pHighPriorityDataInfoIndParams: Req parameter for the FW
12331
12332 @return SUCCESS or FAIL
12333*/
12334WDI_Status
12335WDI_StartOemDataReqIndNew
12336(
12337 WDI_OemDataReqNewConfig *pOemDataReqNewConfig
12338);
12339#endif
12340
Jeff Johnson295189b2012-06-20 16:38:30 -070012341#ifdef __cplusplus
12342 }
12343#endif
12344
Arun Khandavalli7eeb1592015-10-19 21:36:57 +053012345/**
12346 @brief WDI_WifiConfigSetReq
12347 This API is called to send WifiConfig request to FW
12348
12349 @param pwdiWifConfigSetReqParams : pointer to wificonfig params
12350 wdiLLStatsSetRspCb : set wificonfig response callback
12351 usrData : Client context
12352 @see
12353 @return SUCCESS or FAIL
12354*/
12355WDI_Status
12356WDI_WifiConfigSetReq
12357 (WDI_WifiConfigSetReqType* pwdiWifConfigSetReqParams,
12358 WDI_WifiConfigSetRspCb wdiWifiConfigSetRspCb,
12359 void* pUserData);
12360
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +053012361/**
12362 @brief WDI_GetCurrentAntennaIndex
12363 This API is called to send getCurretAntennaIndex request to FW
12364
12365 @param pUserData: pointer to request params
12366 wdiLLStatsSetRspCb : set wificonfig response callback
12367 reserved: request parameter
12368 @see
12369 @return SUCCESS or FAIL
12370*/
12371WDI_Status
12372WDI_GetCurrentAntennaIndex
12373(
12374 void *pUserData,
12375 WDI_AntennaDivSelRspCb wdiAntennaDivSelRspCb,
12376 wpt_uint32 reserved
12377);
12378
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +053012379/**
12380 @brief WDI_SetBcnMissPenaltyCount
12381 This API is called to send modified roam parameters to FW
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +053012382
Mahesh A Saptasagar7d432952016-02-09 14:01:03 +053012383 @param params: pointer to request params
12384 @see
12385 @return SUCCESS or FAIL
12386*/
12387WDI_Status
12388WDI_SetBcnMissPenaltyCount
12389(
12390 WDI_ModifyRoamParamsReqType *params
12391);
Agrawal Ashish0552be02016-03-02 18:03:43 +053012392
Selvaraj, Sridharc045b8b2016-04-06 12:22:35 +053012393/**
12394 * WDI_SetAllowedActionFramesInd - This API is called to send Allowed
12395 * Action frame details to FW
12396 * @allowed_action_frames: Pointer to WDI_AllowedActionFramesInd structure
12397 * which holds bitmask of allowed action frames
12398 *
12399 */
12400WDI_Status
12401WDI_SetAllowedActionFramesInd(
12402 struct WDI_AllowedActionFramesInd *allowed_action_frames
12403);
12404
Agrawal Ashish0552be02016-03-02 18:03:43 +053012405void WDI_SetMgmtPktViaWQ5(wpt_boolean sendMgmtPktViaWQ5);
Anurag Chouhan6ee81542017-02-09 18:09:27 +053012406
12407/* ARP DEBUG STATS */
12408typedef struct
12409{
12410 wpt_uint8 flag;
12411 wpt_uint8 pkt_type;
12412 wpt_uint32 ip_addr;
12413} WDI_SetARPStatsParamsInfoType;
12414
12415typedef struct
12416{
12417 wpt_uint32 status;
12418} WDI_SetARPStatsRspParamsType;
12419
12420typedef void (*WDI_SetARPStatsRspCb)(WDI_SetARPStatsRspParamsType* StatsRsp,
12421 void* pUserData);
12422
12423WDI_Status
12424WDI_SetARPStatsReq
12425(
12426 WDI_SetARPStatsParamsInfoType *pwdiSetStatsReqParams,
12427 WDI_SetARPStatsRspCb wdiSetARPStatsRspCb,
12428 void* pUserData
12429);
12430
12431/* ARP DEBUG STATS */
12432typedef struct
12433{
12434 wpt_uint8 pkt_type;
12435} WDI_GetARPStatsParamsInfoType;
12436
12437typedef struct
12438{
12439 wpt_uint32 status;
12440 wpt_uint16 dad;
12441 wpt_uint16 tx_fw_cnt;
12442 wpt_uint16 rx_fw_cnt;
12443 wpt_uint16 tx_ack_cnt;
12444} WDI_GetARPStatsRspParamsType;
12445
12446typedef void (*WDI_GetARPStatsRspCb)(WDI_GetARPStatsRspParamsType* StatsRsp,
12447 void* pUserData);
12448
12449WDI_Status
12450WDI_GetARPStatsReq
12451(
12452 WDI_GetARPStatsParamsInfoType *pwdiGetStatsReqParams,
12453 WDI_GetARPStatsRspCb wdiGetARPStatsRspCb,
12454 void* pUserData
12455);
12456
Agrawal Ashish17ef5082016-10-17 18:33:21 +053012457WDI_Status
12458WDI_process_sap_auth_offload(
12459 struct WDI_sap_ofl_enable_params *sap_ofl_enable_cmd
12460);
Kapil Gupta3d923fb2016-12-20 18:59:27 +053012461#ifdef WLAN_FEATURE_APFIND
12462WDI_Status WDI_process_ap_find_cmd(struct WDI_APFind_cmd *params);
12463#endif
Anurag Chouhan83026002016-12-13 22:46:21 +053012464#ifdef DHCP_SERVER_OFFLOAD
12465WDI_Status
12466wdi_process_dhcpserver_offload_req
12467(
12468 wdi_set_dhcp_server_offload_t *dhcp_info,
12469 wdi_dhcp_srv_offload_rsp_cb wdi_dhcp_srv_offload_rsp_callback,
12470 void *user_data
12471);
12472#endif /* DHCP_SERVER_OFFLOAD */
12473
Anurag Chouhan0b29de02016-12-16 13:18:40 +053012474#ifdef MDNS_OFFLOAD
12475WDI_Status
12476wdi_set_mdns_offload_req
12477(
12478 wdi_mdns_enable_offload_cmd_req *mdns_info,
12479 wdi_mdns_enable_rsp_cb wdi_mdns_enable_rsp_callback,
12480 void *user_data
12481);
12482
12483WDI_Status
12484wdi_set_mdns_fqdn_req
12485(
12486 wdi_mdns_set_fqdn_cmd_req *mdns_info,
12487 wdi_mdns_fqdn_rsp_cb wdi_mdns_fqdn_rsp_callback,
12488 void *user_data
12489);
12490
12491WDI_Status
12492wdi_set_mdns_response_req
12493(
12494 wdi_mdns_set_resp_req *mdns_info,
12495 wdi_mdns_resp_rsp_cb wdi_mdns_resp_rsp_callback,
12496 void *user_data
12497);
12498
12499WDI_Status
12500wdi_get_mdns_stats_req
12501(
12502 wdi_mdns_get_stats_req *mdns_info,
12503 wdi_get_stats_rsp_cb wdi_get_stats_rsp_callback,
12504 void *user_data
12505);
12506#endif /* MDNS_OFFLOAD */
12507
Manjeet Singh3ed79242017-01-11 19:04:32 +053012508WDI_Status
12509wdi_process_cap_tsf_req (wdi_cap_tsf_params_t *wdi_cap_tsf_req,
12510 wdi_tsf_rsp_cb wdi_tsf_rsp_callback,
12511 void *user_data);
12512
12513WDI_Status
12514wdi_process_get_tsf_req (wdi_cap_tsf_params_t *wdi_get_tsf_req,
12515 wdi_tsf_rsp_cb wdi_tsf_rsp_callback,
12516 void *user_data);
12517
12518
Jeff Johnson295189b2012-06-20 16:38:30 -070012519#endif /* #ifndef WLAN_QCT_WDI_H */