blob: d4e503e2b561fd07b19fe27f0fea82e511091d22 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Abhishek Singh00b71972016-01-07 10:51:04 +05302 * Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved.
Kiet Lam842dad02014-02-18 18:44:02 -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 */
Kiet Lamaa8e15a2014-02-11 23:30:06 -080021
Jeff Johnson295189b2012-06-20 16:38:30 -070022/*
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 Lam842dad02014-02-18 18:44:02 -080026 */
27
28
Kiet Lama7f454d2014-07-24 12:04:06 -070029
30
Kiet Lam842dad02014-02-18 18:44:02 -080031/*
Jeff Johnson295189b2012-06-20 16:38:30 -070032 * aniGlobal.h: MAC Modules Adapter Definitions.
33 * Author: V. K. Kandarpa
34 * Date: 10/25/2002
35 *
36 * History:-
37 * Date: 04/08/2008 Modified by: Santosh Mandiganal
38 * Modification Information: Added the logDump.h header file and defined the
39 * dumpTablecurrentId, dumpTableEntry.
40 * --------------------------------------------------------------------------
41 *
42 */
43
44#ifndef _ANIGLOBAL_H
45#define _ANIGLOBAL_H
46
47// Take care to avoid redefinition of this type, if it is
48// already defined in "halWmmApi.h"
49#if !defined(_HALMAC_WMM_API_H)
50typedef struct sAniSirGlobal *tpAniSirGlobal;
51#endif
52
53#include "halTypes.h"
54#include "sirCommon.h"
55#include "aniSystemDefs.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070056#include "sysDef.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070057#include "dphGlobal.h"
58#include "limGlobal.h"
59#include "pmmGlobal.h"
60#include "schGlobal.h"
61#include "sysGlobal.h"
62#include "cfgGlobal.h"
63#include "utilsGlobal.h"
64#include "sirApi.h"
65
Jeff Johnson295189b2012-06-20 16:38:30 -070066
Jeff Johnson295189b2012-06-20 16:38:30 -070067#include "wlan_qct_hal.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070068
Jeff Johnson295189b2012-06-20 16:38:30 -070069#include "pmc.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070070
71#include "csrApi.h"
72#ifdef WLAN_FEATURE_VOWIFI_11R
73#include "sme_FTApi.h"
74#endif
75#include "csrSupport.h"
76#include "smeInternal.h"
77#include "ccmApi.h"
78#include "btcApi.h"
79#include "csrInternal.h"
80
Jeff Johnsone7245742012-09-05 17:12:55 -070081#ifdef FEATURE_OEM_DATA_SUPPORT
82#include "oemDataInternal.h"
83#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070084
85#if defined WLAN_FEATURE_VOWIFI
86#include "smeRrmInternal.h"
87#include "rrmGlobal.h"
88#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080089#if defined(FEATURE_WLAN_ESE) && !defined(FEATURE_WLAN_ESE_UPLOAD)
90#include "eseApi.h"
91#include "eseGlobal.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070092#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070093#include "p2p_Api.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070094
Abhishek Singh00b71972016-01-07 10:51:04 +053095#include "limRMC.h"
96
Jeff Johnson295189b2012-06-20 16:38:30 -070097#if defined WLAN_FEATURE_VOWIFI_11R
98#include <limFTDefs.h>
99#endif
100
101
102#ifdef ANI_DVT_DEBUG
103#include "dvtModule.h"
104#endif
105
106// New HAL API interface defs.
107#include "logDump.h"
108
Jeff Johnson295189b2012-06-20 16:38:30 -0700109//Check if this definition can actually move here from halInternal.h even for Volans. In that case
110//this featurization can be removed.
111#define PMAC_STRUCT( _hHal ) ( (tpAniSirGlobal)_hHal )
Jeff Johnson295189b2012-06-20 16:38:30 -0700112
113#define ANI_DRIVER_TYPE(pMac) (((tpAniSirGlobal)(pMac))->gDriverType)
114// -------------------------------------------------------------------
115// Bss Qos Caps bit map definition
116#define LIM_BSS_CAPS_OFFSET_HCF 0
117#define LIM_BSS_CAPS_OFFSET_WME 1
118#define LIM_BSS_CAPS_OFFSET_WSM 2
119
120#define LIM_BSS_CAPS_HCF (1 << LIM_BSS_CAPS_OFFSET_HCF)
121#define LIM_BSS_CAPS_WME (1 << LIM_BSS_CAPS_OFFSET_WME)
122#define LIM_BSS_CAPS_WSM (1 << LIM_BSS_CAPS_OFFSET_WSM)
123
124// cap should be one of HCF/WME/WSM
125#define LIM_BSS_CAPS_GET(cap, val) (((val) & (LIM_BSS_CAPS_ ## cap)) >> LIM_BSS_CAPS_OFFSET_ ## cap)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800126#define LIM_BSS_CAPS_SET(cap, val) ((val) |= (LIM_BSS_CAPS_ ## cap ))
127#define LIM_BSS_CAPS_CLR(cap, val) ((val) &= (~ (LIM_BSS_CAPS_ ## cap)))
Jeff Johnson295189b2012-06-20 16:38:30 -0700128
129// 40 beacons per heart beat interval is the default + 1 to count the rest
130#define MAX_NO_BEACONS_PER_HEART_BEAT_INTERVAL 41
131
132/* max number of legacy bssid we can store during scan on one channel */
133#define MAX_NUM_LEGACY_BSSID_PER_CHANNEL 10
134
Jeff Johnson295189b2012-06-20 16:38:30 -0700135#define P2P_WILDCARD_SSID "DIRECT-" //TODO Put it in proper place;
136#define P2P_WILDCARD_SSID_LEN 7
137
138#ifdef WLAN_FEATURE_CONCURRENT_P2P
139#define MAX_NO_OF_P2P_SESSIONS 5
140#endif //WLAN_FEATURE_CONCURRENT_P2P
Jeff Johnson295189b2012-06-20 16:38:30 -0700141
Srinivas Girigowdade697412013-02-14 16:31:48 -0800142#define SPACE_ASCII_VALUE 32
143
Rajeev79dbe4c2013-10-05 11:03:42 +0530144#ifdef FEATURE_WLAN_BATCH_SCAN
145#define EQUALS_TO_ASCII_VALUE (61)
146#endif
147
Jeff Johnson295189b2012-06-20 16:38:30 -0700148// -------------------------------------------------------------------
149// Change channel generic scheme
150typedef void (*CHANGE_CHANNEL_CALLBACK)(tpAniSirGlobal pMac, eHalStatus status, tANI_U32 *data,
151 tpPESession psessionEntry);
152
153/// LIM global definitions
154typedef struct sAniSirLimIbss
155{
156 void *pHdr;
157 void *pBeacon;
158} tAniSirLimIbss;
159
160typedef struct sDialogueToken
161{
162 //bytes 0-3
163 tANI_U16 assocId;
164 tANI_U8 token;
165 tANI_U8 rsvd1;
166 //Bytes 4-7
167 tANI_U16 tid;
168 tANI_U8 rsvd2[2];
169
170 struct sDialogueToken* next;
171}tDialogueToken, *tpDialogueToken;
172
173typedef struct sLimTimers
174{
175 //TIMERS IN LIM ARE NOT SUPPOSED TO BE ZEROED OUT DURING RESET.
176 //DURING limInitialize DONOT ZERO THEM OUT.
177
178//STA SPECIFIC TIMERS
Jeff Johnson295189b2012-06-20 16:38:30 -0700179 // Periodic background scan timer
180 TX_TIMER gLimBackgroundScanTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700181
182 TX_TIMER gLimPreAuthClnupTimer;
183 //TX_TIMER gLimAuthResponseTimer[HAL_NUM_STA];
184
185 // Association related timers
186 TX_TIMER gLimAssocFailureTimer;
187 TX_TIMER gLimReassocFailureTimer;
188
189
190 /// Heartbeat timer on STA
191 TX_TIMER gLimHeartBeatTimer;
192
193 /// Wait for Probe after Heartbeat failure timer on STA
194 TX_TIMER gLimProbeAfterHBTimer;
195
196
197 // Authentication related timers
198 TX_TIMER gLimAuthFailureTimer;
199
200 // Join Failure timeout on STA
201 TX_TIMER gLimJoinFailureTimer;
202
203 // Keepalive timer
204 TX_TIMER gLimKeepaliveTimer;
205
206 // Scan related timers
207 TX_TIMER gLimMinChannelTimer;
208 TX_TIMER gLimMaxChannelTimer;
209 TX_TIMER gLimPeriodicProbeReqTimer;
210
211 // CNF_WAIT timer
212 TX_TIMER *gpLimCnfWaitTimer;
213
Jeff Johnson295189b2012-06-20 16:38:30 -0700214 TX_TIMER gLimAddtsRspTimer; // max wait for a response
215
216 // Update OLBC Cache Timer
217 TX_TIMER gLimUpdateOlbcCacheTimer;
218
219 TX_TIMER gLimChannelSwitchTimer;
220 // This TIMER is started on the STA, as indicated by the
221 // AP in its Quiet BSS IE, for the specified interval
222 TX_TIMER gLimQuietTimer;
223 // This TIMER is started on the AP, prior to the AP going
224 // into LEARN mode
225 // This TIMER is started on the STA, for the specified
226 // quiet duration
227 TX_TIMER gLimQuietBssTimer;
228
229#ifdef WLAN_FEATURE_VOWIFI_11R
230 TX_TIMER gLimFTPreAuthRspTimer;
231#endif
232
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800233#ifdef FEATURE_WLAN_ESE
234 TX_TIMER gLimEseTsmTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700235#endif
Madan Mohan Koyyalamudi9aff9ff2012-11-29 11:27:25 -0800236 TX_TIMER gLimPeriodicJoinProbeReqTimer;
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800237 TX_TIMER gLimDisassocAckTimer;
238 TX_TIMER gLimDeauthAckTimer;
Sushant Kaushik9e923872015-04-02 17:09:31 +0530239 TX_TIMER gLimPeriodicAuthRetryTimer;
Viral Modid86bde22012-12-10 13:09:21 -0800240 // This timer is started when single shot NOA insert msg is sent to FW for scan in P2P GO mode
241 TX_TIMER gLimP2pSingleShotNoaInsertTimer;
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530242 /* This timer is used to convert active channel to
243 * passive channel when there is no beacon
244 * for a period of time on a particular DFS channel
245 */
246 TX_TIMER gLimActiveToPassiveChannelTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700247//********************TIMER SECTION ENDS**************************************************
248// ALL THE FIELDS BELOW THIS CAN BE ZEROED OUT in limInitialize
249//****************************************************************************************
250
251}tLimTimers;
252
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800253typedef struct {
254 void *pMlmDisassocReq;
255 void *pMlmDeauthReq;
256}tLimDisassocDeauthCnfReq;
Jeff Johnson295189b2012-06-20 16:38:30 -0700257
258typedef struct sAniSirLim
259{
260 ////////////////////////////////////// TIMER RELATED START ///////////////////////////////////////////
261
262 tLimTimers limTimers;
263 /// Flag to track if LIM timers are created or not
264 tANI_U32 gLimTimersCreated;
265
266
267 ////////////////////////////////////// TIMER RELATED END ///////////////////////////////////////////
268
269 ////////////////////////////////////// SCAN/LEARN RELATED START ///////////////////////////////////////////
270 /**
271 * This flag when set, will use scan mode instead of
272 * Learn mode on BP/AP. By default this flag is set
273 * to true until HIF getting stuck in 0x800 state is
274 * debugged.
275 */
276 tANI_U32 gLimUseScanModeForLearnMode;
277
278 /**
279 * This is useful for modules other than LIM
280 * to see if system is in scan/learn mode or not
281 */
282 tANI_U32 gLimSystemInScanLearnMode;
283
284 // Scan related globals on STA
285 tANI_U8 gLimReturnAfterFirstMatch;
286 tANI_U8 gLim24Band11dScanDone;
287 tANI_U8 gLim50Band11dScanDone;
288 tANI_U8 gLimReturnUniqueResults;
289
290 // Background Scan related globals on STA
291 tANI_U32 gLimNumOfBackgroundScanSuccess;
292 tANI_U32 gLimNumOfConsecutiveBkgndScanFailure;
293 tANI_U32 gLimNumOfForcedBkgndScan;
294 tANI_U8 gLimBackgroundScanDisable; //based on BG timer
295 tANI_U8 gLimForceBackgroundScanDisable; //debug control flag
296 tANI_U8 gLimBackgroundScanTerminate; //controlled by SME
297 tANI_U8 gLimReportBackgroundScanResults;//controlled by SME
298
299 /// Place holder for current channel ID
300 /// being scanned
301 tANI_U32 gLimCurrentScanChannelId;
302
303 // Hold onto SCAN criteria
Viral Modid440e682013-03-06 02:25:31 -0800304 /* The below is used in P2P GO case when we need to defer processing SME Req
305 * to LIM and insert NOA first and process SME req once SNOA is started
306 */
307 tANI_U16 gDeferMsgTypeForNOA;
308 tANI_U32 *gpDefdSmeMsgForNOA;
309
Jeff Johnson295189b2012-06-20 16:38:30 -0700310 tLimMlmScanReq *gpLimMlmScanReq;
311
312 /// This indicates total length of 'matched' scan results
313 tANI_U16 gLimMlmScanResultLength;
314
315 /// This indicates total length of 'cached' scan results
316 tANI_U16 gLimSmeScanResultLength;
317
318 /**
319 * Hash table definition for storing SCAN results
320 * This is the placed holder for 'cached' scan results
321 */
322 tLimScanResultNode
323 *gLimCachedScanHashTable[LIM_MAX_NUM_OF_SCAN_RESULTS];
324
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700325 /// This indicates total length of 'matched' scan results
326 tANI_U16 gLimMlmLfrScanResultLength;
327
328 /// This indicates total length of 'cached' scan results
329 tANI_U16 gLimSmeLfrScanResultLength;
330
331 /**
332 * Hash table definition for storing LFR SCAN results
333 * This is the placed holder for roaming candidates as forwarded
334 * by FW
335 */
336 tLimScanResultNode
337 *gLimCachedLfrScanHashTable[LIM_MAX_NUM_OF_SCAN_RESULTS];
338
Jeff Johnson295189b2012-06-20 16:38:30 -0700339 /// Place holder for current channel ID
340 /// being scanned during background scanning
341 tANI_U32 gLimBackgroundScanChannelId;
342 /// flag to indicate that bacground scan timer has been started
343 tANI_U8 gLimBackgroundScanStarted;
344
345 /* Used to store the list of legacy bss sta detected during scan on one channel */
346 tANI_U16 gLimRestoreCBNumScanInterval;
347 tANI_U16 gLimRestoreCBCount;
348 tSirMacAddr gLimLegacyBssidList[MAX_NUM_LEGACY_BSSID_PER_CHANNEL];
Jeff Johnson295189b2012-06-20 16:38:30 -0700349
350 //
351 // If this flag is 1,
352 // then, LIM will "try and trigger" a background
353 // scan whenever it receives a Quiet BSS IE
354 //
355 // If this flag is 0,
356 // then, LIM will simply shut-off Tx/Rx whenever it
357 // receives a Quiet BSS IE.
358 // This is the default behavior when a Quiet BSS IE
359 // is received and 11H is enabled
360 //
361 tANI_U32 gLimTriggerBackgroundScanDuringQuietBss;
362
Jeff Johnson295189b2012-06-20 16:38:30 -0700363
Jeff Johnson295189b2012-06-20 16:38:30 -0700364 // This variable store the total duration to do scan
365 tANI_U32 gTotalScanDuration;
Jeff Johnsone7245742012-09-05 17:12:55 -0700366 tANI_U32 p2pRemOnChanTimeStamp;
Jeff Johnson295189b2012-06-20 16:38:30 -0700367
368 // abort scan is used to abort an on-going scan
369 tANI_U8 abortScan;
370 tLimScanChnInfo scanChnInfo;
371
372 ////////////////////////////////////// SCAN/LEARN RELATED START ///////////////////////////////////////////
373 tSirMacAddr gSelfMacAddr; //added for BT-AMP Support
Siddharth Bhal4f3187c2014-10-09 21:38:08 +0530374 tSirMacAddr spoofMacAddr; //added for Mac Addr Spoofing support
375 tANI_U8 isSpoofingEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -0700376
377 ////////////////////////////////////////// BSS RELATED END ///////////////////////////////////////////
378 // Place holder for StartBssReq message
379 // received by SME state machine
380
Jeff Johnson62c27982013-02-27 17:53:55 -0800381 tANI_U8 gLimCurrentBssUapsd;
Jeff Johnson295189b2012-06-20 16:38:30 -0700382
Jeff Johnson62c27982013-02-27 17:53:55 -0800383 /* This is used for testing sta legacy bss detect feature */
384 tANI_U8 gLimForceNoPropIE;
Jeff Johnson295189b2012-06-20 16:38:30 -0700385
386 //
387 // Store the BSS Index returned by HAL during
388 // WDA_ADD_BSS_RSP here.
389 //
390 // For now:
391 // This will be used during WDA_SET_BSSKEY_REQ in
392 // order to set the GTK
393 // Later:
394 // There could be other interfaces needing this info
395 //
396
397 //
398 // Due to the asynchronous nature of the interface
399 // between PE <-> HAL, some transient information
400 // like this needs to be cached.
401 // This is cached upon receipt of eWNI_SME_SETCONTEXT_REQ.
402 // This is released while posting LIM_MLM_SETKEYS_CNF
403 //
404 void* gpLimMlmSetKeysReq;
405 void* gpLimMlmRemoveKeyReq;
406
407 //On STA: staid for self generated by HAL and sent as response to 'ADD STA' msg.
408 //On AP: staid corresponding to BSS generated by HAL and sent as response to 'ADD BSS' msg.
409 // tANI_U16 gLimStaid; // TO SUPPORT BT-AMP
410
411 ////////////////////////////////////////// BSS RELATED END ///////////////////////////////////////////
412
413 ////////////////////////////////////////// IBSS RELATED START ///////////////////////////////////////////
414 // This indicates whether we've a partner
415 // that is also transmitting Beacon frame
416 // in IBSS
417 //tANI_U8 gLimIbssActive; oct1 review
418
419 //This indicates whether this STA coalesced and adapter to peer's capabilities or not.
420 tANI_U8 gLimIbssCoalescingHappened;
421
422 /// Definition for storing IBSS peers BSS description
423 tLimIbssPeerNode *gLimIbssPeerList;
424 tANI_U32 gLimNumIbssPeers;
Sushant Kaushike06bd872015-03-12 16:17:48 +0530425 tANI_U32 gLimIbssRetryCnt;
Jeff Johnson295189b2012-06-20 16:38:30 -0700426
427 // ibss info - params for which ibss to join while coalescing
428 tAniSirLimIbss ibssInfo;
429
430 ////////////////////////////////////////// IBSS RELATED END ///////////////////////////////////////////
431
432 ////////////////////////////////////////// STATS/COUNTER RELATED START ///////////////////////////////////////////
433
434 tANI_U16 maxStation;
435 tANI_U16 maxBssId;
436
437 tANI_U32 gLimNumBeaconsRcvd;
438 tANI_U32 gLimNumBeaconsIgnored;
439
440 tANI_U32 gLimNumDeferredMsgs;
441
442 /// Variable to keep track of number of currently associated STAs
Jeff Johnson295189b2012-06-20 16:38:30 -0700443 tANI_U16 gLimNumOfAniSTAs; // count of ANI peers
444 tANI_U16 gLimAssocStaLimit;
445
446 /// This indicates number of RXed Beacons during HB period
447 // tANI_U8 gLimRxedBeaconCntDuringHB;
448
449 // Heart-Beat interval value
450 tANI_U32 gLimHeartBeatCount;
Abhishek Singhde51a412014-05-20 19:17:26 +0530451 tSirMacAddr gLimHeartBeatApMac[2];
452 tANI_U8 gLimHeartBeatApMacIndex;
Jeff Johnson295189b2012-06-20 16:38:30 -0700453
454 // Statistics to keep track of no. beacons rcvd in heart beat interval
455 tANI_U16 gLimHeartBeatBeaconStats[MAX_NO_BEACONS_PER_HEART_BEAT_INTERVAL];
456
457#ifdef WLAN_DEBUG
458 // Debug counters
459 tANI_U32 numTot, numBbt, numProtErr, numLearn, numLearnIgnore;
460 tANI_U32 numSme, numMAC[4][16];
461
462 // Debug counter to track number of Assoc Req frame drops
463 // when received in pStaDs->mlmState other than LINK_ESTABLISED
464 tANI_U32 gLimNumAssocReqDropInvldState;
465 // counters to track rejection of Assoc Req due to Admission Control
466 tANI_U32 gLimNumAssocReqDropACRejectTS;
467 tANI_U32 gLimNumAssocReqDropACRejectSta;
468 // Debug counter to track number of Reassoc Req frame drops
469 // when received in pStaDs->mlmState other than LINK_ESTABLISED
470 tANI_U32 gLimNumReassocReqDropInvldState;
471 // Debug counter to track number of Hash Miss event that
472 // will not cause a sending of de-auth/de-associate frame
473 tANI_U32 gLimNumHashMissIgnored;
474
475 // Debug counter to track number of Beacon frames
476 // received in unexpected state
477 tANI_U32 gLimUnexpBcnCnt;
478
479 // Debug counter to track number of Beacon frames
480 // received in wt-join-state that do have SSID mismatch
481 tANI_U32 gLimBcnSSIDMismatchCnt;
482
483 // Debug counter to track number of Link establishments on STA/BP
484 tANI_U32 gLimNumLinkEsts;
485
486 // Debug counter to track number of Rx cleanup
487 tANI_U32 gLimNumRxCleanup;
488
489 // Debug counter to track different parse problem
490 tANI_U32 gLim11bStaAssocRejectCount;
491
492#endif
493
494 //Time stamp of the last beacon received from the BSS to which STA is connected.
495 tANI_U64 gLastBeaconTimeStamp;
496 //RX Beacon count for the current BSS to which STA is connected.
497 tANI_U32 gCurrentBssBeaconCnt;
498 tANI_U8 gLastBeaconDtimCount;
499 tANI_U8 gLastBeaconDtimPeriod;
500
501
502 ////////////////////////////////////////// STATS/COUNTER RELATED END ///////////////////////////////////////////
503
504
505 ////////////////////////////////////////// STATES RELATED START ///////////////////////////////////////////
506 // Counts Heartbeat failures
507 tANI_U8 gLimHBfailureCntInLinkEstState;
508 tANI_U8 gLimProbeFailureAfterHBfailedCnt;
509 tANI_U8 gLimHBfailureCntInOtherStates;
510
511 /**
512 * This variable indicates whether LIM module need to
513 * send response to host. Used to identify whether a request
514 * is generated internally within LIM module or by host
515 */
516 tANI_U8 gLimRspReqd;
517
518 /// Previous SME State
519 tLimSmeStates gLimPrevSmeState;
520
521 /// MLM State visible across all Sirius modules
522 tLimMlmStates gLimMlmState;
523
524 /// Previous MLM State
525 tLimMlmStates gLimPrevMlmState;
526
527#ifdef GEN4_SCAN
528 // LIM to HAL SCAN Management Message Interface states
529 tLimLimHalScanState gLimHalScanState;
530//WLAN_SUSPEND_LINK Related
531 SUSPEND_RESUME_LINK_CALLBACK gpLimSuspendCallback;
532 tANI_U32 *gpLimSuspendData;
533 SUSPEND_RESUME_LINK_CALLBACK gpLimResumeCallback;
534 tANI_U32 *gpLimResumeData;
535//end WLAN_SUSPEND_LINK Related
536 tANI_U8 fScanDisabled;
537 //Can be set to invalid channel. If it is invalid, HAL
538 //should move to previous valid channel or stay in the
Jeff Johnsone7245742012-09-05 17:12:55 -0700539 //current channel. CB state goes along with channel to resume to
540 tANI_U16 gResumeChannel;
541 ePhyChanBondState gResumePhyCbState;
Jeff Johnson295189b2012-06-20 16:38:30 -0700542#endif // GEN4_SCAN
543
544 // Change channel generic scheme
545 CHANGE_CHANNEL_CALLBACK gpchangeChannelCallback;
546 tANI_U32 *gpchangeChannelData;
547
548 /// SME State visible across all Sirius modules
549 tLimSmeStates gLimSmeState;
550 /// This indicates whether we're an AP, STA in BSS/IBSS
551 tLimSystemRole gLimSystemRole;
552
553 // Number of STAs that do not support short preamble
554 tLimNoShortParams gLimNoShortParams;
555
556 // Number of STAs that do not support short slot time
557 tLimNoShortSlotParams gLimNoShortSlotParams;
558
559
560 // OLBC parameters
561 tLimProtStaParams gLimOverlap11gParams;
562
563 tLimProtStaParams gLimOverlap11aParams;
564 tLimProtStaParams gLimOverlapHt20Params;
565 tLimProtStaParams gLimOverlapNonGfParams;
566
567 //
568 // ---------------- DPH -----------------------
569 // these used to live in DPH but are now moved here (where they belong)
570 tANI_U32 gLimPhyMode;
571 tANI_U32 propRateAdjustPeriod;
572 tANI_U32 scanStartTime; // used to measure scan time
573
Jeff Johnsone7245742012-09-05 17:12:55 -0700574 //tANI_U8 gLimBssid[6];
Jeff Johnson295189b2012-06-20 16:38:30 -0700575 tANI_U8 gLimMyMacAddr[6];
576 tANI_U8 ackPolicy;
577
578 tANI_U8 gLimQosEnabled:1; //11E
579 tANI_U8 gLimWmeEnabled:1; //WME
580 tANI_U8 gLimWsmEnabled:1; //WSM
581 tANI_U8 gLimHcfEnabled:1;
582 tANI_U8 gLim11dEnabled:1;
583 tANI_U8 gLimProbeRespDisableFlag:1; // control over probe response
584 // ---------------- DPH -----------------------
585
586 ////////////////////////////////////////// STATES RELATED END ///////////////////////////////////////////
587
588 ////////////////////////////////////////// MISC RELATED START ///////////////////////////////////////////
Jeff Johnson295189b2012-06-20 16:38:30 -0700589
590 // WDS info
591 tANI_U32 gLimNumWdsInfoInd;
592 tANI_U32 gLimNumWdsInfoSet;
593 tSirWdsInfo gLimWdsInfo;
594
595 // Deferred Queue Paramters
596 tLimDeferredMsgQParams gLimDeferredMsgQ;
597
598 // addts request if any - only one can be outstanding at any time
599 tSirAddtsReq gLimAddtsReq;
600 tANI_U8 gLimAddtsSent;
601 tANI_U8 gLimAddtsRspTimerCount;
602
603 //protection related config cache
604 tCfgProtection cfgProtection;
605
606 tANI_U8 gLimProtectionControl;
607 //RF band to determibe 2.4/5 GHZ
608
609 // alternate radio info used by STA
610 tSirAlternateRadioInfo gLimAlternateRadio;
611
612 //This flag will remain to be set except while LIM is waiting for specific response messages
613 //from HAL. e.g when LIM issues ADD_STA req it will clear this flag and when it will receive
614 //the response the flag will be set.
615 tANI_U8 gLimProcessDefdMsgs;
616
617 // UAPSD flag used on AP
618 tANI_U8 gUapsdEnable;
619
620 /* Used on STA, this is a static UAPSD mask setting
621 * derived from SME_JOIN_REQ and SME_REASSOC_REQ. If a
622 * particular AC bit is set, it means the AC is both
623 * trigger enabled and delivery enabled.
624 */
625 tANI_U8 gUapsdPerAcBitmask;
626
627 /* Used on STA, this is a dynamic UPASD mask setting
628 * derived from AddTS Rsp and DelTS frame. If a
629 * particular AC bit is set, it means AC is trigger
630 * enabled.
631 */
632 tANI_U8 gUapsdPerAcTriggerEnableMask;
633
634 /* Used on STA, dynamic UPASD mask setting
635 * derived from AddTS Rsp and DelTs frame. If
636 * a particular AC bit is set, it means AC is
637 * delivery enabled.
638 */
639 tANI_U8 gUapsdPerAcDeliveryEnableMask;
640
641 /* Used on STA for AC downgrade. This is a dynamic mask
642 * setting which keep tracks of ACs being admitted.
643 * If bit is set to 0: That partiular AC is not admitted
644 * If bit is set to 1: That particular AC is admitted
645 */
646 tANI_U8 gAcAdmitMask[SIR_MAC_DIRECTION_DIRECT];
647
648 //dialogue token List head/tail for Action frames request sent.
649 tpDialogueToken pDialogueTokenHead;
650 tpDialogueToken pDialogueTokenTail;
651
652 tLimTspecInfo tspecInfo[LIM_NUM_TSPEC_MAX];
653
654 // admission control policy information
655 tLimAdmitPolicyInfo admitPolicyInfo;
Leela V Kiran Kumar Reddy Chiralac3b9d382013-01-31 20:49:53 -0800656 vos_lock_t lkPeGlobalLock;
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -0800657 tANI_U8 disableLDPCWithTxbfAP;
Gopichand Nakkala574f6d12013-06-27 19:38:43 +0530658#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530659 tANI_U8 gLimTDLSBufStaEnabled;
660 tANI_U8 gLimTDLSUapsdMask;
Naresh Jayaramf73f3762014-02-04 16:13:20 +0530661 tANI_U8 gLimTDLSOffChannelEnabled;
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +0530662 // TDLS WMM Mode
663 tANI_U8 gLimTDLSWmmMode;
Gopichand Nakkala574f6d12013-06-27 19:38:43 +0530664#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700665
666
667
668 ////////////////////////////////////////// MISC RELATED END ///////////////////////////////////////////
669
670 ////////////////////////////////////////// ASSOC RELATED START ///////////////////////////////////////////
671 // Place holder for JoinReq message
672 // received by SME state machine
673 // tpSirSmeJoinReq gpLimJoinReq;
674
675 // Place holder for ReassocReq message
676 // received by SME state machine
677 //tpSirSmeReassocReq gpLimReassocReq; sep23 review
678
Jeff Johnson295189b2012-06-20 16:38:30 -0700679 // Current Authentication type used at STA
680 //tAniAuthType gLimCurrentAuthType;
681
682 // Place holder for current authentication request
683 // being handled
684 tLimMlmAuthReq *gpLimMlmAuthReq;
685
686 // Place holder for Join request that we're
687 // currently attempting
Jeff Johnsone7245742012-09-05 17:12:55 -0700688 //tLimMlmJoinReq *gpLimMlmJoinReq;
Jeff Johnson295189b2012-06-20 16:38:30 -0700689
690 // Reason code to determine the channel change context while sending
691 // WDA_CHNL_SWITCH_REQ message to HAL
692 tANI_U32 channelChangeReasonCode;
693
694 /// MAC level Pre-authentication related globals
695 tSirMacChanNum gLimPreAuthChannelNumber;
696 tAniAuthType gLimPreAuthType;
697 tSirMacAddr gLimPreAuthPeerAddr;
698 tANI_U32 gLimNumPreAuthContexts;
699 tLimPreAuthTable gLimPreAuthTimerTable;
700
701 // Placed holder to deauth reason
702 tANI_U16 gLimDeauthReasonCode;
703
704 // Place holder for Pre-authentication node list
705 struct tLimPreAuthNode * pLimPreAuthList;
706
Jeff Johnson295189b2012-06-20 16:38:30 -0700707 // Assoc or ReAssoc Response Data/Frame
708 void *gLimAssocResponseData;
709
710 //One cache for each overlap and associated case.
711 tCacheParams protStaOverlapCache[LIM_PROT_STA_OVERLAP_CACHE_SIZE];
712 tCacheParams protStaCache[LIM_PROT_STA_CACHE_SIZE];
713
714 ////////////////////////////////////////// ASSOC RELATED END ///////////////////////////////////////////
715
716
Jeff Johnson295189b2012-06-20 16:38:30 -0700717
718 //
719 // For DEBUG purposes
720 // Primarily for - TITAN BEACON workaround
721 // Symptom - TFP/PHY gets stuck
722 //
723 tANI_U32 gLimScanOverride;
724 // Holds the desired tSirScanType, as requested by SME
725 tSirScanType gLimScanOverrideSaved;
726
Jeff Johnson295189b2012-06-20 16:38:30 -0700727 //
728 // CB State protection, operated upon as follows:
729 // 1 - CB is enabled in the hardware ONLY WHEN a Titan
730 // STA associates with the AP
731 // 0 - CB is enabled/disabled based on the configuration
732 // received as per eWNI_SME_START_BSS_REQ
733 //
734 tANI_U32 gLimCBStateProtection;
735
736 // Count of TITAN STA's currently associated
737 tANI_U16 gLimTitanStaCount;
738
739 //
740 // For DEBUG purposes
741 // Primarily for - TITAN workaround
742 // Symptom - Avoid NULL data frames
743 // Applies to AP only
744 //
745 tANI_U32 gLimBlockNonTitanSta;
746 /////////////////////////// TITAN related globals //////////////////////////////////////////
747
748
749 //////////////////////////////// HT RELATED //////////////////////////////////////////
750 //
751 // The following global LIM variables maintain/manage
752 // the runtime configurations related to 802.11n
753
754 // 802.11n Station detected HT capability in Beacon Frame
755 tANI_U8 htCapabilityPresentInBeacon;
756
757 // 802.11 HT capability: Enabled or Disabled
758 tANI_U8 htCapability;
759
760
761 tANI_U8 gHTGreenfield;
762
Jeff Johnson295189b2012-06-20 16:38:30 -0700763 tANI_U8 gHTShortGI40Mhz;
764 tANI_U8 gHTShortGI20Mhz;
765
766 //Set to 0 for 3839 octets
767 //Set to 1 for 7935 octets
768 tANI_U8 gHTMaxAmsduLength;
769
770
771 // DSSS/CCK at 40 MHz: Enabled 1 or Disabled
772 tANI_U8 gHTDsssCckRate40MHzSupport;
773
774 // PSMP Support: Enabled 1 or Disabled 0
775 tANI_U8 gHTPSMPSupport;
776
777 // L-SIG TXOP Protection used only if peer support available
778 tANI_U8 gHTLsigTXOPProtection;
779
780 // MIMO Power Save
781 tSirMacHTMIMOPowerSaveState gHTMIMOPSState;
782
783 // Scan In Power Save
784 tANI_U8 gScanInPowersave;
785
786 //
787 // A-MPDU Density
788 // 000 - No restriction
789 // 001 - 1/8 usec
790 // 010 - 1/4 usec
791 // 011 - 1/2 usec
792 // 100 - 1 usec
793 // 101 - 2 usec
794 // 110 - 4 usec
795 // 111 - 8 usec
796 //
797 tANI_U8 gHTAMpduDensity;
798
799 tANI_BOOLEAN gMaxAmsduSizeEnabled;
800 // Maximum Tx/Rx A-MPDU factor
801 tANI_U8 gHTMaxRxAMpduFactor;
802
803 //
804 // Scheduled PSMP related - Service Interval Granularity
805 // 000 - 5 ms
806 // 001 - 10 ms
807 // 010 - 15 ms
808 // 011 - 20 ms
809 // 100 - 25 ms
810 // 101 - 30 ms
811 // 110 - 35 ms
812 // 111 - 40 ms
813 //
814 tANI_U8 gHTServiceIntervalGranularity;
815
816 // Indicates whether an AP wants to associate PSMP enabled Stations
817 tANI_U8 gHTControlledAccessOnly;
818
819 // RIFS Mode. Set if no APSD legacy devices associated
820 tANI_U8 gHTRifsMode;
821 // OBss Mode . set when we have Non HT STA is associated or with in overlap bss
822 tANI_U8 gHTObssMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700823
824 // Identifies the current Operating Mode
825 tSirMacHTOperatingMode gHTOperMode;
826
827 // Indicates if PCO is activated in the BSS
828 tANI_U8 gHTPCOActive;
829
830 //
831 // If PCO is active, indicates which PCO phase to use
832 // 0 - switch to 20 MHz phase
833 // 1 - switch to 40 MHz phase
834 //
835 tANI_U8 gHTPCOPhase;
836
837 //
838 // Used only in beacons. For PR, this is set to 0
839 // 0 - Primary beacon
840 // 1 - Secondary beacon
841 //
842 tANI_U8 gHTSecondaryBeacon;
843
844 //
845 // Dual CTS Protection
846 // 0 - Use RTS/CTS
847 // 1 - Dual CTS Protection is used
848 //
849 tANI_U8 gHTDualCTSProtection;
850
851 //
852 // Identifies a single STBC MCS that shall ne used for
853 // STBC control frames and STBC beacons
854 //
855 tANI_U8 gHTSTBCBasicMCS;
856
857 tANI_U8 gHTNonGFDevicesPresent;
858
859 tANI_U8 gAddBA_Declined; // Flag to Decline the BAR if the particular bit (0-7) is being set
860
861 //////////////////////////////// HT RELATED //////////////////////////////////////////
862
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800863#ifdef FEATURE_WLAN_TDLS
864 tANI_U8 gLimAddStaTdls ;
865 tANI_U8 gLimTdlsLinkMode ;
866 //////////////////////////////// TDLS RELATED //////////////////////////////////////////
867#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700868
869 // wsc info required to form the wsc IE
870 tLimWscIeInfo wscIeInfo;
871 tpPESession gpSession ; //Pointer to session table
872 /*
873 * sessionID and transactionID from SME is stored here for those messages, for which
874 * there is no session context in PE, e.g. Scan related messages.
875 **/
876 tANI_U8 gSmeSessionId;
877 tANI_U16 gTransactionId;
878
Jeff Johnsone7245742012-09-05 17:12:55 -0700879#ifdef FEATURE_OEM_DATA_SUPPORT
880tLimMlmOemDataReq *gpLimMlmOemDataReq;
881tLimMlmOemDataRsp *gpLimMlmOemDataRsp;
882#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700883
Jeff Johnson295189b2012-06-20 16:38:30 -0700884 tSirRemainOnChnReq *gpLimRemainOnChanReq; //hold remain on chan request in this buf
885 vos_list_t gLimMgmtFrameRegistratinQueue;
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800886 tANI_U32 mgmtFrameSessionId;
Madan Mohan Koyyalamudi70bb4cb2012-10-18 19:31:25 -0700887 tSirBackgroundScanMode gLimBackgroundScanMode;
Madan Mohan Koyyalamudi61bc5662012-11-02 14:33:10 -0700888
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800889#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Madan Mohan Koyyalamudi61bc5662012-11-02 14:33:10 -0700890 tpPESession pSessionEntry;
891 tANI_U8 reAssocRetryAttempt;
892#endif
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800893 tLimDisassocDeauthCnfReq limDisassocDeauthCnfReq;
Leela Venkata Kiran Kumar Reddy Chirala2247e962013-03-22 19:21:10 -0700894 tANI_U8 deferredMsgCnt;
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530895 tSirDFSChannelList dfschannelList;
Venkata Prathyusha Kuntupalli22ba5982013-04-24 13:09:20 -0700896 tANI_U8 deauthMsgCnt;
Ravi Joshi0fc681b2013-09-11 16:46:07 -0700897 tANI_U8 gLimIbssStaLimit;
Praveen Kumar Sirisilla7ea8dc92013-12-22 16:35:05 -0800898 tANI_U8 probeCounter;
899 tANI_U8 maxProbe;
Agarwal Ashishb4ce9922014-11-04 18:40:38 +0530900 tANI_U8 retryPacketCnt;
Rashmi Ramannad3a03bf2013-12-31 18:33:24 +0530901
902 // Flag to debug remain on channel
903 tANI_BOOLEAN gDebugP2pRemainOnChannel;
904 /* Sequence number to keep track of
905 * start and end of remain on channel
906 * debug marker frame.
907 */
908 tANI_U32 remOnChnSeqNum;
Ganesh Kondabattini10e67352015-03-16 17:41:57 +0530909 tANI_U32 txBdToken;
Pradeep Reddy POTTETI31505892015-04-16 16:47:54 +0530910 tANI_U32 EnableTdls2040BSSCoexIE;
Jeff Johnson295189b2012-06-20 16:38:30 -0700911} tAniSirLim, *tpAniSirLim;
912
Jeff Johnson295189b2012-06-20 16:38:30 -0700913typedef struct sLimMgmtFrameRegistration
914{
915 vos_list_node_t node; // MUST be first element
916 tANI_U16 frameType;
917 tANI_U16 matchLen;
918 tANI_U16 sessionId;
919 tANI_U8 matchData[1];
920} tLimMgmtFrameRegistration, *tpLimMgmtFrameRegistration;
Jeff Johnson295189b2012-06-20 16:38:30 -0700921
922#if defined WLAN_FEATURE_VOWIFI
923typedef struct sRrmContext
924{
925 tRrmSMEContext rrmSmeContext;
926 tRrmPEContext rrmPEContext;
927}tRrmContext, *tpRrmContext;
928#endif
929
930#if defined WLAN_FEATURE_VOWIFI_11R
931typedef struct sFTContext
932{
933 tftSMEContext ftSmeContext;
934 tftPEContext ftPEContext;
935} tftContext, *tpFTContext;
936#endif
937
Jeff Johnson295189b2012-06-20 16:38:30 -0700938//Check if this definition can actually move here even for Volans. In that case
939//this featurization can be removed.
940/** ------------------------------------------------------------------------- *
941
942 \typedef tDriverType
943
944 \brief Indicate the driver type to the mac, and based on this do
945 appropriate initialization.
946
947 -------------------------------------------------------------------------- */
948
949typedef enum
950{
951 eDRIVER_TYPE_PRODUCTION = 0,
952 eDRIVER_TYPE_MFG = 1,
953 eDRIVER_TYPE_DVT = 2
954} tDriverType;
955
956/** ------------------------------------------------------------------------- *
957
958 \typedef tMacOpenParameters
959
960 \brief Parameters needed for Enumeration of all status codes returned by the higher level
961 interface functions.
962
963 -------------------------------------------------------------------------- */
964
965typedef struct sMacOpenParameters
966{
967 tANI_U16 maxStation;
968 tANI_U16 maxBssId;
969 tANI_U32 frameTransRequired;
970 tDriverType driverType;
971} tMacOpenParameters;
972
Jeff Johnson295189b2012-06-20 16:38:30 -0700973typedef struct sHalMacStartParameters
974{
975 // parametes for the Firmware
976 //tHalFirmwareParameters FW;
977 tDriverType driverType;
978
979} tHalMacStartParameters;
Jeff Johnson295189b2012-06-20 16:38:30 -0700980
Sushant Kaushik9e923872015-04-02 17:09:31 +0530981typedef enum
982{
983 LIM_AUTH_ACK_NOT_RCD,
984 LIM_AUTH_ACK_RCD_SUCCESS,
985 LIM_AUTH_ACK_RCD_FAILURE,
986} tAuthAckStatus;
987
Jeff Johnson295189b2012-06-20 16:38:30 -0700988// -------------------------------------------------------------------
989/// MAC Sirius parameter structure
990typedef struct sAniSirGlobal
991
992{
993 tDriverType gDriverType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700994
995 // we should be able to save this hddHandle in here and deprecate
996 // the pAdapter. For now, compiles are a problem because there
997 // are dependencides on the header files that are not handling the
998 // compiler very gracefully.
999// tHddHandle hHdd; // Handle to the HDD.
1000 //void *hHdd;
1001 void *pAdapter; // deprecate this pAdapter pointer eventually...
1002 // all interfaces to the HDD should pass hHdd, which
1003 // is stored in this struct above.....
1004 tSirMbMsg* pResetMsg;
1005 tAniSirCfg cfg;
1006 tAniSirLim lim;
Jeff Johnson295189b2012-06-20 16:38:30 -07001007 tAniSirPmm pmm;
1008 tAniSirSch sch;
1009 tAniSirSys sys;
1010 tAniSirUtils utils;
Jeff Johnson295189b2012-06-20 16:38:30 -07001011 // PAL/HDD handle
1012 tHddHandle hHdd;
1013
1014#ifdef ANI_DVT_DEBUG
1015 tAniSirDvt dvt;
1016#endif
1017
1018 tSmeStruct sme;
1019 tCsrScanStruct scan;
1020 tCsrRoamStruct roam;
1021
Jeff Johnsone7245742012-09-05 17:12:55 -07001022#ifdef FEATURE_OEM_DATA_SUPPORT
1023 tOemDataStruct oemData;
1024#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001025 tPmcInfo pmc;
1026 tSmeBtcInfo btc;
Jeff Johnson295189b2012-06-20 16:38:30 -07001027
1028 tCcm ccm;
1029
1030#if defined WLAN_FEATURE_VOWIFI
1031 tRrmContext rrm;
1032#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001033#ifdef WLAN_FEATURE_CONCURRENT_P2P
1034 tp2pContext p2pContext[MAX_NO_OF_P2P_SESSIONS];
1035#else
1036 tp2pContext p2pContext;
1037#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001038
1039#if defined WLAN_FEATURE_VOWIFI_11R
1040 tftContext ft;
1041#endif
1042
1043 tANI_U32 gCurrentLogSize;
1044 tANI_U32 menuCurrent;
1045 /* logDump specific */
1046 tANI_U32 dumpTablecurrentId;
1047 /* Instead of static allocation I will dyanamically allocate memory for dumpTableEntry
1048 Thinking of using linkedlist */
1049 tDumpModuleEntry *dumpTableEntry[MAX_DUMP_TABLE_ENTRY];
Gopichand Nakkalaccd3a382013-03-19 13:56:10 -07001050#ifdef FEATURE_WLAN_TDLS
1051 v_BOOL_t isTdlsPowerSaveProhibited;
1052#endif
Gopichand Nakkala86e42662013-06-11 17:44:11 +05301053 tANI_U8 fScanOffload;
Abhishek Singh00b71972016-01-07 10:51:04 +05301054#ifdef WLAN_FEATURE_RMC
1055 tLimRmcContext rmcContext;
1056#endif /* WLAN_FEATURE_RMC */
krunal sonie9002db2013-11-25 14:24:17 -08001057 tANI_U8 isCoalesingInIBSSAllowed;
Tushnim Bhattacharyyaed4d0c22014-01-30 11:56:44 -08001058 tANI_U32 fEnableDebugLog;
Rashmi Ramanna68b309c2014-05-20 11:52:22 +05301059 tANI_U32 fDeferIMPSTime;
1060 tANI_BOOLEAN deferImps;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05301061
1062#ifdef WLAN_FEATURE_11AC
1063 /* Alow Mu BFormee session only if MU BF session doesnt exist.
1064 */
1065 v_BOOL_t isMuBfsessionexist;
1066#endif
1067
c_hpothu3ba2a512014-08-06 14:02:54 +05301068 v_BOOL_t isCoexScoIndSet;
Ganesh Kondabattini8f6e3b32014-08-25 16:07:54 +05301069 v_U8_t miracast_mode;
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05301070 v_U8_t fBtcEnableIndTimerVal;
Girish Gowli1c2fc802015-01-19 16:18:07 +05301071 v_U8_t roamDelayStatsEnabled;
Abhishek Singh01c73d12015-03-12 15:13:44 +05301072 tANI_BOOLEAN miracastVendorConfig;
Padma, Santhosh Kumar778d8382015-03-04 17:41:22 +05301073 v_BOOL_t fActiveScanOnDFSChannels;
Sushant Kaushik9e923872015-04-02 17:09:31 +05301074 tAuthAckStatus authAckStatus;
Abhishek Singh7d624e12015-11-30 14:29:27 +05301075 sir_mgmt_frame_ind_callback mgmt_frame_ind_cb;
Jeff Johnson295189b2012-06-20 16:38:30 -07001076} tAniSirGlobal;
1077
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001078#ifdef FEATURE_WLAN_TDLS
Jeff Johnson295189b2012-06-20 16:38:30 -07001079
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001080#define RFC1042_HDR_LENGTH (6)
1081#define GET_BE16(x) ((tANI_U16) (((x)[0] << 8) | (x)[1]))
1082#define ETH_TYPE_89_0d (0x890d)
1083#define ETH_TYPE_LEN (2)
1084#define PAYLOAD_TYPE_TDLS_SIZE (1)
1085#define PAYLOAD_TYPE_TDLS (2)
1086
1087#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001088
1089#endif /* _ANIGLOBAL_H */
1090