blob: de7ee50609f2dd5e9ea7174999f14c13779791de [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
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -0700465
Jeff Johnson295189b2012-06-20 16:38:30 -0700466typedef struct tagAddStaForSessionCmd
467{
468 //Session self mac addr
469 tSirMacAddr selfMacAddr;
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -0700470 tVOS_CON_MODE currDeviceMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700471}tAddStaForSessionCmd;
472
473typedef struct tagDelStaForSessionCmd
474{
475 //Session self mac addr
476 tSirMacAddr selfMacAddr;
477 csrRoamSessionCloseCallback callback;
478 void *pContext;
479}tDelStaForSessionCmd;
480
481//This structure represents one scan request
482typedef struct tagCsrCmd
483{
484 tListElem Link;
485 eCsrRoamCommands command;
486 tANI_U8 sessionId; // Session ID for this command
487 union
488 {
489 tScanCmd scanCmd;
490 tRoamCmd roamCmd;
491 tWmStatusChangeCmd wmStatusChangeCmd;
492 tSetKeyCmd setKeyCmd;
493 tRemoveKeyCmd removeKeyCmd;
494 tAddStaForSessionCmd addStaSessionCmd;
495 tDelStaForSessionCmd delStaSessionCmd;
496 }u;
497}tCsrCmd;
498
499#ifdef WLAN_FEATURE_VOWIFI_11R
500typedef struct tagCsr11rConfig
501{
502 tANI_BOOLEAN IsFTResourceReqSupported;
503} tCsr11rConfig;
504#endif
505
506#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
507typedef struct tagCsrNeighborRoamConfig
508{
509 tANI_U32 nNeighborScanTimerPeriod;
510 tANI_U8 nNeighborLookupRssiThreshold;
511 tANI_U8 nNeighborReassocRssiThreshold;
512 tANI_U16 nNeighborScanMinChanTime;
513 tANI_U16 nNeighborScanMaxChanTime;
514 sCsrChannel neighborScanChanList;
515 tANI_U8 nMaxNeighborRetries;
516 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowdade697412013-02-14 16:31:48 -0800517 tANI_U16 nEmptyScanRefreshPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -0700518}tCsrNeighborRoamConfig;
519#endif
520
521typedef struct tagCsrConfig
522{
523 tANI_U32 agingCount;
524 tANI_U32 FragmentationThreshold;
525 tANI_U32 channelBondingMode24GHz;
526 tANI_U32 channelBondingMode5GHz;
527 tANI_U32 RTSThreshold;
528 eCsrPhyMode phyMode;
529 eCsrCfgDot11Mode uCfgDot11Mode;
530 eCsrBand eBand;
531 tANI_U32 HeartbeatThresh50;
532 tANI_U32 HeartbeatThresh24;
533 tANI_U32 bgScanInterval;
534 eCsrCBChoice cbChoice;
535 eCsrBand bandCapability; //indicate hw capability
536 eCsrRoamWmmUserModeType WMMSupportMode;
537 tANI_BOOLEAN Is11eSupportEnabled;
538 tANI_BOOLEAN Is11dSupportEnabled;
539 tANI_BOOLEAN Is11dSupportEnabledOriginal;
540 tANI_BOOLEAN Is11hSupportEnabled;
541 tANI_BOOLEAN shortSlotTime;
542 tANI_BOOLEAN ProprietaryRatesEnabled;
543 tANI_BOOLEAN fenableMCCMode;
544 tANI_U16 TxRate;
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800545 tANI_U8 fAllowMCCGODiffBI;
Jeff Johnson295189b2012-06-20 16:38:30 -0700546 tANI_U8 AdHocChannel24;
547 tANI_U8 AdHocChannel5G;
548 tANI_U32 impsSleepTime; //in units of microseconds
549 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
550 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
551 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
552 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
553 tANI_U32 BssPreferValue[CSR_NUM_RSSI_CAT]; //each RSSI category has one value
554 int RSSICat[CSR_NUM_RSSI_CAT];
555 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
556 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up, 0 means no roaming
557 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800558 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -0700559 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800560 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -0700561 //Country Code Priority
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800562 //0 = 802.11D > Configured Country > NV
Jeff Johnson295189b2012-06-20 16:38:30 -0700563 //1 = Configured Country > 802.11D > NV
564 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800565 //When true, AP with unknown country code won't be see.
566 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
Jeff Johnson295189b2012-06-20 16:38:30 -0700567 //find a domain for the country code in its 11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800568 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700569 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
570 //code", or the doamin of the country code doesn't match the default domain, the Ap is
571 //not acceptable.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800572 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -0700573
574 tANI_U16 vccRssiThreshold;
575 tANI_U32 vccUlMacLossThreshold;
576
577 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
578 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
579 tANI_U32 nActiveMinChnTime; //in units of milliseconds
580 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800581
582 tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds
583 tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -0700584 tANI_U8 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700585#ifdef WLAN_AP_STA_CONCURRENCY
586 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
587 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
588 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
589 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
590 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700591 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
592 //Sta in each split scan operation
593 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
594 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700595#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700596
597 tANI_BOOLEAN IsIdleScanEnabled;
598 //in dBm, the maximum TX power
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800599 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -0700600 //If 11d is disable, the lesser of this and default setting.
601 tANI_U8 nTxPowerCap;
602 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
603 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
Jeff Johnson295189b2012-06-20 16:38:30 -0700604 tANI_U32 dtimPeriod;
605 tANI_BOOLEAN ssidHidden;
Jeff Johnson295189b2012-06-20 16:38:30 -0700606
607#ifdef WLAN_FEATURE_VOWIFI_11R
608 tCsr11rConfig csr11rConfig;
609#endif
610
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700611#ifdef FEATURE_WLAN_LFR
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700612 tANI_U8 isFastRoamIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700613#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700614 tANI_U8 isRoamOffloadScanEnabled;
615 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700616#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700617#endif
618
Jeff Johnson295189b2012-06-20 16:38:30 -0700619#ifdef FEATURE_WLAN_CCX
620 tANI_U8 isCcxIniFeatureEnabled;
621#endif
622
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700623#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -0700624 tANI_U8 isFastTransitionEnabled;
625 tANI_U8 RoamRssiDiff;
626 tANI_U8 nImmediateRoamRssiDiff;
627 tANI_BOOLEAN nRoamPrefer5GHz;
628 tANI_BOOLEAN nRoamIntraBand;
629 tANI_BOOLEAN isWESModeEnabled;
630 tANI_BOOLEAN nRoamScanControl;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -0700631 tANI_U8 nProbes;
632 tANI_U16 nRoamScanHomeAwayTime;
Jeff Johnson295189b2012-06-20 16:38:30 -0700633#endif
634
635#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
636 tCsrNeighborRoamConfig neighborRoamConfig;
637#endif
638
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800639 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -0700640 * This is mandated by WMM-AC certification */
641 tANI_BOOLEAN addTSWhenACMIsOff;
642
643 tANI_BOOLEAN fValidateList;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800644 //Remove this code once SLM_Sessionization is supported
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -0700645 //BMPS_WORKAROUND_NOT_NEEDED
Jeff Johnsone7245742012-09-05 17:12:55 -0700646 tANI_BOOLEAN doBMPSWorkaround;
Jeff Johnson295189b2012-06-20 16:38:30 -0700647
648 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
649 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -0700650#ifdef WLAN_FEATURE_11AC
651 tANI_U32 nVhtChannelWidth;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -0800652 tANI_U8 txBFEnable;
Shailender Karmuchicc3fe442013-02-16 18:18:33 -0800653 tANI_U8 txBFCsnValue;
Ravi Joshi83bfaa12013-05-28 22:12:08 -0700654 tANI_BOOLEAN enableVhtFor24GHz;
Jeff Johnsone7245742012-09-05 17:12:55 -0700655#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -0800656 tANI_U8 txLdpcEnable;
Jeff Johnson295189b2012-06-20 16:38:30 -0700657
658}tCsrConfig;
659
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800660typedef struct tagCsrChannelPowerInfo
Jeff Johnson295189b2012-06-20 16:38:30 -0700661{
662 tListElem link;
663 tANI_U8 firstChannel;
664 tANI_U8 numChannels;
665 tANI_U8 txPower;
666 tANI_U8 interChannelOffset;
667}tCsrChannelPowerInfo;
668
669typedef struct tagRoamJoinStatus
670{
671 tSirResultCodes statusCode;
672 //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 -0800673 tANI_U32 reasonCode;
Kiran Kumar Lokerec8550fa2013-04-15 22:23:00 -0700674 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -0700675}tCsrRoamJoinStatus;
676
677typedef struct tagCsrOsChannelMask
678{
679 tANI_U8 numChannels;
680 tANI_BOOLEAN scanEnabled[WNI_CFG_VALID_CHANNEL_LIST_LEN];
681 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
682}tCsrOsChannelMask;
683
684
685typedef struct tagCsrScanStruct
686{
687 tScanProfile scanProfile;
688 tANI_U32 nextScanID;
Madan Mohan Koyyalamudica43cdf2012-09-24 13:15:49 -0700689 tDblLinkList scanResultList;
Jeff Johnson295189b2012-06-20 16:38:30 -0700690 tDblLinkList tempScanResults;
691 tANI_BOOLEAN fScanEnable;
692 tANI_BOOLEAN fFullScanIssued;
693 tPalTimerHandle hTimerGetResult;
694#ifdef WLAN_AP_STA_CONCURRENCY
695 tPalTimerHandle hTimerStaApConcTimer;
696#endif
697 tPalTimerHandle hTimerIdleScan;
698 tPalTimerHandle hTimerResultAging;
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -0800699 tPalTimerHandle hTimerResultCfgAging;
Jeff Johnson295189b2012-06-20 16:38:30 -0700700 tPalTimerHandle hTimerBgScan;
701 //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 -0800702 tANI_U8 channelOf11dInfo;
703 tANI_U8 scanResultCfgAgingTime;
Jeff Johnson295189b2012-06-20 16:38:30 -0700704 //changes on every scan, a flag to tell whether conflict 11d info found on each BSS
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800705 tANI_BOOLEAN fAmbiguous11dInfoFound;
Jeff Johnson295189b2012-06-20 16:38:30 -0700706 //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 -0800707 tANI_BOOLEAN fCurrent11dInfoMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700708 tANI_BOOLEAN f11dInfoReset; //to indicate whether the 11d info in CFG is reset to default
709 tSirScanType curScanType;
710 tCsrChannel baseChannels; //This are all the supported channels AND(&) to the current eBand
711 tCsrChannel channels11d;
712 tChannelListWithPower defaultPowerTable[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV
713 tChannelListWithPower defaultPowerTable40MHz[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV
714 tANI_U32 numChannelsDefault; //total channels of NV
715 tCsrChannel base20MHzChannels; //The channel base to work on
716 tCsrChannel base40MHzChannels; //center channels for 40MHz channels
717 tDblLinkList channelPowerInfoList24;
718 tDblLinkList channelPowerInfoList5G;
719 tANI_U32 nLastAgeTimeOut;
720 tANI_U32 nAgingCountDown;
Gopichand Nakkala114718f2013-03-25 19:19:46 -0700721 tANI_U8 countryCodeDefault[WNI_CFG_COUNTRY_CODE_LEN]; //The country code from NV
722 tANI_U8 countryCodeCurrent[WNI_CFG_COUNTRY_CODE_LEN];
723 tANI_U8 countryCode11d[WNI_CFG_COUNTRY_CODE_LEN];
Jeff Johnson295189b2012-06-20 16:38:30 -0700724 v_REGDOMAIN_t domainIdDefault; //default regulatory domain
725 v_REGDOMAIN_t domainIdCurrent; //current regulatory domain
726 tANI_BOOLEAN f11dInfoApplied;
727 tANI_BOOLEAN fCancelIdleScan;
728#ifdef FEATURE_WLAN_WAPI
729// tANI_U16 NumBkidCandidate;
730// tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED]; /* Move this as part of SessionEntry */
731#endif /* FEATURE_WLAN_WAPI */
732 tANI_U8 numBGScanChannel; //number of valid channels in the bgScanChannelList
733 tANI_U8 bgScanChannelList[WNI_CFG_BG_SCAN_CHANNEL_LIST_LEN];
734 //the ChannelInfo member is not used in this structure.
735 //numBGScanChannel and bgScanChannelList are used for the BG scan channel info
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800736 tCsrBGScanRequest bgScanParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700737 tANI_BOOLEAN fRestartIdleScan;
738 tANI_U32 nIdleScanTimeGap; //the time since last trying to trigger idle scan
739 tCsrOsChannelMask osScanChannelMask;//keep a track of channels to be scnned while in traffic condition
740 tANI_U16 nBssLimit; //the maximum number of BSS in scan cache
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800741 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -0700742 * detect when it happens. Adding this into code because we can't reproduce it easily.
743 * We don't know when it happens. */
744 tANI_BOOLEAN fValidateList;
745 /*Customer wants to start with an active scan based on the default country code.
746 * This optimization will minimize the driver load to association time.
747 * Based on this flag we will bypass the initial passive scan needed for 11d
748 * to determine the country code & domain */
749 tANI_BOOLEAN fEnableBypass11d;
750
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800751 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
752 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -0700753 * (apprx 1.3 sec) */
754 tANI_BOOLEAN fEnableDFSChnlScan;
755
Jeff Johnsone7245742012-09-05 17:12:55 -0700756 /*
757 * To enable/disable scanning only 2.4Ghz channels on first scan
758 */
759 tANI_BOOLEAN fFirstScanOnly2GChnl;
760
Jeff Johnson295189b2012-06-20 16:38:30 -0700761 tANI_BOOLEAN fDropScanCmd; //true means we don't accept scan commands
762
763#ifdef WLAN_AP_STA_CONCURRENCY
764 tDblLinkList scanCmdPendingList;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800765#endif
Madan Mohan Koyyalamudi470d2cf2012-09-28 14:43:44 -0700766 tCsrChannel occupiedChannels; //This includes all channels on which candidate APs are found
Jeff Johnson295189b2012-06-20 16:38:30 -0700767}tCsrScanStruct;
768
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800769#ifdef FEATURE_WLAN_TDLS_INTERNAL
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800770/*
771 * struct to carry TDLS discovery info..
772 */
773typedef struct sCsrTdlsContext
774{
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800775 tDblLinkList tdlsPotentialPeerList ;
776 tANI_U16 tdlsCommonFlag ;
777 tANI_U16 tdlsCommonState ;
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800778 tANI_U16 tdlsPeerCount ;
779}tCsrTdlsCtxStruct;
780
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800781typedef struct sCsrTdlsPeerLinkInfo
782{
783 tListElem tdlsPeerStaLink ;
784 tSirTdlsPeerInfo tdlsDisPeerInfo ;
785}tCsrTdlsPeerLinkinfo ;
786#endif
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800787
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800788
789
Jeff Johnson295189b2012-06-20 16:38:30 -0700790
791//Save the connected information. This structure + connectedProfile
792//should contain all information about the connection
793typedef struct tagRoamCsrConnectedInfo
794{
795 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
796 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
797 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
798#ifdef WLAN_FEATURE_VOWIFI_11R
799 tANI_U32 nRICRspLength; //Length of the parsed RIC response IEs received in reassoc response
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800800#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700801#ifdef FEATURE_WLAN_CCX
802 tANI_U32 nTspecIeLength;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800803#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700804 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
805 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
806 //each frame starts and ends.
807 tANI_U8 staId;
808}tCsrRoamConnectedInfo;
809
810
811typedef struct tagCsrLinkQualityIndInfo
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800812{
Jeff Johnson295189b2012-06-20 16:38:30 -0700813 csrRoamLinkQualityIndCallback callback;
814 void *context;
815}tCsrLinkQualityIndInfo;
816
817typedef struct tagCsrPeStatsReqInfo
818{
819 tListElem link; /* list links */
820 tANI_U32 statsMask;
821 tANI_U32 periodicity;
822 tANI_BOOLEAN rspPending;
823 vos_timer_t hPeStatsTimer;
824 tANI_BOOLEAN timerRunning;
825 tANI_U8 staId;
826 tANI_U8 numClient;
827 tpAniSirGlobal pMac;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800828 /* To remember if the peStats timer is stopped successfully or not */
Jeff Johnson295189b2012-06-20 16:38:30 -0700829 tANI_BOOLEAN timerStopFailed;
830
831}tCsrPeStatsReqInfo;
832
833typedef struct tagCsrStatsClientReqInfo
834{
835 tListElem link; /* list links */
836 eCsrStatsRequesterType requesterId;
837 tCsrStatsCallback callback;
838 tANI_U32 periodicity;
839 void *pContext;
840 tANI_U32 statsMask;
841 tCsrPeStatsReqInfo *pPeStaEntry;
842 tANI_U8 staId;
843 vos_timer_t timer;
844 tANI_BOOLEAN timerExpired;
845 tpAniSirGlobal pMac; // TODO: Confirm this change BTAMP
846}tCsrStatsClientReqInfo;
847
848typedef struct tagCsrTlStatsReqInfo
849{
850 tANI_U32 periodicity;
851 tANI_BOOLEAN timerRunning;
852 tPalTimerHandle hTlStatsTimer;
853 tANI_U8 numClient;
854}tCsrTlStatsReqInfo;
855
856typedef struct tagCsrRoamSession
857{
858 tANI_U8 sessionId; // Session ID
859 tANI_BOOLEAN sessionActive; // TRUE if it is used
860 tCsrBssid selfMacAddr; // For BT-AMP station, this serve as BSSID for self-BSS.
861 csrRoamCompleteCallback callback;
862 void *pContext;
863 eCsrConnectState connectState;
864 tCsrRoamConnectedProfile connectedProfile;
865 tCsrRoamConnectedInfo connectedInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800866 tCsrRoamProfile *pCurRoamProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -0700867 tSirBssDescription *pConnectBssDesc;
868 tANI_U16 NumPmkidCache;
869 tPmkidCacheInfo PmkidCacheInfo[CSR_MAX_PMKID_ALLOWED];
870 tANI_U8 cJoinAttemps;
871 //This may or may not have the up-to-date valid channel list
872 //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time
873 tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
874 tANI_S32 sPendingCommands; //0 means CSR is ok to low power
875#ifdef FEATURE_WLAN_WAPI
876 tANI_U16 NumBkidCache;
877 tBkidCacheInfo BkidCacheInfo[CSR_MAX_BKID_ALLOWED];
878#endif /* FEATURE_WLAN_WAPI */
879 tANI_BOOLEAN fRoaming; //indicate whether CSR is roaming (either via lostlink or dynamic roaming)
880 //to remember some parameters needed for START_BSS.
881 //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 -0800882 tCsrRoamStartBssParams bssParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700883 tANI_U32 nWpaRsnReqIeLength; //the byte count of pWpaRsnIE;
884 tANI_U8 *pWpaRsnReqIE; //this contain the WPA/RSN IE in assoc request or the one sent in beacon (IBSS)
885 tANI_U32 nWpaRsnRspIeLength; //the byte count for pWpaRsnRspIE
886 tANI_U8 *pWpaRsnRspIE; //this contain the WPA/RSN IE in beacon/probe rsp
887#ifdef FEATURE_WLAN_WAPI
888 tANI_U32 nWapiReqIeLength; //the byte count of pWapiReqIE;
889 tANI_U8 *pWapiReqIE; //this contain the WAPI IE in assoc request or the one sent in beacon (IBSS)
890 tANI_U32 nWapiRspIeLength; //the byte count for pWapiRspIE
891 tANI_U8 *pWapiRspIE; //this contain the WAPI IE in beacon/probe rsp
892#endif /* FEATURE_WLAN_WAPI */
893 tANI_U32 nAddIEScanLength; //the byte count of pAddIeScanIE;
894 tANI_U8 *pAddIEScan; //this contains the additional IE in (unicast) probe request at the time of join
895 tANI_U32 nAddIEAssocLength; //the byte count for pAddIeAssocIE
896 tANI_U8 *pAddIEAssoc; //this contains the additional IE in (re) assoc request
897
898 tANI_TIMESTAMP roamingStartTime; //in units of 10ms
899 tCsrTimerInfo roamingTimerInfo;
900 eCsrRoamingReason roamingReason;
901 tANI_BOOLEAN fCancelRoaming;
902 tPalTimerHandle hTimerRoaming;
903 tPalTimerHandle hTimerIbssJoining;
904 tCsrTimerInfo ibssJoinTimerInfo;
905 tANI_BOOLEAN ibss_join_pending;
906 eCsrRoamResult roamResult; //the roamResult that is used when the roaming timer fires
907 tCsrRoamJoinStatus joinFailStatusCode; //This is the reason code for join(assoc) failure
908 //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 -0800909 tANI_U32 roamingStatusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700910 tANI_U16 NumPmkidCandidate;
911 tPmkidCandidateInfo PmkidCandidateInfo[CSR_MAX_PMKID_ALLOWED];
912 #ifdef FEATURE_WLAN_WAPI
913 tANI_U16 NumBkidCandidate;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800914 tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED];
Jeff Johnson295189b2012-06-20 16:38:30 -0700915#endif
916 tANI_BOOLEAN fWMMConnection;
917#ifdef FEATURE_WLAN_BTAMP_UT_RF
918 //To retry a join later when it fails if so desired
919 tPalTimerHandle hTimerJoinRetry;
920 tCsrTimerInfo joinRetryTimerInfo;
921 tANI_U32 maxRetryCount;
922#endif
923#ifdef FEATURE_WLAN_CCX
924 tCsrCcxCckmInfo ccxCckmInfo;
925 tANI_BOOLEAN isPrevApInfoValid;
926 tSirMacSSid prevApSSID;
927 tCsrBssid prevApBssid;
928 tANI_U8 prevOpChannel;
929 tANI_U16 clientDissSecs;
930 tANI_U32 roamTS1;
931#endif
932 tANI_U8 bRefAssocStartCnt; //Tracking assoc start indication
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800933 /* to force the AP initiate fresh 802.1x authentication after re-association need to clear
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700934 * the PMKID cache. To clear the cache in this particular case this is added
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800935 * it is needed by the HS 2.0 passpoint certification 5.2.a and b testcases */
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700936 tANI_BOOLEAN fIgnorePMKIDCache;
Jeff Johnson295189b2012-06-20 16:38:30 -0700937} tCsrRoamSession;
938
939typedef struct tagCsrRoamStruct
940{
941 tANI_U32 nextRoamId;
942 tDblLinkList roamCmdPendingList;
943 tDblLinkList channelList5G;
944 tDblLinkList channelList24;
945 tCsrConfig configParam;
946 tANI_U32 numChannelsEeprom; //total channels of eeprom
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800947 tCsrChannel base20MHzChannels; //The channel base to work on
948 tCsrChannel base40MHzChannels; //center channels for 40MHz channels
949 eCsrRoamState curState[CSR_ROAM_SESSION_MAX];
Jeff Johnson295189b2012-06-20 16:38:30 -0700950 eCsrRoamSubState curSubState[CSR_ROAM_SESSION_MAX];
951 //This may or may not have the up-to-date valid channel list
952 //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time
953 tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
954 tANI_U32 numValidChannels; //total number of channels in CFG
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800955
Jeff Johnson295189b2012-06-20 16:38:30 -0700956 tANI_S32 sPendingCommands;
Jeff Johnson295189b2012-06-20 16:38:30 -0700957 tPalTimerHandle hTimerWaitForKey; //To support timeout for WaitForKey state
958 tCsrSummaryStatsInfo summaryStatsInfo;
959 tCsrGlobalClassAStatsInfo classAStatsInfo;
960 tCsrGlobalClassBStatsInfo classBStatsInfo;
961 tCsrGlobalClassCStatsInfo classCStatsInfo;
962 tCsrGlobalClassDStatsInfo classDStatsInfo;
963 tCsrPerStaStatsInfo perStaStatsInfo[CSR_MAX_STA];
964 tDblLinkList statsClientReqList;
965 tDblLinkList peStatsReqList;
966 tCsrTlStatsReqInfo tlStatsReqInfo;
967 eCsrRoamLinkQualityInd vccLinkQuality;
968 tCsrLinkQualityIndInfo linkQualityIndInfo;
969 v_CONTEXT_t gVosContext; //used for interaction with TL
970 //To specify whether an association or a IBSS is WMM enabled
971 //This parameter is only valid during a join or start BSS command is being executed
972 //tANI_BOOLEAN fWMMConnection; /* Moving it to be part of roamsession */
973 v_U8_t ucACWeights[WLANTL_MAX_AC];
974 /* TODO : Upto here */
975 tCsrTimerInfo WaitForKeyTimerInfo;
976 tCsrRoamSession *roamSession;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800977 tANI_U32 transactionId; // Current transaction ID for internal use.
978#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Jeff Johnson295189b2012-06-20 16:38:30 -0700979 tCsrNeighborRoamControlInfo neighborRoamInfo;
980#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700981#ifdef FEATURE_WLAN_LFR
982 tANI_U8 isFastRoamIniFeatureEnabled;
983#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700984#ifdef FEATURE_WLAN_CCX
985 tANI_U8 isCcxIniFeatureEnabled;
986#endif
Jeff Johnson43971f52012-07-17 12:26:56 -0700987#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -0700988 tANI_U8 RoamRssiDiff;
989 tANI_BOOLEAN isWESModeEnabled;
Jeff Johnson43971f52012-07-17 12:26:56 -0700990#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700991}tCsrRoamStruct;
992
993
994#define GET_NEXT_ROAM_ID(pRoamStruct) (((pRoamStruct)->nextRoamId + 1 == 0) ? 1 : (pRoamStruct)->nextRoamId)
995#define CSR_IS_ROAM_STATE(pMac, state, sessionId) ( (state) == (pMac)->roam.curState[sessionId] )
996
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800997#define CSR_IS_ROAM_STOP(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_STOP, sessionId )
998#define CSR_IS_ROAM_INIT(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_INIT, sessionId )
Jeff Johnson295189b2012-06-20 16:38:30 -0700999#define CSR_IS_ROAM_SCANNING(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_SCANNING, sessionId )
1000#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 -08001001#define CSR_IS_ROAM_IDLE(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_IDLE, sessionId )
Jeff Johnson295189b2012-06-20 16:38:30 -07001002#define CSR_IS_ROAM_JOINED(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_JOINED, sessionId )
1003
1004#define CSR_IS_ROAM_SUBSTATE(pMac, subState, sessionId) ((subState) == (pMac)->roam.curSubState[sessionId])
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001005#define CSR_IS_ROAM_SUBSTATE_JOIN_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOIN_REQ, sessionId)
1006#define CSR_IS_ROAM_SUBSTATE_AUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_AUTH_REQ, sessionId)
1007#define CSR_IS_ROAM_SUBSTATE_REASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_REASSOC_REQ, sessionId)
1008#define CSR_IS_ROAM_SUBSTATE_DISASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REQ, sessionId)
1009#define CSR_IS_ROAM_SUBSTATE_DISASSOC_NO_JOIN(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_NOTHING_TO_JOIN, sessionId)
1010#define CSR_IS_ROAM_SUBSTATE_REASSOC_FAIL(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REASSOC_FAILURE, sessionId)
1011#define CSR_IS_ROAM_SUBSTATE_DISASSOC_FORCED(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_FORCED, sessionId)
1012#define CSR_IS_ROAM_SUBSTATE_DEAUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DEAUTH_REQ, sessionId)
1013#define CSR_IS_ROAM_SUBSTATE_START_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_START_BSS_REQ, sessionId)
1014#define CSR_IS_ROAM_SUBSTATE_STOP_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_STOP_BSS_REQ, sessionId)
1015#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 -07001016#define CSR_IS_ROAM_SUBSTATE_CONFIG(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_CONFIG, sessionId)
1017#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 -08001018#define CSR_IS_ROAM_SUBSTATE_DISASSOC_HO(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_HANDOFF, sessionId)
1019#define CSR_IS_ROAM_SUBSTATE_HO_NT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NO_TRAFFIC, sessionId)
1020#define CSR_IS_ROAM_SUBSTATE_HO_NRT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NON_REALTIME_TRAFFIC, sessionId)
1021#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 -07001022
1023#define CSR_IS_PHY_MODE_B_ONLY(pMac) \
1024 ((eCSR_DOT11_MODE_11b == (pMac)->roam.configParam.phyMode) ||\
1025 (eCSR_DOT11_MODE_11b_ONLY == (pMac)->roam.configParam.phyMode))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001026
Jeff Johnson295189b2012-06-20 16:38:30 -07001027#define CSR_IS_PHY_MODE_G_ONLY(pMac) \
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001028 (eCSR_DOT11_MODE_11g == (pMac)->roam.configParam.phyMode || eCSR_DOT11_MODE_11g_ONLY == (pMac)->roam.configParam.phyMode)
1029
Jeff Johnson295189b2012-06-20 16:38:30 -07001030#define CSR_IS_PHY_MODE_A_ONLY(pMac) \
1031 ((eCSR_DOT11_MODE_11a == (pMac)->roam.configParam.phyMode) ||\
1032 (eCSR_DOT11_MODE_11a_ONLY == (pMac)->roam.configParam.phyMode))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001033
Jeff Johnsone7245742012-09-05 17:12:55 -07001034#ifdef WLAN_FEATURE_11AC
1035#define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \
1036 ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \
1037 (eCSR_DOT11_MODE_11ac & (phyMode)) || \
1038 (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \
1039 (eCSR_DOT11_MODE_AUTO & (phyMode)))
1040#else
Jeff Johnson295189b2012-06-20 16:38:30 -07001041#define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \
1042 ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \
1043 (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \
1044 (eCSR_DOT11_MODE_AUTO & (phyMode)))
Jeff Johnsone7245742012-09-05 17:12:55 -07001045#endif
1046
Jeff Johnson295189b2012-06-20 16:38:30 -07001047
1048// this function returns TRUE if the NIC is operating exclusively in the 2.4 GHz band, meaning
1049// it is NOT operating in the 5.0 GHz band.
1050#define CSR_IS_24_BAND_ONLY(pMac) \
1051 (eCSR_BAND_24 == (pMac)->roam.configParam.eBand)
1052
1053#define CSR_IS_5G_BAND_ONLY(pMac) \
1054 (eCSR_BAND_5G == (pMac)->roam.configParam.eBand)
1055
1056#define CSR_IS_RADIO_DUAL_BAND(pMac) \
1057 (eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability)
1058
1059#define CSR_IS_RADIO_BG_ONLY(pMac) \
1060 (eCSR_BAND_24 == (pMac)->roam.configParam.bandCapability)
1061
1062// this function returns TRUE if the NIC is operating exclusively in the 5.0 GHz band, meaning
1063// it is NOT operating in the 2.4 GHz band
1064#define CSR_IS_RADIO_A_ONLY(pMac) \
1065 (eCSR_BAND_5G == (pMac)->roam.configParam.bandCapability)
1066
1067// this function returns TRUE if the NIC is operating in both bands.
1068#define CSR_IS_OPEARTING_DUAL_BAND(pMac) \
1069 ((eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability) && (eCSR_BAND_ALL == (pMac)->roam.configParam.eBand))
1070
1071// this function returns TRUE if the NIC can operate in the 5.0 GHz band (could operate in the
1072// 2.4 GHz band also).
1073#define CSR_IS_OPERATING_A_BAND(pMac) \
1074 (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_A_ONLY((pMac)) || CSR_IS_5G_BAND_ONLY((pMac)))
1075
1076// this function returns TRUE if the NIC can operate in the 2.4 GHz band (could operate in the
1077// 5.0 GHz band also).
1078#define CSR_IS_OPERATING_BG_BAND(pMac) \
1079 (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_BG_ONLY((pMac)) || CSR_IS_24_BAND_ONLY((pMac)))
1080
1081#define CSR_IS_CHANNEL_5GHZ(chnNum) \
Jeff Johnsone7245742012-09-05 17:12:55 -07001082 (((chnNum) >= CSR_MIN_5GHz_CHANNEL_NUMBER) && ((chnNum) <= CSR_MAX_5GHz_CHANNEL_NUMBER))
Jeff Johnson295189b2012-06-20 16:38:30 -07001083
Srinivas Girigowdade697412013-02-14 16:31:48 -08001084#define CSR_IS_CHANNEL_DFS(chnNum) \
1085 (NV_CHANNEL_ENABLE != vos_nv_getChannelEnabledState(chnNum))
1086
Jeff Johnson295189b2012-06-20 16:38:30 -07001087#define CSR_IS_CHANNEL_24GHZ(chnNum) \
1088 (((chnNum) > 0) && ((chnNum) <= CSR_MAX_24GHz_CHANNEL_NUMBER))
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001089
Jeff Johnson295189b2012-06-20 16:38:30 -07001090#define CSR_IS_SAME_BAND_CHANNELS(ch1, ch2) (CSR_IS_CHANNEL_5GHZ(ch1) == CSR_IS_CHANNEL_5GHZ(ch2))
1091
1092
1093#define CSR_IS_11D_INFO_FOUND(pMac) \
1094 (0 != (pMac)->scan.channelOf11dInfo)
1095// DEAUTHIND
1096#define CSR_IS_ROAMING(pSession) ((CSR_IS_LOSTLINK_ROAMING((pSession)->roamingReason)) || \
1097 (eCsrDynamicRoaming == (pSession)->roamingReason) || \
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001098 (eCsrReassocRoaming == (pSession)->roamingReason))
Jeff Johnson295189b2012-06-20 16:38:30 -07001099
1100
1101#define CSR_IS_SET_KEY_COMMAND( pCommand ) ( eSmeCommandSetKey == (pCommand)->command )
1102
1103#define CSR_IS_ADDTS_WHEN_ACMOFF_SUPPORTED(pMac) (pMac->roam.configParam.addTSWhenACMIsOff)
1104// DEAUTHIND
1105#define CSR_IS_LOSTLINK_ROAMING(reason) ((eCsrLostlinkRoamingDisassoc == (reason)) || (eCsrLostlinkRoamingDeauth == (reason)))
1106
Venkata Prathyusha Kuntupalli239278b2013-03-26 15:58:18 -07001107#define CSR_IS_ROAMING_COMMAND(pCommand) ((eCsrLostLink1 == (pCommand)->u.roamCmd.roamReason) ||\
1108 (eCsrLostLink2 == (pCommand)->u.roamCmd.roamReason) ||\
1109 (eCsrLostLink3 == (pCommand)->u.roamCmd.roamReason) )
1110
1111
Jeff Johnson295189b2012-06-20 16:38:30 -07001112//Stop CSR from asking for IMPS, This function doesn't disable IMPS from CSR
1113void csrScanSuspendIMPS( tpAniSirGlobal pMac );
1114//Start CSR from asking for IMPS. This function doesn't trigger CSR to request entering IMPS
1115//because IMPS maybe disabled.
1116void csrScanResumeIMPS( tpAniSirGlobal pMac );
1117
1118eHalStatus csrInitGetChannels(tpAniSirGlobal pMac);
Venkata Prathyusha Kuntupalli316247e2013-03-15 17:45:25 -07001119// Getting the 5GHz Channel list
1120eHalStatus csrGet5GChannels(tpAniSirGlobal pMac);
1121// Getting the 2.4GHz Channel list
1122eHalStatus csrGet24GChannels(tpAniSirGlobal pMac);
Jeff Johnson295189b2012-06-20 16:38:30 -07001123
1124eHalStatus csrSetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId,
1125 tCsrRoamModifyProfileFields *pModifyProfileFields);
1126/* ---------------------------------------------------------------------------
1127 \fn csrGetModifyProfileFields
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001128 \brief HDD or SME - QOS calls this function to get the current values of
Jeff Johnson295189b2012-06-20 16:38:30 -07001129 connected profile fields changing which can cause reassoc.
1130 This function must be called after CFG is downloaded and STA is in connected
1131 state.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001132 \param pModifyProfileFields - pointer to the connected profile fields
Jeff Johnson295189b2012-06-20 16:38:30 -07001133 changing which can cause reassoc
1134
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001135 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001136 -------------------------------------------------------------------------------*/
1137eHalStatus csrGetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId,
1138 tCsrRoamModifyProfileFields * pModifyProfileFields);
1139void csrSetGlobalCfgs( tpAniSirGlobal pMac );
1140void csrSetDefaultDot11Mode( tpAniSirGlobal pMac );
1141void csrScanSetChannelMask(tpAniSirGlobal pMac, tCsrChannelInfo *pChannelInfo);
1142tANI_BOOLEAN csrIsConnStateDisconnected(tpAniSirGlobal pMac, tANI_U32 sessionId);
1143tANI_BOOLEAN csrIsConnStateConnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1144tANI_BOOLEAN csrIsConnStateDisconnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1145tANI_BOOLEAN csrIsConnStateConnectedInfra( tpAniSirGlobal pMac, tANI_U32 sessionId );
1146tANI_BOOLEAN csrIsConnStateConnected( tpAniSirGlobal pMac, tANI_U32 sessionId );
1147tANI_BOOLEAN csrIsConnStateInfra( tpAniSirGlobal pMac, tANI_U32 sessionId );
1148tANI_BOOLEAN csrIsConnStateIbss( tpAniSirGlobal pMac, tANI_U32 sessionId );
1149tANI_BOOLEAN csrIsConnStateWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1150tANI_BOOLEAN csrIsConnStateConnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1151tANI_BOOLEAN csrIsConnStateDisconnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId );
1152tANI_BOOLEAN csrIsAnySessionInConnectState( tpAniSirGlobal pMac );
1153tANI_BOOLEAN csrIsAllSessionDisconnected( tpAniSirGlobal pMac );
Madan Mohan Koyyalamudi48081ef2012-12-04 16:49:55 -08001154tANI_BOOLEAN csrIsStaSessionConnected( tpAniSirGlobal pMac );
1155tANI_BOOLEAN csrIsP2pSessionConnected( tpAniSirGlobal pMac );
Madan Mohan Koyyalamudid3d22592012-09-24 14:01:29 -07001156tANI_BOOLEAN csrIsAnySessionConnected( tpAniSirGlobal pMac );
Jeff Johnson295189b2012-06-20 16:38:30 -07001157tANI_BOOLEAN csrIsInfraConnected( tpAniSirGlobal pMac );
1158tANI_BOOLEAN csrIsConcurrentInfraConnected( tpAniSirGlobal pMac );
Jeff Johnsone7245742012-09-05 17:12:55 -07001159tANI_BOOLEAN csrIsConcurrentSessionRunning( tpAniSirGlobal pMac );
Jeff Johnsone7245742012-09-05 17:12:55 -07001160tANI_BOOLEAN csrIsInfraApStarted( tpAniSirGlobal pMac );
Jeff Johnson295189b2012-06-20 16:38:30 -07001161tANI_BOOLEAN csrIsIBSSStarted( tpAniSirGlobal pMac );
1162tANI_BOOLEAN csrIsBTAMPStarted( tpAniSirGlobal pMac );
1163tANI_BOOLEAN csrIsBTAMP( tpAniSirGlobal pMac, tANI_U32 sessionId );
1164eHalStatus csrIsBTAMPAllowed( tpAniSirGlobal pMac, tANI_U32 chnId );
Jeff Johnsone7245742012-09-05 17:12:55 -07001165tANI_BOOLEAN csrIsValidMcConcurrentSession(tpAniSirGlobal pMac, tANI_U32 sessionId,
1166 tSirBssDescription *pBssDesc);
Jeff Johnson295189b2012-06-20 16:38:30 -07001167tANI_BOOLEAN csrIsConnStateConnectedInfraAp( tpAniSirGlobal pMac, tANI_U32 sessionId );
Jeff Johnson295189b2012-06-20 16:38:30 -07001168/*----------------------------------------------------------------------------
1169 \fn csrRoamRegisterLinkQualityIndCallback
1170
1171 \brief
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001172 a CSR function to allow HDD to register a callback handler with CSR for
1173 link quality indications.
Jeff Johnson295189b2012-06-20 16:38:30 -07001174
1175 Only one callback may be registered at any time.
1176 In order to deregister the callback, a NULL cback may be provided.
1177
1178 Registration happens in the task context of the caller.
1179
1180 \param callback - Call back being registered
1181 \param pContext - user data
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001182
Jeff Johnson295189b2012-06-20 16:38:30 -07001183 DEPENDENCIES: After CSR open
1184
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001185 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001186-----------------------------------------------------------------------------*/
1187eHalStatus csrRoamRegisterLinkQualityIndCallback(tpAniSirGlobal pMac,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001188 csrRoamLinkQualityIndCallback callback,
Jeff Johnson295189b2012-06-20 16:38:30 -07001189 void *pContext);
1190/* ---------------------------------------------------------------------------
1191 \fn csrGetStatistics
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001192 \brief csr function that client calls to register a callback to get
1193 different PHY level statistics from CSR.
1194
Jeff Johnson295189b2012-06-20 16:38:30 -07001195 \param requesterId - different client requesting for statistics, HDD, UMA/GAN etc
1196 \param statsMask - The different category/categories of stats requester is looking for
1197 \param callback - SME sends back the requested stats using the callback
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001198 \param periodicity - If requester needs periodic update, 0 means it's an one
Jeff Johnson295189b2012-06-20 16:38:30 -07001199 time request
1200 \param cache - If requester is happy with cached stats
1201 \param staId - The station ID for which the stats is requested for
1202 \param pContext - user context to be passed back along with the callback
1203
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001204 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001205 ---------------------------------------------------------------------------*/
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001206eHalStatus csrGetStatistics(tpAniSirGlobal pMac, eCsrStatsRequesterType requesterId,
1207 tANI_U32 statsMask,
1208 tCsrStatsCallback callback,
1209 tANI_U32 periodicity, tANI_BOOLEAN cache,
Jeff Johnson295189b2012-06-20 16:38:30 -07001210 tANI_U8 staId, void *pContext);
1211
1212
1213eHalStatus csrGetRssi(tpAniSirGlobal pMac,tCsrRssiCallback callback,tANI_U8 staId,tCsrBssid bssId,void * pContext,void * pVosContext);
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08001214#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_CCX || defined(FEATURE_WLAN_LFR)
1215eHalStatus csrGetRoamRssi(tpAniSirGlobal pMac,
1216 tCsrRssiCallback callback,
1217 tANI_U8 staId,
1218 tCsrBssid bssId,
1219 void * pContext,
1220 void * pVosContext);
1221#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001222eHalStatus csrRoamRegisterCallback(tpAniSirGlobal pMac, csrRoamCompleteCallback callback, void *pContext);
1223/* ---------------------------------------------------------------------------
1224 \fn csrGetConfigParam
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001225 \brief HDD calls this function to get the global settings currently maintained by CSR.
Jeff Johnson295189b2012-06-20 16:38:30 -07001226 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001227 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001228 -------------------------------------------------------------------------------*/
1229eHalStatus csrGetConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam);
1230
1231/* ---------------------------------------------------------------------------
1232 \fn csrMsgProcessor
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001233 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001234 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1235 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001236 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001237 -------------------------------------------------------------------------------*/
1238eHalStatus csrChangeDefaultConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam);
1239
1240
1241/* ---------------------------------------------------------------------------
1242 \fn csrMsgProcessor
1243 \brief HDD calls this function for the messages that are handled by CSR.
1244 \param pMsgBuf - a pointer to a buffer that maps to various structures base on the message type.
1245 The beginning of the buffer can always map to tSirSmeRsp.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001246 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001247 -------------------------------------------------------------------------------*/
1248eHalStatus csrMsgProcessor( tpAniSirGlobal pMac, void *pMsgBuf );
1249
1250/* ---------------------------------------------------------------------------
1251 \fn csrOpen
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001252 \brief This function must be called before any API call to CSR.
1253 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001254 -------------------------------------------------------------------------------*/
1255eHalStatus csrOpen(tpAniSirGlobal pMac);
1256/* ---------------------------------------------------------------------------
1257 \fn csrClose
1258 \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 -08001259 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001260 -------------------------------------------------------------------------------*/
1261eHalStatus csrClose(tpAniSirGlobal pMac);
1262/* ---------------------------------------------------------------------------
1263 \fn csrStart
1264 \brief To start CSR.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001265 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001266 -------------------------------------------------------------------------------*/
1267eHalStatus csrStart(tpAniSirGlobal pMac);
1268/* ---------------------------------------------------------------------------
1269 \fn csrStop
1270 \brief To stop CSR. CSR still keeps its current setting.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001271 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001272 -------------------------------------------------------------------------------*/
1273eHalStatus csrStop(tpAniSirGlobal pMac);
1274/* ---------------------------------------------------------------------------
1275 \fn csrReady
1276 \brief To let CSR is ready to operate
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001277 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001278 -------------------------------------------------------------------------------*/
1279eHalStatus csrReady(tpAniSirGlobal pMac);
1280
1281#ifdef FEATURE_WLAN_WAPI
1282eHalStatus csrRoamGetBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pNum,
1283 tBkidCacheInfo *pBkidCache);
1284
1285
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001286eHalStatus csrScanGetBKIDCandidateList(tpAniSirGlobal pMac, tANI_U32 sessionId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001287 tBkidCandidateInfo *pBkidList, tANI_U32 *pNumItems );
1288tANI_U32 csrRoamGetNumBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId);
1289eHalStatus csrRoamSetBKIDCache( tpAniSirGlobal pMac, tANI_U32 sessionId, tBkidCacheInfo *pBKIDCache,
1290 tANI_U32 numItems );
1291/* ---------------------------------------------------------------------------
1292 \fn csrRoamGetWapiReqIE
1293 \brief return the WAPI IE CSR passes to PE to JOIN request or START_BSS request
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001294 \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 -07001295 needed or IE length in pBuf.
1296 \param pBuf - Caller allocated memory that contain the IE field, if any, upon return
1297 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1298 -------------------------------------------------------------------------------*/
1299eHalStatus csrRoamGetWapiReqIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf);
1300
1301/* ---------------------------------------------------------------------------
1302 \fn csrRoamGetWapiRspIE
1303 \brief return the WAPI IE from the beacon or probe rsp if connected
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001304 \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 -07001305 needed or IE length in pBuf.
1306 \param pBuf - Caller allocated memory that contain the IE field, if any, upon return
1307 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1308 -------------------------------------------------------------------------------*/
1309eHalStatus csrRoamGetWapiRspIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001310tANI_U8 csrConstructWapiIe( tpAniSirGlobal pMac, tANI_U32 sessionId, tCsrRoamProfile *pProfile,
Jeff Johnson295189b2012-06-20 16:38:30 -07001311 tSirBssDescription *pSirBssDesc, tDot11fBeaconIEs *pIes, tCsrWapiIe *pWapiIe );
1312#endif /* FEATURE_WLAN_WAPI */
1313
Jeff Johnson295189b2012-06-20 16:38:30 -07001314eHalStatus csrRoamUpdateAPWPSIE( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirAPWPSIEs *pAPWPSIES );
1315eHalStatus csrRoamUpdateWPARSNIEs( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirRSNie * pAPSirRSNie);
Jeff Johnson295189b2012-06-20 16:38:30 -07001316void csrSetCfgPrivacy( tpAniSirGlobal pMac, tCsrRoamProfile *pProfile, tANI_BOOLEAN fPrivacy );
1317tANI_S8 csrGetInfraSessionId( tpAniSirGlobal pMac );
1318tANI_U8 csrGetInfraOperationChannel( tpAniSirGlobal pMac, tANI_U8 sessionId);
1319tANI_U8 csrGetConcurrentOperationChannel( tpAniSirGlobal pMac );
1320
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001321eHalStatus csrRoamCopyConnectProfile(tpAniSirGlobal pMac, tANI_U32 sessionId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001322 tCsrRoamConnectedProfile *pProfile);
1323tANI_BOOLEAN csrIsSetKeyAllowed(tpAniSirGlobal pMac, tANI_U32 sessionId);
1324
1325void csrSetOppositeBandChannelInfo( tpAniSirGlobal pMac );
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001326void csrConstructCurrentValidChannelList( tpAniSirGlobal pMac, tDblLinkList *pChannelSetList,
Jeff Johnson295189b2012-06-20 16:38:30 -07001327 tANI_U8 *pChannelList, tANI_U8 bSize, tANI_U8 *pNumChannels );
Srikant Kuppa066904f2013-05-07 13:56:02 -07001328eHalStatus csrScanSavePreferredNetworkFound(tpAniSirGlobal pMac,
1329 tSirPrefNetworkFoundInd *pPrefNetworkFoundInd);
Jeff Johnson295189b2012-06-20 16:38:30 -07001330#endif
1331
1332#ifdef WLAN_FEATURE_VOWIFI_11R
1333//Returns whether the current association is a 11r assoc or not
1334tANI_BOOLEAN csrRoamIs11rAssoc(tpAniSirGlobal pMac);
1335#endif
1336
1337#ifdef FEATURE_WLAN_CCX
1338//Returns whether the current association is a CCX assoc or not
1339tANI_BOOLEAN csrRoamIsCCXAssoc(tpAniSirGlobal pMac);
1340#endif
1341
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001342//Remove this code once SLM_Sessionization is supported
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07001343//BMPS_WORKAROUND_NOT_NEEDED
Jeff Johnson295189b2012-06-20 16:38:30 -07001344void csrDisconnectAllActiveSessions(tpAniSirGlobal pMac);
Mohit Khanna349bc392012-09-11 17:24:52 -07001345
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001346#ifdef FEATURE_WLAN_LFR
1347//Returns whether "Legacy Fast Roaming" is enabled...or not
Madan Mohan Koyyalamudi03aae5f2012-11-28 01:51:22 +05301348tANI_BOOLEAN csrRoamIsFastRoamEnabled(tpAniSirGlobal pMac, tANI_U32 sessionId);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001349#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1350tANI_BOOLEAN csrRoamIsRoamOffloadScanEnabled(tpAniSirGlobal pMac);
1351#endif
Madan Mohan Koyyalamudi470d2cf2012-09-28 14:43:44 -07001352tANI_BOOLEAN csrIsChannelPresentInList( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel );
1353VOS_STATUS csrAddToChannelListFront( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel );
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001354#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1355eHalStatus csrScanRequestLfrResult(tpAniSirGlobal pMac, tANI_U32 sessionId,
1356 csrScanCompleteCallback callback, void *pContext);
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001357eHalStatus csrRoamOffloadScanRspHdlr(tpAniSirGlobal pMac, tANI_U8 reason);
1358eHalStatus csrHandoffRequest(tpAniSirGlobal pMac, tCsrHandoffRequest *pHandoffInfo);
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001359#endif
1360tANI_BOOLEAN csrRoamIsStaMode(tpAniSirGlobal pMac, tANI_U32 sessionId);
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001361#endif
1362