blob: 89851c2217662ba8daedfa8895793cce987f1f62 [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;
Madan Mohan Koyyalamudi04a65f02013-07-26 13:58:38 +0530293 tANI_BOOLEAN bcnRptReqScan; //is Scan issued by Beacon Report Request
Jeff Johnson295189b2012-06-20 16:38:30 -0700294}tCsrScanRequest;
295
296typedef struct tagCsrBGScanRequest
297{
298 tSirScanType scanType;
299 tSirMacSSid SSID;
300 tCsrChannelInfo ChannelInfo;
301 tANI_U32 scanInterval; //in units of milliseconds
302 tANI_U32 minChnTime; //in units of milliseconds
303 tANI_U32 maxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800304 tANI_U32 minChnTimeBtc; //in units of milliseconds
305 tANI_U32 maxChnTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700306 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
307 tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected
308 tCsrBssid bssid; //how to use it?? Apple
Srikant Kuppa866893f2012-12-27 17:28:14 -0800309}tCsrBGScanRequest, *tpCsrBGScanRequest;
Jeff Johnson295189b2012-06-20 16:38:30 -0700310
311
312typedef struct tagCsrScanResultInfo
313{
314 //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS.
315 void *pvIes;
316 tAniSSID ssId;
317 v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value
318 //This member must be the last in the structure because the end of tSirBssDescription is an
319 // array with nonknown size at this time
320 tSirBssDescription BssDescriptor;
321}tCsrScanResultInfo;
322
323typedef struct tagCsrEncryptionList
324{
325
326 tANI_U32 numEntries;
327 eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE];
328
329}tCsrEncryptionList, *tpCsrEncryptionList;
330
331typedef struct tagCsrAuthList
332{
333 tANI_U32 numEntries;
334 eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE];
335}tCsrAuthList, *tpCsrAuthList;
336
337#ifdef WLAN_FEATURE_VOWIFI_11R
338typedef struct tagCsrMobilityDomainInfo
339{
340 tANI_U8 mdiePresent;
341 tANI_U16 mobilityDomain;
342} tCsrMobilityDomainInfo;
343#endif
344
345#ifdef FEATURE_WLAN_CCX
346typedef struct tagCsrCcxCckmInfo
347{
348 tANI_U32 reassoc_req_num;
349 tANI_BOOLEAN krk_plumbed;
350 tANI_U8 krk[CSR_KRK_KEY_LEN];
351} tCsrCcxCckmInfo;
352#endif
353
354
355typedef struct tagCsrScanResultFilter
356{
357 tCsrBSSIDs BSSIDs; //each bssid has a length of WNI_CFG_BSSID_LEN (6)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800358 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700359 tCsrChannelInfo ChannelInfo;
360 tCsrAuthList authType;
361 tCsrEncryptionList EncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800362 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700363 //put all supported encryption types in here
364 tCsrEncryptionList mcEncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800365 eCsrRoamBssType BSSType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700366 //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800367 tANI_U32 phyMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700368 //If countryCode[0] is not 0, countryCode is checked independent of fCheckUnknownCountryCode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800369 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN];
370 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700371 /*For WPS filtering if true => auth and ecryption should be ignored*/
372 tANI_BOOLEAN bWPSAssociation;
373#if defined WLAN_FEATURE_VOWIFI
374 /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/
375 tANI_BOOLEAN fMeasurement;
376#endif
377#ifdef WLAN_FEATURE_VOWIFI_11R
378 tCsrMobilityDomainInfo MDID;
379#endif
380 tANI_BOOLEAN p2pResult;
381}tCsrScanResultFilter;
382
383
384typedef struct sCsrChnPower_
385{
386 tANI_U8 firstChannel;
387 tANI_U8 numChannels;
388 tANI_U8 maxtxPower;
389}sCsrChnPower;
390
391
392typedef struct sCsrChannel_
393{
394 tANI_U8 numChannels;
395 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
396}sCsrChannel;
397
398
399typedef struct tagCsr11dinfo
400{
401 sCsrChannel Channels;
402 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1];
403 //max power channel list
404 sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN];
405}tCsr11dinfo;
406
407
408typedef enum
409{
410 eCSR_ROAM_CANCELLED = 1,
411 //this mean error happens before association_start or roaming_start is called.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800412 eCSR_ROAM_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700413 //a CSR trigger roaming operation starts, callback may get a pointer to tCsrConnectedProfile
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800414 eCSR_ROAM_ROAMING_START,
Jeff Johnson295189b2012-06-20 16:38:30 -0700415 //a CSR trigger roaming operation is completed
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800416 eCSR_ROAM_ROAMING_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700417 //Connection completed status.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800418 eCSR_ROAM_CONNECT_COMPLETION,
419 //an association or start_IBSS operation starts,
420 //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription
421 eCSR_ROAM_ASSOCIATION_START,
422 //a roaming operation is finish, see eCsrRoamResult for
Jeff Johnson295189b2012-06-20 16:38:30 -0700423 //possible data passed back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800424 eCSR_ROAM_ASSOCIATION_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700425 eCSR_ROAM_DISASSOCIATED,
426 eCSR_ROAM_ASSOCIATION_FAILURE,
427 //when callback with this flag. callback gets a pointer to the BSS desc.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800428 eCSR_ROAM_SHOULD_ROAM,
Jeff Johnson295189b2012-06-20 16:38:30 -0700429 //A new candidate for PMKID is found
430 eCSR_ROAM_SCAN_FOUND_NEW_BSS,
431 //CSR is done lostlink roaming and still cannot reconnect
432 eCSR_ROAM_LOSTLINK,
433 //a link lost is detected. CSR starts roaming.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800434 eCSR_ROAM_LOSTLINK_DETECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700435 //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd
436 eCSR_ROAM_MIC_ERROR_IND,
437 eCSR_ROAM_IBSS_IND, //IBSS indications.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800438 //Update the connection status, useful for IBSS: new peer added, network is active etc.
439 eCSR_ROAM_CONNECT_STATUS_UPDATE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700440 eCSR_ROAM_GEN_INFO,
441 eCSR_ROAM_SET_KEY_COMPLETE,
442 eCSR_ROAM_REMOVE_KEY_COMPLETE,
443 eCSR_ROAM_IBSS_LEAVE, //IBSS indications.
444 //BSS in WDS mode status indication
445 eCSR_ROAM_WDS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700446 //BSS in SoftAP mode status indication
447 eCSR_ROAM_INFRA_IND,
448 eCSR_ROAM_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700449#ifdef WLAN_FEATURE_VOWIFI_11R
450 eCSR_ROAM_FT_RESPONSE,
451#endif
452 eCSR_ROAM_FT_START,
453 eCSR_ROAM_INDICATE_MGMT_FRAME,
454 eCSR_ROAM_REMAIN_CHAN_READY,
455 eCSR_ROAM_SEND_ACTION_CNF,
456 //this mean error happens before association_start or roaming_start is called.
457 eCSR_ROAM_SESSION_OPENED,
458 eCSR_ROAM_FT_REASSOC_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700459#ifdef FEATURE_WLAN_LFR
460 eCSR_ROAM_PMK_NOTIFY,
461#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800462#ifdef FEATURE_WLAN_TDLS
463 eCSR_ROAM_TDLS_STATUS_UPDATE,
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800464 eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800465#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800466 eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800467 eCSR_ROAM_SEND_P2P_STOP_BSS, //Stopbss triggered from SME due to different
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800468 // beacon interval
Chet Lanctot186b5732013-03-18 10:26:30 -0700469#ifdef WLAN_FEATURE_11W
470 eCSR_ROAM_UNPROT_MGMT_FRAME_IND,
471#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800472
Jeff Johnson295189b2012-06-20 16:38:30 -0700473}eRoamCmdStatus;
474
475
476//comment inside indicates what roaming callback gets
477typedef enum
478{
479 eCSR_ROAM_RESULT_NONE,
480 //this means no more action in CSR
481 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION, tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800482 eCSR_ROAM_RESULT_FAILURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700483 //Pass back pointer to tCsrRoamInfo
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800484 eCSR_ROAM_RESULT_ASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700485 eCSR_ROAM_RESULT_NOT_ASSOCIATED,
486 eCSR_ROAM_RESULT_MIC_FAILURE,
487 eCSR_ROAM_RESULT_FORCED,
488 eCSR_ROAM_RESULT_DISASSOC_IND,
489 eCSR_ROAM_RESULT_DEAUTH_IND,
490 eCSR_ROAM_RESULT_CAP_CHANGED,
491 //This means we starts an IBSS
492 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800493 eCSR_ROAM_RESULT_IBSS_STARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700494 //START_BSS failed
495 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800496 eCSR_ROAM_RESULT_IBSS_START_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700497 eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800498 eCSR_ROAM_RESULT_IBSS_JOIN_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700499 eCSR_ROAM_RESULT_IBSS_CONNECT,
500 eCSR_ROAM_RESULT_IBSS_INACTIVE,
501 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800502 //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid
503 //If roamStatus is eCSR_ROAM_IBSS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700504 //the peer's MAC address in peerMacOrBssid and a beacon frame of the IBSS in pbFrames
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800505 eCSR_ROAM_RESULT_IBSS_NEW_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700506 //Peer departed from IBSS, Callback may get a pointer tSmeIbssPeerInd in pIbssPeerInd
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800507 eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700508 //Coalescing in the IBSS network (joined an IBSS network)
509 //Callback pass a BSSID in peerMacOrBssid
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800510 eCSR_ROAM_RESULT_IBSS_COALESCED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700511 //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 -0800512 eCSR_ROAM_RESULT_IBSS_STOP,
513 eCSR_ROAM_RESULT_LOSTLINK,
Jeff Johnson295189b2012-06-20 16:38:30 -0700514 eCSR_ROAM_RESULT_MIC_ERROR_UNICAST,
515 eCSR_ROAM_RESULT_MIC_ERROR_GROUP,
516 eCSR_ROAM_RESULT_AUTHENTICATED,
517 eCSR_ROAM_RESULT_NEW_RSN_BSS,
518#ifdef FEATURE_WLAN_WAPI
519 eCSR_ROAM_RESULT_NEW_WAPI_BSS,
520#endif /* FEATURE_WLAN_WAPI */
521 // WDS started successfully
522 eCSR_ROAM_RESULT_WDS_STARTED,
523 // WDS start failed
524 eCSR_ROAM_RESULT_WDS_START_FAILED,
525 // WDS stopped
526 eCSR_ROAM_RESULT_WDS_STOPPED,
527 // WDS joined successfully in STA mode
528 eCSR_ROAM_RESULT_WDS_ASSOCIATED,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800529 // A station joined WDS AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700530 eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND,
531 // WDS join failed in STA mode
532 eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED,
533 // WDS disassociated
534 eCSR_ROAM_RESULT_WDS_DISASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700535 // INFRA started successfully
536 eCSR_ROAM_RESULT_INFRA_STARTED,
537 // INFRA start failed
538 eCSR_ROAM_RESULT_INFRA_START_FAILED,
539 // INFRA stopped
540 eCSR_ROAM_RESULT_INFRA_STOPPED,
541 // A station joining INFRA AP
542 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND,
543 // A station joined INFRA AP
544 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF,
545 // INFRA disassociated
546 eCSR_ROAM_RESULT_INFRA_DISASSOCIATED,
547 eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700548 eCSR_ROAM_RESULT_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700549 // peer rejected assoc because max assoc limit reached. callback gets pointer to peer
550 eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED,
Jeff Johnsone7245742012-09-05 17:12:55 -0700551 //Assoc rejected due to concurrent session running on a different channel
552 eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800553#ifdef FEATURE_WLAN_TDLS
554 eCSR_ROAM_RESULT_ADD_TDLS_PEER,
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800555 eCSR_ROAM_RESULT_UPDATE_TDLS_PEER,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800556 eCSR_ROAM_RESULT_DELETE_TDLS_PEER,
Hoonki Leee6bfe942013-02-05 15:01:19 -0800557 eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND,
Gopichand Nakkala2a0a1572013-02-10 21:39:16 -0800558 eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530559 eCSR_ROAM_RESULT_LINK_ESTABLISH_REQ_RSP,
Gopichand Nakkala78a6c812013-05-13 16:39:49 +0530560#ifdef FEATURE_WLAN_TDLS_OXYGEN_DISAPPEAR_AP
561 eCSR_ROAM_RESULT_TDLS_DISAPPEAR_AP_IND,
562#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800563#endif
564
Jeff Johnson295189b2012-06-20 16:38:30 -0700565}eCsrRoamResult;
566
567
568
569/*----------------------------------------------------------------------------
570 List of link quality indications HDD can receive from SME
571-----------------------------------------------------------------------------*/
572typedef enum
573{
574 eCSR_ROAM_LINK_QUAL_MIN_IND = -1,
575
576 eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */
577 eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */
578 eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */
579 eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */
580
581 eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */
582
583} eCsrRoamLinkQualityInd;
584
585typedef enum
586{
587 eCSR_DISCONNECT_REASON_UNSPECIFIED = 0,
588 eCSR_DISCONNECT_REASON_MIC_ERROR,
589 eCSR_DISCONNECT_REASON_DISASSOC,
590 eCSR_DISCONNECT_REASON_DEAUTH,
591 eCSR_DISCONNECT_REASON_HANDOFF,
592 eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE,
593 eCSR_DISCONNECT_REASON_IBSS_LEAVE,
594}eCsrRoamDisconnectReason;
595
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800596typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700597{
598 // Not associated in Infra or participating in an IBSS / Ad-hoc network.
599 eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED,
600 // Associated in an Infrastructure network.
601 eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED,
602 // Participating in an IBSS network though disconnected (no partner stations
603 // in the IBSS).
604 eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED,
605 // Participating in an IBSS network with partner stations also present
606 eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED,
607 // Participating in a WDS network in AP or STA mode but not connected yet
608 eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED,
609 // Participating in a WDS network and connected peer to peer
610 eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700611 // Participating in a Infra network in AP not yet in connected state
612 eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED,
613 // Participating in a Infra network and connected to a peer
614 eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700615
616}eCsrConnectState;
617
618
619// This parameter is no longer supported in the Profile. Need to set this in the global properties
620// for the adapter.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800621typedef enum eCSR_MEDIUM_ACCESS
Jeff Johnson295189b2012-06-20 16:38:30 -0700622{
623 eCSR_MEDIUM_ACCESS_AUTO = 0,
624 eCSR_MEDIUM_ACCESS_DCF,
625 eCSR_MEDIUM_ACCESS_eDCF,
626 eCSR_MEDIUM_ACCESS_HCF,
627
628 eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p,
629 eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP,
630 eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify,
631 eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF,
632 eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF,
633}eCsrMediaAccessType;
634
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800635typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700636{
637 eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate.
638
639 eCSR_TX_RATE_1Mbps = 0x00000001,
640 eCSR_TX_RATE_2Mbps = 0x00000002,
641 eCSR_TX_RATE_5_5Mbps = 0x00000004,
642 eCSR_TX_RATE_6Mbps = 0x00000008,
643 eCSR_TX_RATE_9Mbps = 0x00000010,
644 eCSR_TX_RATE_11Mbps = 0x00000020,
645 eCSR_TX_RATE_12Mbps = 0x00000040,
646 eCSR_TX_RATE_18Mbps = 0x00000080,
647 eCSR_TX_RATE_24Mbps = 0x00000100,
648 eCSR_TX_RATE_36Mbps = 0x00000200,
649 eCSR_TX_RATE_42Mbps = 0x00000400,
650 eCSR_TX_RATE_48Mbps = 0x00000800,
651 eCSR_TX_RATE_54Mbps = 0x00001000,
652 eCSR_TX_RATE_72Mbps = 0x00002000,
653 eCSR_TX_RATE_84Mbps = 0x00004000,
654 eCSR_TX_RATE_96Mbps = 0x00008000,
655 eCSR_TX_RATE_108Mbps = 0x00010000,
656 eCSR_TX_RATE_126Mbps = 0x00020000,
657 eCSR_TX_RATE_144Mbps = 0x00040000,
658 eCSR_TX_RATE_168Mbps = 0x00080000,
659 eCSR_TX_RATE_192Mbps = 0x00100000,
660 eCSR_TX_RATE_216Mbps = 0x00200000,
661 eCSR_TX_RATE_240Mbps = 0x00400000,
662
663}eCsrExposedTxRate;
664
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800665typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700666{
667 eCSR_OPERATING_CHANNEL_ALL = 0,
668 eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL,
669 eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL,
670}eOperationChannel;
671
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800672typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700673{
674 eCSR_DOT11_FRAG_THRESH_AUTO = -1,
675 eCSR_DOT11_FRAG_THRESH_MIN = 256,
676 eCSR_DOT11_FRAG_THRESH_MAX = 2346,
677 eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000
678}eCsrDot11FragThresh;
679
680
681//for channel bonding for ibss
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800682typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700683{
684 eCSR_CB_OFF = 0,
685 eCSR_CB_AUTO = 1,
686 eCSR_CB_DOWN = 2,
687 eCSR_CB_UP = 3,
688}eCsrCBChoice;
689
690//For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode.
691#define CSR_CB_CHANNEL_GAP 4
692#define CSR_CB_CENTER_CHANNEL_OFFSET 2
693#define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END )
Jeff Johnsone7245742012-09-05 17:12:55 -0700694#define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN )
695#define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END )
Jeff Johnson295189b2012-06-20 16:38:30 -0700696
697// WEP keysize (in bits)...
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800698typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700699{
700 eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP
701 eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP
702
703 eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40,
704 eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104,
705 eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ),
706}eCsrWEPKeySize;
707
708
709// Possible values for the WEP static key ID...
710typedef enum
711{
712
713 eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0,
714 eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3,
715 eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0,
716
717 eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1,
718
719}eCsrWEPStaticKeyID;
720
Chet Lanctot186b5732013-03-18 10:26:30 -0700721// Two extra key indicies are used for the IGTK (which is used by BIP)
722#define CSR_MAX_NUM_KEY (eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX + 2 + 1)
Jeff Johnson295189b2012-06-20 16:38:30 -0700723
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800724typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700725{
726 eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE,
727 eCSR_SECURITY_SET_KEY_ACTION_SET_KEY,
728 eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY,
729}eCsrSetKeyAction;
730
731typedef enum
732{
733 eCSR_BAND_ALL,
734 eCSR_BAND_24,
735 eCSR_BAND_5G,
736 eCSR_BAND_MAX,
737}eCsrBand;
738
739
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800740typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700741{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800742 // Roaming because HDD requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700743 // tCsrRoamModifyProfileFields. OR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800744 // Roaming because SME requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700745 // tCsrRoamModifyProfileFields.
746 eCsrRoamReasonStaCapabilityChanged,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800747 // Roaming because SME requested for reassoc to a different AP, as part of
Jeff Johnson295189b2012-06-20 16:38:30 -0700748 // inter AP handoff.
749 eCsrRoamReasonBetterAP,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800750 // Roaming because SME requested it as the link is lost - placeholder, will
Jeff Johnson295189b2012-06-20 16:38:30 -0700751 // clean it up once handoff code gets in
752 eCsrRoamReasonSmeIssuedForLostLink,
753
754}eCsrRoamReasonCodes;
755
756typedef enum
757{
758 eCsrRoamWmmAuto = 0,
759 eCsrRoamWmmQbssOnly = 1,
760 eCsrRoamWmmNoQos = 2,
761
762} eCsrRoamWmmUserModeType;
763
764typedef enum
765{
766 eCSR_REQUESTER_MIN = 0,
767 eCSR_DIAG,
768 eCSR_UMA_GAN,
769 eCSR_HDD
770} eCsrStatsRequesterType;
771
772typedef struct tagPmkidCandidateInfo
773{
774 tCsrBssid BSSID;
775 tANI_BOOLEAN preAuthSupported;
776}tPmkidCandidateInfo;
777
778typedef struct tagPmkidCacheInfo
779{
780 tCsrBssid BSSID;
781 tANI_U8 PMKID[CSR_RSN_PMKID_SIZE];
782}tPmkidCacheInfo;
783
784#ifdef FEATURE_WLAN_WAPI
785typedef struct tagBkidCandidateInfo
786{
787 tCsrBssid BSSID;
788 tANI_BOOLEAN preAuthSupported;
789}tBkidCandidateInfo;
790
791typedef struct tagBkidCacheInfo
792{
793 tCsrBssid BSSID;
794 tANI_U8 BKID[CSR_WAPI_BKID_SIZE];
795}tBkidCacheInfo;
796#endif /* FEATURE_WLAN_WAPI */
797
798typedef struct tagCsrKeys
799{
800 tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set
801 tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ];
802 tANI_U8 defaultIndex;
803}tCsrKeys;
804
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800805/* Following are fields which are part of tCsrRoamConnectedProfile might need
Jeff Johnson295189b2012-06-20 16:38:30 -0700806 modification dynamically once STA is up & running and this could trigger
807 reassoc */
808typedef struct tagCsrRoamModifyProfileFields
809{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800810 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700811 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800812 // During assoc response this COULD carry confirmation of what ACs U-APSD
Jeff Johnson295189b2012-06-20 16:38:30 -0700813 // got setup for. Later if an APP looking for APSD, SME-QoS might need to
814 // modify this field
815 tANI_U8 uapsd_mask;
816 // HDD might ask to modify this field
817 tANI_U16 listen_interval;
818}tCsrRoamModifyProfileFields;
819
820typedef struct tagCsrRoamProfile
821{
822 //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs.
823 //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP
824 //that we need to join. Index 1 is the SSID for self BSS.
825 tCsrSSIDs SSIDs;
826 tCsrBSSIDs BSSIDs;
827 tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
828 eCsrRoamBssType BSSType;
829
830 tCsrAuthList AuthType;
831 eCsrAuthType negotiatedAuthType;
832
833 tCsrEncryptionList EncryptionType;
834 //This field is for output only, not for input
835 eCsrEncryptionType negotiatedUCEncryptionType;
836
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800837 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700838 //put all supported encryption types in here
839 tCsrEncryptionList mcEncryptionType;
840 //This field is for output only, not for input
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800841 eCsrEncryptionType negotiatedMCEncryptionType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700842
Chet Lanctot186b5732013-03-18 10:26:30 -0700843#ifdef WLAN_FEATURE_11W
844 // Management Frame Protection
845 tANI_BOOLEAN MFPEnabled;
846 tANI_U8 MFPRequired;
847 tANI_U8 MFPCapable;
848#endif
849
Jeff Johnson295189b2012-06-20 16:38:30 -0700850 tCsrKeys Keys;
851 eCsrCBChoice CBMode; //up, down or auto
852 tCsrChannelInfo ChannelInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800853 tANI_U8 operationChannel;
Jeff Johnson295189b2012-06-20 16:38:30 -0700854 tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800855 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700856 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
857 // During assoc response this COULD carry confirmation of what ACs U-APSD got setup for
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800858 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700859 tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE
860 tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA
861 tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE
862 tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN
863#ifdef FEATURE_WLAN_WAPI
864 tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE
865 tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI
866#endif /* FEATURE_WLAN_WAPI */
867
868 tANI_U32 nAddIEScanLength; //The byte count in the pAddIE for scan (at the time of join)
869 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 -0800870 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
Jeff Johnson295189b2012-06-20 16:38:30 -0700871 tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
872
873 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0.
874 /*WPS Association if true => auth and ecryption should be ignored*/
875 tANI_BOOLEAN bWPSAssociation;
876 tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE
877 tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC
878
Jeff Johnson295189b2012-06-20 16:38:30 -0700879 tANI_U8 ieee80211d;
880 tANI_U8 privacy;
881 tANI_BOOLEAN fwdWPSPBCProbeReq;
882 tAniAuthType csr80211AuthType;
883 tANI_U32 dtimPeriod;
884 tANI_BOOLEAN ApUapsdEnable;
885 tANI_BOOLEAN protEnabled;
886 tANI_BOOLEAN obssProtEnabled;
887 tANI_U16 cfg_protection;
888 tANI_U8 wps_state;
Jeff Johnson295189b2012-06-20 16:38:30 -0700889
890#ifdef WLAN_FEATURE_VOWIFI_11R
891 tCsrMobilityDomainInfo MDID;
892#endif
893 tVOS_CON_MODE csrPersona;
894
895}tCsrRoamProfile;
896
897
898typedef struct tagCsrRoamConnectedProfile
899{
900 tSirMacSSid SSID;
901 tANI_BOOLEAN handoffPermitted;
902 tANI_BOOLEAN ssidHidden;
903 tCsrBssid bssid;
904 eCsrRoamBssType BSSType;
905 eCsrAuthType AuthType;
906 tCsrAuthList AuthInfo;
907 eCsrEncryptionType EncryptionType;
908 tCsrEncryptionList EncryptionInfo;
909 eCsrEncryptionType mcEncryptionType;
910 tCsrEncryptionList mcEncryptionInfo;
911 eCsrCBChoice CBMode; //up, down or auto
912 tANI_U8 operationChannel;
Jeff Johnsone7245742012-09-05 17:12:55 -0700913 tANI_U16 beaconInterval;
Jeff Johnson295189b2012-06-20 16:38:30 -0700914 tCsrKeys Keys;
915 // meaningless on connect. It's an OUT param from CSR's point of view
916 // During assoc response carries the ACM bit-mask i.e. what
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800917 // ACs have ACM=1 (if any),
Jeff Johnson295189b2012-06-20 16:38:30 -0700918 // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored)
919 tANI_U8 acm_mask;
920 tCsrRoamModifyProfileFields modifyProfileFields;
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700921 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
922 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 -0800923
924 tSirBssDescription *pBssDesc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700925 tANI_BOOLEAN qap; //AP supports QoS
926 tANI_BOOLEAN qosConnection; //A connection is QoS enabled
927#ifdef WLAN_FEATURE_VOWIFI_11R
928 tCsrMobilityDomainInfo MDID;
929#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800930
Jeff Johnson295189b2012-06-20 16:38:30 -0700931#ifdef FEATURE_WLAN_CCX
932 tCsrCcxCckmInfo ccxCckmInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800933 tANI_BOOLEAN isCCXAssoc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700934#endif
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +0530935 tANI_U32 dot11Mode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700936}tCsrRoamConnectedProfile;
937
938
939#ifdef WLAN_FEATURE_VOWIFI_11R
940typedef struct tagCsr11rConfigParams
941{
942 tANI_BOOLEAN IsFTResourceReqSupported;
943} tCsr11rConfigParams;
944#endif
945
946#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
947typedef struct tagCsrNeighborRoamConfigParams
948{
949
950 tANI_U32 nNeighborScanTimerPeriod;
951 tANI_U8 nNeighborLookupRssiThreshold;
952 tANI_U8 nNeighborReassocRssiThreshold;
953 tANI_U16 nNeighborScanMinChanTime;
954 tANI_U16 nNeighborScanMaxChanTime;
955 sCsrChannel neighborScanChanList;
956 tANI_U8 nMaxNeighborRetries;
957 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowdade697412013-02-14 16:31:48 -0800958 tANI_U16 nEmptyScanRefreshPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -0700959}tCsrNeighborRoamConfigParams;
960#endif
961
962typedef struct tagCsrConfigParam
963{
964 tANI_U32 FragmentationThreshold;
Jeff Johnsone7245742012-09-05 17:12:55 -0700965 tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState
966 tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState
Jeff Johnson295189b2012-06-20 16:38:30 -0700967 eCsrPhyMode phyMode;
968 eCsrBand eBand;
969 tANI_U32 RTSThreshold;
970 tANI_U32 HeartbeatThresh50;
971 tANI_U32 HeartbeatThresh24;
972 eCsrCBChoice cbChoice;
973 eCsrBand bandCapability; //indicate hw capability
974 tANI_U32 bgScanInterval;
975 tANI_U16 TxRate;
976 eCsrRoamWmmUserModeType WMMSupportMode;
977 tANI_BOOLEAN Is11eSupportEnabled;
978 tANI_BOOLEAN Is11dSupportEnabled;
979 tANI_BOOLEAN Is11dSupportEnabledOriginal;
980 tANI_BOOLEAN Is11hSupportEnabled;
981 tANI_BOOLEAN shortSlotTime;
982 tANI_BOOLEAN ProprietaryRatesEnabled;
983 tANI_U8 AdHocChannel24;
984 tANI_U8 AdHocChannel5G;
985 tANI_U32 impsSleepTime; //in units of seconds
986 tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed
987 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
988 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
989 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
990 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
991 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming
992 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
993 tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode
Mohit Khanna7ed53f02012-09-11 17:52:10 -0700994 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
995 //at the moment, this flag is provided only to pass Wi-Fi Cert. 5.1.12
Jeff Johnson295189b2012-06-20 16:38:30 -0700996 tCsr11dinfo Csr11dinfo;
997 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800998 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -0700999 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001000 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001001 //Country Code Priority
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001002 //0 = 802.11D > Country IOCTL > NV
Jeff Johnson295189b2012-06-20 16:38:30 -07001003 //1 = Country IOCTL > 802.11D > NV
1004 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001005 //When true, AP with unknown country code won't be see.
1006 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
1007 //find a domain for the country code in its 11d IE.
1008 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -07001009 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
1010 //code", or the domain of the country code doesn't match the default domain, the Ap is
1011 //not acceptable.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001012 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -07001013
1014 tANI_U16 vccRssiThreshold;
1015 tANI_U32 vccUlMacLossThreshold;
1016
1017 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
1018 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
1019 tANI_U32 nActiveMinChnTime; //in units of milliseconds
1020 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001021
1022 tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds
1023 tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -07001024 tANI_U32 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001025#ifdef WLAN_AP_STA_CONCURRENCY
1026 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
1027 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
1028 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
1029 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
1030 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -07001031 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
1032 //STA in each split scan operation
1033 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
1034 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001035#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001036
1037 tANI_BOOLEAN IsIdleScanEnabled;
1038 //in dBm, the maximum TX power
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001039 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -07001040 //If 11d is disable, the lesser of this and default setting.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001041 tANI_U8 nTxPowerCap;
Jeff Johnson295189b2012-06-20 16:38:30 -07001042 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
1043 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
1044#ifdef WLAN_FEATURE_VOWIFI_11R
1045 tCsr11rConfigParams csr11rConfig;
1046#endif
1047#ifdef FEATURE_WLAN_CCX
1048 tANI_U8 isCcxIniFeatureEnabled;
1049#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001050#ifdef FEATURE_WLAN_LFR
1051 tANI_U8 isFastRoamIniFeatureEnabled;
1052#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001053
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001054#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001055 tANI_U8 isFastTransitionEnabled;
1056 tANI_U8 RoamRssiDiff;
1057 tANI_U8 nImmediateRoamRssiDiff;
Jeff Johnson295189b2012-06-20 16:38:30 -07001058#endif
1059
1060#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
1061 tCsrNeighborRoamConfigParams neighborRoamConfig;
1062#endif
1063
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001064 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -07001065 * This is mandated by WMM-AC certification */
1066 tANI_BOOLEAN addTSWhenACMIsOff;
1067
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001068
1069 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -07001070 * detect when it happens. Adding this into code because we can't reproduce it easily.
1071 * We don't know when it happens. */
1072 tANI_BOOLEAN fValidateList;
1073
1074 /*Customer wants to start with an active scan based on the default country code.
1075 * This optimization will minimize the driver load to association time.
1076 * Based on this flag we will bypass the initial passive scan needed for 11d
1077 * to determine the country code & domain */
1078 tANI_BOOLEAN fEnableBypass11d;
1079
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001080 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
1081 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -07001082 * (apprx 1.3 sec) */
1083 tANI_BOOLEAN fEnableDFSChnlScan;
1084
1085 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
1086 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -07001087#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07001088 tANI_U32 nVhtChannelWidth;
1089 tANI_U8 enableTxBF;
1090 tANI_U8 txBFCsnValue;
1091 tANI_BOOLEAN enableVhtFor24GHz;
Jeff Johnsone7245742012-09-05 17:12:55 -07001092#endif
1093
1094 /*
1095 * To enable/disable scanning only 2.4Ghz channels on first scan
1096 */
1097 tANI_BOOLEAN fFirstScanOnly2GChnl;
Jeff Johnson295189b2012-06-20 16:38:30 -07001098
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08001099#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
1100 tANI_BOOLEAN nRoamPrefer5GHz;
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001101 tANI_BOOLEAN nRoamIntraBand;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07001102 tANI_U8 nProbes;
1103 tANI_U16 nRoamScanHomeAwayTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001104
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001105#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1106 tANI_BOOLEAN isRoamOffloadScanEnabled;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001107 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001108#endif
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001109#endif
1110
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001111
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08001112 tANI_U8 scanCfgAgingTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001113
1114 tANI_U8 enableTxLdpc;
krunal soni4f087d22013-07-29 16:32:26 -07001115
1116 tANI_BOOLEAN enableOxygenNwk;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001117}tCsrConfigParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07001118
1119//Tush
1120typedef struct tagCsrUpdateConfigParam
1121{
1122 tCsr11dinfo Csr11dinfo;
1123}tCsrUpdateConfigParam;
1124
1125typedef struct tagCsrRoamInfo
1126{
1127 tCsrRoamProfile *pProfile; //may be NULL
1128 tSirBssDescription *pBssDesc; //May be NULL
1129 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
1130 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
1131 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
1132 tANI_U32 nFrameLength;
1133 tANI_U8 frameType;
1134 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
1135 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
1136 //each frame starts and ends.
1137 tANI_BOOLEAN fReassocReq; //set to true if for re-association
1138 tANI_BOOLEAN fReassocRsp; //set to true if for re-association
1139 tCsrBssid bssid;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001140 //Only valid in IBSS
Jeff Johnson295189b2012-06-20 16:38:30 -07001141 //this is the peers MAC address for eCSR_ROAM_RESULT_IBSS_NEW_PEER or PEER_DEPARTED
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001142 tCsrBssid peerMac;
Jeff Johnson295189b2012-06-20 16:38:30 -07001143 tSirResultCodes statusCode;
1144 tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec)
1145 tANI_U8 staId; // Peer stationId when connected
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001146 /*The DPU signatures will be sent eventually to TL to help it determine the
Jeff Johnson295189b2012-06-20 16:38:30 -07001147 association to which a packet belongs to*/
1148 /*Unicast DPU signature*/
1149 tANI_U8 ucastSig;
1150
1151 /*Broadcast DPU signature*/
1152 tANI_U8 bcastSig;
1153
1154 tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open)
1155 tANI_U8 sessionId;
1156 tANI_U8 rsnIELen;
1157 tANI_U8 *prsnIE;
1158
1159 tANI_U8 addIELen;
1160 tANI_U8 *paddIE;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001161
Jeff Johnson295189b2012-06-20 16:38:30 -07001162 union
1163 {
1164 tSirMicFailureInfo *pMICFailureInfo;
1165 tCsrRoamConnectedProfile *pConnectedProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -07001166 tSirWPSPBCProbeReq *pWPSPBCProbeReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07001167 } u;
1168
Jeff Johnson295189b2012-06-20 16:38:30 -07001169 tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA
1170 tANI_U32 dtimPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -07001171
1172#ifdef FEATURE_WLAN_CCX
1173 tANI_BOOLEAN isCCXAssoc;
1174#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001175 void* pRemainCtx;
Jeff Johnson295189b2012-06-20 16:38:30 -07001176 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07001177
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001178#ifdef FEATURE_WLAN_TDLS
1179 tANI_U8 staType;
1180#endif
1181
Jeff Johnson295189b2012-06-20 16:38:30 -07001182 // Required for indicating the frames to upper layer
1183 tANI_U32 beaconLength;
1184 tANI_U8* beaconPtr;
1185 tANI_U32 assocReqLength;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001186 tANI_U8* assocReqPtr;
Chilam NG571c65a2013-01-19 12:27:36 +05301187
1188 tANI_S8 rxRssi;
Jeff Johnson295189b2012-06-20 16:38:30 -07001189}tCsrRoamInfo;
1190
1191
1192
1193
1194
1195typedef struct tagCsrFreqScanInfo
1196{
1197 tANI_U32 nStartFreq; //in unit of MHz
1198 tANI_U32 nEndFreq; //in unit of MHz
1199 tSirScanType scanType;
1200}tCsrFreqScanInfo;
1201
1202
Jeff Johnson295189b2012-06-20 16:38:30 -07001203typedef struct sSirSmeAssocIndToUpperLayerCnf
1204{
1205 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1206 tANI_U16 length;
1207 tANI_U8 sessionId;
1208 tSirResultCodes statusCode;
1209 tSirMacAddr bssId; // Self BSSID
1210 tSirMacAddr peerMacAddr;
1211 tANI_U16 aid;
1212 tSirMacAddr alternateBssId;
1213 tANI_U8 alternateChannelId;
1214 tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA
1215 tSirRSNie rsnIE; // RSN IE received from peer
1216 tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE
1217 tANI_U8 reassocReq; //set to true if reassoc
1218} tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf;
Jeff Johnson295189b2012-06-20 16:38:30 -07001219
1220typedef struct tagCsrSummaryStatsInfo
1221{
1222 tANI_U32 retry_cnt[4];
1223 tANI_U32 multiple_retry_cnt[4];
1224 tANI_U32 tx_frm_cnt[4];
1225 //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt
1226 //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt
1227 tANI_U32 rx_frm_cnt;
1228 tANI_U32 frm_dup_cnt;
1229 tANI_U32 fail_cnt[4];
1230 tANI_U32 rts_fail_cnt;
1231 tANI_U32 ack_fail_cnt;
1232 tANI_U32 rts_succ_cnt;
1233 tANI_U32 rx_discard_cnt;
1234 tANI_U32 rx_error_cnt;
1235 tANI_U32 tx_byte_cnt;
1236
1237}tCsrSummaryStatsInfo;
1238
1239typedef struct tagCsrGlobalClassAStatsInfo
1240{
1241 tANI_U32 rx_frag_cnt;
1242 tANI_U32 promiscuous_rx_frag_cnt;
1243 //tANI_U32 rx_fcs_err;
1244 tANI_U32 rx_input_sensitivity;
1245 tANI_U32 max_pwr;
1246 //tANI_U32 default_pwr;
1247 tANI_U32 sync_fail_cnt;
1248 tANI_U32 tx_rate;
1249 //mcs index for HT20 and HT40 rates
1250 tANI_U32 mcs_index;
1251 //to defferentiate between HT20 and HT40 rates;short and long guard interval
1252 tANI_U32 tx_rate_flags;
1253
1254}tCsrGlobalClassAStatsInfo;
1255
1256typedef struct tagCsrGlobalClassBStatsInfo
1257{
1258 tANI_U32 uc_rx_wep_unencrypted_frm_cnt;
1259 tANI_U32 uc_rx_mic_fail_cnt;
1260 tANI_U32 uc_tkip_icv_err;
1261 tANI_U32 uc_aes_ccmp_format_err;
1262 tANI_U32 uc_aes_ccmp_replay_cnt;
1263 tANI_U32 uc_aes_ccmp_decrpt_err;
1264 tANI_U32 uc_wep_undecryptable_cnt;
1265 tANI_U32 uc_wep_icv_err;
1266 tANI_U32 uc_rx_decrypt_succ_cnt;
1267 tANI_U32 uc_rx_decrypt_fail_cnt;
1268 tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt;
1269 tANI_U32 mcbc_rx_mic_fail_cnt;
1270 tANI_U32 mcbc_tkip_icv_err;
1271 tANI_U32 mcbc_aes_ccmp_format_err;
1272 tANI_U32 mcbc_aes_ccmp_replay_cnt;
1273 tANI_U32 mcbc_aes_ccmp_decrpt_err;
1274 tANI_U32 mcbc_wep_undecryptable_cnt;
1275 tANI_U32 mcbc_wep_icv_err;
1276 tANI_U32 mcbc_rx_decrypt_succ_cnt;
1277 tANI_U32 mcbc_rx_decrypt_fail_cnt;
1278
1279}tCsrGlobalClassBStatsInfo;
1280
1281typedef struct tagCsrGlobalClassCStatsInfo
1282{
1283 tANI_U32 rx_amsdu_cnt;
1284 tANI_U32 rx_ampdu_cnt;
1285 tANI_U32 tx_20_frm_cnt;
1286 tANI_U32 rx_20_frm_cnt;
1287 tANI_U32 rx_mpdu_in_ampdu_cnt;
1288 tANI_U32 ampdu_delimiter_crc_err;
1289
1290}tCsrGlobalClassCStatsInfo;
1291
1292typedef struct tagCsrGlobalClassDStatsInfo
1293{
1294 tANI_U32 tx_uc_frm_cnt;
1295 tANI_U32 tx_mc_frm_cnt;
1296 tANI_U32 tx_bc_frm_cnt;
1297 tANI_U32 rx_uc_frm_cnt;
1298 tANI_U32 rx_mc_frm_cnt;
1299 tANI_U32 rx_bc_frm_cnt;
1300 tANI_U32 tx_uc_byte_cnt[4];
1301 tANI_U32 tx_mc_byte_cnt;
1302 tANI_U32 tx_bc_byte_cnt;
1303 tANI_U32 rx_uc_byte_cnt[4];
1304 tANI_U32 rx_mc_byte_cnt;
1305 tANI_U32 rx_bc_byte_cnt;
1306 tANI_U32 rx_byte_cnt;
1307 tANI_U32 num_rx_bytes_crc_ok;
1308 tANI_U32 rx_rate;
1309
1310}tCsrGlobalClassDStatsInfo;
1311
1312typedef struct tagCsrPerStaStatsInfo
1313{
1314 tANI_U32 tx_frag_cnt[4];
1315 tANI_U32 tx_ampdu_cnt;
1316 tANI_U32 tx_mpdu_in_ampdu_cnt;
1317} tCsrPerStaStatsInfo;
1318
1319typedef struct tagCsrRoamSetKey
1320{
1321 eCsrEncryptionType encType;
1322 tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx
1323 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1324 tANI_U8 paeRole; //0 for supplicant
1325 tANI_U8 keyId; // Kye index
1326 tANI_U16 keyLength; //Number of bytes containing the key in pKey
1327 tANI_U8 Key[CSR_MAX_KEY_LEN];
1328 tANI_U8 keyRsc[CSR_MAX_RSC_LEN];
1329} tCsrRoamSetKey;
1330
1331typedef struct tagCsrRoamRemoveKey
1332{
1333 eCsrEncryptionType encType;
1334 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1335 tANI_U8 keyId; //key index
1336} tCsrRoamRemoveKey;
1337
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001338#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301339
1340typedef struct tagCsrLinkEstablishParams
1341{
1342 tSirMacAddr peerMac;
1343 tANI_U8 uapsdQueues;
1344 tANI_U8 maxSp;
1345 tANI_U8 isBufSta;
1346 tANI_U8 isResponder;
1347}tCsrTdlsLinkEstablishParams;
1348
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001349typedef struct tagCsrTdlsSendMgmt
1350{
1351 tSirMacAddr peerMac;
1352 tANI_U8 frameType;
1353 tANI_U8 dialog;
1354 tANI_U16 statusCode;
Hoonki Leea34dd892013-02-05 22:56:02 -08001355 tANI_U8 responder;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001356 tANI_U8 *buf;
1357 tANI_U8 len;
1358
1359}tCsrTdlsSendMgmt;
1360
1361#ifdef FEATURE_WLAN_TDLS_INTERNAL
1362typedef struct tagCsrTdlsDisRequest
1363{
1364 tSirMacAddr peerMac;
1365 tANI_U8 disType;
1366}tCsrTdlsDisRequest;
1367
1368typedef struct tagCsrTdlsSetupRequest
1369{
1370 tSirMacAddr peerMac;
1371 tANI_U8 linkIndex;
1372}tCsrTdlsSetupRequest;
1373
1374typedef struct tagCsrTdlsTeardownRequest
1375{
1376 tSirMacAddr peerMac;
1377 tANI_U8 linkIndex;
1378}tCsrTdlsTeardownRequest ;
1379#endif
1380#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001381
1382typedef void * tScanResultHandle;
1383
1384#define CSR_INVALID_SCANRESULT_HANDLE (NULL)
1385
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001386#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1387typedef struct tagCsrHandoffRequest
1388{
1389 tCsrBssid bssid;
1390 tANI_U8 channel;
1391}tCsrHandoffRequest;
1392#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001393
1394
1395////////////////////////////////////////////Common SCAN starts
1396
1397//void *p2 -- the second context pass in for the caller
1398//***what if callback is called before requester gets the scanId??
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001399typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status);
Jeff Johnson295189b2012-06-20 16:38:30 -07001400
1401
1402
1403///////////////////////////////////////////Common Roam starts
1404
1405//pContext is the pContext passed in with the roam request
1406//pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and
1407// eRoamCmdResult for detail valid members. It may be NULL
1408//roamId is to identify the callback related roam request. 0 means unsolicit
1409//roamStatus is a flag indicating the status of the callback
1410//roamResult is the result
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001411typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001412 eRoamCmdStatus roamStatus, eCsrRoamResult roamResult);
1413
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001414typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);
Jeff Johnson295189b2012-06-20 16:38:30 -07001415
1416/* ---------------------------------------------------------------------------
1417 \fn csrRoamGetNumPMKIDCache
1418 \brief return number of PMKID cache entries
1419 \return tANI_U32 - the number of PMKID cache entries
1420 -------------------------------------------------------------------------------*/
1421//tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal);
1422
1423/* ---------------------------------------------------------------------------
1424 \fn csrRoamGetPMKIDCache
1425 \brief return PMKID cache from CSR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001426 \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 -07001427 needed or actually number in tPmkidCacheInfo.
1428 \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return
1429 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1430 -------------------------------------------------------------------------------*/
1431//eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache);
1432
1433//pProfile - pointer to tCsrRoamProfile
1434#define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType)
1435#define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType)
1436#define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) )
1437#define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType)
1438#define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType)
1439#define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1440#define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1441#define CSR_IS_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07001442#define CSR_IS_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001443
1444//pProfile - pointer to tCsrRoamConnectedProfile
Jeff Johnson295189b2012-06-20 16:38:30 -07001445#define CSR_IS_CONN_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001446#define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1447#define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1448#define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
1449
1450
1451
1452///////////////////////////////////////////Common Roam ends
1453
1454
1455
Jeff Johnson295189b2012-06-20 16:38:30 -07001456/* ---------------------------------------------------------------------------
1457 \fn csrSetChannels
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001458 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001459 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1460 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001461 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001462 -------------------------------------------------------------------------------*/
1463
1464eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam );
1465
1466eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07001467
1468
1469//enum to string conversion for debug output
1470const char * get_eRoamCmdStatus_str(eRoamCmdStatus val);
1471const char * get_eCsrRoamResult_str(eCsrRoamResult val);
1472/* ---------------------------------------------------------------------------
1473 \fn csrSetPhyMode
1474 \brief HDD calls this function to set the phyMode.
1475 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1476 CSR.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001477 \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 -07001478 See eCsrPhyMode for definition
1479 \param eBand - specify the operational band (2.4, 5 or both)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001480 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
Jeff Johnson295189b2012-06-20 16:38:30 -07001481 a restart is needed to apply the change
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001482 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001483 -------------------------------------------------------------------------------*/
1484eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded);
1485
1486void csrDumpInit(tHalHandle hHal);
1487
1488
1489/*---------------------------------------------------------------------------
1490 This is the type for a link quality callback to be registered with SME
1491 for indications
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001492 Once the link quality has been indicated, subsequently, link indications are
Jeff Johnson295189b2012-06-20 16:38:30 -07001493 posted each time there is a CHANGE in link quality.
1494 *** If there is no change in link, there will be no indication ***
1495
1496 The indications may be based on one or more criteria internal to SME
1497 such as RSSI and PER.
1498
1499 \param ind - Indication being posted
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001500 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001501 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001502
Jeff Johnson295189b2012-06-20 16:38:30 -07001503---------------------------------------------------------------------------*/
1504typedef void (* csrRoamLinkQualityIndCallback)
1505 (eCsrRoamLinkQualityInd ind, void *pContext);
1506
1507
1508/*---------------------------------------------------------------------------
1509 This is the type for a statistics callback to be registered with SME
1510 for stats reporting
1511
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001512 Since the client requesting for the stats already know which class/type of
1513 stats it asked for, the callback will carry them in the rsp buffer
1514 (void * stats) whose size will be same as the size of requested stats &
Jeff Johnson295189b2012-06-20 16:38:30 -07001515 will be exactly in the same order requested in the stats mask from LSB to MSB
1516
1517 \param stats - stats rsp buffer sent back with the report
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001518 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001519 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001520
Jeff Johnson295189b2012-06-20 16:38:30 -07001521---------------------------------------------------------------------------*/
1522typedef void ( *tCsrStatsCallback) (void * stats, void *pContext);
1523
1524/*---------------------------------------------------------------------------
1525 This is the type for a rssi callback to be registered with SME
1526 for getting rssi
1527
1528 \param rssi - rssi
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001529 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001530 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001531
Jeff Johnson295189b2012-06-20 16:38:30 -07001532---------------------------------------------------------------------------*/
1533
1534typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext);
1535
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05301536/*---------------------------------------------------------------------------
1537 This is the type for a snr callback to be registered with SME
1538 for getting snr
1539
1540 \param snr
1541 \param pContext - any user data given at callback registration.
1542 \return None
1543
1544---------------------------------------------------------------------------*/
1545typedef void (*tCsrSnrCallback) (v_S7_t snr, tANI_U32 staId, void *pContext);
1546
Jeff Johnson295189b2012-06-20 16:38:30 -07001547#ifdef WLAN_FEATURE_VOWIFI_11R
1548eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription);
1549#endif
1550
1551/*---------------------------------------------------------------------------
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001552 This is the function to change the Band configuraiton (ALL/2.4 GHZ/5 GHZ)
Jeff Johnson295189b2012-06-20 16:38:30 -07001553
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001554 \param hHal - handle to Hal context
Jeff Johnson295189b2012-06-20 16:38:30 -07001555 \param eBand - band value
1556 \return eHalStatus
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001557
Jeff Johnson295189b2012-06-20 16:38:30 -07001558---------------------------------------------------------------------------*/
1559eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand);
1560
1561/*---------------------------------------------------------------------------
1562 This is the function to get the current operating band value
1563 \param hHal - handl to Hal context
1564 \return eCsrband - band value
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001565
Jeff Johnson295189b2012-06-20 16:38:30 -07001566---------------------------------------------------------------------------*/
1567eCsrBand csrGetCurrentBand (tHalHandle hHal);
1568
1569#endif
1570