blob: 9a5dfeaa2c1f0d08e42306f183927b57f5db06d5 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08002 * Copyright (c) 2012-2013, 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 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080042/** ------------------------------------------------------------------------- *
43 ------------------------------------------------------------------------- *
Jeff Johnson295189b2012-06-20 16:38:30 -070044
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080045
Jeff Johnson295189b2012-06-20 16:38:30 -070046 \file csrInternal.h
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080047
Jeff Johnson295189b2012-06-20 16:38:30 -070048 Define internal data structure for MAC.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080049
50 Copyright (C) 2006 Airgo Networks, Incorporated
Jeff Johnson295189b2012-06-20 16:38:30 -070051 ========================================================================== */
52#ifndef CSRINTERNAL_H__
53#define CSRINTERNAL_H__
54
Jeff Johnson295189b2012-06-20 16:38:30 -070055#include "vos_status.h"
56#include "vos_lock.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070057
58#include "palTimer.h"
59#include "csrSupport.h"
60#include "vos_nvitem.h"
61#include "wlan_qct_tl.h"
62
63#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
64#include "csrNeighborRoam.h"
65#endif
66
67#define CSR_MAX_STA (HAL_NUM_STA)
68
69#define CSR_SME_SCAN_FLAGS_DELETE_CACHE 0x80
70
71#define CSR_TITAN_MAX_RATE_MIMO_CB 240
72#define CSR_TITAN_MAX_RATE_MIMO 126
73
74//define scan return criteria. LIM should use these define as well
75#define CSR_SCAN_RETURN_AFTER_ALL_CHANNELS ( 0 )
76#define CSR_SCAN_RETURN_AFTER_FIRST_MATCH ( 0x01 )
77#define CSR_SCAN_RETURN_AFTER_5_BAND_11d_FOUND ( 0x80 )
78#define CSR_SCAN_RETURN_AFTER_24_BAND_11d_FOUND ( 0x40 )
79#define CSR_SCAN_RETURN_AFTER_EITHER_BAND_11d_FOUND ( CSR_SCAN_RETURN_AFTER_5_BAND_11d_FOUND | CSR_SCAN_RETURN_AFTER_24_BAND_11d_FOUND )
Madan Mohan Koyyalamudi4c8c6352012-10-15 16:40:16 -070080#define CSR_NUM_RSSI_CAT 15
Jeff Johnson295189b2012-06-20 16:38:30 -070081#define CSR_MAX_STATISTICS_REQ 10
82
83//Support for multiple session
84#define CSR_SESSION_ID_INVALID 0xFF // session ID invalid
85#define CSR_ROAM_SESSION_MAX 5 // No of sessions to be supported, and a
86 // session is for Infra, IBSS or BT-AMP
87
88#define CSR_IS_SESSION_VALID( pMac, sessionId ) ( ( (sessionId) < CSR_ROAM_SESSION_MAX ) \
89 && ( (pMac)->roam.roamSession[(sessionId)].sessionActive ) )
90#define CSR_GET_SESSION( pMac, sessionId ) \
91( \
92 (sessionId < CSR_ROAM_SESSION_MAX) ? \
93 (&(pMac)->roam.roamSession[(sessionId)]) :\
94 NULL \
95)
96
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -080097#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
98#define CSR_IS_ROAM_PREFER_5GHZ( pMac ) \
99( \
100 (((pMac)->roam.configParam.nRoamPrefer5GHz)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \
101)
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -0700102#define CSR_IS_ROAM_INTRA_BAND_ENABLED( pMac ) \
103( \
104 (((pMac)->roam.configParam.nRoamIntraBand)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \
105)
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -0800106#endif
107
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700108#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
109#define CSR_IS_ROAM_SCAN_OFFLOAD_ENABLED( pMac ) \
110( \
111 (((pMac)->roam.configParam.isRoamOffloadScanEnabled)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \
112)
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700113
114#define CSR_IS_FASTROAM_IN_CONCURRENCY_INI_FEATURE_ENABLED( pMac ) \
115( \
116 (((pMac)->roam.configParam.bFastRoamInConIniFeatureEnabled)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \
117)
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700118#endif
119
Madan Mohan Koyyalamudi470d2cf2012-09-28 14:43:44 -0700120//Support for "Fast roaming" (i.e., CCX, LFR, or 802.11r.)
121#define CSR_BG_SCAN_OCCUPIED_CHANNEL_LIST_LEN 15
Jeff Johnson295189b2012-06-20 16:38:30 -0700122
123typedef enum
124{
125 //eCSR_CFG_DOT11_MODE_BEST = 0,
126 eCSR_CFG_DOT11_MODE_TAURUS = 0,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800127 eCSR_CFG_DOT11_MODE_ABG,
128 eCSR_CFG_DOT11_MODE_11A,
129 eCSR_CFG_DOT11_MODE_11B,
130 eCSR_CFG_DOT11_MODE_11G,
131 eCSR_CFG_DOT11_MODE_11N,
132 eCSR_CFG_DOT11_MODE_POLARIS,
133 eCSR_CFG_DOT11_MODE_TITAN,
Jeff Johnsone7245742012-09-05 17:12:55 -0700134#ifdef WLAN_FEATURE_11AC
135 eCSR_CFG_DOT11_MODE_11AC,
136#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800137 eCSR_CFG_DOT11_MODE_11G_ONLY,
138 eCSR_CFG_DOT11_MODE_11N_ONLY,
Jeff Johnsone7245742012-09-05 17:12:55 -0700139#ifdef WLAN_FEATURE_11AC
140 eCSR_CFG_DOT11_MODE_11AC_ONLY,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800141#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700142 //This value can never set to CFG. It is for CSR's internal use
143 eCSR_CFG_DOT11_MODE_AUTO,
144}eCsrCfgDot11Mode; //Used to determine what to set to the WNI_CFG_DOT11_MODE
145
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800146typedef enum etCsrRoamCommands
Jeff Johnson295189b2012-06-20 16:38:30 -0700147{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800148 eCsrRoamNoCommand,
Jeff Johnson295189b2012-06-20 16:38:30 -0700149 eCsrRoamCommandScan,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800150 eCsrRoamCommandRoam,
151 eCsrRoamCommandWmStatusChange,
Jeff Johnson295189b2012-06-20 16:38:30 -0700152 eCsrRoamCommandSetKey,
153 eCsrRoamCommandRemoveKey,
154
155} eCsrRoamCommands;
156
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800157typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700158{
159 eCsrScanOther = 1,
160 eCsrScanLostLink1,
161 eCsrScanLostLink2,
162 eCsrScanLostLink3,
163 eCsrScanLostLink4,
164 eCsrScan11d1, //First 11d scan
165 eCsrScan11d2, //First 11d scan has failed
166 eCsrScan11dDone, //11d scan succeeded, try the rest of the channel
167 eCsrScanUserRequest,
168 eCsrScanGetResult,
169 eCsrScanSetBGScanParam, //used for HO too - bg scan request in NT Handoff sub-state
170 eCsrScanForSsid,
171 eCsrScanForCapsChange,
172 eCsrScanBGScanAbort,
173 eCsrScanBGScanEnable,
174 eCsrScanIdleScan,
175 eCsrScanGetScanChnInfo, //To get the list of channels scanned
176
177 eCsrScanBgScan, // bg scan request in NRT & RT Handoff sub-states
178 eCsrScanProbeBss, // directed probe on an entry from the candidate list - HO
179 eCsrScanAbortBgScan, //aborting a BG scan (meaning the scan is triggered by LIM timer)
180 eCsrScanAbortNormalScan, //aborting a normal scan (the scan is trigger by eWNI_SME_SCAN_REQ)
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700181 eCsrScanP2PFindPeer,
182 eCsrScanGetLfrResult, // get the LFR candidates from PE scan cache
Jeff Johnson295189b2012-06-20 16:38:30 -0700183}eCsrScanReason;
184
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800185typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700186{
187 eCsrNoConnection, // Roaming because we have not established the initial connection.
188 eCsrCapsChange, // roaming because LIM reported a Capability change in the associated AP.
189 eCsrForcedDisassoc, // roaming becuase someone asked us to Disassoc and stay disassociated.
190 eCsrHddIssued, // roaming because an 802.11 request was issued to the driver.
191 eCsrLostLink1, // roaming because we lost link to an associated AP
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800192 eCsrLostLink2,
Jeff Johnson295189b2012-06-20 16:38:30 -0700193 eCsrLostLink3,
194 eCsrForcedDisassocMICFailure, // roaming because we need to force a Disassoc due to MIC failure
195 eCsrHddIssuedReassocToSameAP,
196 eCsrSmeIssuedReassocToSameAP,
197 eCsrSmeIssuedReassocToDiffAP,
198 eCsrForcedDeauth, // roaming becuase someone asked us to deauth and stay disassociated.
199 eCsrSmeIssuedDisassocForHandoff, // will be issued by Handoff logic to disconect from current AP
200 eCsrSmeIssuedAssocToSimilarAP, // will be issued by Handoff logic to join a new AP with same profile
201 eCsrSmeIssuedIbssJoinFailure, // ibss join timer fired before any perr showed up, so shut down the network
202 eCsrForcedIbssLeave,
203 eCsrStopBss,
204 eCsrSmeIssuedFTReassoc,
205 eCsrForcedDisassocSta,
206 eCsrForcedDeauthSta,
Madan Mohan Koyyalamudi286b60e2012-10-11 12:59:07 -0700207 eCsrPerformPreauth,
Venkata Prathyusha Kuntupalli239278b2013-03-26 15:58:18 -0700208 eCsrLostLink1Abort,
209 eCsrLostLink2Abort,
210 eCsrLostLink3Abort,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800211
Jeff Johnson295189b2012-06-20 16:38:30 -0700212}eCsrRoamReason;
213
214typedef enum
215{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800216 eCSR_ROAM_SUBSTATE_NONE = 0,
217 eCSR_ROAM_SUBSTATE_START_BSS_REQ,
218 eCSR_ROAM_SUBSTATE_JOIN_REQ,
219 eCSR_ROAM_SUBSTATE_REASSOC_REQ,
220 eCSR_ROAM_SUBSTATE_DISASSOC_REQ,
221 eCSR_ROAM_SUBSTATE_STOP_BSS_REQ,
222 eCSR_ROAM_SUBSTATE_DISCONNECT_CONTINUE_ROAMING, //Continue the current roam command after disconnect
223 eCSR_ROAM_SUBSTATE_AUTH_REQ,
224 eCSR_ROAM_SUBSTATE_CONFIG,
225 eCSR_ROAM_SUBSTATE_DEAUTH_REQ,
226 eCSR_ROAM_SUBSTATE_DISASSOC_NOTHING_TO_JOIN,
227 eCSR_ROAM_SUBSTATE_DISASSOC_REASSOC_FAILURE,
228 eCSR_ROAM_SUBSTATE_DISASSOC_FORCED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700229 eCSR_ROAM_SUBSTATE_WAIT_FOR_KEY,
230 eCSR_ROAM_SUBSTATE_DISASSOC_HANDOFF,
231 eCSR_ROAM_SUBSTATE_JOINED_NO_TRAFFIC,
232 eCSR_ROAM_SUBSTATE_JOINED_NON_REALTIME_TRAFFIC,
233 eCSR_ROAM_SUBSTATE_JOINED_REALTIME_TRAFFIC,
234// max is 15 unless the bitfield is expanded...
235} eCsrRoamSubState;
236
237
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800238typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700239{
240 eCSR_ROAMING_STATE_STOP = 0,
241 eCSR_ROAMING_STATE_IDLE,
242 eCSR_ROAMING_STATE_SCANNING,
243 eCSR_ROAMING_STATE_JOINING,
244 eCSR_ROAMING_STATE_JOINED,
245}eCsrRoamState;
246
247
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800248typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700249{
250 eCsrContinueRoaming,
251 eCsrStopRoaming,
252 eCsrStartIbss,
253 eCsrStartIbssSameIbss,
254 eCsrReassocToSelfNoCapChange,
Jeff Johnsone7245742012-09-05 17:12:55 -0700255 eCsrStopRoamingDueToConcurrency,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800256
Jeff Johnson295189b2012-06-20 16:38:30 -0700257}eCsrJoinState;
258
259typedef enum
260{
261 eCsrNotRoaming,
262 eCsrLostlinkRoamingDisassoc,
263 eCsrLostlinkRoamingDeauth,
264 eCsrDynamicRoaming,
265 eCsrReassocRoaming,
266}eCsrRoamingReason;
267
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800268typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700269{
270 eCsrDisassociated,
271 eCsrDeauthenticated
272
273}eCsrRoamWmStatusChangeTypes;
274
275typedef enum
276{
277 eCsrSummaryStats = 0,
278 eCsrGlobalClassAStats,
279 eCsrGlobalClassBStats,
280 eCsrGlobalClassCStats,
281 eCsrGlobalClassDStats,
282 eCsrPerStaStats,
283 eCsrMaxStats
284}eCsrRoamStatsClassTypes;
285
286#ifdef FEATURE_WLAN_DIAG_SUPPORT
287typedef enum
288{
289 eCSR_WLAN_STATUS_CONNECT =0,
290 eCSR_WLAN_STATUS_DISCONNECT
291
292}eCsrDiagWlanStatusEventSubtype;
293
294typedef enum
295{
296 eCSR_REASON_UNSPECIFIED = 0,
297 eCSR_REASON_USER_REQUESTED,
298 eCSR_REASON_MIC_ERROR,
299 eCSR_REASON_DISASSOC,
300 eCSR_REASON_DEAUTH,
301 eCSR_REASON_HANDOFF,
302
303}eCsrDiagWlanStatusEventReason;
304
305typedef enum
306{
307 eCSR_WLAN_HANDOFF_EVENT =0,
308
309}eCsrDiagWlanHandoffEventSubtype;
310
311typedef enum
312{
313 eCSR_WLAN_VCC_EVENT =0,
314
315}eCsrDiagWlanVccEventSubtype;
316
317#endif //FEATURE_WLAN_DIAG_SUPPORT
318
319typedef struct tagCsrChannel
320{
321 tANI_U8 numChannels;
322 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
323}tCsrChannel;
324
325typedef struct tagScanProfile
326{
327 tANI_U32 minChnTime;
328 tANI_U32 maxChnTime;
329 tANI_U32 restTime; //This is ignored if not associated
330 tANI_U32 numOfChannels;
331 tANI_U8 *pChannelList;
332 tSirScanType scanType; //active or passive
333 eCsrRoamBssType bssType; //BSS or IBSS
334 tANI_U8 ssid[WNI_CFG_SSID_LEN];
335 tANI_U8 bReturnAfter1stMatch;
336 tANI_U8 fUniqueResult;
337 tANI_U8 freshScan;
338 tCsrBssid bssid;
339}tScanProfile;
340
341typedef struct tagBssConfigParam
342{
343 eCsrMediaAccessType qosType;
344 tSirMacSSid SSID;
345 tANI_U32 uRTSThresh;
346 tANI_U32 uDeferThresh; //
347 eCsrCfgDot11Mode uCfgDot11Mode;
348 eCsrBand eBand;
349 tANI_U8 standardRate[CSR_DOT11_SUPPORTED_RATES_MAX];
350 tANI_U8 extendedRate[CSR_DOT11_EXTENDED_SUPPORTED_RATES_MAX];
351 eCsrExposedTxRate txRate;
352 tAniAuthType authType;
353 eCsrEncryptionType encType;
354 tANI_U32 uShortSlotTime;
355 tANI_U32 uHTSupport; //High throughput
356 tANI_U32 uPowerLimit;
357 tANI_U32 uHeartBeatThresh;
358 tANI_U32 uJoinTimeOut;
359 tSirMacCapabilityInfo BssCap;
360 tANI_BOOLEAN f11hSupport;
Jeff Johnsone7245742012-09-05 17:12:55 -0700361 ePhyChanBondState cbMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700362}tBssConfigParam;
363
364
365typedef struct tagCsrRoamStartBssParams
366{
367 tSirMacSSid ssId;
368 tCsrBssid bssid; //this is the BSSID for the party we want to join (only use for IBSS or WDS)
369 tSirNwType sirNwType;
Jeff Johnsone7245742012-09-05 17:12:55 -0700370 ePhyChanBondState cbMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700371 tSirMacRateSet operationalRateSet;
372 tSirMacRateSet extendedRateSet;
373 tANI_U8 operationChn;
374 eCsrCfgDot11Mode uCfgDot11Mode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700375 tANI_U8 privacy;
376 tANI_BOOLEAN fwdWPSPBCProbeReq;
377 tANI_BOOLEAN protEnabled;
378 tANI_BOOLEAN obssProtEnabled;
379 tAniAuthType authType;
380 tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller.
381 tANI_U16 ht_protection;
382 tANI_U32 dtimPeriod;
383 tANI_U8 ApUapsdEnable;
384 tANI_U8 ssidHidden;
385 tANI_U8 wps_state;
Jeff Johnson295189b2012-06-20 16:38:30 -0700386 tVOS_CON_MODE bssPersona;
387 tANI_U16 nRSNIELength; //The byte count in the pRSNIE, if 0, pRSNIE is ignored.
388 tANI_U8 *pRSNIE; //If not null, it has the IE byte stream for RSN
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800389 tANI_BOOLEAN updatebeaconInterval; //Flag used to indicate update
390 // beaconInterval
Jeff Johnson295189b2012-06-20 16:38:30 -0700391}tCsrRoamStartBssParams;
392
393
394typedef struct tagScanCmd
395{
396 tANI_U32 scanID;
397 csrScanCompleteCallback callback;
398 void *pContext;
399 eCsrScanReason reason;
400 eCsrRoamState lastRoamState[CSR_ROAM_SESSION_MAX];
401 tCsrRoamProfile *pToRoamProfile;
402 tANI_U32 roamId; //this is the ID related to the pToRoamProfile
403 union
404 {
405 tCsrScanRequest scanRequest;
406 tCsrBGScanRequest bgScanRequest;
407 }u;
408}tScanCmd;
409
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800410typedef struct tagRoamCmd
Jeff Johnson295189b2012-06-20 16:38:30 -0700411{
412 tANI_U32 roamId;
413 eCsrRoamReason roamReason;
414 tCsrRoamProfile roamProfile;
415 tScanResultHandle hBSSList; //BSS list fits the profile
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800416 tListElem *pRoamBssEntry; //point to the current BSS in the list that is roaming. It starts from head to tail
Jeff Johnson295189b2012-06-20 16:38:30 -0700417 tSirBssDescription *pLastRoamBss; //the last BSS we try and failed
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800418 tANI_BOOLEAN fReleaseBssList; //whether to free hBSSList
Jeff Johnson295189b2012-06-20 16:38:30 -0700419 tANI_BOOLEAN fReleaseProfile; //whether to free roamProfile
420 tANI_BOOLEAN fReassoc; //whether this command is for reassociation
421 tANI_BOOLEAN fUpdateCurRoamProfile; //whether pMac->roam.pCurRoamProfile needs to be updated
422 //this is for CSR internal used only. And it should not be assigned when creating the command
423 //This causes the roam command not to do anything.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800424 tANI_BOOLEAN fReassocToSelfNoCapChange;
Jeff Johnson295189b2012-06-20 16:38:30 -0700425
426 tANI_BOOLEAN fStopWds;
427 tSirMacAddr peerMac;
428 tSirMacReasonCodes reason;
429}tRoamCmd;
430
431typedef struct tagSetKeyCmd
432{
433 tANI_U32 roamId;
434 eCsrEncryptionType encType;
435 eCsrAuthType authType;
436 tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx
437 tSirMacAddr peerMac; //Peer's MAC address. ALL 1's for group key
438 tANI_U8 paeRole; //0 for supplicant
439 tANI_U8 keyId; // Kye index
440 tANI_U8 keyLength; //Number of bytes containing the key in pKey
441 tANI_U8 Key[CSR_MAX_KEY_LEN];
442 tANI_U8 keyRsc[CSR_MAX_RSC_LEN];
443} tSetKeyCmd;
444
445typedef struct tahRemoveKeyCmd
446{
447 tANI_U32 roamId;
448 eCsrEncryptionType encType;
449 eCsrAuthType authType;
450 tSirMacAddr peerMac; //Peer's MAC address. ALL 1's for group key
451 tANI_U8 keyId; //key index
452} tRemoveKeyCmd;
453
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800454typedef struct tagWmStatusChangeCmd
Jeff Johnson295189b2012-06-20 16:38:30 -0700455{
456 eCsrRoamWmStatusChangeTypes Type;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800457 union
458 {
Jeff Johnson295189b2012-06-20 16:38:30 -0700459 tSirSmeDeauthInd DeauthIndMsg;
460 tSirSmeDisassocInd DisassocIndMsg;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800461 }u;
Jeff Johnson295189b2012-06-20 16:38:30 -0700462
463}tWmStatusChangeCmd;
464
465typedef struct tagAddStaForSessionCmd
466{
467 //Session self mac addr
468 tSirMacAddr selfMacAddr;
469}tAddStaForSessionCmd;
470
471typedef struct tagDelStaForSessionCmd
472{
473 //Session self mac addr
474 tSirMacAddr selfMacAddr;
475 csrRoamSessionCloseCallback callback;
476 void *pContext;
477}tDelStaForSessionCmd;
478
479//This structure represents one scan request
480typedef struct tagCsrCmd
481{
482 tListElem Link;
483 eCsrRoamCommands command;
484 tANI_U8 sessionId; // Session ID for this command
485 union
486 {
487 tScanCmd scanCmd;
488 tRoamCmd roamCmd;
489 tWmStatusChangeCmd wmStatusChangeCmd;
490 tSetKeyCmd setKeyCmd;
491 tRemoveKeyCmd removeKeyCmd;
492 tAddStaForSessionCmd addStaSessionCmd;
493 tDelStaForSessionCmd delStaSessionCmd;
494 }u;
495}tCsrCmd;
496
497#ifdef WLAN_FEATURE_VOWIFI_11R
498typedef struct tagCsr11rConfig
499{
500 tANI_BOOLEAN IsFTResourceReqSupported;
501} tCsr11rConfig;
502#endif
503
504#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
505typedef struct tagCsrNeighborRoamConfig
506{
507 tANI_U32 nNeighborScanTimerPeriod;
508 tANI_U8 nNeighborLookupRssiThreshold;
509 tANI_U8 nNeighborReassocRssiThreshold;
510 tANI_U16 nNeighborScanMinChanTime;
511 tANI_U16 nNeighborScanMaxChanTime;
512 sCsrChannel neighborScanChanList;
513 tANI_U8 nMaxNeighborRetries;
514 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowdade697412013-02-14 16:31:48 -0800515 tANI_U16 nEmptyScanRefreshPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -0700516}tCsrNeighborRoamConfig;
517#endif
518
519typedef struct tagCsrConfig
520{
521 tANI_U32 agingCount;
522 tANI_U32 FragmentationThreshold;
523 tANI_U32 channelBondingMode24GHz;
524 tANI_U32 channelBondingMode5GHz;
525 tANI_U32 RTSThreshold;
526 eCsrPhyMode phyMode;
527 eCsrCfgDot11Mode uCfgDot11Mode;
528 eCsrBand eBand;
529 tANI_U32 HeartbeatThresh50;
530 tANI_U32 HeartbeatThresh24;
531 tANI_U32 bgScanInterval;
532 eCsrCBChoice cbChoice;
533 eCsrBand bandCapability; //indicate hw capability
534 eCsrRoamWmmUserModeType WMMSupportMode;
535 tANI_BOOLEAN Is11eSupportEnabled;
536 tANI_BOOLEAN Is11dSupportEnabled;
537 tANI_BOOLEAN Is11dSupportEnabledOriginal;
538 tANI_BOOLEAN Is11hSupportEnabled;
539 tANI_BOOLEAN shortSlotTime;
540 tANI_BOOLEAN ProprietaryRatesEnabled;
541 tANI_BOOLEAN fenableMCCMode;
542 tANI_U16 TxRate;
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800543 tANI_U8 fAllowMCCGODiffBI;
Jeff Johnson295189b2012-06-20 16:38:30 -0700544 tANI_U8 AdHocChannel24;
545 tANI_U8 AdHocChannel5G;
546 tANI_U32 impsSleepTime; //in units of microseconds
547 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
548 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
549 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
550 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
551 tANI_U32 BssPreferValue[CSR_NUM_RSSI_CAT]; //each RSSI category has one value
552 int RSSICat[CSR_NUM_RSSI_CAT];
553 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
554 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up, 0 means no roaming
555 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800556 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -0700557 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800558 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -0700559 //Country Code Priority
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800560 //0 = 802.11D > Configured Country > NV
Jeff Johnson295189b2012-06-20 16:38:30 -0700561 //1 = Configured Country > 802.11D > NV
562 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800563 //When true, AP with unknown country code won't be see.
564 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
Jeff Johnson295189b2012-06-20 16:38:30 -0700565 //find a domain for the country code in its 11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800566 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700567 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
568 //code", or the doamin of the country code doesn't match the default domain, the Ap is
569 //not acceptable.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800570 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -0700571
572 tANI_U16 vccRssiThreshold;
573 tANI_U32 vccUlMacLossThreshold;
574
575 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
576 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
577 tANI_U32 nActiveMinChnTime; //in units of milliseconds
578 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800579
580 tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds
581 tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -0700582 tANI_U8 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700583#ifdef WLAN_AP_STA_CONCURRENCY
584 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
585 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
586 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
587 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
588 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700589 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
590 //Sta in each split scan operation
591 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
592 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700593#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700594
595 tANI_BOOLEAN IsIdleScanEnabled;
596 //in dBm, the maximum TX power
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800597 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -0700598 //If 11d is disable, the lesser of this and default setting.
599 tANI_U8 nTxPowerCap;
600 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
601 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
Jeff Johnson295189b2012-06-20 16:38:30 -0700602 tANI_U32 dtimPeriod;
603 tANI_BOOLEAN ssidHidden;
Jeff Johnson295189b2012-06-20 16:38:30 -0700604
605#ifdef WLAN_FEATURE_VOWIFI_11R
606 tCsr11rConfig csr11rConfig;
607#endif
608
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700609#ifdef FEATURE_WLAN_LFR
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700610 tANI_U8 isFastRoamIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700611#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700612 tANI_U8 isRoamOffloadScanEnabled;
613 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700614#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700615#endif
616
Jeff Johnson295189b2012-06-20 16:38:30 -0700617#ifdef FEATURE_WLAN_CCX
618 tANI_U8 isCcxIniFeatureEnabled;
619#endif
620
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700621#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -0700622 tANI_U8 isFastTransitionEnabled;
623 tANI_U8 RoamRssiDiff;
624 tANI_U8 nImmediateRoamRssiDiff;
625 tANI_BOOLEAN nRoamPrefer5GHz;
626 tANI_BOOLEAN nRoamIntraBand;
627 tANI_BOOLEAN isWESModeEnabled;
628 tANI_BOOLEAN nRoamScanControl;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -0700629 tANI_U8 nProbes;
630 tANI_U16 nRoamScanHomeAwayTime;
Jeff Johnson295189b2012-06-20 16:38:30 -0700631#endif
632
633#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
634 tCsrNeighborRoamConfig neighborRoamConfig;
635#endif
636
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800637 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -0700638 * This is mandated by WMM-AC certification */
639 tANI_BOOLEAN addTSWhenACMIsOff;
640
641 tANI_BOOLEAN fValidateList;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800642 //Remove this code once SLM_Sessionization is supported
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -0700643 //BMPS_WORKAROUND_NOT_NEEDED
Jeff Johnsone7245742012-09-05 17:12:55 -0700644 tANI_BOOLEAN doBMPSWorkaround;
Jeff Johnson295189b2012-06-20 16:38:30 -0700645
646 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
647 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -0700648#ifdef WLAN_FEATURE_11AC
649 tANI_U32 nVhtChannelWidth;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -0800650 tANI_U8 txBFEnable;
Shailender Karmuchicc3fe442013-02-16 18:18:33 -0800651 tANI_U8 txBFCsnValue;
Ravi Joshi83bfaa12013-05-28 22:12:08 -0700652 tANI_BOOLEAN enableVhtFor24GHz;
Jeff Johnsone7245742012-09-05 17:12:55 -0700653#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -0800654 tANI_U8 txLdpcEnable;
Jeff Johnson295189b2012-06-20 16:38:30 -0700655
656}tCsrConfig;
657
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800658typedef struct tagCsrChannelPowerInfo
Jeff Johnson295189b2012-06-20 16:38:30 -0700659{
660 tListElem link;
661 tANI_U8 firstChannel;
662 tANI_U8 numChannels;
663 tANI_U8 txPower;
664 tANI_U8 interChannelOffset;
665}tCsrChannelPowerInfo;
666
667typedef struct tagRoamJoinStatus
668{
669 tSirResultCodes statusCode;
670 //this is set to unspecified if statusCode indicates timeout. Or it is the failed reason from the other BSS(per 802.11 spec)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800671 tANI_U32 reasonCode;
Kiran Kumar Lokerec8550fa2013-04-15 22:23:00 -0700672 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -0700673}tCsrRoamJoinStatus;
674
675typedef struct tagCsrOsChannelMask
676{
677 tANI_U8 numChannels;
678 tANI_BOOLEAN scanEnabled[WNI_CFG_VALID_CHANNEL_LIST_LEN];
679 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
680}tCsrOsChannelMask;
681
682
683typedef struct tagCsrScanStruct
684{
685 tScanProfile scanProfile;
686 tANI_U32 nextScanID;
Madan Mohan Koyyalamudica43cdf2012-09-24 13:15:49 -0700687 tDblLinkList scanResultList;
Jeff Johnson295189b2012-06-20 16:38:30 -0700688 tDblLinkList tempScanResults;
689 tANI_BOOLEAN fScanEnable;
690 tANI_BOOLEAN fFullScanIssued;
691 tPalTimerHandle hTimerGetResult;
692#ifdef WLAN_AP_STA_CONCURRENCY
693 tPalTimerHandle hTimerStaApConcTimer;
694#endif
695 tPalTimerHandle hTimerIdleScan;
696 tPalTimerHandle hTimerResultAging;
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -0800697 tPalTimerHandle hTimerResultCfgAging;
Jeff Johnson295189b2012-06-20 16:38:30 -0700698 tPalTimerHandle hTimerBgScan;
699 //changes on every scan, it is used as a flag for whether 11d info is found on every scan
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -0800700 tANI_U8 channelOf11dInfo;
701 tANI_U8 scanResultCfgAgingTime;
Jeff Johnson295189b2012-06-20 16:38:30 -0700702 //changes on every scan, a flag to tell whether conflict 11d info found on each BSS
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800703 tANI_BOOLEAN fAmbiguous11dInfoFound;
Jeff Johnson295189b2012-06-20 16:38:30 -0700704 //Tush: changes on every scan, a flag to tell whether the applied 11d info present in one of the scan results
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800705 tANI_BOOLEAN fCurrent11dInfoMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700706 tANI_BOOLEAN f11dInfoReset; //to indicate whether the 11d info in CFG is reset to default
707 tSirScanType curScanType;
708 tCsrChannel baseChannels; //This are all the supported channels AND(&) to the current eBand
709 tCsrChannel channels11d;
710 tChannelListWithPower defaultPowerTable[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV
711 tChannelListWithPower defaultPowerTable40MHz[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV
712 tANI_U32 numChannelsDefault; //total channels of NV
713 tCsrChannel base20MHzChannels; //The channel base to work on
714 tCsrChannel base40MHzChannels; //center channels for 40MHz channels
715 tDblLinkList channelPowerInfoList24;
716 tDblLinkList channelPowerInfoList5G;
717 tANI_U32 nLastAgeTimeOut;
718 tANI_U32 nAgingCountDown;
Gopichand Nakkala114718f2013-03-25 19:19:46 -0700719 tANI_U8 countryCodeDefault[WNI_CFG_COUNTRY_CODE_LEN]; //The country code from NV
720 tANI_U8 countryCodeCurrent[WNI_CFG_COUNTRY_CODE_LEN];
721 tANI_U8 countryCode11d[WNI_CFG_COUNTRY_CODE_LEN];
Jeff Johnson295189b2012-06-20 16:38:30 -0700722 v_REGDOMAIN_t domainIdDefault; //default regulatory domain
723 v_REGDOMAIN_t domainIdCurrent; //current regulatory domain
724 tANI_BOOLEAN f11dInfoApplied;
725 tANI_BOOLEAN fCancelIdleScan;
726#ifdef FEATURE_WLAN_WAPI
727// tANI_U16 NumBkidCandidate;
728// tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED]; /* Move this as part of SessionEntry */
729#endif /* FEATURE_WLAN_WAPI */
730 tANI_U8 numBGScanChannel; //number of valid channels in the bgScanChannelList
731 tANI_U8 bgScanChannelList[WNI_CFG_BG_SCAN_CHANNEL_LIST_LEN];
732 //the ChannelInfo member is not used in this structure.
733 //numBGScanChannel and bgScanChannelList are used for the BG scan channel info
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800734 tCsrBGScanRequest bgScanParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700735 tANI_BOOLEAN fRestartIdleScan;
736 tANI_U32 nIdleScanTimeGap; //the time since last trying to trigger idle scan
737 tCsrOsChannelMask osScanChannelMask;//keep a track of channels to be scnned while in traffic condition
738 tANI_U16 nBssLimit; //the maximum number of BSS in scan cache
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800739 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -0700740 * detect when it happens. Adding this into code because we can't reproduce it easily.
741 * We don't know when it happens. */
742 tANI_BOOLEAN fValidateList;
743 /*Customer wants to start with an active scan based on the default country code.
744 * This optimization will minimize the driver load to association time.
745 * Based on this flag we will bypass the initial passive scan needed for 11d
746 * to determine the country code & domain */
747 tANI_BOOLEAN fEnableBypass11d;
748
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800749 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
750 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -0700751 * (apprx 1.3 sec) */
752 tANI_BOOLEAN fEnableDFSChnlScan;
753
Jeff Johnsone7245742012-09-05 17:12:55 -0700754 /*
755 * To enable/disable scanning only 2.4Ghz channels on first scan
756 */
757 tANI_BOOLEAN fFirstScanOnly2GChnl;
758
Jeff Johnson295189b2012-06-20 16:38:30 -0700759 tANI_BOOLEAN fDropScanCmd; //true means we don't accept scan commands
760
761#ifdef WLAN_AP_STA_CONCURRENCY
762 tDblLinkList scanCmdPendingList;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800763#endif
Madan Mohan Koyyalamudi470d2cf2012-09-28 14:43:44 -0700764 tCsrChannel occupiedChannels; //This includes all channels on which candidate APs are found
Jeff Johnson295189b2012-06-20 16:38:30 -0700765}tCsrScanStruct;
766
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800767#ifdef FEATURE_WLAN_TDLS_INTERNAL
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800768/*
769 * struct to carry TDLS discovery info..
770 */
771typedef struct sCsrTdlsContext
772{
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800773 tDblLinkList tdlsPotentialPeerList ;
774 tANI_U16 tdlsCommonFlag ;
775 tANI_U16 tdlsCommonState ;
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800776 tANI_U16 tdlsPeerCount ;
777}tCsrTdlsCtxStruct;
778
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800779typedef struct sCsrTdlsPeerLinkInfo
780{
781 tListElem tdlsPeerStaLink ;
782 tSirTdlsPeerInfo tdlsDisPeerInfo ;
783}tCsrTdlsPeerLinkinfo ;
784#endif
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800785
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800786
787
Jeff Johnson295189b2012-06-20 16:38:30 -0700788
789//Save the connected information. This structure + connectedProfile
790//should contain all information about the connection
791typedef struct tagRoamCsrConnectedInfo
792{
793 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
794 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
795 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
796#ifdef WLAN_FEATURE_VOWIFI_11R
797 tANI_U32 nRICRspLength; //Length of the parsed RIC response IEs received in reassoc response
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800798#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700799#ifdef FEATURE_WLAN_CCX
800 tANI_U32 nTspecIeLength;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800801#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700802 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
803 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
804 //each frame starts and ends.
805 tANI_U8 staId;
806}tCsrRoamConnectedInfo;
807
808
809typedef struct tagCsrLinkQualityIndInfo
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800810{
Jeff Johnson295189b2012-06-20 16:38:30 -0700811 csrRoamLinkQualityIndCallback callback;
812 void *context;
813}tCsrLinkQualityIndInfo;
814
815typedef struct tagCsrPeStatsReqInfo
816{
817 tListElem link; /* list links */
818 tANI_U32 statsMask;
819 tANI_U32 periodicity;
820 tANI_BOOLEAN rspPending;
821 vos_timer_t hPeStatsTimer;
822 tANI_BOOLEAN timerRunning;
823 tANI_U8 staId;
824 tANI_U8 numClient;
825 tpAniSirGlobal pMac;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800826 /* To remember if the peStats timer is stopped successfully or not */
Jeff Johnson295189b2012-06-20 16:38:30 -0700827 tANI_BOOLEAN timerStopFailed;
828
829}tCsrPeStatsReqInfo;
830
831typedef struct tagCsrStatsClientReqInfo
832{
833 tListElem link; /* list links */
834 eCsrStatsRequesterType requesterId;
835 tCsrStatsCallback callback;
836 tANI_U32 periodicity;
837 void *pContext;
838 tANI_U32 statsMask;
839 tCsrPeStatsReqInfo *pPeStaEntry;
840 tANI_U8 staId;
841 vos_timer_t timer;
842 tANI_BOOLEAN timerExpired;
843 tpAniSirGlobal pMac; // TODO: Confirm this change BTAMP
844}tCsrStatsClientReqInfo;
845
846typedef struct tagCsrTlStatsReqInfo
847{
848 tANI_U32 periodicity;
849 tANI_BOOLEAN timerRunning;
850 tPalTimerHandle hTlStatsTimer;
851 tANI_U8 numClient;
852}tCsrTlStatsReqInfo;
853
854typedef struct tagCsrRoamSession
855{
856 tANI_U8 sessionId; // Session ID
857 tANI_BOOLEAN sessionActive; // TRUE if it is used
858 tCsrBssid selfMacAddr; // For BT-AMP station, this serve as BSSID for self-BSS.
859 csrRoamCompleteCallback callback;
860 void *pContext;
861 eCsrConnectState connectState;
862 tCsrRoamConnectedProfile connectedProfile;
863 tCsrRoamConnectedInfo connectedInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800864 tCsrRoamProfile *pCurRoamProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -0700865 tSirBssDescription *pConnectBssDesc;
866 tANI_U16 NumPmkidCache;
867 tPmkidCacheInfo PmkidCacheInfo[CSR_MAX_PMKID_ALLOWED];
868 tANI_U8 cJoinAttemps;
869 //This may or may not have the up-to-date valid channel list
870 //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time
871 tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
872 tANI_S32 sPendingCommands; //0 means CSR is ok to low power
873#ifdef FEATURE_WLAN_WAPI
874 tANI_U16 NumBkidCache;
875 tBkidCacheInfo BkidCacheInfo[CSR_MAX_BKID_ALLOWED];
876#endif /* FEATURE_WLAN_WAPI */
877 tANI_BOOLEAN fRoaming; //indicate whether CSR is roaming (either via lostlink or dynamic roaming)
878 //to remember some parameters needed for START_BSS.
879 //All member must be set every time we try to join or start an IBSS or BT-AMP
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800880 tCsrRoamStartBssParams bssParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700881 tANI_U32 nWpaRsnReqIeLength; //the byte count of pWpaRsnIE;
882 tANI_U8 *pWpaRsnReqIE; //this contain the WPA/RSN IE in assoc request or the one sent in beacon (IBSS)
883 tANI_U32 nWpaRsnRspIeLength; //the byte count for pWpaRsnRspIE
884 tANI_U8 *pWpaRsnRspIE; //this contain the WPA/RSN IE in beacon/probe rsp
885#ifdef FEATURE_WLAN_WAPI
886 tANI_U32 nWapiReqIeLength; //the byte count of pWapiReqIE;
887 tANI_U8 *pWapiReqIE; //this contain the WAPI IE in assoc request or the one sent in beacon (IBSS)
888 tANI_U32 nWapiRspIeLength; //the byte count for pWapiRspIE
889 tANI_U8 *pWapiRspIE; //this contain the WAPI IE in beacon/probe rsp
890#endif /* FEATURE_WLAN_WAPI */
891 tANI_U32 nAddIEScanLength; //the byte count of pAddIeScanIE;
892 tANI_U8 *pAddIEScan; //this contains the additional IE in (unicast) probe request at the time of join
893 tANI_U32 nAddIEAssocLength; //the byte count for pAddIeAssocIE
894 tANI_U8 *pAddIEAssoc; //this contains the additional IE in (re) assoc request
895
896 tANI_TIMESTAMP roamingStartTime; //in units of 10ms
897 tCsrTimerInfo roamingTimerInfo;
898 eCsrRoamingReason roamingReason;
899 tANI_BOOLEAN fCancelRoaming;
900 tPalTimerHandle hTimerRoaming;
901 tPalTimerHandle hTimerIbssJoining;
902 tCsrTimerInfo ibssJoinTimerInfo;
903 tANI_BOOLEAN ibss_join_pending;
904 eCsrRoamResult roamResult; //the roamResult that is used when the roaming timer fires
905 tCsrRoamJoinStatus joinFailStatusCode; //This is the reason code for join(assoc) failure
906 //The status code returned from PE for deauth or disassoc (in case of lostlink), or our own dynamic roaming
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800907 tANI_U32 roamingStatusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700908 tANI_U16 NumPmkidCandidate;
909 tPmkidCandidateInfo PmkidCandidateInfo[CSR_MAX_PMKID_ALLOWED];
910 #ifdef FEATURE_WLAN_WAPI
911 tANI_U16 NumBkidCandidate;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800912 tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED];
Jeff Johnson295189b2012-06-20 16:38:30 -0700913#endif
914 tANI_BOOLEAN fWMMConnection;
915#ifdef FEATURE_WLAN_BTAMP_UT_RF
916 //To retry a join later when it fails if so desired
917 tPalTimerHandle hTimerJoinRetry;
918 tCsrTimerInfo joinRetryTimerInfo;
919 tANI_U32 maxRetryCount;
920#endif
921#ifdef FEATURE_WLAN_CCX
922 tCsrCcxCckmInfo ccxCckmInfo;
923 tANI_BOOLEAN isPrevApInfoValid;
924 tSirMacSSid prevApSSID;
925 tCsrBssid prevApBssid;
926 tANI_U8 prevOpChannel;
927 tANI_U16 clientDissSecs;
928 tANI_U32 roamTS1;
929#endif
930 tANI_U8 bRefAssocStartCnt; //Tracking assoc start indication
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800931 /* to force the AP initiate fresh 802.1x authentication after re-association need to clear
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700932 * the PMKID cache. To clear the cache in this particular case this is added
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800933 * it is needed by the HS 2.0 passpoint certification 5.2.a and b testcases */
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700934 tANI_BOOLEAN fIgnorePMKIDCache;
Jeff Johnson295189b2012-06-20 16:38:30 -0700935} tCsrRoamSession;
936
937typedef struct tagCsrRoamStruct
938{
939 tANI_U32 nextRoamId;
940 tDblLinkList roamCmdPendingList;
941 tDblLinkList channelList5G;
942 tDblLinkList channelList24;
943 tCsrConfig configParam;
944 tANI_U32 numChannelsEeprom; //total channels of eeprom
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800945 tCsrChannel base20MHzChannels; //The channel base to work on
946 tCsrChannel base40MHzChannels; //center channels for 40MHz channels
947 eCsrRoamState curState[CSR_ROAM_SESSION_MAX];
Jeff Johnson295189b2012-06-20 16:38:30 -0700948 eCsrRoamSubState curSubState[CSR_ROAM_SESSION_MAX];
949 //This may or may not have the up-to-date valid channel list
950 //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time
951 tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
952 tANI_U32 numValidChannels; //total number of channels in CFG
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800953
Jeff Johnson295189b2012-06-20 16:38:30 -0700954 tANI_S32 sPendingCommands;
Jeff Johnson295189b2012-06-20 16:38:30 -0700955 tPalTimerHandle hTimerWaitForKey; //To support timeout for WaitForKey state
956 tCsrSummaryStatsInfo summaryStatsInfo;
957 tCsrGlobalClassAStatsInfo classAStatsInfo;
958 tCsrGlobalClassBStatsInfo classBStatsInfo;
959 tCsrGlobalClassCStatsInfo classCStatsInfo;
960 tCsrGlobalClassDStatsInfo classDStatsInfo;
961 tCsrPerStaStatsInfo perStaStatsInfo[CSR_MAX_STA];
962 tDblLinkList statsClientReqList;
963 tDblLinkList peStatsReqList;
964 tCsrTlStatsReqInfo tlStatsReqInfo;
965 eCsrRoamLinkQualityInd vccLinkQuality;
966 tCsrLinkQualityIndInfo linkQualityIndInfo;
967 v_CONTEXT_t gVosContext; //used for interaction with TL
968 //To specify whether an association or a IBSS is WMM enabled
969 //This parameter is only valid during a join or start BSS command is being executed
970 //tANI_BOOLEAN fWMMConnection; /* Moving it to be part of roamsession */
971 v_U8_t ucACWeights[WLANTL_MAX_AC];
972 /* TODO : Upto here */
973 tCsrTimerInfo WaitForKeyTimerInfo;
974 tCsrRoamSession *roamSession;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800975 tANI_U32 transactionId; // Current transaction ID for internal use.
976#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Jeff Johnson295189b2012-06-20 16:38:30 -0700977 tCsrNeighborRoamControlInfo neighborRoamInfo;
978#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700979#ifdef FEATURE_WLAN_LFR
980 tANI_U8 isFastRoamIniFeatureEnabled;
981#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700982#ifdef FEATURE_WLAN_CCX
983 tANI_U8 isCcxIniFeatureEnabled;
984#endif
Jeff Johnson43971f52012-07-17 12:26:56 -0700985#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -0700986 tANI_U8 RoamRssiDiff;
987 tANI_BOOLEAN isWESModeEnabled;
Jeff Johnson43971f52012-07-17 12:26:56 -0700988#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700989}tCsrRoamStruct;
990
991
992#define GET_NEXT_ROAM_ID(pRoamStruct) (((pRoamStruct)->nextRoamId + 1 == 0) ? 1 : (pRoamStruct)->nextRoamId)
993#define CSR_IS_ROAM_STATE(pMac, state, sessionId) ( (state) == (pMac)->roam.curState[sessionId] )
994
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800995#define CSR_IS_ROAM_STOP(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_STOP, sessionId )
996#define CSR_IS_ROAM_INIT(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_INIT, sessionId )
Jeff Johnson295189b2012-06-20 16:38:30 -0700997#define CSR_IS_ROAM_SCANNING(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_SCANNING, sessionId )
998#define CSR_IS_ROAM_JOINING(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_JOINING, sessionId )
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800999#define CSR_IS_ROAM_IDLE(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_IDLE, sessionId )
Jeff Johnson295189b2012-06-20 16:38:30 -07001000#define CSR_IS_ROAM_JOINED(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_JOINED, sessionId )
1001
1002#define CSR_IS_ROAM_SUBSTATE(pMac, subState, sessionId) ((subState) == (pMac)->roam.curSubState[sessionId])
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001003#define CSR_IS_ROAM_SUBSTATE_JOIN_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOIN_REQ, sessionId)
1004#define CSR_IS_ROAM_SUBSTATE_AUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_AUTH_REQ, sessionId)
1005#define CSR_IS_ROAM_SUBSTATE_REASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_REASSOC_REQ, sessionId)
1006#define CSR_IS_ROAM_SUBSTATE_DISASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REQ, sessionId)
1007#define CSR_IS_ROAM_SUBSTATE_DISASSOC_NO_JOIN(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_NOTHING_TO_JOIN, sessionId)
1008#define CSR_IS_ROAM_SUBSTATE_REASSOC_FAIL(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REASSOC_FAILURE, sessionId)
1009#define CSR_IS_ROAM_SUBSTATE_DISASSOC_FORCED(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_FORCED, sessionId)
1010#define CSR_IS_ROAM_SUBSTATE_DEAUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DEAUTH_REQ, sessionId)
1011#define CSR_IS_ROAM_SUBSTATE_START_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_START_BSS_REQ, sessionId)
1012#define CSR_IS_ROAM_SUBSTATE_STOP_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_STOP_BSS_REQ, sessionId)
1013#define CSR_IS_ROAM_SUBSTATE_DISCONNECT_CONTINUE(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISCONNECT_CONTINUE_ROAMING, sessionId)
Jeff Johnson295189b2012-06-20 16:38:30 -07001014#define CSR_IS_ROAM_SUBSTATE_CONFIG(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_CONFIG, sessionId)
1015#define CSR_IS_ROAM_SUBSTATE_WAITFORKEY(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_WAIT_FOR_KEY, sessionId)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001016#define CSR_IS_ROAM_SUBSTATE_DISASSOC_HO(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_HANDOFF, sessionId)
1017#define CSR_IS_ROAM_SUBSTATE_HO_NT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NO_TRAFFIC, sessionId)
1018#define CSR_IS_ROAM_SUBSTATE_HO_NRT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NON_REALTIME_TRAFFIC, sessionId)
1019#define CSR_IS_ROAM_SUBSTATE_HO_RT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_REALTIME_TRAFFIC, sessionId)
Jeff Johnson295189b2012-06-20 16:38:30 -07001020
1021#define CSR_IS_PHY_MODE_B_ONLY(pMac) \
1022 ((eCSR_DOT11_MODE_11b == (pMac)->roam.configParam.phyMode) ||\
1023 (eCSR_DOT11_MODE_11b_ONLY == (pMac)->roam.configParam.phyMode))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001024
Jeff Johnson295189b2012-06-20 16:38:30 -07001025#define CSR_IS_PHY_MODE_G_ONLY(pMac) \
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001026 (eCSR_DOT11_MODE_11g == (pMac)->roam.configParam.phyMode || eCSR_DOT11_MODE_11g_ONLY == (pMac)->roam.configParam.phyMode)
1027
Jeff Johnson295189b2012-06-20 16:38:30 -07001028#define CSR_IS_PHY_MODE_A_ONLY(pMac) \
1029 ((eCSR_DOT11_MODE_11a == (pMac)->roam.configParam.phyMode) ||\
1030 (eCSR_DOT11_MODE_11a_ONLY == (pMac)->roam.configParam.phyMode))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001031
Jeff Johnsone7245742012-09-05 17:12:55 -07001032#ifdef WLAN_FEATURE_11AC
1033#define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \
1034 ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \
1035 (eCSR_DOT11_MODE_11ac & (phyMode)) || \
1036 (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \
1037 (eCSR_DOT11_MODE_AUTO & (phyMode)))
1038#else
Jeff Johnson295189b2012-06-20 16:38:30 -07001039#define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \
1040 ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \
1041 (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \
1042 (eCSR_DOT11_MODE_AUTO & (phyMode)))
Jeff Johnsone7245742012-09-05 17:12:55 -07001043#endif
1044
Jeff Johnson295189b2012-06-20 16:38:30 -07001045
1046// this function returns TRUE if the NIC is operating exclusively in the 2.4 GHz band, meaning
1047// it is NOT operating in the 5.0 GHz band.
1048#define CSR_IS_24_BAND_ONLY(pMac) \
1049 (eCSR_BAND_24 == (pMac)->roam.configParam.eBand)
1050
1051#define CSR_IS_5G_BAND_ONLY(pMac) \
1052 (eCSR_BAND_5G == (pMac)->roam.configParam.eBand)
1053
1054#define CSR_IS_RADIO_DUAL_BAND(pMac) \
1055 (eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability)
1056
1057#define CSR_IS_RADIO_BG_ONLY(pMac) \
1058 (eCSR_BAND_24 == (pMac)->roam.configParam.bandCapability)
1059
1060// this function returns TRUE if the NIC is operating exclusively in the 5.0 GHz band, meaning
1061// it is NOT operating in the 2.4 GHz band
1062#define CSR_IS_RADIO_A_ONLY(pMac) \
1063 (eCSR_BAND_5G == (pMac)->roam.configParam.bandCapability)
1064
1065// this function returns TRUE if the NIC is operating in both bands.
1066#define CSR_IS_OPEARTING_DUAL_BAND(pMac) \
1067 ((eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability) && (eCSR_BAND_ALL == (pMac)->roam.configParam.eBand))
1068
1069// this function returns TRUE if the NIC can operate in the 5.0 GHz band (could operate in the
1070// 2.4 GHz band also).
1071#define CSR_IS_OPERATING_A_BAND(pMac) \
1072 (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_A_ONLY((pMac)) || CSR_IS_5G_BAND_ONLY((pMac)))
1073
1074// this function returns TRUE if the NIC can operate in the 2.4 GHz band (could operate in the
1075// 5.0 GHz band also).
1076#define CSR_IS_OPERATING_BG_BAND(pMac) \
1077 (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_BG_ONLY((pMac)) || CSR_IS_24_BAND_ONLY((pMac)))
1078
1079#define CSR_IS_CHANNEL_5GHZ(chnNum) \
Jeff Johnsone7245742012-09-05 17:12:55 -07001080 (((chnNum) >= CSR_MIN_5GHz_CHANNEL_NUMBER) && ((chnNum) <= CSR_MAX_5GHz_CHANNEL_NUMBER))
Jeff Johnson295189b2012-06-20 16:38:30 -07001081
Srinivas Girigowdade697412013-02-14 16:31:48 -08001082#define CSR_IS_CHANNEL_DFS(chnNum) \
1083 (NV_CHANNEL_ENABLE != vos_nv_getChannelEnabledState(chnNum))
1084
Jeff Johnson295189b2012-06-20 16:38:30 -07001085#define CSR_IS_CHANNEL_24GHZ(chnNum) \
1086 (((chnNum) > 0) && ((chnNum) <= CSR_MAX_24GHz_CHANNEL_NUMBER))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001087
Jeff Johnson295189b2012-06-20 16:38:30 -07001088#define CSR_IS_SAME_BAND_CHANNELS(ch1, ch2) (CSR_IS_CHANNEL_5GHZ(ch1) == CSR_IS_CHANNEL_5GHZ(ch2))
1089
1090
1091#define CSR_IS_11D_INFO_FOUND(pMac) \
1092 (0 != (pMac)->scan.channelOf11dInfo)
1093// DEAUTHIND
1094#define CSR_IS_ROAMING(pSession) ((CSR_IS_LOSTLINK_ROAMING((pSession)->roamingReason)) || \
1095 (eCsrDynamicRoaming == (pSession)->roamingReason) || \
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001096 (eCsrReassocRoaming == (pSession)->roamingReason))
Jeff Johnson295189b2012-06-20 16:38:30 -07001097
1098
1099#define CSR_IS_SET_KEY_COMMAND( pCommand ) ( eSmeCommandSetKey == (pCommand)->command )
1100
1101#define CSR_IS_ADDTS_WHEN_ACMOFF_SUPPORTED(pMac) (pMac->roam.configParam.addTSWhenACMIsOff)
1102// DEAUTHIND
1103#define CSR_IS_LOSTLINK_ROAMING(reason) ((eCsrLostlinkRoamingDisassoc == (reason)) || (eCsrLostlinkRoamingDeauth == (reason)))
1104
Venkata Prathyusha Kuntupalli239278b2013-03-26 15:58:18 -07001105#define CSR_IS_ROAMING_COMMAND(pCommand) ((eCsrLostLink1 == (pCommand)->u.roamCmd.roamReason) ||\
1106 (eCsrLostLink2 == (pCommand)->u.roamCmd.roamReason) ||\
1107 (eCsrLostLink3 == (pCommand)->u.roamCmd.roamReason) )
1108
1109
Jeff Johnson295189b2012-06-20 16:38:30 -07001110//Stop CSR from asking for IMPS, This function doesn't disable IMPS from CSR
1111void csrScanSuspendIMPS( tpAniSirGlobal pMac );
1112//Start CSR from asking for IMPS. This function doesn't trigger CSR to request entering IMPS
1113//because IMPS maybe disabled.
1114void csrScanResumeIMPS( tpAniSirGlobal pMac );
1115
1116eHalStatus csrInitGetChannels(tpAniSirGlobal pMac);
Venkata Prathyusha Kuntupalli316247e2013-03-15 17:45:25 -07001117// Getting the 5GHz Channel list
1118eHalStatus csrGet5GChannels(tpAniSirGlobal pMac);
1119// Getting the 2.4GHz Channel list
1120eHalStatus csrGet24GChannels(tpAniSirGlobal pMac);
Jeff Johnson295189b2012-06-20 16:38:30 -07001121
1122eHalStatus csrSetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId,
1123 tCsrRoamModifyProfileFields *pModifyProfileFields);
1124/* ---------------------------------------------------------------------------
1125 \fn csrGetModifyProfileFields
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001126 \brief HDD or SME - QOS calls this function to get the current values of
Jeff Johnson295189b2012-06-20 16:38:30 -07001127 connected profile fields changing which can cause reassoc.
1128 This function must be called after CFG is downloaded and STA is in connected
1129 state.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001130 \param pModifyProfileFields - pointer to the connected profile fields
Jeff Johnson295189b2012-06-20 16:38:30 -07001131 changing which can cause reassoc
1132
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001133 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001134 -------------------------------------------------------------------------------*/
1135eHalStatus csrGetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId,
1136 tCsrRoamModifyProfileFields * pModifyProfileFields);
1137void csrSetGlobalCfgs( tpAniSirGlobal pMac );
1138void csrSetDefaultDot11Mode( tpAniSirGlobal pMac );
1139void csrScanSetChannelMask(tpAniSirGlobal pMac, tCsrChannelInfo *pChannelInfo);
1140tANI_BOOLEAN csrIsConnStateDisconnected(tpAniSirGlobal pMac, tANI_U32 sessionId);
1141tANI_BOOLEAN csrIsConnStateConnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1142tANI_BOOLEAN csrIsConnStateDisconnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1143tANI_BOOLEAN csrIsConnStateConnectedInfra( tpAniSirGlobal pMac, tANI_U32 sessionId );
1144tANI_BOOLEAN csrIsConnStateConnected( tpAniSirGlobal pMac, tANI_U32 sessionId );
1145tANI_BOOLEAN csrIsConnStateInfra( tpAniSirGlobal pMac, tANI_U32 sessionId );
1146tANI_BOOLEAN csrIsConnStateIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1147tANI_BOOLEAN csrIsConnStateWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1148tANI_BOOLEAN csrIsConnStateConnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1149tANI_BOOLEAN csrIsConnStateDisconnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1150tANI_BOOLEAN csrIsAnySessionInConnectState( tpAniSirGlobal pMac );
1151tANI_BOOLEAN csrIsAllSessionDisconnected( tpAniSirGlobal pMac );
Madan Mohan Koyyalamudi48081ef2012-12-04 16:49:55 -08001152tANI_BOOLEAN csrIsStaSessionConnected( tpAniSirGlobal pMac );
1153tANI_BOOLEAN csrIsP2pSessionConnected( tpAniSirGlobal pMac );
Madan Mohan Koyyalamudid3d22592012-09-24 14:01:29 -07001154tANI_BOOLEAN csrIsAnySessionConnected( tpAniSirGlobal pMac );
Jeff Johnson295189b2012-06-20 16:38:30 -07001155tANI_BOOLEAN csrIsInfraConnected( tpAniSirGlobal pMac );
1156tANI_BOOLEAN csrIsConcurrentInfraConnected( tpAniSirGlobal pMac );
Jeff Johnsone7245742012-09-05 17:12:55 -07001157tANI_BOOLEAN csrIsConcurrentSessionRunning( tpAniSirGlobal pMac );
Jeff Johnsone7245742012-09-05 17:12:55 -07001158tANI_BOOLEAN csrIsInfraApStarted( tpAniSirGlobal pMac );
Jeff Johnson295189b2012-06-20 16:38:30 -07001159tANI_BOOLEAN csrIsIBSSStarted( tpAniSirGlobal pMac );
1160tANI_BOOLEAN csrIsBTAMPStarted( tpAniSirGlobal pMac );
1161tANI_BOOLEAN csrIsBTAMP( tpAniSirGlobal pMac, tANI_U32 sessionId );
1162eHalStatus csrIsBTAMPAllowed( tpAniSirGlobal pMac, tANI_U32 chnId );
Jeff Johnsone7245742012-09-05 17:12:55 -07001163tANI_BOOLEAN csrIsValidMcConcurrentSession(tpAniSirGlobal pMac, tANI_U32 sessionId,
1164 tSirBssDescription *pBssDesc);
Jeff Johnson295189b2012-06-20 16:38:30 -07001165tANI_BOOLEAN csrIsConnStateConnectedInfraAp( tpAniSirGlobal pMac, tANI_U32 sessionId );
Jeff Johnson295189b2012-06-20 16:38:30 -07001166/*----------------------------------------------------------------------------
1167 \fn csrRoamRegisterLinkQualityIndCallback
1168
1169 \brief
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001170 a CSR function to allow HDD to register a callback handler with CSR for
1171 link quality indications.
Jeff Johnson295189b2012-06-20 16:38:30 -07001172
1173 Only one callback may be registered at any time.
1174 In order to deregister the callback, a NULL cback may be provided.
1175
1176 Registration happens in the task context of the caller.
1177
1178 \param callback - Call back being registered
1179 \param pContext - user data
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001180
Jeff Johnson295189b2012-06-20 16:38:30 -07001181 DEPENDENCIES: After CSR open
1182
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001183 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001184-----------------------------------------------------------------------------*/
1185eHalStatus csrRoamRegisterLinkQualityIndCallback(tpAniSirGlobal pMac,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001186 csrRoamLinkQualityIndCallback callback,
Jeff Johnson295189b2012-06-20 16:38:30 -07001187 void *pContext);
1188/* ---------------------------------------------------------------------------
1189 \fn csrGetStatistics
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001190 \brief csr function that client calls to register a callback to get
1191 different PHY level statistics from CSR.
1192
Jeff Johnson295189b2012-06-20 16:38:30 -07001193 \param requesterId - different client requesting for statistics, HDD, UMA/GAN etc
1194 \param statsMask - The different category/categories of stats requester is looking for
1195 \param callback - SME sends back the requested stats using the callback
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001196 \param periodicity - If requester needs periodic update, 0 means it's an one
Jeff Johnson295189b2012-06-20 16:38:30 -07001197 time request
1198 \param cache - If requester is happy with cached stats
1199 \param staId - The station ID for which the stats is requested for
1200 \param pContext - user context to be passed back along with the callback
1201
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001202 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001203 ---------------------------------------------------------------------------*/
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001204eHalStatus csrGetStatistics(tpAniSirGlobal pMac, eCsrStatsRequesterType requesterId,
1205 tANI_U32 statsMask,
1206 tCsrStatsCallback callback,
1207 tANI_U32 periodicity, tANI_BOOLEAN cache,
Jeff Johnson295189b2012-06-20 16:38:30 -07001208 tANI_U8 staId, void *pContext);
1209
1210
1211eHalStatus csrGetRssi(tpAniSirGlobal pMac,tCsrRssiCallback callback,tANI_U8 staId,tCsrBssid bssId,void * pContext,void * pVosContext);
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08001212#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_CCX || defined(FEATURE_WLAN_LFR)
1213eHalStatus csrGetRoamRssi(tpAniSirGlobal pMac,
1214 tCsrRssiCallback callback,
1215 tANI_U8 staId,
1216 tCsrBssid bssId,
1217 void * pContext,
1218 void * pVosContext);
1219#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001220eHalStatus csrRoamRegisterCallback(tpAniSirGlobal pMac, csrRoamCompleteCallback callback, void *pContext);
1221/* ---------------------------------------------------------------------------
1222 \fn csrGetConfigParam
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001223 \brief HDD calls this function to get the global settings currently maintained by CSR.
Jeff Johnson295189b2012-06-20 16:38:30 -07001224 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001225 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001226 -------------------------------------------------------------------------------*/
1227eHalStatus csrGetConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam);
1228
1229/* ---------------------------------------------------------------------------
1230 \fn csrMsgProcessor
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001231 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001232 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1233 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001234 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001235 -------------------------------------------------------------------------------*/
1236eHalStatus csrChangeDefaultConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam);
1237
1238
1239/* ---------------------------------------------------------------------------
1240 \fn csrMsgProcessor
1241 \brief HDD calls this function for the messages that are handled by CSR.
1242 \param pMsgBuf - a pointer to a buffer that maps to various structures base on the message type.
1243 The beginning of the buffer can always map to tSirSmeRsp.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001244 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001245 -------------------------------------------------------------------------------*/
1246eHalStatus csrMsgProcessor( tpAniSirGlobal pMac, void *pMsgBuf );
1247
1248/* ---------------------------------------------------------------------------
1249 \fn csrOpen
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001250 \brief This function must be called before any API call to CSR.
1251 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001252 -------------------------------------------------------------------------------*/
1253eHalStatus csrOpen(tpAniSirGlobal pMac);
1254/* ---------------------------------------------------------------------------
1255 \fn csrClose
1256 \brief To close down CSR module. There should not be any API call into CSR after calling this function.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001257 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001258 -------------------------------------------------------------------------------*/
1259eHalStatus csrClose(tpAniSirGlobal pMac);
1260/* ---------------------------------------------------------------------------
1261 \fn csrStart
1262 \brief To start CSR.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001263 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001264 -------------------------------------------------------------------------------*/
1265eHalStatus csrStart(tpAniSirGlobal pMac);
1266/* ---------------------------------------------------------------------------
1267 \fn csrStop
1268 \brief To stop CSR. CSR still keeps its current setting.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001269 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001270 -------------------------------------------------------------------------------*/
1271eHalStatus csrStop(tpAniSirGlobal pMac);
1272/* ---------------------------------------------------------------------------
1273 \fn csrReady
1274 \brief To let CSR is ready to operate
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001275 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001276 -------------------------------------------------------------------------------*/
1277eHalStatus csrReady(tpAniSirGlobal pMac);
1278
1279#ifdef FEATURE_WLAN_WAPI
1280eHalStatus csrRoamGetBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pNum,
1281 tBkidCacheInfo *pBkidCache);
1282
1283
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001284eHalStatus csrScanGetBKIDCandidateList(tpAniSirGlobal pMac, tANI_U32 sessionId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001285 tBkidCandidateInfo *pBkidList, tANI_U32 *pNumItems );
1286tANI_U32 csrRoamGetNumBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId);
1287eHalStatus csrRoamSetBKIDCache( tpAniSirGlobal pMac, tANI_U32 sessionId, tBkidCacheInfo *pBKIDCache,
1288 tANI_U32 numItems );
1289/* ---------------------------------------------------------------------------
1290 \fn csrRoamGetWapiReqIE
1291 \brief return the WAPI IE CSR passes to PE to JOIN request or START_BSS request
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001292 \param pLen - caller allocated memory that has the length of pBuf as input. Upon returned, *pLen has the
Jeff Johnson295189b2012-06-20 16:38:30 -07001293 needed or IE length in pBuf.
1294 \param pBuf - Caller allocated memory that contain the IE field, if any, upon return
1295 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1296 -------------------------------------------------------------------------------*/
1297eHalStatus csrRoamGetWapiReqIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf);
1298
1299/* ---------------------------------------------------------------------------
1300 \fn csrRoamGetWapiRspIE
1301 \brief return the WAPI IE from the beacon or probe rsp if connected
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001302 \param pLen - caller allocated memory that has the length of pBuf as input. Upon returned, *pLen has the
Jeff Johnson295189b2012-06-20 16:38:30 -07001303 needed or IE length in pBuf.
1304 \param pBuf - Caller allocated memory that contain the IE field, if any, upon return
1305 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1306 -------------------------------------------------------------------------------*/
1307eHalStatus csrRoamGetWapiRspIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001308tANI_U8 csrConstructWapiIe( tpAniSirGlobal pMac, tANI_U32 sessionId, tCsrRoamProfile *pProfile,
Jeff Johnson295189b2012-06-20 16:38:30 -07001309 tSirBssDescription *pSirBssDesc, tDot11fBeaconIEs *pIes, tCsrWapiIe *pWapiIe );
1310#endif /* FEATURE_WLAN_WAPI */
1311
Jeff Johnson295189b2012-06-20 16:38:30 -07001312eHalStatus csrRoamUpdateAPWPSIE( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirAPWPSIEs *pAPWPSIES );
1313eHalStatus csrRoamUpdateWPARSNIEs( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirRSNie * pAPSirRSNie);
Jeff Johnson295189b2012-06-20 16:38:30 -07001314void csrSetCfgPrivacy( tpAniSirGlobal pMac, tCsrRoamProfile *pProfile, tANI_BOOLEAN fPrivacy );
1315tANI_S8 csrGetInfraSessionId( tpAniSirGlobal pMac );
1316tANI_U8 csrGetInfraOperationChannel( tpAniSirGlobal pMac, tANI_U8 sessionId);
1317tANI_U8 csrGetConcurrentOperationChannel( tpAniSirGlobal pMac );
1318
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001319eHalStatus csrRoamCopyConnectProfile(tpAniSirGlobal pMac, tANI_U32 sessionId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001320 tCsrRoamConnectedProfile *pProfile);
1321tANI_BOOLEAN csrIsSetKeyAllowed(tpAniSirGlobal pMac, tANI_U32 sessionId);
1322
1323void csrSetOppositeBandChannelInfo( tpAniSirGlobal pMac );
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001324void csrConstructCurrentValidChannelList( tpAniSirGlobal pMac, tDblLinkList *pChannelSetList,
Jeff Johnson295189b2012-06-20 16:38:30 -07001325 tANI_U8 *pChannelList, tANI_U8 bSize, tANI_U8 *pNumChannels );
Srikant Kuppa066904f2013-05-07 13:56:02 -07001326eHalStatus csrScanSavePreferredNetworkFound(tpAniSirGlobal pMac,
1327 tSirPrefNetworkFoundInd *pPrefNetworkFoundInd);
Jeff Johnson295189b2012-06-20 16:38:30 -07001328#endif
1329
1330#ifdef WLAN_FEATURE_VOWIFI_11R
1331//Returns whether the current association is a 11r assoc or not
1332tANI_BOOLEAN csrRoamIs11rAssoc(tpAniSirGlobal pMac);
1333#endif
1334
1335#ifdef FEATURE_WLAN_CCX
1336//Returns whether the current association is a CCX assoc or not
1337tANI_BOOLEAN csrRoamIsCCXAssoc(tpAniSirGlobal pMac);
1338#endif
1339
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001340//Remove this code once SLM_Sessionization is supported
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07001341//BMPS_WORKAROUND_NOT_NEEDED
Jeff Johnson295189b2012-06-20 16:38:30 -07001342void csrDisconnectAllActiveSessions(tpAniSirGlobal pMac);
Mohit Khanna349bc392012-09-11 17:24:52 -07001343
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001344#ifdef FEATURE_WLAN_LFR
1345//Returns whether "Legacy Fast Roaming" is enabled...or not
Madan Mohan Koyyalamudi03aae5f2012-11-28 01:51:22 +05301346tANI_BOOLEAN csrRoamIsFastRoamEnabled(tpAniSirGlobal pMac, tANI_U32 sessionId);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001347#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1348tANI_BOOLEAN csrRoamIsRoamOffloadScanEnabled(tpAniSirGlobal pMac);
1349#endif
Madan Mohan Koyyalamudi470d2cf2012-09-28 14:43:44 -07001350tANI_BOOLEAN csrIsChannelPresentInList( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel );
1351VOS_STATUS csrAddToChannelListFront( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel );
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001352#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1353eHalStatus csrScanRequestLfrResult(tpAniSirGlobal pMac, tANI_U32 sessionId,
1354 csrScanCompleteCallback callback, void *pContext);
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001355eHalStatus csrRoamOffloadScanRspHdlr(tpAniSirGlobal pMac, tANI_U8 reason);
1356eHalStatus csrHandoffRequest(tpAniSirGlobal pMac, tCsrHandoffRequest *pHandoffInfo);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001357#endif
1358tANI_BOOLEAN csrRoamIsStaMode(tpAniSirGlobal pMac, tANI_U32 sessionId);
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001359#endif
1360