blob: 1cb06c93887da8dfa51bf8031dd43925b779574a [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 \file csrApi.h
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080045
Jeff Johnson295189b2012-06-20 16:38:30 -070046 Exports and types for the Common Scan and Roaming Module interfaces.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080047
48 Copyright (C) 2006 Airgo Networks, Incorporated
Jeff Johnson295189b2012-06-20 16:38:30 -070049 ========================================================================== */
50#ifndef CSRAPI_H__
51#define CSRAPI_H__
52
53#include "sirApi.h"
54#include "sirMacProtDef.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070055#include "csrLinkList.h"
56
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080057typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -070058{
59 eCSR_AUTH_TYPE_NONE, //never used
60 // MAC layer authentication types
61 eCSR_AUTH_TYPE_OPEN_SYSTEM,
62 eCSR_AUTH_TYPE_SHARED_KEY,
63 eCSR_AUTH_TYPE_AUTOSWITCH,
64
65 // Upper layer authentication types
66 eCSR_AUTH_TYPE_WPA,
67 eCSR_AUTH_TYPE_WPA_PSK,
68 eCSR_AUTH_TYPE_WPA_NONE,
69
70 eCSR_AUTH_TYPE_RSN,
71 eCSR_AUTH_TYPE_RSN_PSK,
72#if defined WLAN_FEATURE_VOWIFI_11R
73 eCSR_AUTH_TYPE_FT_RSN,
74 eCSR_AUTH_TYPE_FT_RSN_PSK,
75#endif
76#ifdef FEATURE_WLAN_WAPI
77 eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE,
78 eCSR_AUTH_TYPE_WAPI_WAI_PSK,
79#endif /* FEATURE_WLAN_WAPI */
80#ifdef FEATURE_WLAN_CCX
81 eCSR_AUTH_TYPE_CCKM_WPA,
82 eCSR_AUTH_TYPE_CCKM_RSN,
83#endif /* FEATURE_WLAN_CCX */
Chet Lanctot186b5732013-03-18 10:26:30 -070084#ifdef WLAN_FEATURE_11W
85 eCSR_AUTH_TYPE_RSN_PSK_SHA256,
86#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070087 eCSR_NUM_OF_SUPPORT_AUTH_TYPE,
88 eCSR_AUTH_TYPE_FAILED = 0xff,
89 eCSR_AUTH_TYPE_UNKNOWN = eCSR_AUTH_TYPE_FAILED,
90
91}eCsrAuthType;
92
93
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080094typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -070095{
96 eCSR_ENCRYPT_TYPE_NONE,
97 eCSR_ENCRYPT_TYPE_WEP40_STATICKEY,
98 eCSR_ENCRYPT_TYPE_WEP104_STATICKEY,
99
100 eCSR_ENCRYPT_TYPE_WEP40,
101 eCSR_ENCRYPT_TYPE_WEP104,
102 eCSR_ENCRYPT_TYPE_TKIP,
103 eCSR_ENCRYPT_TYPE_AES,
104#ifdef FEATURE_WLAN_WAPI
105 eCSR_ENCRYPT_TYPE_WPI, //WAPI
106#endif /* FEATURE_WLAN_WAPI */
107#ifdef FEATURE_WLAN_CCX
108 eCSR_ENCRYPT_TYPE_KRK,
109#endif /* FEATURE_WLAN_CCX */
110#ifdef WLAN_FEATURE_11W
111 //11w BIP
112 eCSR_ENCRYPT_TYPE_AES_CMAC,
113#endif
114 eCSR_ENCRYPT_TYPE_ANY,
115 eCSR_NUM_OF_ENCRYPT_TYPE = eCSR_ENCRYPT_TYPE_ANY,
116
117 eCSR_ENCRYPT_TYPE_FAILED = 0xff,
118 eCSR_ENCRYPT_TYPE_UNKNOWN = eCSR_ENCRYPT_TYPE_FAILED,
119
120}eCsrEncryptionType;
121
122/*---------------------------------------------------------------------------
123 Enumeration of the various Security types
124---------------------------------------------------------------------------*/
125typedef enum
126{
127 eCSR_SECURITY_TYPE_WPA,
128 eCSR_SECURITY_TYPE_RSN,
129#ifdef FEATURE_WLAN_WAPI
130 eCSR_SECURITY_TYPE_WAPI,
131#endif /* FEATURE_WLAN_WAPI */
132 eCSR_SECURITY_TYPE_UNKNOWN,
133
134}eCsrSecurityType;
135
136typedef enum
137{
138 eCSR_DOT11_MODE_TAURUS = 0, //This mean everything because it covers all thing we support
139 eCSR_DOT11_MODE_abg = 0x0001, //11a/b/g only, no HT, no proprietary
140 eCSR_DOT11_MODE_11a = 0x0002,
141 eCSR_DOT11_MODE_11b = 0x0004,
142 eCSR_DOT11_MODE_11g = 0x0008,
143 eCSR_DOT11_MODE_11n = 0x0010,
144 eCSR_DOT11_MODE_POLARIS = 0x0020,
145 eCSR_DOT11_MODE_TITAN = 0x0040,
146 eCSR_DOT11_MODE_11g_ONLY = 0x0080,
147 eCSR_DOT11_MODE_11n_ONLY = 0x0100,
148 eCSR_DOT11_MODE_TAURUS_ONLY = 0x0200,
149 eCSR_DOT11_MODE_11b_ONLY = 0x0400,
150 eCSR_DOT11_MODE_11a_ONLY = 0x0800,
Jeff Johnsone7245742012-09-05 17:12:55 -0700151#ifdef WLAN_FEATURE_11AC
152 eCSR_DOT11_MODE_11ac = 0x1000,
153 eCSR_DOT11_MODE_11ac_ONLY = 0x2000,
154#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700155 //This is for WIFI test. It is same as eWNIAPI_MAC_PROTOCOL_ALL except when it starts IBSS in 11B of 2.4GHz
156 //It is for CSR internal use
Jeff Johnsone7245742012-09-05 17:12:55 -0700157 eCSR_DOT11_MODE_AUTO = 0x4000,
Jeff Johnson295189b2012-06-20 16:38:30 -0700158
159 eCSR_NUM_PHY_MODE = 16, //specify the number of maximum bits for phyMode
160}eCsrPhyMode;
161
162
163typedef tANI_U8 tCsrBssid[WNI_CFG_BSSID_LEN];
164
165typedef enum
166{
Varun Reddy Yeturu2cc78922013-04-10 11:50:02 -0700167 eCSR_BSS_TYPE_NONE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700168 eCSR_BSS_TYPE_INFRASTRUCTURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700169 eCSR_BSS_TYPE_INFRA_AP, // SoftAP AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700170 eCSR_BSS_TYPE_IBSS, // an IBSS network we will NOT start
171 eCSR_BSS_TYPE_START_IBSS, // an IBSS network we will start if no partners detected.
172 eCSR_BSS_TYPE_WDS_AP, // BT-AMP AP
173 eCSR_BSS_TYPE_WDS_STA, // BT-AMP station
174 eCSR_BSS_TYPE_ANY, // any BSS type (IBSS or Infrastructure).
175}eCsrRoamBssType;
176
177
178
179typedef enum {
180 eCSR_SCAN_REQUEST_11D_SCAN = 1,
181 eCSR_SCAN_REQUEST_FULL_SCAN,
182 eCSR_SCAN_IDLE_MODE_SCAN,
183 eCSR_SCAN_HO_BG_SCAN, // bg scan request in NRT & RT Handoff sub-states
184 eCSR_SCAN_HO_PROBE_SCAN, // directed probe on an entry from the candidate list
185 eCSR_SCAN_HO_NT_BG_SCAN, // bg scan request in NT sub-state
186 eCSR_SCAN_P2P_DISCOVERY,
187
188 eCSR_SCAN_SOFTAP_CHANNEL_RANGE,
189 eCSR_SCAN_P2P_FIND_PEER,
190}eCsrRequestType;
191
192typedef enum {
193 eCSR_SCAN_RESULT_GET = 0,
194 eCSR_SCAN_RESULT_FLUSH = 1, //to delete all cached scan results
195}eCsrScanResultCmd;
196
197typedef enum
198{
199 eCSR_SCAN_SUCCESS,
200 eCSR_SCAN_FAILURE,
201 eCSR_SCAN_ABORT,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800202 eCSR_SCAN_FOUND_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700203}eCsrScanStatus;
204
205#define CSR_SCAN_TIME_DEFAULT 0
206#define CSR_VALUE_IGNORED 0xFFFFFFFF
207#define CSR_RSN_PMKID_SIZE 16
208#define CSR_MAX_PMKID_ALLOWED 16
209#define CSR_WEP40_KEY_LEN 5
210#define CSR_WEP104_KEY_LEN 13
211#define CSR_TKIP_KEY_LEN 32
212#define CSR_AES_KEY_LEN 16
213#define CSR_MAX_TX_POWER ( WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX )
214#define CSR_MAX_RSC_LEN 16
215#ifdef FEATURE_WLAN_WAPI
216#define CSR_WAPI_BKID_SIZE 16
217#define CSR_MAX_BKID_ALLOWED 16
218#define CSR_WAPI_KEY_LEN 32
219#define CSR_MAX_KEY_LEN ( CSR_WAPI_KEY_LEN ) //longest one is for WAPI
220#else
221#define CSR_MAX_KEY_LEN ( CSR_TKIP_KEY_LEN ) //longest one is for TKIP
222#endif /* FEATURE_WLAN_WAPI */
223#ifdef FEATURE_WLAN_CCX
224#define CSR_KRK_KEY_LEN 16
225#endif
226
227
228
229typedef struct tagCsrChannelInfo
230{
231 tANI_U8 numOfChannels;
232 tANI_U8 *ChannelList; //it will be an array of channels
Madan Mohan Koyyalamudidd3c9662012-11-09 17:39:30 -0800233}tCsrChannelInfo, *tpCsrChannelInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700234
Srinivas Girigowdade697412013-02-14 16:31:48 -0800235#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
236typedef struct tagCsrCountryChannelInfo
237{
238 tCsrChannelInfo countryValidChannelList;
239 tANI_U8 revision; /* KR 25, 25 is the country revision index
240 to the list of valid channels */
241}tCsrCountryChannelInfo, *tpCsrCountryChannelInfo;
242#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700243typedef struct tagCsrSSIDInfo
244{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800245 tSirMacSSid SSID;
Jeff Johnson295189b2012-06-20 16:38:30 -0700246 tANI_BOOLEAN handoffPermitted;
247 tANI_BOOLEAN ssidHidden;
248}tCsrSSIDInfo;
249
250typedef struct tagCsrSSIDs
251{
252 tANI_U32 numOfSSIDs;
253 tCsrSSIDInfo *SSIDList; //To be allocated for array of SSIDs
254}tCsrSSIDs;
255
256typedef struct tagCsrBSSIDs
257{
258 tANI_U32 numOfBSSIDs;
259 tCsrBssid *bssid;
260}tCsrBSSIDs;
261
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800262typedef struct tagCsrStaParams
263{
264 tANI_U16 capability;
265 tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP];
266 tANI_U8 supported_rates_len;
267 tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES];
Hoonki Lee66b75f32013-04-16 18:30:07 -0700268 tANI_U8 htcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800269 tSirHTCap HTCap;
Hoonki Lee66b75f32013-04-16 18:30:07 -0700270 tANI_U8 vhtcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800271 tSirVHTCap VHTCap;
272 tANI_U8 uapsd_queues;
273 tANI_U8 max_sp;
274}tCsrStaParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700275
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800276typedef struct tagCsrScanRequest
Jeff Johnson295189b2012-06-20 16:38:30 -0700277{
278 tSirScanType scanType;
279 tCsrBssid bssid;
280 eCsrRoamBssType BSSType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800281 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700282 tCsrChannelInfo ChannelInfo;
283 tANI_U32 minChnTime; //in units of milliseconds
284 tANI_U32 maxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800285 tANI_U32 minChnTimeBtc; //in units of milliseconds
286 tANI_U32 maxChnTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700287 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
288 tANI_U32 uIEFieldLen;
289 tANI_U8 *pIEField;
290 eCsrRequestType requestType; //11d scan or full scan
Jeff Johnson295189b2012-06-20 16:38:30 -0700291 tANI_BOOLEAN p2pSearch;
Jeff Johnsone7245742012-09-05 17:12:55 -0700292 tANI_BOOLEAN skipDfsChnlInP2pSearch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700293}tCsrScanRequest;
294
295typedef struct tagCsrBGScanRequest
296{
297 tSirScanType scanType;
298 tSirMacSSid SSID;
299 tCsrChannelInfo ChannelInfo;
300 tANI_U32 scanInterval; //in units of milliseconds
301 tANI_U32 minChnTime; //in units of milliseconds
302 tANI_U32 maxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800303 tANI_U32 minChnTimeBtc; //in units of milliseconds
304 tANI_U32 maxChnTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700305 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
306 tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected
307 tCsrBssid bssid; //how to use it?? Apple
Srikant Kuppa866893f2012-12-27 17:28:14 -0800308}tCsrBGScanRequest, *tpCsrBGScanRequest;
Jeff Johnson295189b2012-06-20 16:38:30 -0700309
310
311typedef struct tagCsrScanResultInfo
312{
313 //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS.
314 void *pvIes;
315 tAniSSID ssId;
316 v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value
317 //This member must be the last in the structure because the end of tSirBssDescription is an
318 // array with nonknown size at this time
319 tSirBssDescription BssDescriptor;
320}tCsrScanResultInfo;
321
322typedef struct tagCsrEncryptionList
323{
324
325 tANI_U32 numEntries;
326 eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE];
327
328}tCsrEncryptionList, *tpCsrEncryptionList;
329
330typedef struct tagCsrAuthList
331{
332 tANI_U32 numEntries;
333 eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE];
334}tCsrAuthList, *tpCsrAuthList;
335
336#ifdef WLAN_FEATURE_VOWIFI_11R
337typedef struct tagCsrMobilityDomainInfo
338{
339 tANI_U8 mdiePresent;
340 tANI_U16 mobilityDomain;
341} tCsrMobilityDomainInfo;
342#endif
343
344#ifdef FEATURE_WLAN_CCX
345typedef struct tagCsrCcxCckmInfo
346{
347 tANI_U32 reassoc_req_num;
348 tANI_BOOLEAN krk_plumbed;
349 tANI_U8 krk[CSR_KRK_KEY_LEN];
350} tCsrCcxCckmInfo;
351#endif
352
353
354typedef struct tagCsrScanResultFilter
355{
356 tCsrBSSIDs BSSIDs; //each bssid has a length of WNI_CFG_BSSID_LEN (6)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800357 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700358 tCsrChannelInfo ChannelInfo;
359 tCsrAuthList authType;
360 tCsrEncryptionList EncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800361 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700362 //put all supported encryption types in here
363 tCsrEncryptionList mcEncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800364 eCsrRoamBssType BSSType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700365 //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800366 tANI_U32 phyMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700367 //If countryCode[0] is not 0, countryCode is checked independent of fCheckUnknownCountryCode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800368 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN];
369 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700370 /*For WPS filtering if true => auth and ecryption should be ignored*/
371 tANI_BOOLEAN bWPSAssociation;
372#if defined WLAN_FEATURE_VOWIFI
373 /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/
374 tANI_BOOLEAN fMeasurement;
375#endif
376#ifdef WLAN_FEATURE_VOWIFI_11R
377 tCsrMobilityDomainInfo MDID;
378#endif
379 tANI_BOOLEAN p2pResult;
380}tCsrScanResultFilter;
381
382
383typedef struct sCsrChnPower_
384{
385 tANI_U8 firstChannel;
386 tANI_U8 numChannels;
387 tANI_U8 maxtxPower;
388}sCsrChnPower;
389
390
391typedef struct sCsrChannel_
392{
393 tANI_U8 numChannels;
394 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
395}sCsrChannel;
396
397
398typedef struct tagCsr11dinfo
399{
400 sCsrChannel Channels;
401 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1];
402 //max power channel list
403 sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN];
404}tCsr11dinfo;
405
406
407typedef enum
408{
409 eCSR_ROAM_CANCELLED = 1,
410 //this mean error happens before association_start or roaming_start is called.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800411 eCSR_ROAM_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700412 //a CSR trigger roaming operation starts, callback may get a pointer to tCsrConnectedProfile
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800413 eCSR_ROAM_ROAMING_START,
Jeff Johnson295189b2012-06-20 16:38:30 -0700414 //a CSR trigger roaming operation is completed
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800415 eCSR_ROAM_ROAMING_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700416 //Connection completed status.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800417 eCSR_ROAM_CONNECT_COMPLETION,
418 //an association or start_IBSS operation starts,
419 //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription
420 eCSR_ROAM_ASSOCIATION_START,
421 //a roaming operation is finish, see eCsrRoamResult for
Jeff Johnson295189b2012-06-20 16:38:30 -0700422 //possible data passed back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800423 eCSR_ROAM_ASSOCIATION_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700424 eCSR_ROAM_DISASSOCIATED,
425 eCSR_ROAM_ASSOCIATION_FAILURE,
426 //when callback with this flag. callback gets a pointer to the BSS desc.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800427 eCSR_ROAM_SHOULD_ROAM,
Jeff Johnson295189b2012-06-20 16:38:30 -0700428 //A new candidate for PMKID is found
429 eCSR_ROAM_SCAN_FOUND_NEW_BSS,
430 //CSR is done lostlink roaming and still cannot reconnect
431 eCSR_ROAM_LOSTLINK,
432 //a link lost is detected. CSR starts roaming.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800433 eCSR_ROAM_LOSTLINK_DETECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700434 //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd
435 eCSR_ROAM_MIC_ERROR_IND,
436 eCSR_ROAM_IBSS_IND, //IBSS indications.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800437 //Update the connection status, useful for IBSS: new peer added, network is active etc.
438 eCSR_ROAM_CONNECT_STATUS_UPDATE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700439 eCSR_ROAM_GEN_INFO,
440 eCSR_ROAM_SET_KEY_COMPLETE,
441 eCSR_ROAM_REMOVE_KEY_COMPLETE,
442 eCSR_ROAM_IBSS_LEAVE, //IBSS indications.
443 //BSS in WDS mode status indication
444 eCSR_ROAM_WDS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700445 //BSS in SoftAP mode status indication
446 eCSR_ROAM_INFRA_IND,
447 eCSR_ROAM_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700448#ifdef WLAN_FEATURE_VOWIFI_11R
449 eCSR_ROAM_FT_RESPONSE,
450#endif
451 eCSR_ROAM_FT_START,
452 eCSR_ROAM_INDICATE_MGMT_FRAME,
453 eCSR_ROAM_REMAIN_CHAN_READY,
454 eCSR_ROAM_SEND_ACTION_CNF,
455 //this mean error happens before association_start or roaming_start is called.
456 eCSR_ROAM_SESSION_OPENED,
457 eCSR_ROAM_FT_REASSOC_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700458#ifdef FEATURE_WLAN_LFR
459 eCSR_ROAM_PMK_NOTIFY,
460#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800461#ifdef FEATURE_WLAN_TDLS
462 eCSR_ROAM_TDLS_STATUS_UPDATE,
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800463 eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800464#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800465 eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800466 eCSR_ROAM_SEND_P2P_STOP_BSS, //Stopbss triggered from SME due to different
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800467 // beacon interval
Chet Lanctot186b5732013-03-18 10:26:30 -0700468#ifdef WLAN_FEATURE_11W
469 eCSR_ROAM_UNPROT_MGMT_FRAME_IND,
470#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800471
Jeff Johnson295189b2012-06-20 16:38:30 -0700472}eRoamCmdStatus;
473
474
475//comment inside indicates what roaming callback gets
476typedef enum
477{
478 eCSR_ROAM_RESULT_NONE,
479 //this means no more action in CSR
480 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION, tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800481 eCSR_ROAM_RESULT_FAILURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700482 //Pass back pointer to tCsrRoamInfo
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800483 eCSR_ROAM_RESULT_ASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700484 eCSR_ROAM_RESULT_NOT_ASSOCIATED,
485 eCSR_ROAM_RESULT_MIC_FAILURE,
486 eCSR_ROAM_RESULT_FORCED,
487 eCSR_ROAM_RESULT_DISASSOC_IND,
488 eCSR_ROAM_RESULT_DEAUTH_IND,
489 eCSR_ROAM_RESULT_CAP_CHANGED,
490 //This means we starts an IBSS
491 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800492 eCSR_ROAM_RESULT_IBSS_STARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700493 //START_BSS failed
494 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800495 eCSR_ROAM_RESULT_IBSS_START_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700496 eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800497 eCSR_ROAM_RESULT_IBSS_JOIN_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700498 eCSR_ROAM_RESULT_IBSS_CONNECT,
499 eCSR_ROAM_RESULT_IBSS_INACTIVE,
500 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800501 //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid
502 //If roamStatus is eCSR_ROAM_IBSS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700503 //the peer's MAC address in peerMacOrBssid and a beacon frame of the IBSS in pbFrames
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800504 eCSR_ROAM_RESULT_IBSS_NEW_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700505 //Peer departed from IBSS, Callback may get a pointer tSmeIbssPeerInd in pIbssPeerInd
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800506 eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700507 //Coalescing in the IBSS network (joined an IBSS network)
508 //Callback pass a BSSID in peerMacOrBssid
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800509 eCSR_ROAM_RESULT_IBSS_COALESCED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700510 //If roamStatus is eCSR_ROAM_ROAMING_START, callback may get a pointer to tCsrConnectedProfile used to connect.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800511 eCSR_ROAM_RESULT_IBSS_STOP,
512 eCSR_ROAM_RESULT_LOSTLINK,
Jeff Johnson295189b2012-06-20 16:38:30 -0700513 eCSR_ROAM_RESULT_MIC_ERROR_UNICAST,
514 eCSR_ROAM_RESULT_MIC_ERROR_GROUP,
515 eCSR_ROAM_RESULT_AUTHENTICATED,
516 eCSR_ROAM_RESULT_NEW_RSN_BSS,
517#ifdef FEATURE_WLAN_WAPI
518 eCSR_ROAM_RESULT_NEW_WAPI_BSS,
519#endif /* FEATURE_WLAN_WAPI */
520 // WDS started successfully
521 eCSR_ROAM_RESULT_WDS_STARTED,
522 // WDS start failed
523 eCSR_ROAM_RESULT_WDS_START_FAILED,
524 // WDS stopped
525 eCSR_ROAM_RESULT_WDS_STOPPED,
526 // WDS joined successfully in STA mode
527 eCSR_ROAM_RESULT_WDS_ASSOCIATED,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800528 // A station joined WDS AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700529 eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND,
530 // WDS join failed in STA mode
531 eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED,
532 // WDS disassociated
533 eCSR_ROAM_RESULT_WDS_DISASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700534 // INFRA started successfully
535 eCSR_ROAM_RESULT_INFRA_STARTED,
536 // INFRA start failed
537 eCSR_ROAM_RESULT_INFRA_START_FAILED,
538 // INFRA stopped
539 eCSR_ROAM_RESULT_INFRA_STOPPED,
540 // A station joining INFRA AP
541 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND,
542 // A station joined INFRA AP
543 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF,
544 // INFRA disassociated
545 eCSR_ROAM_RESULT_INFRA_DISASSOCIATED,
546 eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700547 eCSR_ROAM_RESULT_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700548 // peer rejected assoc because max assoc limit reached. callback gets pointer to peer
549 eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED,
Jeff Johnsone7245742012-09-05 17:12:55 -0700550 //Assoc rejected due to concurrent session running on a different channel
551 eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800552#ifdef FEATURE_WLAN_TDLS
553 eCSR_ROAM_RESULT_ADD_TDLS_PEER,
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800554 eCSR_ROAM_RESULT_UPDATE_TDLS_PEER,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800555 eCSR_ROAM_RESULT_DELETE_TDLS_PEER,
Hoonki Leee6bfe942013-02-05 15:01:19 -0800556 eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND,
Gopichand Nakkala2a0a1572013-02-10 21:39:16 -0800557 eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530558 eCSR_ROAM_RESULT_LINK_ESTABLISH_REQ_RSP,
Gopichand Nakkala78a6c812013-05-13 16:39:49 +0530559#ifdef FEATURE_WLAN_TDLS_OXYGEN_DISAPPEAR_AP
560 eCSR_ROAM_RESULT_TDLS_DISAPPEAR_AP_IND,
561#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800562#endif
563
Jeff Johnson295189b2012-06-20 16:38:30 -0700564}eCsrRoamResult;
565
566
567
568/*----------------------------------------------------------------------------
569 List of link quality indications HDD can receive from SME
570-----------------------------------------------------------------------------*/
571typedef enum
572{
573 eCSR_ROAM_LINK_QUAL_MIN_IND = -1,
574
575 eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */
576 eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */
577 eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */
578 eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */
579
580 eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */
581
582} eCsrRoamLinkQualityInd;
583
584typedef enum
585{
586 eCSR_DISCONNECT_REASON_UNSPECIFIED = 0,
587 eCSR_DISCONNECT_REASON_MIC_ERROR,
588 eCSR_DISCONNECT_REASON_DISASSOC,
589 eCSR_DISCONNECT_REASON_DEAUTH,
590 eCSR_DISCONNECT_REASON_HANDOFF,
591 eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE,
592 eCSR_DISCONNECT_REASON_IBSS_LEAVE,
593}eCsrRoamDisconnectReason;
594
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800595typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700596{
597 // Not associated in Infra or participating in an IBSS / Ad-hoc network.
598 eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED,
599 // Associated in an Infrastructure network.
600 eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED,
601 // Participating in an IBSS network though disconnected (no partner stations
602 // in the IBSS).
603 eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED,
604 // Participating in an IBSS network with partner stations also present
605 eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED,
606 // Participating in a WDS network in AP or STA mode but not connected yet
607 eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED,
608 // Participating in a WDS network and connected peer to peer
609 eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700610 // Participating in a Infra network in AP not yet in connected state
611 eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED,
612 // Participating in a Infra network and connected to a peer
613 eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700614
615}eCsrConnectState;
616
617
618// This parameter is no longer supported in the Profile. Need to set this in the global properties
619// for the adapter.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800620typedef enum eCSR_MEDIUM_ACCESS
Jeff Johnson295189b2012-06-20 16:38:30 -0700621{
622 eCSR_MEDIUM_ACCESS_AUTO = 0,
623 eCSR_MEDIUM_ACCESS_DCF,
624 eCSR_MEDIUM_ACCESS_eDCF,
625 eCSR_MEDIUM_ACCESS_HCF,
626
627 eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p,
628 eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP,
629 eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify,
630 eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF,
631 eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF,
632}eCsrMediaAccessType;
633
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800634typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700635{
636 eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate.
637
638 eCSR_TX_RATE_1Mbps = 0x00000001,
639 eCSR_TX_RATE_2Mbps = 0x00000002,
640 eCSR_TX_RATE_5_5Mbps = 0x00000004,
641 eCSR_TX_RATE_6Mbps = 0x00000008,
642 eCSR_TX_RATE_9Mbps = 0x00000010,
643 eCSR_TX_RATE_11Mbps = 0x00000020,
644 eCSR_TX_RATE_12Mbps = 0x00000040,
645 eCSR_TX_RATE_18Mbps = 0x00000080,
646 eCSR_TX_RATE_24Mbps = 0x00000100,
647 eCSR_TX_RATE_36Mbps = 0x00000200,
648 eCSR_TX_RATE_42Mbps = 0x00000400,
649 eCSR_TX_RATE_48Mbps = 0x00000800,
650 eCSR_TX_RATE_54Mbps = 0x00001000,
651 eCSR_TX_RATE_72Mbps = 0x00002000,
652 eCSR_TX_RATE_84Mbps = 0x00004000,
653 eCSR_TX_RATE_96Mbps = 0x00008000,
654 eCSR_TX_RATE_108Mbps = 0x00010000,
655 eCSR_TX_RATE_126Mbps = 0x00020000,
656 eCSR_TX_RATE_144Mbps = 0x00040000,
657 eCSR_TX_RATE_168Mbps = 0x00080000,
658 eCSR_TX_RATE_192Mbps = 0x00100000,
659 eCSR_TX_RATE_216Mbps = 0x00200000,
660 eCSR_TX_RATE_240Mbps = 0x00400000,
661
662}eCsrExposedTxRate;
663
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800664typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700665{
666 eCSR_OPERATING_CHANNEL_ALL = 0,
667 eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL,
668 eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL,
669}eOperationChannel;
670
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800671typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700672{
673 eCSR_DOT11_FRAG_THRESH_AUTO = -1,
674 eCSR_DOT11_FRAG_THRESH_MIN = 256,
675 eCSR_DOT11_FRAG_THRESH_MAX = 2346,
676 eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000
677}eCsrDot11FragThresh;
678
679
680//for channel bonding for ibss
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800681typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700682{
683 eCSR_CB_OFF = 0,
684 eCSR_CB_AUTO = 1,
685 eCSR_CB_DOWN = 2,
686 eCSR_CB_UP = 3,
687}eCsrCBChoice;
688
689//For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode.
690#define CSR_CB_CHANNEL_GAP 4
691#define CSR_CB_CENTER_CHANNEL_OFFSET 2
692#define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END )
Jeff Johnsone7245742012-09-05 17:12:55 -0700693#define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN )
694#define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END )
Jeff Johnson295189b2012-06-20 16:38:30 -0700695
696// WEP keysize (in bits)...
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800697typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700698{
699 eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP
700 eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP
701
702 eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40,
703 eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104,
704 eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ),
705}eCsrWEPKeySize;
706
707
708// Possible values for the WEP static key ID...
709typedef enum
710{
711
712 eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0,
713 eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3,
714 eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0,
715
716 eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1,
717
718}eCsrWEPStaticKeyID;
719
Chet Lanctot186b5732013-03-18 10:26:30 -0700720// Two extra key indicies are used for the IGTK (which is used by BIP)
721#define CSR_MAX_NUM_KEY (eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX + 2 + 1)
Jeff Johnson295189b2012-06-20 16:38:30 -0700722
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800723typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700724{
725 eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE,
726 eCSR_SECURITY_SET_KEY_ACTION_SET_KEY,
727 eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY,
728}eCsrSetKeyAction;
729
730typedef enum
731{
732 eCSR_BAND_ALL,
733 eCSR_BAND_24,
734 eCSR_BAND_5G,
735 eCSR_BAND_MAX,
736}eCsrBand;
737
738
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800739typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700740{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800741 // Roaming because HDD requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700742 // tCsrRoamModifyProfileFields. OR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800743 // Roaming because SME requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700744 // tCsrRoamModifyProfileFields.
745 eCsrRoamReasonStaCapabilityChanged,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800746 // Roaming because SME requested for reassoc to a different AP, as part of
Jeff Johnson295189b2012-06-20 16:38:30 -0700747 // inter AP handoff.
748 eCsrRoamReasonBetterAP,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800749 // Roaming because SME requested it as the link is lost - placeholder, will
Jeff Johnson295189b2012-06-20 16:38:30 -0700750 // clean it up once handoff code gets in
751 eCsrRoamReasonSmeIssuedForLostLink,
752
753}eCsrRoamReasonCodes;
754
755typedef enum
756{
757 eCsrRoamWmmAuto = 0,
758 eCsrRoamWmmQbssOnly = 1,
759 eCsrRoamWmmNoQos = 2,
760
761} eCsrRoamWmmUserModeType;
762
763typedef enum
764{
765 eCSR_REQUESTER_MIN = 0,
766 eCSR_DIAG,
767 eCSR_UMA_GAN,
768 eCSR_HDD
769} eCsrStatsRequesterType;
770
771typedef struct tagPmkidCandidateInfo
772{
773 tCsrBssid BSSID;
774 tANI_BOOLEAN preAuthSupported;
775}tPmkidCandidateInfo;
776
777typedef struct tagPmkidCacheInfo
778{
779 tCsrBssid BSSID;
780 tANI_U8 PMKID[CSR_RSN_PMKID_SIZE];
781}tPmkidCacheInfo;
782
783#ifdef FEATURE_WLAN_WAPI
784typedef struct tagBkidCandidateInfo
785{
786 tCsrBssid BSSID;
787 tANI_BOOLEAN preAuthSupported;
788}tBkidCandidateInfo;
789
790typedef struct tagBkidCacheInfo
791{
792 tCsrBssid BSSID;
793 tANI_U8 BKID[CSR_WAPI_BKID_SIZE];
794}tBkidCacheInfo;
795#endif /* FEATURE_WLAN_WAPI */
796
797typedef struct tagCsrKeys
798{
799 tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set
800 tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ];
801 tANI_U8 defaultIndex;
802}tCsrKeys;
803
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800804/* Following are fields which are part of tCsrRoamConnectedProfile might need
Jeff Johnson295189b2012-06-20 16:38:30 -0700805 modification dynamically once STA is up & running and this could trigger
806 reassoc */
807typedef struct tagCsrRoamModifyProfileFields
808{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800809 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700810 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800811 // During assoc response this COULD carry confirmation of what ACs U-APSD
Jeff Johnson295189b2012-06-20 16:38:30 -0700812 // got setup for. Later if an APP looking for APSD, SME-QoS might need to
813 // modify this field
814 tANI_U8 uapsd_mask;
815 // HDD might ask to modify this field
816 tANI_U16 listen_interval;
817}tCsrRoamModifyProfileFields;
818
819typedef struct tagCsrRoamProfile
820{
821 //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs.
822 //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP
823 //that we need to join. Index 1 is the SSID for self BSS.
824 tCsrSSIDs SSIDs;
825 tCsrBSSIDs BSSIDs;
826 tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
827 eCsrRoamBssType BSSType;
828
829 tCsrAuthList AuthType;
830 eCsrAuthType negotiatedAuthType;
831
832 tCsrEncryptionList EncryptionType;
833 //This field is for output only, not for input
834 eCsrEncryptionType negotiatedUCEncryptionType;
835
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800836 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700837 //put all supported encryption types in here
838 tCsrEncryptionList mcEncryptionType;
839 //This field is for output only, not for input
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800840 eCsrEncryptionType negotiatedMCEncryptionType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700841
Chet Lanctot186b5732013-03-18 10:26:30 -0700842#ifdef WLAN_FEATURE_11W
843 // Management Frame Protection
844 tANI_BOOLEAN MFPEnabled;
845 tANI_U8 MFPRequired;
846 tANI_U8 MFPCapable;
847#endif
848
Jeff Johnson295189b2012-06-20 16:38:30 -0700849 tCsrKeys Keys;
850 eCsrCBChoice CBMode; //up, down or auto
851 tCsrChannelInfo ChannelInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800852 tANI_U8 operationChannel;
Jeff Johnson295189b2012-06-20 16:38:30 -0700853 tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800854 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700855 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
856 // During assoc response this COULD carry confirmation of what ACs U-APSD got setup for
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800857 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700858 tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE
859 tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA
860 tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE
861 tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN
862#ifdef FEATURE_WLAN_WAPI
863 tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE
864 tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI
865#endif /* FEATURE_WLAN_WAPI */
866
867 tANI_U32 nAddIEScanLength; //The byte count in the pAddIE for scan (at the time of join)
868 tANI_U8 *pAddIEScan; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800869 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
Jeff Johnson295189b2012-06-20 16:38:30 -0700870 tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
871
872 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0.
873 /*WPS Association if true => auth and ecryption should be ignored*/
874 tANI_BOOLEAN bWPSAssociation;
875 tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE
876 tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC
877
Jeff Johnson295189b2012-06-20 16:38:30 -0700878 tANI_U8 ieee80211d;
879 tANI_U8 privacy;
880 tANI_BOOLEAN fwdWPSPBCProbeReq;
881 tAniAuthType csr80211AuthType;
882 tANI_U32 dtimPeriod;
883 tANI_BOOLEAN ApUapsdEnable;
884 tANI_BOOLEAN protEnabled;
885 tANI_BOOLEAN obssProtEnabled;
886 tANI_U16 cfg_protection;
887 tANI_U8 wps_state;
Jeff Johnson295189b2012-06-20 16:38:30 -0700888
889#ifdef WLAN_FEATURE_VOWIFI_11R
890 tCsrMobilityDomainInfo MDID;
891#endif
892 tVOS_CON_MODE csrPersona;
893
894}tCsrRoamProfile;
895
896
897typedef struct tagCsrRoamConnectedProfile
898{
899 tSirMacSSid SSID;
900 tANI_BOOLEAN handoffPermitted;
901 tANI_BOOLEAN ssidHidden;
902 tCsrBssid bssid;
903 eCsrRoamBssType BSSType;
904 eCsrAuthType AuthType;
905 tCsrAuthList AuthInfo;
906 eCsrEncryptionType EncryptionType;
907 tCsrEncryptionList EncryptionInfo;
908 eCsrEncryptionType mcEncryptionType;
909 tCsrEncryptionList mcEncryptionInfo;
910 eCsrCBChoice CBMode; //up, down or auto
911 tANI_U8 operationChannel;
Jeff Johnsone7245742012-09-05 17:12:55 -0700912 tANI_U16 beaconInterval;
Jeff Johnson295189b2012-06-20 16:38:30 -0700913 tCsrKeys Keys;
914 // meaningless on connect. It's an OUT param from CSR's point of view
915 // During assoc response carries the ACM bit-mask i.e. what
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800916 // ACs have ACM=1 (if any),
Jeff Johnson295189b2012-06-20 16:38:30 -0700917 // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored)
918 tANI_U8 acm_mask;
919 tCsrRoamModifyProfileFields modifyProfileFields;
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700920 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
921 tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800922
923 tSirBssDescription *pBssDesc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700924 tANI_BOOLEAN qap; //AP supports QoS
925 tANI_BOOLEAN qosConnection; //A connection is QoS enabled
926#ifdef WLAN_FEATURE_VOWIFI_11R
927 tCsrMobilityDomainInfo MDID;
928#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800929
Jeff Johnson295189b2012-06-20 16:38:30 -0700930#ifdef FEATURE_WLAN_CCX
931 tCsrCcxCckmInfo ccxCckmInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800932 tANI_BOOLEAN isCCXAssoc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700933#endif
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +0530934 tANI_U32 dot11Mode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700935}tCsrRoamConnectedProfile;
936
937
938#ifdef WLAN_FEATURE_VOWIFI_11R
939typedef struct tagCsr11rConfigParams
940{
941 tANI_BOOLEAN IsFTResourceReqSupported;
942} tCsr11rConfigParams;
943#endif
944
945#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
946typedef struct tagCsrNeighborRoamConfigParams
947{
948
949 tANI_U32 nNeighborScanTimerPeriod;
950 tANI_U8 nNeighborLookupRssiThreshold;
951 tANI_U8 nNeighborReassocRssiThreshold;
952 tANI_U16 nNeighborScanMinChanTime;
953 tANI_U16 nNeighborScanMaxChanTime;
954 sCsrChannel neighborScanChanList;
955 tANI_U8 nMaxNeighborRetries;
956 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowdade697412013-02-14 16:31:48 -0800957 tANI_U16 nEmptyScanRefreshPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -0700958}tCsrNeighborRoamConfigParams;
959#endif
960
961typedef struct tagCsrConfigParam
962{
963 tANI_U32 FragmentationThreshold;
Jeff Johnsone7245742012-09-05 17:12:55 -0700964 tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState
965 tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState
Jeff Johnson295189b2012-06-20 16:38:30 -0700966 eCsrPhyMode phyMode;
967 eCsrBand eBand;
968 tANI_U32 RTSThreshold;
969 tANI_U32 HeartbeatThresh50;
970 tANI_U32 HeartbeatThresh24;
971 eCsrCBChoice cbChoice;
972 eCsrBand bandCapability; //indicate hw capability
973 tANI_U32 bgScanInterval;
974 tANI_U16 TxRate;
975 eCsrRoamWmmUserModeType WMMSupportMode;
976 tANI_BOOLEAN Is11eSupportEnabled;
977 tANI_BOOLEAN Is11dSupportEnabled;
978 tANI_BOOLEAN Is11dSupportEnabledOriginal;
979 tANI_BOOLEAN Is11hSupportEnabled;
980 tANI_BOOLEAN shortSlotTime;
981 tANI_BOOLEAN ProprietaryRatesEnabled;
982 tANI_U8 AdHocChannel24;
983 tANI_U8 AdHocChannel5G;
984 tANI_U32 impsSleepTime; //in units of seconds
985 tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed
986 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
987 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
988 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
989 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
990 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming
991 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
992 tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode
Mohit Khanna7ed53f02012-09-11 17:52:10 -0700993 tANI_U8 fAllowMCCGODiffBI; //to allow MCC GO different B.I than STA's. NOTE: make sure if RIVA firmware can handle this combination before enabling this
994 //at the moment, this flag is provided only to pass Wi-Fi Cert. 5.1.12
Jeff Johnson295189b2012-06-20 16:38:30 -0700995 tCsr11dinfo Csr11dinfo;
996 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800997 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -0700998 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800999 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001000 //Country Code Priority
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001001 //0 = 802.11D > Country IOCTL > NV
Jeff Johnson295189b2012-06-20 16:38:30 -07001002 //1 = Country IOCTL > 802.11D > NV
1003 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001004 //When true, AP with unknown country code won't be see.
1005 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
1006 //find a domain for the country code in its 11d IE.
1007 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -07001008 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
1009 //code", or the domain of the country code doesn't match the default domain, the Ap is
1010 //not acceptable.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001011 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -07001012
1013 tANI_U16 vccRssiThreshold;
1014 tANI_U32 vccUlMacLossThreshold;
1015
1016 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
1017 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
1018 tANI_U32 nActiveMinChnTime; //in units of milliseconds
1019 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001020
1021 tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds
1022 tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -07001023 tANI_U32 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001024#ifdef WLAN_AP_STA_CONCURRENCY
1025 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
1026 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
1027 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
1028 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
1029 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -07001030 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
1031 //STA in each split scan operation
1032 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
1033 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001034#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001035
1036 tANI_BOOLEAN IsIdleScanEnabled;
1037 //in dBm, the maximum TX power
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001038 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -07001039 //If 11d is disable, the lesser of this and default setting.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001040 tANI_U8 nTxPowerCap;
Jeff Johnson295189b2012-06-20 16:38:30 -07001041 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
1042 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
1043#ifdef WLAN_FEATURE_VOWIFI_11R
1044 tCsr11rConfigParams csr11rConfig;
1045#endif
1046#ifdef FEATURE_WLAN_CCX
1047 tANI_U8 isCcxIniFeatureEnabled;
1048#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001049#ifdef FEATURE_WLAN_LFR
1050 tANI_U8 isFastRoamIniFeatureEnabled;
1051#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001052
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001053#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001054 tANI_U8 isFastTransitionEnabled;
1055 tANI_U8 RoamRssiDiff;
1056 tANI_U8 nImmediateRoamRssiDiff;
Jeff Johnson295189b2012-06-20 16:38:30 -07001057#endif
1058
1059#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
1060 tCsrNeighborRoamConfigParams neighborRoamConfig;
1061#endif
1062
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001063 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -07001064 * This is mandated by WMM-AC certification */
1065 tANI_BOOLEAN addTSWhenACMIsOff;
1066
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001067
1068 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -07001069 * detect when it happens. Adding this into code because we can't reproduce it easily.
1070 * We don't know when it happens. */
1071 tANI_BOOLEAN fValidateList;
1072
1073 /*Customer wants to start with an active scan based on the default country code.
1074 * This optimization will minimize the driver load to association time.
1075 * Based on this flag we will bypass the initial passive scan needed for 11d
1076 * to determine the country code & domain */
1077 tANI_BOOLEAN fEnableBypass11d;
1078
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001079 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
1080 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -07001081 * (apprx 1.3 sec) */
1082 tANI_BOOLEAN fEnableDFSChnlScan;
1083
1084 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
1085 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -07001086#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07001087 tANI_U32 nVhtChannelWidth;
1088 tANI_U8 enableTxBF;
1089 tANI_U8 txBFCsnValue;
1090 tANI_BOOLEAN enableVhtFor24GHz;
Jeff Johnsone7245742012-09-05 17:12:55 -07001091#endif
1092
1093 /*
1094 * To enable/disable scanning only 2.4Ghz channels on first scan
1095 */
1096 tANI_BOOLEAN fFirstScanOnly2GChnl;
Jeff Johnson295189b2012-06-20 16:38:30 -07001097
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08001098#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
1099 tANI_BOOLEAN nRoamPrefer5GHz;
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001100 tANI_BOOLEAN nRoamIntraBand;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07001101 tANI_U8 nProbes;
1102 tANI_U16 nRoamScanHomeAwayTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001103
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001104#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1105 tANI_BOOLEAN isRoamOffloadScanEnabled;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001106 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001107#endif
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001108#endif
1109
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001110
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08001111 tANI_U8 scanCfgAgingTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001112
1113 tANI_U8 enableTxLdpc;
krunal soni4f087d22013-07-29 16:32:26 -07001114
1115 tANI_BOOLEAN enableOxygenNwk;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001116}tCsrConfigParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07001117
1118//Tush
1119typedef struct tagCsrUpdateConfigParam
1120{
1121 tCsr11dinfo Csr11dinfo;
1122}tCsrUpdateConfigParam;
1123
1124typedef struct tagCsrRoamInfo
1125{
1126 tCsrRoamProfile *pProfile; //may be NULL
1127 tSirBssDescription *pBssDesc; //May be NULL
1128 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
1129 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
1130 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
1131 tANI_U32 nFrameLength;
1132 tANI_U8 frameType;
1133 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
1134 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
1135 //each frame starts and ends.
1136 tANI_BOOLEAN fReassocReq; //set to true if for re-association
1137 tANI_BOOLEAN fReassocRsp; //set to true if for re-association
1138 tCsrBssid bssid;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001139 //Only valid in IBSS
Jeff Johnson295189b2012-06-20 16:38:30 -07001140 //this is the peers MAC address for eCSR_ROAM_RESULT_IBSS_NEW_PEER or PEER_DEPARTED
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001141 tCsrBssid peerMac;
Jeff Johnson295189b2012-06-20 16:38:30 -07001142 tSirResultCodes statusCode;
1143 tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec)
1144 tANI_U8 staId; // Peer stationId when connected
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001145 /*The DPU signatures will be sent eventually to TL to help it determine the
Jeff Johnson295189b2012-06-20 16:38:30 -07001146 association to which a packet belongs to*/
1147 /*Unicast DPU signature*/
1148 tANI_U8 ucastSig;
1149
1150 /*Broadcast DPU signature*/
1151 tANI_U8 bcastSig;
1152
1153 tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open)
1154 tANI_U8 sessionId;
1155 tANI_U8 rsnIELen;
1156 tANI_U8 *prsnIE;
1157
1158 tANI_U8 addIELen;
1159 tANI_U8 *paddIE;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001160
Jeff Johnson295189b2012-06-20 16:38:30 -07001161 union
1162 {
1163 tSirMicFailureInfo *pMICFailureInfo;
1164 tCsrRoamConnectedProfile *pConnectedProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -07001165 tSirWPSPBCProbeReq *pWPSPBCProbeReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07001166 } u;
1167
Jeff Johnson295189b2012-06-20 16:38:30 -07001168 tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA
1169 tANI_U32 dtimPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -07001170
1171#ifdef FEATURE_WLAN_CCX
1172 tANI_BOOLEAN isCCXAssoc;
1173#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001174 void* pRemainCtx;
Jeff Johnson295189b2012-06-20 16:38:30 -07001175 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07001176
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001177#ifdef FEATURE_WLAN_TDLS
1178 tANI_U8 staType;
1179#endif
1180
Jeff Johnson295189b2012-06-20 16:38:30 -07001181 // Required for indicating the frames to upper layer
1182 tANI_U32 beaconLength;
1183 tANI_U8* beaconPtr;
1184 tANI_U32 assocReqLength;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001185 tANI_U8* assocReqPtr;
Chilam NG571c65a2013-01-19 12:27:36 +05301186
1187 tANI_S8 rxRssi;
Jeff Johnson295189b2012-06-20 16:38:30 -07001188}tCsrRoamInfo;
1189
1190
1191
1192
1193
1194typedef struct tagCsrFreqScanInfo
1195{
1196 tANI_U32 nStartFreq; //in unit of MHz
1197 tANI_U32 nEndFreq; //in unit of MHz
1198 tSirScanType scanType;
1199}tCsrFreqScanInfo;
1200
1201
Jeff Johnson295189b2012-06-20 16:38:30 -07001202typedef struct sSirSmeAssocIndToUpperLayerCnf
1203{
1204 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1205 tANI_U16 length;
1206 tANI_U8 sessionId;
1207 tSirResultCodes statusCode;
1208 tSirMacAddr bssId; // Self BSSID
1209 tSirMacAddr peerMacAddr;
1210 tANI_U16 aid;
1211 tSirMacAddr alternateBssId;
1212 tANI_U8 alternateChannelId;
1213 tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA
1214 tSirRSNie rsnIE; // RSN IE received from peer
1215 tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE
1216 tANI_U8 reassocReq; //set to true if reassoc
1217} tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf;
Jeff Johnson295189b2012-06-20 16:38:30 -07001218
1219typedef struct tagCsrSummaryStatsInfo
1220{
1221 tANI_U32 retry_cnt[4];
1222 tANI_U32 multiple_retry_cnt[4];
1223 tANI_U32 tx_frm_cnt[4];
1224 //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt
1225 //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt
1226 tANI_U32 rx_frm_cnt;
1227 tANI_U32 frm_dup_cnt;
1228 tANI_U32 fail_cnt[4];
1229 tANI_U32 rts_fail_cnt;
1230 tANI_U32 ack_fail_cnt;
1231 tANI_U32 rts_succ_cnt;
1232 tANI_U32 rx_discard_cnt;
1233 tANI_U32 rx_error_cnt;
1234 tANI_U32 tx_byte_cnt;
1235
1236}tCsrSummaryStatsInfo;
1237
1238typedef struct tagCsrGlobalClassAStatsInfo
1239{
1240 tANI_U32 rx_frag_cnt;
1241 tANI_U32 promiscuous_rx_frag_cnt;
1242 //tANI_U32 rx_fcs_err;
1243 tANI_U32 rx_input_sensitivity;
1244 tANI_U32 max_pwr;
1245 //tANI_U32 default_pwr;
1246 tANI_U32 sync_fail_cnt;
1247 tANI_U32 tx_rate;
1248 //mcs index for HT20 and HT40 rates
1249 tANI_U32 mcs_index;
1250 //to defferentiate between HT20 and HT40 rates;short and long guard interval
1251 tANI_U32 tx_rate_flags;
1252
1253}tCsrGlobalClassAStatsInfo;
1254
1255typedef struct tagCsrGlobalClassBStatsInfo
1256{
1257 tANI_U32 uc_rx_wep_unencrypted_frm_cnt;
1258 tANI_U32 uc_rx_mic_fail_cnt;
1259 tANI_U32 uc_tkip_icv_err;
1260 tANI_U32 uc_aes_ccmp_format_err;
1261 tANI_U32 uc_aes_ccmp_replay_cnt;
1262 tANI_U32 uc_aes_ccmp_decrpt_err;
1263 tANI_U32 uc_wep_undecryptable_cnt;
1264 tANI_U32 uc_wep_icv_err;
1265 tANI_U32 uc_rx_decrypt_succ_cnt;
1266 tANI_U32 uc_rx_decrypt_fail_cnt;
1267 tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt;
1268 tANI_U32 mcbc_rx_mic_fail_cnt;
1269 tANI_U32 mcbc_tkip_icv_err;
1270 tANI_U32 mcbc_aes_ccmp_format_err;
1271 tANI_U32 mcbc_aes_ccmp_replay_cnt;
1272 tANI_U32 mcbc_aes_ccmp_decrpt_err;
1273 tANI_U32 mcbc_wep_undecryptable_cnt;
1274 tANI_U32 mcbc_wep_icv_err;
1275 tANI_U32 mcbc_rx_decrypt_succ_cnt;
1276 tANI_U32 mcbc_rx_decrypt_fail_cnt;
1277
1278}tCsrGlobalClassBStatsInfo;
1279
1280typedef struct tagCsrGlobalClassCStatsInfo
1281{
1282 tANI_U32 rx_amsdu_cnt;
1283 tANI_U32 rx_ampdu_cnt;
1284 tANI_U32 tx_20_frm_cnt;
1285 tANI_U32 rx_20_frm_cnt;
1286 tANI_U32 rx_mpdu_in_ampdu_cnt;
1287 tANI_U32 ampdu_delimiter_crc_err;
1288
1289}tCsrGlobalClassCStatsInfo;
1290
1291typedef struct tagCsrGlobalClassDStatsInfo
1292{
1293 tANI_U32 tx_uc_frm_cnt;
1294 tANI_U32 tx_mc_frm_cnt;
1295 tANI_U32 tx_bc_frm_cnt;
1296 tANI_U32 rx_uc_frm_cnt;
1297 tANI_U32 rx_mc_frm_cnt;
1298 tANI_U32 rx_bc_frm_cnt;
1299 tANI_U32 tx_uc_byte_cnt[4];
1300 tANI_U32 tx_mc_byte_cnt;
1301 tANI_U32 tx_bc_byte_cnt;
1302 tANI_U32 rx_uc_byte_cnt[4];
1303 tANI_U32 rx_mc_byte_cnt;
1304 tANI_U32 rx_bc_byte_cnt;
1305 tANI_U32 rx_byte_cnt;
1306 tANI_U32 num_rx_bytes_crc_ok;
1307 tANI_U32 rx_rate;
1308
1309}tCsrGlobalClassDStatsInfo;
1310
1311typedef struct tagCsrPerStaStatsInfo
1312{
1313 tANI_U32 tx_frag_cnt[4];
1314 tANI_U32 tx_ampdu_cnt;
1315 tANI_U32 tx_mpdu_in_ampdu_cnt;
1316} tCsrPerStaStatsInfo;
1317
1318typedef struct tagCsrRoamSetKey
1319{
1320 eCsrEncryptionType encType;
1321 tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx
1322 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1323 tANI_U8 paeRole; //0 for supplicant
1324 tANI_U8 keyId; // Kye index
1325 tANI_U16 keyLength; //Number of bytes containing the key in pKey
1326 tANI_U8 Key[CSR_MAX_KEY_LEN];
1327 tANI_U8 keyRsc[CSR_MAX_RSC_LEN];
1328} tCsrRoamSetKey;
1329
1330typedef struct tagCsrRoamRemoveKey
1331{
1332 eCsrEncryptionType encType;
1333 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1334 tANI_U8 keyId; //key index
1335} tCsrRoamRemoveKey;
1336
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001337#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301338
1339typedef struct tagCsrLinkEstablishParams
1340{
1341 tSirMacAddr peerMac;
1342 tANI_U8 uapsdQueues;
1343 tANI_U8 maxSp;
1344 tANI_U8 isBufSta;
1345 tANI_U8 isResponder;
1346}tCsrTdlsLinkEstablishParams;
1347
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001348typedef struct tagCsrTdlsSendMgmt
1349{
1350 tSirMacAddr peerMac;
1351 tANI_U8 frameType;
1352 tANI_U8 dialog;
1353 tANI_U16 statusCode;
Hoonki Leea34dd892013-02-05 22:56:02 -08001354 tANI_U8 responder;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001355 tANI_U8 *buf;
1356 tANI_U8 len;
1357
1358}tCsrTdlsSendMgmt;
1359
1360#ifdef FEATURE_WLAN_TDLS_INTERNAL
1361typedef struct tagCsrTdlsDisRequest
1362{
1363 tSirMacAddr peerMac;
1364 tANI_U8 disType;
1365}tCsrTdlsDisRequest;
1366
1367typedef struct tagCsrTdlsSetupRequest
1368{
1369 tSirMacAddr peerMac;
1370 tANI_U8 linkIndex;
1371}tCsrTdlsSetupRequest;
1372
1373typedef struct tagCsrTdlsTeardownRequest
1374{
1375 tSirMacAddr peerMac;
1376 tANI_U8 linkIndex;
1377}tCsrTdlsTeardownRequest ;
1378#endif
1379#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001380
1381typedef void * tScanResultHandle;
1382
1383#define CSR_INVALID_SCANRESULT_HANDLE (NULL)
1384
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001385#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1386typedef struct tagCsrHandoffRequest
1387{
1388 tCsrBssid bssid;
1389 tANI_U8 channel;
1390}tCsrHandoffRequest;
1391#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001392
1393
1394////////////////////////////////////////////Common SCAN starts
1395
1396//void *p2 -- the second context pass in for the caller
1397//***what if callback is called before requester gets the scanId??
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001398typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status);
Jeff Johnson295189b2012-06-20 16:38:30 -07001399
1400
1401
1402///////////////////////////////////////////Common Roam starts
1403
1404//pContext is the pContext passed in with the roam request
1405//pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and
1406// eRoamCmdResult for detail valid members. It may be NULL
1407//roamId is to identify the callback related roam request. 0 means unsolicit
1408//roamStatus is a flag indicating the status of the callback
1409//roamResult is the result
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001410typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001411 eRoamCmdStatus roamStatus, eCsrRoamResult roamResult);
1412
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001413typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);
Jeff Johnson295189b2012-06-20 16:38:30 -07001414
1415/* ---------------------------------------------------------------------------
1416 \fn csrRoamGetNumPMKIDCache
1417 \brief return number of PMKID cache entries
1418 \return tANI_U32 - the number of PMKID cache entries
1419 -------------------------------------------------------------------------------*/
1420//tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal);
1421
1422/* ---------------------------------------------------------------------------
1423 \fn csrRoamGetPMKIDCache
1424 \brief return PMKID cache from CSR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001425 \param pNum - caller allocated memory that has the space of the number of pBuf tPmkidCacheInfo as input. Upon returned, *pNum has the
Jeff Johnson295189b2012-06-20 16:38:30 -07001426 needed or actually number in tPmkidCacheInfo.
1427 \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return
1428 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1429 -------------------------------------------------------------------------------*/
1430//eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache);
1431
1432//pProfile - pointer to tCsrRoamProfile
1433#define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType)
1434#define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType)
1435#define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) )
1436#define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType)
1437#define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType)
1438#define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1439#define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1440#define CSR_IS_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07001441#define CSR_IS_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001442
1443//pProfile - pointer to tCsrRoamConnectedProfile
Jeff Johnson295189b2012-06-20 16:38:30 -07001444#define CSR_IS_CONN_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001445#define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1446#define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1447#define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
1448
1449
1450
1451///////////////////////////////////////////Common Roam ends
1452
1453
1454
Jeff Johnson295189b2012-06-20 16:38:30 -07001455/* ---------------------------------------------------------------------------
1456 \fn csrSetChannels
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001457 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001458 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1459 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001460 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001461 -------------------------------------------------------------------------------*/
1462
1463eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam );
1464
1465eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07001466
1467
1468//enum to string conversion for debug output
1469const char * get_eRoamCmdStatus_str(eRoamCmdStatus val);
1470const char * get_eCsrRoamResult_str(eCsrRoamResult val);
1471/* ---------------------------------------------------------------------------
1472 \fn csrSetPhyMode
1473 \brief HDD calls this function to set the phyMode.
1474 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1475 CSR.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001476 \param phyMode - indicate the phyMode needs to set to. The value has to be either 0, or some bits set.
Jeff Johnson295189b2012-06-20 16:38:30 -07001477 See eCsrPhyMode for definition
1478 \param eBand - specify the operational band (2.4, 5 or both)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001479 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
Jeff Johnson295189b2012-06-20 16:38:30 -07001480 a restart is needed to apply the change
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001481 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001482 -------------------------------------------------------------------------------*/
1483eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded);
1484
1485void csrDumpInit(tHalHandle hHal);
1486
1487
1488/*---------------------------------------------------------------------------
1489 This is the type for a link quality callback to be registered with SME
1490 for indications
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001491 Once the link quality has been indicated, subsequently, link indications are
Jeff Johnson295189b2012-06-20 16:38:30 -07001492 posted each time there is a CHANGE in link quality.
1493 *** If there is no change in link, there will be no indication ***
1494
1495 The indications may be based on one or more criteria internal to SME
1496 such as RSSI and PER.
1497
1498 \param ind - Indication being posted
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001499 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001500 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001501
Jeff Johnson295189b2012-06-20 16:38:30 -07001502---------------------------------------------------------------------------*/
1503typedef void (* csrRoamLinkQualityIndCallback)
1504 (eCsrRoamLinkQualityInd ind, void *pContext);
1505
1506
1507/*---------------------------------------------------------------------------
1508 This is the type for a statistics callback to be registered with SME
1509 for stats reporting
1510
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001511 Since the client requesting for the stats already know which class/type of
1512 stats it asked for, the callback will carry them in the rsp buffer
1513 (void * stats) whose size will be same as the size of requested stats &
Jeff Johnson295189b2012-06-20 16:38:30 -07001514 will be exactly in the same order requested in the stats mask from LSB to MSB
1515
1516 \param stats - stats rsp buffer sent back with the report
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001517 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001518 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001519
Jeff Johnson295189b2012-06-20 16:38:30 -07001520---------------------------------------------------------------------------*/
1521typedef void ( *tCsrStatsCallback) (void * stats, void *pContext);
1522
1523/*---------------------------------------------------------------------------
1524 This is the type for a rssi callback to be registered with SME
1525 for getting rssi
1526
1527 \param rssi - rssi
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001528 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001529 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001530
Jeff Johnson295189b2012-06-20 16:38:30 -07001531---------------------------------------------------------------------------*/
1532
1533typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext);
1534
1535#ifdef WLAN_FEATURE_VOWIFI_11R
1536eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription);
1537#endif
1538
1539/*---------------------------------------------------------------------------
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001540 This is the function to change the Band configuraiton (ALL/2.4 GHZ/5 GHZ)
Jeff Johnson295189b2012-06-20 16:38:30 -07001541
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001542 \param hHal - handle to Hal context
Jeff Johnson295189b2012-06-20 16:38:30 -07001543 \param eBand - band value
1544 \return eHalStatus
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001545
Jeff Johnson295189b2012-06-20 16:38:30 -07001546---------------------------------------------------------------------------*/
1547eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand);
1548
1549/*---------------------------------------------------------------------------
1550 This is the function to get the current operating band value
1551 \param hHal - handl to Hal context
1552 \return eCsrband - band value
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001553
Jeff Johnson295189b2012-06-20 16:38:30 -07001554---------------------------------------------------------------------------*/
1555eCsrBand csrGetCurrentBand (tHalHandle hHal);
1556
1557#endif
1558