blob: eb8471b2f48a6aef71cf3f85e990ab4dfcc7cb24 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
3 *
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
95#if defined WLAN_FEATURE_VOWIFI_11R
96#include <limFTDefs.h>
97#endif
98
99
100#ifdef ANI_DVT_DEBUG
101#include "dvtModule.h"
102#endif
103
104// New HAL API interface defs.
105#include "logDump.h"
106
Jeff Johnson295189b2012-06-20 16:38:30 -0700107//Check if this definition can actually move here from halInternal.h even for Volans. In that case
108//this featurization can be removed.
109#define PMAC_STRUCT( _hHal ) ( (tpAniSirGlobal)_hHal )
Jeff Johnson295189b2012-06-20 16:38:30 -0700110
111#define ANI_DRIVER_TYPE(pMac) (((tpAniSirGlobal)(pMac))->gDriverType)
112// -------------------------------------------------------------------
113// Bss Qos Caps bit map definition
114#define LIM_BSS_CAPS_OFFSET_HCF 0
115#define LIM_BSS_CAPS_OFFSET_WME 1
116#define LIM_BSS_CAPS_OFFSET_WSM 2
117
118#define LIM_BSS_CAPS_HCF (1 << LIM_BSS_CAPS_OFFSET_HCF)
119#define LIM_BSS_CAPS_WME (1 << LIM_BSS_CAPS_OFFSET_WME)
120#define LIM_BSS_CAPS_WSM (1 << LIM_BSS_CAPS_OFFSET_WSM)
121
122// cap should be one of HCF/WME/WSM
123#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 -0800124#define LIM_BSS_CAPS_SET(cap, val) ((val) |= (LIM_BSS_CAPS_ ## cap ))
125#define LIM_BSS_CAPS_CLR(cap, val) ((val) &= (~ (LIM_BSS_CAPS_ ## cap)))
Jeff Johnson295189b2012-06-20 16:38:30 -0700126
127// 40 beacons per heart beat interval is the default + 1 to count the rest
128#define MAX_NO_BEACONS_PER_HEART_BEAT_INTERVAL 41
129
130/* max number of legacy bssid we can store during scan on one channel */
131#define MAX_NUM_LEGACY_BSSID_PER_CHANNEL 10
132
Jeff Johnson295189b2012-06-20 16:38:30 -0700133#define P2P_WILDCARD_SSID "DIRECT-" //TODO Put it in proper place;
134#define P2P_WILDCARD_SSID_LEN 7
135
136#ifdef WLAN_FEATURE_CONCURRENT_P2P
137#define MAX_NO_OF_P2P_SESSIONS 5
138#endif //WLAN_FEATURE_CONCURRENT_P2P
Jeff Johnson295189b2012-06-20 16:38:30 -0700139
Srinivas Girigowdade697412013-02-14 16:31:48 -0800140#define SPACE_ASCII_VALUE 32
141
Rajeev79dbe4c2013-10-05 11:03:42 +0530142#ifdef FEATURE_WLAN_BATCH_SCAN
143#define EQUALS_TO_ASCII_VALUE (61)
144#endif
145
Jeff Johnson295189b2012-06-20 16:38:30 -0700146// -------------------------------------------------------------------
147// Change channel generic scheme
148typedef void (*CHANGE_CHANNEL_CALLBACK)(tpAniSirGlobal pMac, eHalStatus status, tANI_U32 *data,
149 tpPESession psessionEntry);
150
151/// LIM global definitions
152typedef struct sAniSirLimIbss
153{
154 void *pHdr;
155 void *pBeacon;
156} tAniSirLimIbss;
157
158typedef struct sDialogueToken
159{
160 //bytes 0-3
161 tANI_U16 assocId;
162 tANI_U8 token;
163 tANI_U8 rsvd1;
164 //Bytes 4-7
165 tANI_U16 tid;
166 tANI_U8 rsvd2[2];
167
168 struct sDialogueToken* next;
169}tDialogueToken, *tpDialogueToken;
170
171typedef struct sLimTimers
172{
173 //TIMERS IN LIM ARE NOT SUPPOSED TO BE ZEROED OUT DURING RESET.
174 //DURING limInitialize DONOT ZERO THEM OUT.
175
176//STA SPECIFIC TIMERS
Jeff Johnson295189b2012-06-20 16:38:30 -0700177 // Periodic background scan timer
178 TX_TIMER gLimBackgroundScanTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700179
180 TX_TIMER gLimPreAuthClnupTimer;
181 //TX_TIMER gLimAuthResponseTimer[HAL_NUM_STA];
182
183 // Association related timers
184 TX_TIMER gLimAssocFailureTimer;
185 TX_TIMER gLimReassocFailureTimer;
186
187
188 /// Heartbeat timer on STA
189 TX_TIMER gLimHeartBeatTimer;
190
191 /// Wait for Probe after Heartbeat failure timer on STA
192 TX_TIMER gLimProbeAfterHBTimer;
193
194
195 // Authentication related timers
196 TX_TIMER gLimAuthFailureTimer;
197
198 // Join Failure timeout on STA
199 TX_TIMER gLimJoinFailureTimer;
200
201 // Keepalive timer
202 TX_TIMER gLimKeepaliveTimer;
203
204 // Scan related timers
205 TX_TIMER gLimMinChannelTimer;
206 TX_TIMER gLimMaxChannelTimer;
207 TX_TIMER gLimPeriodicProbeReqTimer;
208
209 // CNF_WAIT timer
210 TX_TIMER *gpLimCnfWaitTimer;
211
Jeff Johnson295189b2012-06-20 16:38:30 -0700212 TX_TIMER gLimAddtsRspTimer; // max wait for a response
213
214 // Update OLBC Cache Timer
215 TX_TIMER gLimUpdateOlbcCacheTimer;
216
217 TX_TIMER gLimChannelSwitchTimer;
218 // This TIMER is started on the STA, as indicated by the
219 // AP in its Quiet BSS IE, for the specified interval
220 TX_TIMER gLimQuietTimer;
221 // This TIMER is started on the AP, prior to the AP going
222 // into LEARN mode
223 // This TIMER is started on the STA, for the specified
224 // quiet duration
225 TX_TIMER gLimQuietBssTimer;
226
227#ifdef WLAN_FEATURE_VOWIFI_11R
228 TX_TIMER gLimFTPreAuthRspTimer;
229#endif
230
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800231#ifdef FEATURE_WLAN_ESE
232 TX_TIMER gLimEseTsmTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700233#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800234#ifdef FEATURE_WLAN_TDLS_INTERNAL
235 TX_TIMER gLimTdlsDisRspWaitTimer;
236 TX_TIMER gLimTdlsLinkSetupRspTimeouTimer;
237 TX_TIMER gLimTdlsLinkSetupCnfTimeoutTimer;
238#endif
239
Madan Mohan Koyyalamudi9aff9ff2012-11-29 11:27:25 -0800240 TX_TIMER gLimPeriodicJoinProbeReqTimer;
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800241 TX_TIMER gLimDisassocAckTimer;
242 TX_TIMER gLimDeauthAckTimer;
Viral Modid86bde22012-12-10 13:09:21 -0800243 // This timer is started when single shot NOA insert msg is sent to FW for scan in P2P GO mode
244 TX_TIMER gLimP2pSingleShotNoaInsertTimer;
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530245 /* This timer is used to convert active channel to
246 * passive channel when there is no beacon
247 * for a period of time on a particular DFS channel
248 */
249 TX_TIMER gLimActiveToPassiveChannelTimer;
Jeff Johnson295189b2012-06-20 16:38:30 -0700250//********************TIMER SECTION ENDS**************************************************
251// ALL THE FIELDS BELOW THIS CAN BE ZEROED OUT in limInitialize
252//****************************************************************************************
253
254}tLimTimers;
255
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800256typedef struct {
257 void *pMlmDisassocReq;
258 void *pMlmDeauthReq;
259}tLimDisassocDeauthCnfReq;
Jeff Johnson295189b2012-06-20 16:38:30 -0700260
261typedef struct sAniSirLim
262{
263 ////////////////////////////////////// TIMER RELATED START ///////////////////////////////////////////
264
265 tLimTimers limTimers;
266 /// Flag to track if LIM timers are created or not
267 tANI_U32 gLimTimersCreated;
268
269
270 ////////////////////////////////////// TIMER RELATED END ///////////////////////////////////////////
271
272 ////////////////////////////////////// SCAN/LEARN RELATED START ///////////////////////////////////////////
273 /**
274 * This flag when set, will use scan mode instead of
275 * Learn mode on BP/AP. By default this flag is set
276 * to true until HIF getting stuck in 0x800 state is
277 * debugged.
278 */
279 tANI_U32 gLimUseScanModeForLearnMode;
280
281 /**
282 * This is useful for modules other than LIM
283 * to see if system is in scan/learn mode or not
284 */
285 tANI_U32 gLimSystemInScanLearnMode;
286
287 // Scan related globals on STA
288 tANI_U8 gLimReturnAfterFirstMatch;
289 tANI_U8 gLim24Band11dScanDone;
290 tANI_U8 gLim50Band11dScanDone;
291 tANI_U8 gLimReturnUniqueResults;
292
293 // Background Scan related globals on STA
294 tANI_U32 gLimNumOfBackgroundScanSuccess;
295 tANI_U32 gLimNumOfConsecutiveBkgndScanFailure;
296 tANI_U32 gLimNumOfForcedBkgndScan;
297 tANI_U8 gLimBackgroundScanDisable; //based on BG timer
298 tANI_U8 gLimForceBackgroundScanDisable; //debug control flag
299 tANI_U8 gLimBackgroundScanTerminate; //controlled by SME
300 tANI_U8 gLimReportBackgroundScanResults;//controlled by SME
301
302 /// Place holder for current channel ID
303 /// being scanned
304 tANI_U32 gLimCurrentScanChannelId;
305
306 // Hold onto SCAN criteria
Viral Modid440e682013-03-06 02:25:31 -0800307 /* The below is used in P2P GO case when we need to defer processing SME Req
308 * to LIM and insert NOA first and process SME req once SNOA is started
309 */
310 tANI_U16 gDeferMsgTypeForNOA;
311 tANI_U32 *gpDefdSmeMsgForNOA;
312
Jeff Johnson295189b2012-06-20 16:38:30 -0700313 tLimMlmScanReq *gpLimMlmScanReq;
314
315 /// This indicates total length of 'matched' scan results
316 tANI_U16 gLimMlmScanResultLength;
317
318 /// This indicates total length of 'cached' scan results
319 tANI_U16 gLimSmeScanResultLength;
320
321 /**
322 * Hash table definition for storing SCAN results
323 * This is the placed holder for 'cached' scan results
324 */
325 tLimScanResultNode
326 *gLimCachedScanHashTable[LIM_MAX_NUM_OF_SCAN_RESULTS];
327
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700328 /// This indicates total length of 'matched' scan results
329 tANI_U16 gLimMlmLfrScanResultLength;
330
331 /// This indicates total length of 'cached' scan results
332 tANI_U16 gLimSmeLfrScanResultLength;
333
334 /**
335 * Hash table definition for storing LFR SCAN results
336 * This is the placed holder for roaming candidates as forwarded
337 * by FW
338 */
339 tLimScanResultNode
340 *gLimCachedLfrScanHashTable[LIM_MAX_NUM_OF_SCAN_RESULTS];
341
Jeff Johnson295189b2012-06-20 16:38:30 -0700342 /// Place holder for current channel ID
343 /// being scanned during background scanning
344 tANI_U32 gLimBackgroundScanChannelId;
345 /// flag to indicate that bacground scan timer has been started
346 tANI_U8 gLimBackgroundScanStarted;
347
348 /* Used to store the list of legacy bss sta detected during scan on one channel */
349 tANI_U16 gLimRestoreCBNumScanInterval;
350 tANI_U16 gLimRestoreCBCount;
351 tSirMacAddr gLimLegacyBssidList[MAX_NUM_LEGACY_BSSID_PER_CHANNEL];
Jeff Johnson295189b2012-06-20 16:38:30 -0700352
353 //
354 // If this flag is 1,
355 // then, LIM will "try and trigger" a background
356 // scan whenever it receives a Quiet BSS IE
357 //
358 // If this flag is 0,
359 // then, LIM will simply shut-off Tx/Rx whenever it
360 // receives a Quiet BSS IE.
361 // This is the default behavior when a Quiet BSS IE
362 // is received and 11H is enabled
363 //
364 tANI_U32 gLimTriggerBackgroundScanDuringQuietBss;
365
Jeff Johnson295189b2012-06-20 16:38:30 -0700366
Jeff Johnson295189b2012-06-20 16:38:30 -0700367 // This variable store the total duration to do scan
368 tANI_U32 gTotalScanDuration;
Jeff Johnsone7245742012-09-05 17:12:55 -0700369 tANI_U32 p2pRemOnChanTimeStamp;
Jeff Johnson295189b2012-06-20 16:38:30 -0700370
371 // abort scan is used to abort an on-going scan
372 tANI_U8 abortScan;
373 tLimScanChnInfo scanChnInfo;
374
375 ////////////////////////////////////// SCAN/LEARN RELATED START ///////////////////////////////////////////
376 tSirMacAddr gSelfMacAddr; //added for BT-AMP Support
Siddharth Bhal4f3187c2014-10-09 21:38:08 +0530377 tSirMacAddr spoofMacAddr; //added for Mac Addr Spoofing support
378 tANI_U8 isSpoofingEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -0700379
380 ////////////////////////////////////////// BSS RELATED END ///////////////////////////////////////////
381 // Place holder for StartBssReq message
382 // received by SME state machine
383
Jeff Johnson62c27982013-02-27 17:53:55 -0800384 tANI_U8 gLimCurrentBssUapsd;
Jeff Johnson295189b2012-06-20 16:38:30 -0700385
Jeff Johnson62c27982013-02-27 17:53:55 -0800386 /* This is used for testing sta legacy bss detect feature */
387 tANI_U8 gLimForceNoPropIE;
Jeff Johnson295189b2012-06-20 16:38:30 -0700388
389 //
390 // Store the BSS Index returned by HAL during
391 // WDA_ADD_BSS_RSP here.
392 //
393 // For now:
394 // This will be used during WDA_SET_BSSKEY_REQ in
395 // order to set the GTK
396 // Later:
397 // There could be other interfaces needing this info
398 //
399
400 //
401 // Due to the asynchronous nature of the interface
402 // between PE <-> HAL, some transient information
403 // like this needs to be cached.
404 // This is cached upon receipt of eWNI_SME_SETCONTEXT_REQ.
405 // This is released while posting LIM_MLM_SETKEYS_CNF
406 //
407 void* gpLimMlmSetKeysReq;
408 void* gpLimMlmRemoveKeyReq;
409
410 //On STA: staid for self generated by HAL and sent as response to 'ADD STA' msg.
411 //On AP: staid corresponding to BSS generated by HAL and sent as response to 'ADD BSS' msg.
412 // tANI_U16 gLimStaid; // TO SUPPORT BT-AMP
413
414 ////////////////////////////////////////// BSS RELATED END ///////////////////////////////////////////
415
416 ////////////////////////////////////////// IBSS RELATED START ///////////////////////////////////////////
417 // This indicates whether we've a partner
418 // that is also transmitting Beacon frame
419 // in IBSS
420 //tANI_U8 gLimIbssActive; oct1 review
421
422 //This indicates whether this STA coalesced and adapter to peer's capabilities or not.
423 tANI_U8 gLimIbssCoalescingHappened;
424
425 /// Definition for storing IBSS peers BSS description
426 tLimIbssPeerNode *gLimIbssPeerList;
427 tANI_U32 gLimNumIbssPeers;
428
429 // ibss info - params for which ibss to join while coalescing
430 tAniSirLimIbss ibssInfo;
431
432 ////////////////////////////////////////// IBSS RELATED END ///////////////////////////////////////////
433
434 ////////////////////////////////////////// STATS/COUNTER RELATED START ///////////////////////////////////////////
435
436 tANI_U16 maxStation;
437 tANI_U16 maxBssId;
438
439 tANI_U32 gLimNumBeaconsRcvd;
440 tANI_U32 gLimNumBeaconsIgnored;
441
442 tANI_U32 gLimNumDeferredMsgs;
443
444 /// Variable to keep track of number of currently associated STAs
Jeff Johnson295189b2012-06-20 16:38:30 -0700445 tANI_U16 gLimNumOfAniSTAs; // count of ANI peers
446 tANI_U16 gLimAssocStaLimit;
447
448 /// This indicates number of RXed Beacons during HB period
449 // tANI_U8 gLimRxedBeaconCntDuringHB;
450
451 // Heart-Beat interval value
452 tANI_U32 gLimHeartBeatCount;
Abhishek Singhde51a412014-05-20 19:17:26 +0530453 tSirMacAddr gLimHeartBeatApMac[2];
454 tANI_U8 gLimHeartBeatApMacIndex;
Jeff Johnson295189b2012-06-20 16:38:30 -0700455
456 // Statistics to keep track of no. beacons rcvd in heart beat interval
457 tANI_U16 gLimHeartBeatBeaconStats[MAX_NO_BEACONS_PER_HEART_BEAT_INTERVAL];
458
459#ifdef WLAN_DEBUG
460 // Debug counters
461 tANI_U32 numTot, numBbt, numProtErr, numLearn, numLearnIgnore;
462 tANI_U32 numSme, numMAC[4][16];
463
464 // Debug counter to track number of Assoc Req frame drops
465 // when received in pStaDs->mlmState other than LINK_ESTABLISED
466 tANI_U32 gLimNumAssocReqDropInvldState;
467 // counters to track rejection of Assoc Req due to Admission Control
468 tANI_U32 gLimNumAssocReqDropACRejectTS;
469 tANI_U32 gLimNumAssocReqDropACRejectSta;
470 // Debug counter to track number of Reassoc Req frame drops
471 // when received in pStaDs->mlmState other than LINK_ESTABLISED
472 tANI_U32 gLimNumReassocReqDropInvldState;
473 // Debug counter to track number of Hash Miss event that
474 // will not cause a sending of de-auth/de-associate frame
475 tANI_U32 gLimNumHashMissIgnored;
476
477 // Debug counter to track number of Beacon frames
478 // received in unexpected state
479 tANI_U32 gLimUnexpBcnCnt;
480
481 // Debug counter to track number of Beacon frames
482 // received in wt-join-state that do have SSID mismatch
483 tANI_U32 gLimBcnSSIDMismatchCnt;
484
485 // Debug counter to track number of Link establishments on STA/BP
486 tANI_U32 gLimNumLinkEsts;
487
488 // Debug counter to track number of Rx cleanup
489 tANI_U32 gLimNumRxCleanup;
490
491 // Debug counter to track different parse problem
492 tANI_U32 gLim11bStaAssocRejectCount;
493
494#endif
495
496 //Time stamp of the last beacon received from the BSS to which STA is connected.
497 tANI_U64 gLastBeaconTimeStamp;
498 //RX Beacon count for the current BSS to which STA is connected.
499 tANI_U32 gCurrentBssBeaconCnt;
500 tANI_U8 gLastBeaconDtimCount;
501 tANI_U8 gLastBeaconDtimPeriod;
502
503
504 ////////////////////////////////////////// STATS/COUNTER RELATED END ///////////////////////////////////////////
505
506
507 ////////////////////////////////////////// STATES RELATED START ///////////////////////////////////////////
508 // Counts Heartbeat failures
509 tANI_U8 gLimHBfailureCntInLinkEstState;
510 tANI_U8 gLimProbeFailureAfterHBfailedCnt;
511 tANI_U8 gLimHBfailureCntInOtherStates;
512
513 /**
514 * This variable indicates whether LIM module need to
515 * send response to host. Used to identify whether a request
516 * is generated internally within LIM module or by host
517 */
518 tANI_U8 gLimRspReqd;
519
520 /// Previous SME State
521 tLimSmeStates gLimPrevSmeState;
522
523 /// MLM State visible across all Sirius modules
524 tLimMlmStates gLimMlmState;
525
526 /// Previous MLM State
527 tLimMlmStates gLimPrevMlmState;
528
529#ifdef GEN4_SCAN
530 // LIM to HAL SCAN Management Message Interface states
531 tLimLimHalScanState gLimHalScanState;
532//WLAN_SUSPEND_LINK Related
533 SUSPEND_RESUME_LINK_CALLBACK gpLimSuspendCallback;
534 tANI_U32 *gpLimSuspendData;
535 SUSPEND_RESUME_LINK_CALLBACK gpLimResumeCallback;
536 tANI_U32 *gpLimResumeData;
537//end WLAN_SUSPEND_LINK Related
538 tANI_U8 fScanDisabled;
539 //Can be set to invalid channel. If it is invalid, HAL
540 //should move to previous valid channel or stay in the
Jeff Johnsone7245742012-09-05 17:12:55 -0700541 //current channel. CB state goes along with channel to resume to
542 tANI_U16 gResumeChannel;
543 ePhyChanBondState gResumePhyCbState;
Jeff Johnson295189b2012-06-20 16:38:30 -0700544#endif // GEN4_SCAN
545
546 // Change channel generic scheme
547 CHANGE_CHANNEL_CALLBACK gpchangeChannelCallback;
548 tANI_U32 *gpchangeChannelData;
549
550 /// SME State visible across all Sirius modules
551 tLimSmeStates gLimSmeState;
552 /// This indicates whether we're an AP, STA in BSS/IBSS
553 tLimSystemRole gLimSystemRole;
554
555 // Number of STAs that do not support short preamble
556 tLimNoShortParams gLimNoShortParams;
557
558 // Number of STAs that do not support short slot time
559 tLimNoShortSlotParams gLimNoShortSlotParams;
560
561
562 // OLBC parameters
563 tLimProtStaParams gLimOverlap11gParams;
564
565 tLimProtStaParams gLimOverlap11aParams;
566 tLimProtStaParams gLimOverlapHt20Params;
567 tLimProtStaParams gLimOverlapNonGfParams;
568
569 //
570 // ---------------- DPH -----------------------
571 // these used to live in DPH but are now moved here (where they belong)
572 tANI_U32 gLimPhyMode;
573 tANI_U32 propRateAdjustPeriod;
574 tANI_U32 scanStartTime; // used to measure scan time
575
Jeff Johnsone7245742012-09-05 17:12:55 -0700576 //tANI_U8 gLimBssid[6];
Jeff Johnson295189b2012-06-20 16:38:30 -0700577 tANI_U8 gLimMyMacAddr[6];
578 tANI_U8 ackPolicy;
579
580 tANI_U8 gLimQosEnabled:1; //11E
581 tANI_U8 gLimWmeEnabled:1; //WME
582 tANI_U8 gLimWsmEnabled:1; //WSM
583 tANI_U8 gLimHcfEnabled:1;
584 tANI_U8 gLim11dEnabled:1;
585 tANI_U8 gLimProbeRespDisableFlag:1; // control over probe response
586 // ---------------- DPH -----------------------
587
588 ////////////////////////////////////////// STATES RELATED END ///////////////////////////////////////////
589
590 ////////////////////////////////////////// MISC RELATED START ///////////////////////////////////////////
Jeff Johnson295189b2012-06-20 16:38:30 -0700591
592 // WDS info
593 tANI_U32 gLimNumWdsInfoInd;
594 tANI_U32 gLimNumWdsInfoSet;
595 tSirWdsInfo gLimWdsInfo;
596
597 // Deferred Queue Paramters
598 tLimDeferredMsgQParams gLimDeferredMsgQ;
599
600 // addts request if any - only one can be outstanding at any time
601 tSirAddtsReq gLimAddtsReq;
602 tANI_U8 gLimAddtsSent;
603 tANI_U8 gLimAddtsRspTimerCount;
604
605 //protection related config cache
606 tCfgProtection cfgProtection;
607
608 tANI_U8 gLimProtectionControl;
609 //RF band to determibe 2.4/5 GHZ
610
611 // alternate radio info used by STA
612 tSirAlternateRadioInfo gLimAlternateRadio;
613
614 //This flag will remain to be set except while LIM is waiting for specific response messages
615 //from HAL. e.g when LIM issues ADD_STA req it will clear this flag and when it will receive
616 //the response the flag will be set.
617 tANI_U8 gLimProcessDefdMsgs;
618
619 // UAPSD flag used on AP
620 tANI_U8 gUapsdEnable;
621
622 /* Used on STA, this is a static UAPSD mask setting
623 * derived from SME_JOIN_REQ and SME_REASSOC_REQ. If a
624 * particular AC bit is set, it means the AC is both
625 * trigger enabled and delivery enabled.
626 */
627 tANI_U8 gUapsdPerAcBitmask;
628
629 /* Used on STA, this is a dynamic UPASD mask setting
630 * derived from AddTS Rsp and DelTS frame. If a
631 * particular AC bit is set, it means AC is trigger
632 * enabled.
633 */
634 tANI_U8 gUapsdPerAcTriggerEnableMask;
635
636 /* Used on STA, dynamic UPASD mask setting
637 * derived from AddTS Rsp and DelTs frame. If
638 * a particular AC bit is set, it means AC is
639 * delivery enabled.
640 */
641 tANI_U8 gUapsdPerAcDeliveryEnableMask;
642
643 /* Used on STA for AC downgrade. This is a dynamic mask
644 * setting which keep tracks of ACs being admitted.
645 * If bit is set to 0: That partiular AC is not admitted
646 * If bit is set to 1: That particular AC is admitted
647 */
648 tANI_U8 gAcAdmitMask[SIR_MAC_DIRECTION_DIRECT];
649
650 //dialogue token List head/tail for Action frames request sent.
651 tpDialogueToken pDialogueTokenHead;
652 tpDialogueToken pDialogueTokenTail;
653
654 tLimTspecInfo tspecInfo[LIM_NUM_TSPEC_MAX];
655
656 // admission control policy information
657 tLimAdmitPolicyInfo admitPolicyInfo;
Leela V Kiran Kumar Reddy Chiralac3b9d382013-01-31 20:49:53 -0800658 vos_lock_t lkPeGlobalLock;
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -0800659 tANI_U8 disableLDPCWithTxbfAP;
Gopichand Nakkala574f6d12013-06-27 19:38:43 +0530660#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530661 tANI_U8 gLimTDLSBufStaEnabled;
662 tANI_U8 gLimTDLSUapsdMask;
Naresh Jayaramf73f3762014-02-04 16:13:20 +0530663 tANI_U8 gLimTDLSOffChannelEnabled;
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +0530664 // TDLS WMM Mode
665 tANI_U8 gLimTDLSWmmMode;
Gopichand Nakkala574f6d12013-06-27 19:38:43 +0530666#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700667
668
669
670 ////////////////////////////////////////// MISC RELATED END ///////////////////////////////////////////
671
672 ////////////////////////////////////////// ASSOC RELATED START ///////////////////////////////////////////
673 // Place holder for JoinReq message
674 // received by SME state machine
675 // tpSirSmeJoinReq gpLimJoinReq;
676
677 // Place holder for ReassocReq message
678 // received by SME state machine
679 //tpSirSmeReassocReq gpLimReassocReq; sep23 review
680
Jeff Johnson295189b2012-06-20 16:38:30 -0700681 // Current Authentication type used at STA
682 //tAniAuthType gLimCurrentAuthType;
683
684 // Place holder for current authentication request
685 // being handled
686 tLimMlmAuthReq *gpLimMlmAuthReq;
687
688 // Place holder for Join request that we're
689 // currently attempting
Jeff Johnsone7245742012-09-05 17:12:55 -0700690 //tLimMlmJoinReq *gpLimMlmJoinReq;
Jeff Johnson295189b2012-06-20 16:38:30 -0700691
692 // Reason code to determine the channel change context while sending
693 // WDA_CHNL_SWITCH_REQ message to HAL
694 tANI_U32 channelChangeReasonCode;
695
696 /// MAC level Pre-authentication related globals
697 tSirMacChanNum gLimPreAuthChannelNumber;
698 tAniAuthType gLimPreAuthType;
699 tSirMacAddr gLimPreAuthPeerAddr;
700 tANI_U32 gLimNumPreAuthContexts;
701 tLimPreAuthTable gLimPreAuthTimerTable;
702
703 // Placed holder to deauth reason
704 tANI_U16 gLimDeauthReasonCode;
705
706 // Place holder for Pre-authentication node list
707 struct tLimPreAuthNode * pLimPreAuthList;
708
Jeff Johnson295189b2012-06-20 16:38:30 -0700709 // Assoc or ReAssoc Response Data/Frame
710 void *gLimAssocResponseData;
711
712 //One cache for each overlap and associated case.
713 tCacheParams protStaOverlapCache[LIM_PROT_STA_OVERLAP_CACHE_SIZE];
714 tCacheParams protStaCache[LIM_PROT_STA_CACHE_SIZE];
715
716 ////////////////////////////////////////// ASSOC RELATED END ///////////////////////////////////////////
717
718
Jeff Johnson295189b2012-06-20 16:38:30 -0700719
720 //
721 // For DEBUG purposes
722 // Primarily for - TITAN BEACON workaround
723 // Symptom - TFP/PHY gets stuck
724 //
725 tANI_U32 gLimScanOverride;
726 // Holds the desired tSirScanType, as requested by SME
727 tSirScanType gLimScanOverrideSaved;
728
Jeff Johnson295189b2012-06-20 16:38:30 -0700729 //
730 // CB State protection, operated upon as follows:
731 // 1 - CB is enabled in the hardware ONLY WHEN a Titan
732 // STA associates with the AP
733 // 0 - CB is enabled/disabled based on the configuration
734 // received as per eWNI_SME_START_BSS_REQ
735 //
736 tANI_U32 gLimCBStateProtection;
737
738 // Count of TITAN STA's currently associated
739 tANI_U16 gLimTitanStaCount;
740
741 //
742 // For DEBUG purposes
743 // Primarily for - TITAN workaround
744 // Symptom - Avoid NULL data frames
745 // Applies to AP only
746 //
747 tANI_U32 gLimBlockNonTitanSta;
748 /////////////////////////// TITAN related globals //////////////////////////////////////////
749
750
751 //////////////////////////////// HT RELATED //////////////////////////////////////////
752 //
753 // The following global LIM variables maintain/manage
754 // the runtime configurations related to 802.11n
755
756 // 802.11n Station detected HT capability in Beacon Frame
757 tANI_U8 htCapabilityPresentInBeacon;
758
759 // 802.11 HT capability: Enabled or Disabled
760 tANI_U8 htCapability;
761
762
763 tANI_U8 gHTGreenfield;
764
Jeff Johnson295189b2012-06-20 16:38:30 -0700765 tANI_U8 gHTShortGI40Mhz;
766 tANI_U8 gHTShortGI20Mhz;
767
768 //Set to 0 for 3839 octets
769 //Set to 1 for 7935 octets
770 tANI_U8 gHTMaxAmsduLength;
771
772
773 // DSSS/CCK at 40 MHz: Enabled 1 or Disabled
774 tANI_U8 gHTDsssCckRate40MHzSupport;
775
776 // PSMP Support: Enabled 1 or Disabled 0
777 tANI_U8 gHTPSMPSupport;
778
779 // L-SIG TXOP Protection used only if peer support available
780 tANI_U8 gHTLsigTXOPProtection;
781
782 // MIMO Power Save
783 tSirMacHTMIMOPowerSaveState gHTMIMOPSState;
784
785 // Scan In Power Save
786 tANI_U8 gScanInPowersave;
787
788 //
789 // A-MPDU Density
790 // 000 - No restriction
791 // 001 - 1/8 usec
792 // 010 - 1/4 usec
793 // 011 - 1/2 usec
794 // 100 - 1 usec
795 // 101 - 2 usec
796 // 110 - 4 usec
797 // 111 - 8 usec
798 //
799 tANI_U8 gHTAMpduDensity;
800
801 tANI_BOOLEAN gMaxAmsduSizeEnabled;
802 // Maximum Tx/Rx A-MPDU factor
803 tANI_U8 gHTMaxRxAMpduFactor;
804
805 //
806 // Scheduled PSMP related - Service Interval Granularity
807 // 000 - 5 ms
808 // 001 - 10 ms
809 // 010 - 15 ms
810 // 011 - 20 ms
811 // 100 - 25 ms
812 // 101 - 30 ms
813 // 110 - 35 ms
814 // 111 - 40 ms
815 //
816 tANI_U8 gHTServiceIntervalGranularity;
817
818 // Indicates whether an AP wants to associate PSMP enabled Stations
819 tANI_U8 gHTControlledAccessOnly;
820
821 // RIFS Mode. Set if no APSD legacy devices associated
822 tANI_U8 gHTRifsMode;
823 // OBss Mode . set when we have Non HT STA is associated or with in overlap bss
824 tANI_U8 gHTObssMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700825
826 // Identifies the current Operating Mode
827 tSirMacHTOperatingMode gHTOperMode;
828
829 // Indicates if PCO is activated in the BSS
830 tANI_U8 gHTPCOActive;
831
832 //
833 // If PCO is active, indicates which PCO phase to use
834 // 0 - switch to 20 MHz phase
835 // 1 - switch to 40 MHz phase
836 //
837 tANI_U8 gHTPCOPhase;
838
839 //
840 // Used only in beacons. For PR, this is set to 0
841 // 0 - Primary beacon
842 // 1 - Secondary beacon
843 //
844 tANI_U8 gHTSecondaryBeacon;
845
846 //
847 // Dual CTS Protection
848 // 0 - Use RTS/CTS
849 // 1 - Dual CTS Protection is used
850 //
851 tANI_U8 gHTDualCTSProtection;
852
853 //
854 // Identifies a single STBC MCS that shall ne used for
855 // STBC control frames and STBC beacons
856 //
857 tANI_U8 gHTSTBCBasicMCS;
858
859 tANI_U8 gHTNonGFDevicesPresent;
860
861 tANI_U8 gAddBA_Declined; // Flag to Decline the BAR if the particular bit (0-7) is being set
862
863 //////////////////////////////// HT RELATED //////////////////////////////////////////
864
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800865#ifdef FEATURE_WLAN_TDLS_INTERNAL
866 //////////////////////////////// TDLS RELATED //////////////////////////////////////////
867
868 tSirTdlsDisReq gLimTdlsDisReq ;
869 //tLimDisResultList *gTdlsDisResultList ;
870 tLimDisResultList *gLimTdlsDisResultList ;
871 tANI_U8 gLimTdlsDisStaCount ;
872 tANI_U8 gAddStaDisRspWait ;
873
874 tLimTdlsLinkSetupInfo gLimTdlsLinkSetupInfo;
875
876 /* to track if direct link is b/g/n, this can be independent of AP link */
877#ifdef FEATURE_WLAN_TDLS_NEGATIVE
878 tANI_U32 gLimTdlsNegativeBehavior;
879#endif
880#endif
881#ifdef FEATURE_WLAN_TDLS
882 tANI_U8 gLimAddStaTdls ;
883 tANI_U8 gLimTdlsLinkMode ;
884 //////////////////////////////// TDLS RELATED //////////////////////////////////////////
885#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700886
887 // wsc info required to form the wsc IE
888 tLimWscIeInfo wscIeInfo;
889 tpPESession gpSession ; //Pointer to session table
890 /*
891 * sessionID and transactionID from SME is stored here for those messages, for which
892 * there is no session context in PE, e.g. Scan related messages.
893 **/
894 tANI_U8 gSmeSessionId;
895 tANI_U16 gTransactionId;
896
Jeff Johnsone7245742012-09-05 17:12:55 -0700897#ifdef FEATURE_OEM_DATA_SUPPORT
898tLimMlmOemDataReq *gpLimMlmOemDataReq;
899tLimMlmOemDataRsp *gpLimMlmOemDataRsp;
900#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700901
Jeff Johnson295189b2012-06-20 16:38:30 -0700902 tSirRemainOnChnReq *gpLimRemainOnChanReq; //hold remain on chan request in this buf
903 vos_list_t gLimMgmtFrameRegistratinQueue;
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800904 tANI_U32 mgmtFrameSessionId;
Madan Mohan Koyyalamudi70bb4cb2012-10-18 19:31:25 -0700905 tSirBackgroundScanMode gLimBackgroundScanMode;
Madan Mohan Koyyalamudi61bc5662012-11-02 14:33:10 -0700906
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800907#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Madan Mohan Koyyalamudi61bc5662012-11-02 14:33:10 -0700908 tpPESession pSessionEntry;
909 tANI_U8 reAssocRetryAttempt;
910#endif
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800911 tLimDisassocDeauthCnfReq limDisassocDeauthCnfReq;
Leela Venkata Kiran Kumar Reddy Chirala2247e962013-03-22 19:21:10 -0700912 tANI_U8 deferredMsgCnt;
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530913 tSirDFSChannelList dfschannelList;
Venkata Prathyusha Kuntupalli22ba5982013-04-24 13:09:20 -0700914 tANI_U8 deauthMsgCnt;
Ravi Joshi0fc681b2013-09-11 16:46:07 -0700915 tANI_U8 gLimIbssStaLimit;
Praveen Kumar Sirisilla7ea8dc92013-12-22 16:35:05 -0800916 tANI_U8 probeCounter;
917 tANI_U8 maxProbe;
Agarwal Ashishb4ce9922014-11-04 18:40:38 +0530918 tANI_U8 retryPacketCnt;
Rashmi Ramannad3a03bf2013-12-31 18:33:24 +0530919
920 // Flag to debug remain on channel
921 tANI_BOOLEAN gDebugP2pRemainOnChannel;
922 /* Sequence number to keep track of
923 * start and end of remain on channel
924 * debug marker frame.
925 */
926 tANI_U32 remOnChnSeqNum;
Jeff Johnson295189b2012-06-20 16:38:30 -0700927} tAniSirLim, *tpAniSirLim;
928
Jeff Johnson295189b2012-06-20 16:38:30 -0700929typedef struct sLimMgmtFrameRegistration
930{
931 vos_list_node_t node; // MUST be first element
932 tANI_U16 frameType;
933 tANI_U16 matchLen;
934 tANI_U16 sessionId;
935 tANI_U8 matchData[1];
936} tLimMgmtFrameRegistration, *tpLimMgmtFrameRegistration;
Jeff Johnson295189b2012-06-20 16:38:30 -0700937
938#if defined WLAN_FEATURE_VOWIFI
939typedef struct sRrmContext
940{
941 tRrmSMEContext rrmSmeContext;
942 tRrmPEContext rrmPEContext;
943}tRrmContext, *tpRrmContext;
944#endif
945
946#if defined WLAN_FEATURE_VOWIFI_11R
947typedef struct sFTContext
948{
949 tftSMEContext ftSmeContext;
950 tftPEContext ftPEContext;
951} tftContext, *tpFTContext;
952#endif
953
Jeff Johnson295189b2012-06-20 16:38:30 -0700954//Check if this definition can actually move here even for Volans. In that case
955//this featurization can be removed.
956/** ------------------------------------------------------------------------- *
957
958 \typedef tDriverType
959
960 \brief Indicate the driver type to the mac, and based on this do
961 appropriate initialization.
962
963 -------------------------------------------------------------------------- */
964
965typedef enum
966{
967 eDRIVER_TYPE_PRODUCTION = 0,
968 eDRIVER_TYPE_MFG = 1,
969 eDRIVER_TYPE_DVT = 2
970} tDriverType;
971
972/** ------------------------------------------------------------------------- *
973
974 \typedef tMacOpenParameters
975
976 \brief Parameters needed for Enumeration of all status codes returned by the higher level
977 interface functions.
978
979 -------------------------------------------------------------------------- */
980
981typedef struct sMacOpenParameters
982{
983 tANI_U16 maxStation;
984 tANI_U16 maxBssId;
985 tANI_U32 frameTransRequired;
986 tDriverType driverType;
987} tMacOpenParameters;
988
Jeff Johnson295189b2012-06-20 16:38:30 -0700989typedef struct sHalMacStartParameters
990{
991 // parametes for the Firmware
992 //tHalFirmwareParameters FW;
993 tDriverType driverType;
994
995} tHalMacStartParameters;
Jeff Johnson295189b2012-06-20 16:38:30 -0700996
997// -------------------------------------------------------------------
998/// MAC Sirius parameter structure
999typedef struct sAniSirGlobal
1000
1001{
1002 tDriverType gDriverType;
Jeff Johnson295189b2012-06-20 16:38:30 -07001003
1004 // we should be able to save this hddHandle in here and deprecate
1005 // the pAdapter. For now, compiles are a problem because there
1006 // are dependencides on the header files that are not handling the
1007 // compiler very gracefully.
1008// tHddHandle hHdd; // Handle to the HDD.
1009 //void *hHdd;
1010 void *pAdapter; // deprecate this pAdapter pointer eventually...
1011 // all interfaces to the HDD should pass hHdd, which
1012 // is stored in this struct above.....
1013 tSirMbMsg* pResetMsg;
1014 tAniSirCfg cfg;
1015 tAniSirLim lim;
Jeff Johnson295189b2012-06-20 16:38:30 -07001016 tAniSirPmm pmm;
1017 tAniSirSch sch;
1018 tAniSirSys sys;
1019 tAniSirUtils utils;
Jeff Johnson295189b2012-06-20 16:38:30 -07001020 // PAL/HDD handle
1021 tHddHandle hHdd;
1022
1023#ifdef ANI_DVT_DEBUG
1024 tAniSirDvt dvt;
1025#endif
1026
1027 tSmeStruct sme;
1028 tCsrScanStruct scan;
1029 tCsrRoamStruct roam;
1030
Jeff Johnsone7245742012-09-05 17:12:55 -07001031#ifdef FEATURE_OEM_DATA_SUPPORT
1032 tOemDataStruct oemData;
1033#endif
Gopichand Nakkalab977a972013-02-18 19:15:09 -08001034#ifdef FEATURE_WLAN_TDLS_INTERNAL
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001035 tCsrTdlsCtxStruct tdlsCtx ;
1036#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001037 tPmcInfo pmc;
1038 tSmeBtcInfo btc;
Jeff Johnson295189b2012-06-20 16:38:30 -07001039
1040 tCcm ccm;
1041
1042#if defined WLAN_FEATURE_VOWIFI
1043 tRrmContext rrm;
1044#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001045#ifdef WLAN_FEATURE_CONCURRENT_P2P
1046 tp2pContext p2pContext[MAX_NO_OF_P2P_SESSIONS];
1047#else
1048 tp2pContext p2pContext;
1049#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001050
1051#if defined WLAN_FEATURE_VOWIFI_11R
1052 tftContext ft;
1053#endif
1054
1055 tANI_U32 gCurrentLogSize;
1056 tANI_U32 menuCurrent;
1057 /* logDump specific */
1058 tANI_U32 dumpTablecurrentId;
1059 /* Instead of static allocation I will dyanamically allocate memory for dumpTableEntry
1060 Thinking of using linkedlist */
1061 tDumpModuleEntry *dumpTableEntry[MAX_DUMP_TABLE_ENTRY];
Gopichand Nakkalaccd3a382013-03-19 13:56:10 -07001062#ifdef FEATURE_WLAN_TDLS
1063 v_BOOL_t isTdlsPowerSaveProhibited;
1064#endif
Gopichand Nakkala86e42662013-06-11 17:44:11 +05301065 tANI_U8 fScanOffload;
krunal sonie9002db2013-11-25 14:24:17 -08001066 tANI_U8 isCoalesingInIBSSAllowed;
Tushnim Bhattacharyyaed4d0c22014-01-30 11:56:44 -08001067 tANI_U32 fEnableDebugLog;
Rashmi Ramanna68b309c2014-05-20 11:52:22 +05301068 tANI_U32 fDeferIMPSTime;
1069 tANI_BOOLEAN deferImps;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05301070
1071#ifdef WLAN_FEATURE_11AC
1072 /* Alow Mu BFormee session only if MU BF session doesnt exist.
1073 */
1074 v_BOOL_t isMuBfsessionexist;
1075#endif
1076
c_hpothu3ba2a512014-08-06 14:02:54 +05301077 v_BOOL_t isCoexScoIndSet;
Ganesh Kondabattini8f6e3b32014-08-25 16:07:54 +05301078 v_U8_t miracast_mode;
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05301079 v_U8_t fBtcEnableIndTimerVal;
Girish Gowli1c2fc802015-01-19 16:18:07 +05301080#ifdef DEBUG_ROAM_DELAY
1081 v_U8_t roamDelayStatsEnabled;
1082#endif //#ifdef DEBUG_ROAM_DELAY
Jeff Johnson295189b2012-06-20 16:38:30 -07001083} tAniSirGlobal;
1084
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001085#ifdef FEATURE_WLAN_TDLS
Jeff Johnson295189b2012-06-20 16:38:30 -07001086
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001087#define RFC1042_HDR_LENGTH (6)
1088#define GET_BE16(x) ((tANI_U16) (((x)[0] << 8) | (x)[1]))
1089#define ETH_TYPE_89_0d (0x890d)
1090#define ETH_TYPE_LEN (2)
1091#define PAYLOAD_TYPE_TDLS_SIZE (1)
1092#define PAYLOAD_TYPE_TDLS (2)
1093
1094#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001095
1096#endif /* _ANIGLOBAL_H */
1097