blob: b81fa046bf64c22fad697fec3a286f73c1422550 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala9c070ad2013-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 Lokere30b07722013-02-24 22:21:28 -080042/** ------------------------------------------------------------------------- *
43 ------------------------------------------------------------------------- *
Jeff Johnson295189b2012-06-20 16:38:30 -070044 \file csrApi.h
Kiran Kumar Lokere30b07722013-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 Lokere30b07722013-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 Lokere30b07722013-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 Lanctota96bb432013-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 Lokere30b07722013-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 Yeturub5dceff2013-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 Lokere30b07722013-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
235typedef struct tagCsrSSIDInfo
236{
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800237 tSirMacSSid SSID;
Jeff Johnson295189b2012-06-20 16:38:30 -0700238 tANI_BOOLEAN handoffPermitted;
239 tANI_BOOLEAN ssidHidden;
240}tCsrSSIDInfo;
241
242typedef struct tagCsrSSIDs
243{
244 tANI_U32 numOfSSIDs;
245 tCsrSSIDInfo *SSIDList; //To be allocated for array of SSIDs
246}tCsrSSIDs;
247
248typedef struct tagCsrBSSIDs
249{
250 tANI_U32 numOfBSSIDs;
251 tCsrBssid *bssid;
252}tCsrBSSIDs;
253
Gopichand Nakkala74e2a6c2013-03-06 22:27:48 -0800254typedef struct tagCsrStaParams
255{
256 tANI_U16 capability;
257 tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP];
258 tANI_U8 supported_rates_len;
259 tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES];
Hoonki Leed91a98f2013-04-16 18:30:07 -0700260 tANI_U8 htcap_present;
Gopichand Nakkala74e2a6c2013-03-06 22:27:48 -0800261 tSirHTCap HTCap;
Hoonki Leed91a98f2013-04-16 18:30:07 -0700262 tANI_U8 vhtcap_present;
Gopichand Nakkala74e2a6c2013-03-06 22:27:48 -0800263 tSirVHTCap VHTCap;
264 tANI_U8 uapsd_queues;
265 tANI_U8 max_sp;
266}tCsrStaParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700267
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800268typedef struct tagCsrScanRequest
Jeff Johnson295189b2012-06-20 16:38:30 -0700269{
270 tSirScanType scanType;
271 tCsrBssid bssid;
272 eCsrRoamBssType BSSType;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800273 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700274 tCsrChannelInfo ChannelInfo;
275 tANI_U32 minChnTime; //in units of milliseconds
276 tANI_U32 maxChnTime; //in units of milliseconds
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800277 tANI_U32 minChnTimeBtc; //in units of milliseconds
278 tANI_U32 maxChnTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700279 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
280 tANI_U32 uIEFieldLen;
281 tANI_U8 *pIEField;
282 eCsrRequestType requestType; //11d scan or full scan
Jeff Johnson295189b2012-06-20 16:38:30 -0700283 tANI_BOOLEAN p2pSearch;
Jeff Johnsone7245742012-09-05 17:12:55 -0700284 tANI_BOOLEAN skipDfsChnlInP2pSearch;
Madan Mohan Koyyalamudi1c655902013-07-26 13:58:38 +0530285 tANI_BOOLEAN bcnRptReqScan; //is Scan issued by Beacon Report Request
Jeff Johnson295189b2012-06-20 16:38:30 -0700286}tCsrScanRequest;
287
288typedef struct tagCsrBGScanRequest
289{
290 tSirScanType scanType;
291 tSirMacSSid SSID;
292 tCsrChannelInfo ChannelInfo;
293 tANI_U32 scanInterval; //in units of milliseconds
294 tANI_U32 minChnTime; //in units of milliseconds
295 tANI_U32 maxChnTime; //in units of milliseconds
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800296 tANI_U32 minChnTimeBtc; //in units of milliseconds
297 tANI_U32 maxChnTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700298 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
299 tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected
300 tCsrBssid bssid; //how to use it?? Apple
Madan Mohan Koyyalamudi91482b82012-12-27 17:28:14 -0800301}tCsrBGScanRequest, *tpCsrBGScanRequest;
Jeff Johnson295189b2012-06-20 16:38:30 -0700302
303
304typedef struct tagCsrScanResultInfo
305{
306 //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS.
307 void *pvIes;
308 tAniSSID ssId;
309 v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value
310 //This member must be the last in the structure because the end of tSirBssDescription is an
311 // array with nonknown size at this time
312 tSirBssDescription BssDescriptor;
313}tCsrScanResultInfo;
314
315typedef struct tagCsrEncryptionList
316{
317
318 tANI_U32 numEntries;
319 eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE];
320
321}tCsrEncryptionList, *tpCsrEncryptionList;
322
323typedef struct tagCsrAuthList
324{
325 tANI_U32 numEntries;
326 eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE];
327}tCsrAuthList, *tpCsrAuthList;
328
329#ifdef WLAN_FEATURE_VOWIFI_11R
330typedef struct tagCsrMobilityDomainInfo
331{
332 tANI_U8 mdiePresent;
333 tANI_U16 mobilityDomain;
334} tCsrMobilityDomainInfo;
335#endif
336
337#ifdef FEATURE_WLAN_CCX
338typedef struct tagCsrCcxCckmInfo
339{
340 tANI_U32 reassoc_req_num;
341 tANI_BOOLEAN krk_plumbed;
342 tANI_U8 krk[CSR_KRK_KEY_LEN];
343} tCsrCcxCckmInfo;
344#endif
345
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -0700346#if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD)
347#define CSR_DOT11F_IE_RSN_MAX_LEN (114) /*TODO: duplicate one in dot11f.h */
348
349typedef struct tagCsrCcxCckmIe
350{
351 tANI_U8 cckmIe[CSR_DOT11F_IE_RSN_MAX_LEN];
352 tANI_U8 cckmIeLen;
353} tCsrCcxCckmIe;
354#endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -0700355
356typedef struct tagCsrScanResultFilter
357{
358 tCsrBSSIDs BSSIDs; //each bssid has a length of WNI_CFG_BSSID_LEN (6)
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800359 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700360 tCsrChannelInfo ChannelInfo;
361 tCsrAuthList authType;
362 tCsrEncryptionList EncryptionType;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800363 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700364 //put all supported encryption types in here
365 tCsrEncryptionList mcEncryptionType;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800366 eCsrRoamBssType BSSType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700367 //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800368 tANI_U32 phyMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700369 //If countryCode[0] is not 0, countryCode is checked independent of fCheckUnknownCountryCode
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800370 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN];
371 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700372 /*For WPS filtering if true => auth and ecryption should be ignored*/
373 tANI_BOOLEAN bWPSAssociation;
374#if defined WLAN_FEATURE_VOWIFI
375 /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/
376 tANI_BOOLEAN fMeasurement;
377#endif
378#ifdef WLAN_FEATURE_VOWIFI_11R
379 tCsrMobilityDomainInfo MDID;
380#endif
381 tANI_BOOLEAN p2pResult;
382}tCsrScanResultFilter;
383
384
385typedef struct sCsrChnPower_
386{
387 tANI_U8 firstChannel;
388 tANI_U8 numChannels;
389 tANI_U8 maxtxPower;
390}sCsrChnPower;
391
392
393typedef struct sCsrChannel_
394{
395 tANI_U8 numChannels;
396 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
397}sCsrChannel;
398
399
400typedef struct tagCsr11dinfo
401{
402 sCsrChannel Channels;
403 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1];
404 //max power channel list
405 sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN];
406}tCsr11dinfo;
407
408
409typedef enum
410{
411 eCSR_ROAM_CANCELLED = 1,
412 //this mean error happens before association_start or roaming_start is called.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800413 eCSR_ROAM_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700414 //a CSR trigger roaming operation starts, callback may get a pointer to tCsrConnectedProfile
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800415 eCSR_ROAM_ROAMING_START,
Jeff Johnson295189b2012-06-20 16:38:30 -0700416 //a CSR trigger roaming operation is completed
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800417 eCSR_ROAM_ROAMING_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700418 //Connection completed status.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800419 eCSR_ROAM_CONNECT_COMPLETION,
420 //an association or start_IBSS operation starts,
421 //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription
422 eCSR_ROAM_ASSOCIATION_START,
423 //a roaming operation is finish, see eCsrRoamResult for
Jeff Johnson295189b2012-06-20 16:38:30 -0700424 //possible data passed back
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800425 eCSR_ROAM_ASSOCIATION_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700426 eCSR_ROAM_DISASSOCIATED,
427 eCSR_ROAM_ASSOCIATION_FAILURE,
428 //when callback with this flag. callback gets a pointer to the BSS desc.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800429 eCSR_ROAM_SHOULD_ROAM,
Jeff Johnson295189b2012-06-20 16:38:30 -0700430 //A new candidate for PMKID is found
431 eCSR_ROAM_SCAN_FOUND_NEW_BSS,
432 //CSR is done lostlink roaming and still cannot reconnect
433 eCSR_ROAM_LOSTLINK,
434 //a link lost is detected. CSR starts roaming.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800435 eCSR_ROAM_LOSTLINK_DETECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700436 //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd
437 eCSR_ROAM_MIC_ERROR_IND,
438 eCSR_ROAM_IBSS_IND, //IBSS indications.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800439 //Update the connection status, useful for IBSS: new peer added, network is active etc.
440 eCSR_ROAM_CONNECT_STATUS_UPDATE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700441 eCSR_ROAM_GEN_INFO,
442 eCSR_ROAM_SET_KEY_COMPLETE,
443 eCSR_ROAM_REMOVE_KEY_COMPLETE,
444 eCSR_ROAM_IBSS_LEAVE, //IBSS indications.
445 //BSS in WDS mode status indication
446 eCSR_ROAM_WDS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700447 //BSS in SoftAP mode status indication
448 eCSR_ROAM_INFRA_IND,
449 eCSR_ROAM_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700450#ifdef WLAN_FEATURE_VOWIFI_11R
451 eCSR_ROAM_FT_RESPONSE,
452#endif
453 eCSR_ROAM_FT_START,
454 eCSR_ROAM_INDICATE_MGMT_FRAME,
455 eCSR_ROAM_REMAIN_CHAN_READY,
456 eCSR_ROAM_SEND_ACTION_CNF,
457 //this mean error happens before association_start or roaming_start is called.
458 eCSR_ROAM_SESSION_OPENED,
459 eCSR_ROAM_FT_REASSOC_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700460#ifdef FEATURE_WLAN_LFR
461 eCSR_ROAM_PMK_NOTIFY,
462#endif
Yue Ma27b8c7a2013-04-08 23:09:17 -0700463#ifdef FEATURE_WLAN_LFR_METRICS
464 eCSR_ROAM_PREAUTH_INIT_NOTIFY,
465 eCSR_ROAM_PREAUTH_STATUS_SUCCESS,
466 eCSR_ROAM_PREAUTH_STATUS_FAILURE,
467 eCSR_ROAM_HANDOVER_SUCCESS,
468#endif
Mohit Khannac0b992f2012-12-04 15:08:18 -0800469#ifdef FEATURE_WLAN_TDLS
470 eCSR_ROAM_TDLS_STATUS_UPDATE,
Gopichand Nakkalaf8d84812013-02-18 19:15:09 -0800471 eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND,
Mohit Khannac0b992f2012-12-04 15:08:18 -0800472#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800473 eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800474 eCSR_ROAM_SEND_P2P_STOP_BSS, //Stopbss triggered from SME due to different
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800475 // beacon interval
Chet Lanctota96bb432013-03-18 10:26:30 -0700476#ifdef WLAN_FEATURE_11W
477 eCSR_ROAM_UNPROT_MGMT_FRAME_IND,
478#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800479
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -0700480#if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD)
481 eCSR_ROAM_TSM_IE_IND,
482 eCSR_ROAM_CCKM_PREAUTH_NOTIFY,
483 eCSR_ROAM_CCX_ADJ_AP_REPORT_IND,
Srinivas Girigowda33c9a222013-11-10 16:37:38 -0800484 eCSR_ROAM_CCX_BCN_REPORT_IND,
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -0700485#endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -0700486}eRoamCmdStatus;
487
488
489//comment inside indicates what roaming callback gets
490typedef enum
491{
492 eCSR_ROAM_RESULT_NONE,
493 //this means no more action in CSR
494 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION, tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800495 eCSR_ROAM_RESULT_FAILURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700496 //Pass back pointer to tCsrRoamInfo
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800497 eCSR_ROAM_RESULT_ASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700498 eCSR_ROAM_RESULT_NOT_ASSOCIATED,
499 eCSR_ROAM_RESULT_MIC_FAILURE,
500 eCSR_ROAM_RESULT_FORCED,
501 eCSR_ROAM_RESULT_DISASSOC_IND,
502 eCSR_ROAM_RESULT_DEAUTH_IND,
503 eCSR_ROAM_RESULT_CAP_CHANGED,
504 //This means we starts an IBSS
505 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800506 eCSR_ROAM_RESULT_IBSS_STARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700507 //START_BSS failed
508 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800509 eCSR_ROAM_RESULT_IBSS_START_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700510 eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS,
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800511 eCSR_ROAM_RESULT_IBSS_JOIN_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700512 eCSR_ROAM_RESULT_IBSS_CONNECT,
513 eCSR_ROAM_RESULT_IBSS_INACTIVE,
514 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800515 //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid
516 //If roamStatus is eCSR_ROAM_IBSS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700517 //the peer's MAC address in peerMacOrBssid and a beacon frame of the IBSS in pbFrames
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800518 eCSR_ROAM_RESULT_IBSS_NEW_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700519 //Peer departed from IBSS, Callback may get a pointer tSmeIbssPeerInd in pIbssPeerInd
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800520 eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700521 //Coalescing in the IBSS network (joined an IBSS network)
522 //Callback pass a BSSID in peerMacOrBssid
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800523 eCSR_ROAM_RESULT_IBSS_COALESCED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700524 //If roamStatus is eCSR_ROAM_ROAMING_START, callback may get a pointer to tCsrConnectedProfile used to connect.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800525 eCSR_ROAM_RESULT_IBSS_STOP,
526 eCSR_ROAM_RESULT_LOSTLINK,
Jeff Johnson295189b2012-06-20 16:38:30 -0700527 eCSR_ROAM_RESULT_MIC_ERROR_UNICAST,
528 eCSR_ROAM_RESULT_MIC_ERROR_GROUP,
529 eCSR_ROAM_RESULT_AUTHENTICATED,
530 eCSR_ROAM_RESULT_NEW_RSN_BSS,
531#ifdef FEATURE_WLAN_WAPI
532 eCSR_ROAM_RESULT_NEW_WAPI_BSS,
533#endif /* FEATURE_WLAN_WAPI */
534 // WDS started successfully
535 eCSR_ROAM_RESULT_WDS_STARTED,
536 // WDS start failed
537 eCSR_ROAM_RESULT_WDS_START_FAILED,
538 // WDS stopped
539 eCSR_ROAM_RESULT_WDS_STOPPED,
540 // WDS joined successfully in STA mode
541 eCSR_ROAM_RESULT_WDS_ASSOCIATED,
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800542 // A station joined WDS AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700543 eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND,
544 // WDS join failed in STA mode
545 eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED,
546 // WDS disassociated
547 eCSR_ROAM_RESULT_WDS_DISASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700548 // INFRA started successfully
549 eCSR_ROAM_RESULT_INFRA_STARTED,
550 // INFRA start failed
551 eCSR_ROAM_RESULT_INFRA_START_FAILED,
552 // INFRA stopped
553 eCSR_ROAM_RESULT_INFRA_STOPPED,
554 // A station joining INFRA AP
555 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND,
556 // A station joined INFRA AP
557 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF,
558 // INFRA disassociated
559 eCSR_ROAM_RESULT_INFRA_DISASSOCIATED,
560 eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700561 eCSR_ROAM_RESULT_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700562 // peer rejected assoc because max assoc limit reached. callback gets pointer to peer
563 eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED,
Jeff Johnsone7245742012-09-05 17:12:55 -0700564 //Assoc rejected due to concurrent session running on a different channel
565 eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL,
Mohit Khannac0b992f2012-12-04 15:08:18 -0800566#ifdef FEATURE_WLAN_TDLS
567 eCSR_ROAM_RESULT_ADD_TDLS_PEER,
Gopichand Nakkala74e2a6c2013-03-06 22:27:48 -0800568 eCSR_ROAM_RESULT_UPDATE_TDLS_PEER,
Mohit Khannac0b992f2012-12-04 15:08:18 -0800569 eCSR_ROAM_RESULT_DELETE_TDLS_PEER,
Hoonki Leecdd3b852013-02-05 15:01:19 -0800570 eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND,
Gopichand Nakkala55182be2013-02-10 21:39:16 -0800571 eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND,
Gopichand Nakkalaefe3a232013-05-27 17:05:29 +0530572 eCSR_ROAM_RESULT_LINK_ESTABLISH_REQ_RSP,
Mohit Khannac0b992f2012-12-04 15:08:18 -0800573#endif
574
Jeff Johnson295189b2012-06-20 16:38:30 -0700575}eCsrRoamResult;
576
577
578
579/*----------------------------------------------------------------------------
580 List of link quality indications HDD can receive from SME
581-----------------------------------------------------------------------------*/
582typedef enum
583{
584 eCSR_ROAM_LINK_QUAL_MIN_IND = -1,
585
586 eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */
587 eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */
588 eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */
589 eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */
590
591 eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */
592
593} eCsrRoamLinkQualityInd;
594
595typedef enum
596{
597 eCSR_DISCONNECT_REASON_UNSPECIFIED = 0,
598 eCSR_DISCONNECT_REASON_MIC_ERROR,
599 eCSR_DISCONNECT_REASON_DISASSOC,
600 eCSR_DISCONNECT_REASON_DEAUTH,
601 eCSR_DISCONNECT_REASON_HANDOFF,
602 eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE,
603 eCSR_DISCONNECT_REASON_IBSS_LEAVE,
604}eCsrRoamDisconnectReason;
605
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800606typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700607{
608 // Not associated in Infra or participating in an IBSS / Ad-hoc network.
609 eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED,
610 // Associated in an Infrastructure network.
611 eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED,
612 // Participating in an IBSS network though disconnected (no partner stations
613 // in the IBSS).
614 eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED,
615 // Participating in an IBSS network with partner stations also present
616 eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED,
617 // Participating in a WDS network in AP or STA mode but not connected yet
618 eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED,
619 // Participating in a WDS network and connected peer to peer
620 eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700621 // Participating in a Infra network in AP not yet in connected state
622 eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED,
623 // Participating in a Infra network and connected to a peer
624 eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700625
626}eCsrConnectState;
627
628
629// This parameter is no longer supported in the Profile. Need to set this in the global properties
630// for the adapter.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800631typedef enum eCSR_MEDIUM_ACCESS
Jeff Johnson295189b2012-06-20 16:38:30 -0700632{
633 eCSR_MEDIUM_ACCESS_AUTO = 0,
634 eCSR_MEDIUM_ACCESS_DCF,
635 eCSR_MEDIUM_ACCESS_eDCF,
636 eCSR_MEDIUM_ACCESS_HCF,
637
638 eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p,
639 eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP,
640 eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify,
641 eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF,
642 eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF,
643}eCsrMediaAccessType;
644
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800645typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700646{
647 eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate.
648
649 eCSR_TX_RATE_1Mbps = 0x00000001,
650 eCSR_TX_RATE_2Mbps = 0x00000002,
651 eCSR_TX_RATE_5_5Mbps = 0x00000004,
652 eCSR_TX_RATE_6Mbps = 0x00000008,
653 eCSR_TX_RATE_9Mbps = 0x00000010,
654 eCSR_TX_RATE_11Mbps = 0x00000020,
655 eCSR_TX_RATE_12Mbps = 0x00000040,
656 eCSR_TX_RATE_18Mbps = 0x00000080,
657 eCSR_TX_RATE_24Mbps = 0x00000100,
658 eCSR_TX_RATE_36Mbps = 0x00000200,
659 eCSR_TX_RATE_42Mbps = 0x00000400,
660 eCSR_TX_RATE_48Mbps = 0x00000800,
661 eCSR_TX_RATE_54Mbps = 0x00001000,
662 eCSR_TX_RATE_72Mbps = 0x00002000,
663 eCSR_TX_RATE_84Mbps = 0x00004000,
664 eCSR_TX_RATE_96Mbps = 0x00008000,
665 eCSR_TX_RATE_108Mbps = 0x00010000,
666 eCSR_TX_RATE_126Mbps = 0x00020000,
667 eCSR_TX_RATE_144Mbps = 0x00040000,
668 eCSR_TX_RATE_168Mbps = 0x00080000,
669 eCSR_TX_RATE_192Mbps = 0x00100000,
670 eCSR_TX_RATE_216Mbps = 0x00200000,
671 eCSR_TX_RATE_240Mbps = 0x00400000,
672
673}eCsrExposedTxRate;
674
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800675typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700676{
677 eCSR_OPERATING_CHANNEL_ALL = 0,
678 eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL,
679 eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL,
680}eOperationChannel;
681
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800682typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700683{
684 eCSR_DOT11_FRAG_THRESH_AUTO = -1,
685 eCSR_DOT11_FRAG_THRESH_MIN = 256,
686 eCSR_DOT11_FRAG_THRESH_MAX = 2346,
687 eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000
688}eCsrDot11FragThresh;
689
690
691//for channel bonding for ibss
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800692typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700693{
694 eCSR_CB_OFF = 0,
695 eCSR_CB_AUTO = 1,
696 eCSR_CB_DOWN = 2,
697 eCSR_CB_UP = 3,
698}eCsrCBChoice;
699
700//For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode.
701#define CSR_CB_CHANNEL_GAP 4
702#define CSR_CB_CENTER_CHANNEL_OFFSET 2
703#define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END )
Jeff Johnsone7245742012-09-05 17:12:55 -0700704#define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN )
705#define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END )
Jeff Johnson295189b2012-06-20 16:38:30 -0700706
707// WEP keysize (in bits)...
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800708typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700709{
710 eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP
711 eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP
712
713 eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40,
714 eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104,
715 eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ),
716}eCsrWEPKeySize;
717
718
719// Possible values for the WEP static key ID...
720typedef enum
721{
722
723 eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0,
724 eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3,
725 eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0,
726
727 eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1,
728
729}eCsrWEPStaticKeyID;
730
Chet Lanctota96bb432013-03-18 10:26:30 -0700731// Two extra key indicies are used for the IGTK (which is used by BIP)
732#define CSR_MAX_NUM_KEY (eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX + 2 + 1)
Jeff Johnson295189b2012-06-20 16:38:30 -0700733
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800734typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700735{
736 eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE,
737 eCSR_SECURITY_SET_KEY_ACTION_SET_KEY,
738 eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY,
739}eCsrSetKeyAction;
740
741typedef enum
742{
743 eCSR_BAND_ALL,
744 eCSR_BAND_24,
745 eCSR_BAND_5G,
746 eCSR_BAND_MAX,
747}eCsrBand;
748
749
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800750typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700751{
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800752 // Roaming because HDD requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700753 // tCsrRoamModifyProfileFields. OR
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800754 // Roaming because SME requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700755 // tCsrRoamModifyProfileFields.
756 eCsrRoamReasonStaCapabilityChanged,
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800757 // Roaming because SME requested for reassoc to a different AP, as part of
Jeff Johnson295189b2012-06-20 16:38:30 -0700758 // inter AP handoff.
759 eCsrRoamReasonBetterAP,
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800760 // Roaming because SME requested it as the link is lost - placeholder, will
Jeff Johnson295189b2012-06-20 16:38:30 -0700761 // clean it up once handoff code gets in
762 eCsrRoamReasonSmeIssuedForLostLink,
763
764}eCsrRoamReasonCodes;
765
766typedef enum
767{
768 eCsrRoamWmmAuto = 0,
769 eCsrRoamWmmQbssOnly = 1,
770 eCsrRoamWmmNoQos = 2,
771
772} eCsrRoamWmmUserModeType;
773
774typedef enum
775{
776 eCSR_REQUESTER_MIN = 0,
777 eCSR_DIAG,
778 eCSR_UMA_GAN,
779 eCSR_HDD
780} eCsrStatsRequesterType;
781
782typedef struct tagPmkidCandidateInfo
783{
784 tCsrBssid BSSID;
785 tANI_BOOLEAN preAuthSupported;
786}tPmkidCandidateInfo;
787
788typedef struct tagPmkidCacheInfo
789{
790 tCsrBssid BSSID;
791 tANI_U8 PMKID[CSR_RSN_PMKID_SIZE];
792}tPmkidCacheInfo;
793
794#ifdef FEATURE_WLAN_WAPI
795typedef struct tagBkidCandidateInfo
796{
797 tCsrBssid BSSID;
798 tANI_BOOLEAN preAuthSupported;
799}tBkidCandidateInfo;
800
801typedef struct tagBkidCacheInfo
802{
803 tCsrBssid BSSID;
804 tANI_U8 BKID[CSR_WAPI_BKID_SIZE];
805}tBkidCacheInfo;
806#endif /* FEATURE_WLAN_WAPI */
807
808typedef struct tagCsrKeys
809{
810 tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set
811 tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ];
812 tANI_U8 defaultIndex;
813}tCsrKeys;
814
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800815/* Following are fields which are part of tCsrRoamConnectedProfile might need
Jeff Johnson295189b2012-06-20 16:38:30 -0700816 modification dynamically once STA is up & running and this could trigger
817 reassoc */
818typedef struct tagCsrRoamModifyProfileFields
819{
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800820 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700821 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800822 // During assoc response this COULD carry confirmation of what ACs U-APSD
Jeff Johnson295189b2012-06-20 16:38:30 -0700823 // got setup for. Later if an APP looking for APSD, SME-QoS might need to
824 // modify this field
825 tANI_U8 uapsd_mask;
826 // HDD might ask to modify this field
827 tANI_U16 listen_interval;
828}tCsrRoamModifyProfileFields;
829
830typedef struct tagCsrRoamProfile
831{
832 //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs.
833 //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP
834 //that we need to join. Index 1 is the SSID for self BSS.
835 tCsrSSIDs SSIDs;
836 tCsrBSSIDs BSSIDs;
837 tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
838 eCsrRoamBssType BSSType;
839
840 tCsrAuthList AuthType;
841 eCsrAuthType negotiatedAuthType;
842
843 tCsrEncryptionList EncryptionType;
844 //This field is for output only, not for input
845 eCsrEncryptionType negotiatedUCEncryptionType;
846
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800847 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700848 //put all supported encryption types in here
849 tCsrEncryptionList mcEncryptionType;
850 //This field is for output only, not for input
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800851 eCsrEncryptionType negotiatedMCEncryptionType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700852
Chet Lanctota96bb432013-03-18 10:26:30 -0700853#ifdef WLAN_FEATURE_11W
854 // Management Frame Protection
855 tANI_BOOLEAN MFPEnabled;
856 tANI_U8 MFPRequired;
857 tANI_U8 MFPCapable;
858#endif
859
Jeff Johnson295189b2012-06-20 16:38:30 -0700860 tCsrKeys Keys;
861 eCsrCBChoice CBMode; //up, down or auto
862 tCsrChannelInfo ChannelInfo;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800863 tANI_U8 operationChannel;
Jeff Johnson295189b2012-06-20 16:38:30 -0700864 tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800865 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700866 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
867 // During assoc response this COULD carry confirmation of what ACs U-APSD got setup for
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800868 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700869 tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE
870 tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA
871 tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE
872 tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN
873#ifdef FEATURE_WLAN_WAPI
874 tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE
875 tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI
876#endif /* FEATURE_WLAN_WAPI */
877
Agarwal Ashishff1152d2013-12-30 23:32:50 +0530878 //The byte count in the pAddIE for scan (at the time of join)
879 tANI_U32 nAddIEScanLength;
880 /* Additional IE information.
881 * It has the IE byte stream for additional IE,
882 * which can be WSC IE and/or P2P IE
883 */
884 tANI_U8 addIEScan[SIR_MAC_MAX_IE_LENGTH+2]; //Additional IE information.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800885 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
Jeff Johnson295189b2012-06-20 16:38:30 -0700886 tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
887
888 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0.
889 /*WPS Association if true => auth and ecryption should be ignored*/
890 tANI_BOOLEAN bWPSAssociation;
891 tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE
892 tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC
893
Jeff Johnson295189b2012-06-20 16:38:30 -0700894 tANI_U8 ieee80211d;
895 tANI_U8 privacy;
896 tANI_BOOLEAN fwdWPSPBCProbeReq;
897 tAniAuthType csr80211AuthType;
898 tANI_U32 dtimPeriod;
899 tANI_BOOLEAN ApUapsdEnable;
900 tANI_BOOLEAN protEnabled;
901 tANI_BOOLEAN obssProtEnabled;
902 tANI_U16 cfg_protection;
903 tANI_U8 wps_state;
Jeff Johnson295189b2012-06-20 16:38:30 -0700904
905#ifdef WLAN_FEATURE_VOWIFI_11R
906 tCsrMobilityDomainInfo MDID;
907#endif
908 tVOS_CON_MODE csrPersona;
909
910}tCsrRoamProfile;
911
912
913typedef struct tagCsrRoamConnectedProfile
914{
915 tSirMacSSid SSID;
916 tANI_BOOLEAN handoffPermitted;
917 tANI_BOOLEAN ssidHidden;
918 tCsrBssid bssid;
919 eCsrRoamBssType BSSType;
920 eCsrAuthType AuthType;
921 tCsrAuthList AuthInfo;
922 eCsrEncryptionType EncryptionType;
923 tCsrEncryptionList EncryptionInfo;
924 eCsrEncryptionType mcEncryptionType;
925 tCsrEncryptionList mcEncryptionInfo;
926 eCsrCBChoice CBMode; //up, down or auto
927 tANI_U8 operationChannel;
Jeff Johnsone7245742012-09-05 17:12:55 -0700928 tANI_U16 beaconInterval;
Jeff Johnson295189b2012-06-20 16:38:30 -0700929 tCsrKeys Keys;
930 // meaningless on connect. It's an OUT param from CSR's point of view
931 // During assoc response carries the ACM bit-mask i.e. what
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800932 // ACs have ACM=1 (if any),
Jeff Johnson295189b2012-06-20 16:38:30 -0700933 // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored)
934 tANI_U8 acm_mask;
935 tCsrRoamModifyProfileFields modifyProfileFields;
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700936 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
937 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 Lokere30b07722013-02-24 22:21:28 -0800938
939 tSirBssDescription *pBssDesc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700940 tANI_BOOLEAN qap; //AP supports QoS
941 tANI_BOOLEAN qosConnection; //A connection is QoS enabled
942#ifdef WLAN_FEATURE_VOWIFI_11R
943 tCsrMobilityDomainInfo MDID;
944#endif
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800945
Jeff Johnson295189b2012-06-20 16:38:30 -0700946#ifdef FEATURE_WLAN_CCX
947 tCsrCcxCckmInfo ccxCckmInfo;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -0800948 tANI_BOOLEAN isCCXAssoc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700949#endif
Gopichand Nakkala2c5263f2013-04-18 16:41:54 +0530950 tANI_U32 dot11Mode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700951}tCsrRoamConnectedProfile;
952
953
954#ifdef WLAN_FEATURE_VOWIFI_11R
955typedef struct tagCsr11rConfigParams
956{
957 tANI_BOOLEAN IsFTResourceReqSupported;
958} tCsr11rConfigParams;
959#endif
960
961#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
962typedef struct tagCsrNeighborRoamConfigParams
963{
964
965 tANI_U32 nNeighborScanTimerPeriod;
966 tANI_U8 nNeighborLookupRssiThreshold;
967 tANI_U8 nNeighborReassocRssiThreshold;
968 tANI_U16 nNeighborScanMinChanTime;
969 tANI_U16 nNeighborScanMaxChanTime;
970 sCsrChannel neighborScanChanList;
971 tANI_U8 nMaxNeighborRetries;
972 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowda6fa58662013-02-14 16:31:48 -0800973 tANI_U16 nEmptyScanRefreshPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -0700974}tCsrNeighborRoamConfigParams;
975#endif
976
977typedef struct tagCsrConfigParam
978{
979 tANI_U32 FragmentationThreshold;
Jeff Johnsone7245742012-09-05 17:12:55 -0700980 tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState
981 tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState
Jeff Johnson295189b2012-06-20 16:38:30 -0700982 eCsrPhyMode phyMode;
983 eCsrBand eBand;
984 tANI_U32 RTSThreshold;
985 tANI_U32 HeartbeatThresh50;
986 tANI_U32 HeartbeatThresh24;
987 eCsrCBChoice cbChoice;
988 eCsrBand bandCapability; //indicate hw capability
989 tANI_U32 bgScanInterval;
990 tANI_U16 TxRate;
991 eCsrRoamWmmUserModeType WMMSupportMode;
992 tANI_BOOLEAN Is11eSupportEnabled;
993 tANI_BOOLEAN Is11dSupportEnabled;
994 tANI_BOOLEAN Is11dSupportEnabledOriginal;
995 tANI_BOOLEAN Is11hSupportEnabled;
996 tANI_BOOLEAN shortSlotTime;
997 tANI_BOOLEAN ProprietaryRatesEnabled;
998 tANI_U8 AdHocChannel24;
999 tANI_U8 AdHocChannel5G;
1000 tANI_U32 impsSleepTime; //in units of seconds
1001 tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed
1002 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
1003 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
1004 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
1005 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
1006 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming
1007 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
1008 tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode
Mohit Khanna7ed53f02012-09-11 17:52:10 -07001009 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
1010 //at the moment, this flag is provided only to pass Wi-Fi Cert. 5.1.12
Jeff Johnson295189b2012-06-20 16:38:30 -07001011 tCsr11dinfo Csr11dinfo;
1012 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001013 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -07001014 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001015 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001016 //Country Code Priority
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001017 //0 = 802.11D > Country IOCTL > NV
Jeff Johnson295189b2012-06-20 16:38:30 -07001018 //1 = Country IOCTL > 802.11D > NV
1019 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001020 //When true, AP with unknown country code won't be see.
1021 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
1022 //find a domain for the country code in its 11d IE.
1023 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -07001024 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
1025 //code", or the domain of the country code doesn't match the default domain, the Ap is
1026 //not acceptable.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001027 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -07001028
1029 tANI_U16 vccRssiThreshold;
1030 tANI_U32 vccUlMacLossThreshold;
1031
1032 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
1033 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
1034 tANI_U32 nActiveMinChnTime; //in units of milliseconds
1035 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001036
1037 tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds
1038 tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds
Kiran Kumar Lokereb3c42b62013-05-29 14:29:43 -07001039 tANI_U32 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001040#ifdef WLAN_AP_STA_CONCURRENCY
1041 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
1042 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
1043 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
1044 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
1045 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohalli3466c5f2013-05-22 23:16:42 -07001046 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
1047 //STA in each split scan operation
1048 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
1049 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001050#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001051
1052 tANI_BOOLEAN IsIdleScanEnabled;
1053 //in dBm, the maximum TX power
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001054 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -07001055 //If 11d is disable, the lesser of this and default setting.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001056 tANI_U8 nTxPowerCap;
Jeff Johnson295189b2012-06-20 16:38:30 -07001057 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
1058 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
1059#ifdef WLAN_FEATURE_VOWIFI_11R
1060 tCsr11rConfigParams csr11rConfig;
1061#endif
1062#ifdef FEATURE_WLAN_CCX
1063 tANI_U8 isCcxIniFeatureEnabled;
1064#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001065#ifdef FEATURE_WLAN_LFR
1066 tANI_U8 isFastRoamIniFeatureEnabled;
Sameer Thalappil9c78f572013-11-05 14:17:35 -08001067 tANI_U8 MAWCEnabled;
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001068#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001069
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001070#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda1e5c5ef2013-03-15 16:48:20 -07001071 tANI_U8 isFastTransitionEnabled;
1072 tANI_U8 RoamRssiDiff;
1073 tANI_U8 nImmediateRoamRssiDiff;
Srinivas Girigowdaca9ee002013-10-22 10:54:29 -07001074 tANI_BOOLEAN isWESModeEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001075#endif
1076
1077#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
1078 tCsrNeighborRoamConfigParams neighborRoamConfig;
1079#endif
1080
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001081 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -07001082 * This is mandated by WMM-AC certification */
1083 tANI_BOOLEAN addTSWhenACMIsOff;
1084
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001085
1086 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -07001087 * detect when it happens. Adding this into code because we can't reproduce it easily.
1088 * We don't know when it happens. */
1089 tANI_BOOLEAN fValidateList;
1090
1091 /*Customer wants to start with an active scan based on the default country code.
1092 * This optimization will minimize the driver load to association time.
1093 * Based on this flag we will bypass the initial passive scan needed for 11d
1094 * to determine the country code & domain */
1095 tANI_BOOLEAN fEnableBypass11d;
1096
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001097 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
1098 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -07001099 * (apprx 1.3 sec) */
1100 tANI_BOOLEAN fEnableDFSChnlScan;
1101
1102 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
1103 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -07001104#ifdef WLAN_FEATURE_11AC
Ravi Joshifc99e582013-05-28 22:12:08 -07001105 tANI_U32 nVhtChannelWidth;
1106 tANI_U8 enableTxBF;
1107 tANI_U8 txBFCsnValue;
1108 tANI_BOOLEAN enableVhtFor24GHz;
Jeff Johnsone7245742012-09-05 17:12:55 -07001109#endif
1110
1111 /*
1112 * To enable/disable scanning only 2.4Ghz channels on first scan
1113 */
1114 tANI_BOOLEAN fFirstScanOnly2GChnl;
Jeff Johnson295189b2012-06-20 16:38:30 -07001115
Madan Mohan Koyyalamudic4c01172012-11-30 14:56:21 -08001116#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
1117 tANI_BOOLEAN nRoamPrefer5GHz;
Srinivas Girigowda9a1c4ce2013-03-21 12:34:46 -07001118 tANI_BOOLEAN nRoamIntraBand;
Varun Reddy Yeturu2fa7f8e2013-05-22 08:07:23 -07001119 tANI_U8 nProbes;
1120 tANI_U16 nRoamScanHomeAwayTime;
Gopichand Nakkalab7ed0a62013-01-04 11:41:02 -08001121
Varun Reddy Yeturu08614702013-04-15 21:58:13 -07001122#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1123 tANI_BOOLEAN isRoamOffloadScanEnabled;
Srinivas Girigowda392c1692013-06-13 19:44:16 -07001124 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Varun Reddy Yeturu08614702013-04-15 21:58:13 -07001125#endif
Srinivas Girigowda392c1692013-06-13 19:44:16 -07001126#endif
1127
Varun Reddy Yeturu08614702013-04-15 21:58:13 -07001128
Madan Mohan Koyyalamudi7da2fd72012-12-17 14:44:16 -08001129 tANI_U8 scanCfgAgingTime;
Gopichand Nakkalab7ed0a62013-01-04 11:41:02 -08001130
1131 tANI_U8 enableTxLdpc;
krunal soniabe9efe2013-07-29 16:32:26 -07001132
krunal soni25721032013-09-06 22:19:02 -07001133 tANI_U8 isAmsduSupportInAMPDU;
Srinivas Girigowda5e07fb32013-10-21 19:01:38 -07001134 tANI_U8 nSelect5GHzMargin;
krunal soni25721032013-09-06 22:19:02 -07001135
krunal soniab730892013-11-25 14:24:17 -08001136 tANI_U8 isCoalesingInIBSSAllowed;
1137
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001138}tCsrConfigParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07001139
1140//Tush
1141typedef struct tagCsrUpdateConfigParam
1142{
1143 tCsr11dinfo Csr11dinfo;
1144}tCsrUpdateConfigParam;
1145
1146typedef struct tagCsrRoamInfo
1147{
1148 tCsrRoamProfile *pProfile; //may be NULL
1149 tSirBssDescription *pBssDesc; //May be NULL
1150 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
1151 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
1152 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
1153 tANI_U32 nFrameLength;
1154 tANI_U8 frameType;
1155 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
1156 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
1157 //each frame starts and ends.
1158 tANI_BOOLEAN fReassocReq; //set to true if for re-association
1159 tANI_BOOLEAN fReassocRsp; //set to true if for re-association
1160 tCsrBssid bssid;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001161 //Only valid in IBSS
Jeff Johnson295189b2012-06-20 16:38:30 -07001162 //this is the peers MAC address for eCSR_ROAM_RESULT_IBSS_NEW_PEER or PEER_DEPARTED
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001163 tCsrBssid peerMac;
Jeff Johnson295189b2012-06-20 16:38:30 -07001164 tSirResultCodes statusCode;
1165 tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec)
1166 tANI_U8 staId; // Peer stationId when connected
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001167 /*The DPU signatures will be sent eventually to TL to help it determine the
Jeff Johnson295189b2012-06-20 16:38:30 -07001168 association to which a packet belongs to*/
1169 /*Unicast DPU signature*/
1170 tANI_U8 ucastSig;
1171
1172 /*Broadcast DPU signature*/
1173 tANI_U8 bcastSig;
1174
1175 tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open)
1176 tANI_U8 sessionId;
1177 tANI_U8 rsnIELen;
1178 tANI_U8 *prsnIE;
1179
1180 tANI_U8 addIELen;
1181 tANI_U8 *paddIE;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001182
Jeff Johnson295189b2012-06-20 16:38:30 -07001183 union
1184 {
1185 tSirMicFailureInfo *pMICFailureInfo;
1186 tCsrRoamConnectedProfile *pConnectedProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -07001187 tSirWPSPBCProbeReq *pWPSPBCProbeReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07001188 } u;
1189
Jeff Johnson295189b2012-06-20 16:38:30 -07001190 tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA
1191 tANI_U32 dtimPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -07001192
1193#ifdef FEATURE_WLAN_CCX
1194 tANI_BOOLEAN isCCXAssoc;
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -07001195#ifdef FEATURE_WLAN_CCX_UPLOAD
1196 tSirTsmIE tsmIe;
1197 tANI_U32 timestamp[2];
1198 tANI_U16 tsmRoamDelay;
Srinivas Girigowda33c9a222013-11-10 16:37:38 -08001199 tSirCcxBcnReportRsp *pCcxBcnReportRsp;
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -07001200#endif /* FEATURE_WLAN_CCX_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -07001201#endif
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001202 void* pRemainCtx;
Jeff Johnson295189b2012-06-20 16:38:30 -07001203 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07001204
Mohit Khannac0b992f2012-12-04 15:08:18 -08001205#ifdef FEATURE_WLAN_TDLS
1206 tANI_U8 staType;
1207#endif
1208
Jeff Johnson295189b2012-06-20 16:38:30 -07001209 // Required for indicating the frames to upper layer
1210 tANI_U32 beaconLength;
1211 tANI_U8* beaconPtr;
1212 tANI_U32 assocReqLength;
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001213 tANI_U8* assocReqPtr;
Chilam NGde0b4112013-01-19 12:27:36 +05301214
1215 tANI_S8 rxRssi;
Jeff Johnson295189b2012-06-20 16:38:30 -07001216}tCsrRoamInfo;
1217
1218
1219
1220
1221
1222typedef struct tagCsrFreqScanInfo
1223{
1224 tANI_U32 nStartFreq; //in unit of MHz
1225 tANI_U32 nEndFreq; //in unit of MHz
1226 tSirScanType scanType;
1227}tCsrFreqScanInfo;
1228
1229
Jeff Johnson295189b2012-06-20 16:38:30 -07001230typedef struct sSirSmeAssocIndToUpperLayerCnf
1231{
1232 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1233 tANI_U16 length;
1234 tANI_U8 sessionId;
1235 tSirResultCodes statusCode;
1236 tSirMacAddr bssId; // Self BSSID
1237 tSirMacAddr peerMacAddr;
1238 tANI_U16 aid;
1239 tSirMacAddr alternateBssId;
1240 tANI_U8 alternateChannelId;
1241 tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA
1242 tSirRSNie rsnIE; // RSN IE received from peer
1243 tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE
1244 tANI_U8 reassocReq; //set to true if reassoc
1245} tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf;
Jeff Johnson295189b2012-06-20 16:38:30 -07001246
1247typedef struct tagCsrSummaryStatsInfo
1248{
1249 tANI_U32 retry_cnt[4];
1250 tANI_U32 multiple_retry_cnt[4];
1251 tANI_U32 tx_frm_cnt[4];
1252 //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt
1253 //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt
1254 tANI_U32 rx_frm_cnt;
1255 tANI_U32 frm_dup_cnt;
1256 tANI_U32 fail_cnt[4];
1257 tANI_U32 rts_fail_cnt;
1258 tANI_U32 ack_fail_cnt;
1259 tANI_U32 rts_succ_cnt;
1260 tANI_U32 rx_discard_cnt;
1261 tANI_U32 rx_error_cnt;
1262 tANI_U32 tx_byte_cnt;
1263
1264}tCsrSummaryStatsInfo;
1265
1266typedef struct tagCsrGlobalClassAStatsInfo
1267{
1268 tANI_U32 rx_frag_cnt;
1269 tANI_U32 promiscuous_rx_frag_cnt;
1270 //tANI_U32 rx_fcs_err;
1271 tANI_U32 rx_input_sensitivity;
1272 tANI_U32 max_pwr;
1273 //tANI_U32 default_pwr;
1274 tANI_U32 sync_fail_cnt;
1275 tANI_U32 tx_rate;
1276 //mcs index for HT20 and HT40 rates
1277 tANI_U32 mcs_index;
1278 //to defferentiate between HT20 and HT40 rates;short and long guard interval
1279 tANI_U32 tx_rate_flags;
1280
1281}tCsrGlobalClassAStatsInfo;
1282
1283typedef struct tagCsrGlobalClassBStatsInfo
1284{
1285 tANI_U32 uc_rx_wep_unencrypted_frm_cnt;
1286 tANI_U32 uc_rx_mic_fail_cnt;
1287 tANI_U32 uc_tkip_icv_err;
1288 tANI_U32 uc_aes_ccmp_format_err;
1289 tANI_U32 uc_aes_ccmp_replay_cnt;
1290 tANI_U32 uc_aes_ccmp_decrpt_err;
1291 tANI_U32 uc_wep_undecryptable_cnt;
1292 tANI_U32 uc_wep_icv_err;
1293 tANI_U32 uc_rx_decrypt_succ_cnt;
1294 tANI_U32 uc_rx_decrypt_fail_cnt;
1295 tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt;
1296 tANI_U32 mcbc_rx_mic_fail_cnt;
1297 tANI_U32 mcbc_tkip_icv_err;
1298 tANI_U32 mcbc_aes_ccmp_format_err;
1299 tANI_U32 mcbc_aes_ccmp_replay_cnt;
1300 tANI_U32 mcbc_aes_ccmp_decrpt_err;
1301 tANI_U32 mcbc_wep_undecryptable_cnt;
1302 tANI_U32 mcbc_wep_icv_err;
1303 tANI_U32 mcbc_rx_decrypt_succ_cnt;
1304 tANI_U32 mcbc_rx_decrypt_fail_cnt;
1305
1306}tCsrGlobalClassBStatsInfo;
1307
1308typedef struct tagCsrGlobalClassCStatsInfo
1309{
1310 tANI_U32 rx_amsdu_cnt;
1311 tANI_U32 rx_ampdu_cnt;
1312 tANI_U32 tx_20_frm_cnt;
1313 tANI_U32 rx_20_frm_cnt;
1314 tANI_U32 rx_mpdu_in_ampdu_cnt;
1315 tANI_U32 ampdu_delimiter_crc_err;
1316
1317}tCsrGlobalClassCStatsInfo;
1318
1319typedef struct tagCsrGlobalClassDStatsInfo
1320{
1321 tANI_U32 tx_uc_frm_cnt;
1322 tANI_U32 tx_mc_frm_cnt;
1323 tANI_U32 tx_bc_frm_cnt;
1324 tANI_U32 rx_uc_frm_cnt;
1325 tANI_U32 rx_mc_frm_cnt;
1326 tANI_U32 rx_bc_frm_cnt;
1327 tANI_U32 tx_uc_byte_cnt[4];
1328 tANI_U32 tx_mc_byte_cnt;
1329 tANI_U32 tx_bc_byte_cnt;
1330 tANI_U32 rx_uc_byte_cnt[4];
1331 tANI_U32 rx_mc_byte_cnt;
1332 tANI_U32 rx_bc_byte_cnt;
1333 tANI_U32 rx_byte_cnt;
1334 tANI_U32 num_rx_bytes_crc_ok;
1335 tANI_U32 rx_rate;
1336
1337}tCsrGlobalClassDStatsInfo;
1338
1339typedef struct tagCsrPerStaStatsInfo
1340{
1341 tANI_U32 tx_frag_cnt[4];
1342 tANI_U32 tx_ampdu_cnt;
1343 tANI_U32 tx_mpdu_in_ampdu_cnt;
1344} tCsrPerStaStatsInfo;
1345
1346typedef struct tagCsrRoamSetKey
1347{
1348 eCsrEncryptionType encType;
1349 tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx
1350 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1351 tANI_U8 paeRole; //0 for supplicant
1352 tANI_U8 keyId; // Kye index
1353 tANI_U16 keyLength; //Number of bytes containing the key in pKey
1354 tANI_U8 Key[CSR_MAX_KEY_LEN];
1355 tANI_U8 keyRsc[CSR_MAX_RSC_LEN];
1356} tCsrRoamSetKey;
1357
1358typedef struct tagCsrRoamRemoveKey
1359{
1360 eCsrEncryptionType encType;
1361 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1362 tANI_U8 keyId; //key index
1363} tCsrRoamRemoveKey;
1364
Mohit Khannac0b992f2012-12-04 15:08:18 -08001365#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkalaefe3a232013-05-27 17:05:29 +05301366
1367typedef struct tagCsrLinkEstablishParams
1368{
1369 tSirMacAddr peerMac;
1370 tANI_U8 uapsdQueues;
1371 tANI_U8 maxSp;
1372 tANI_U8 isBufSta;
1373 tANI_U8 isResponder;
1374}tCsrTdlsLinkEstablishParams;
1375
Mohit Khannac0b992f2012-12-04 15:08:18 -08001376typedef struct tagCsrTdlsSendMgmt
1377{
1378 tSirMacAddr peerMac;
1379 tANI_U8 frameType;
1380 tANI_U8 dialog;
1381 tANI_U16 statusCode;
Hoonki Leed90d1482013-02-05 22:56:02 -08001382 tANI_U8 responder;
Mohit Khannac0b992f2012-12-04 15:08:18 -08001383 tANI_U8 *buf;
1384 tANI_U8 len;
1385
1386}tCsrTdlsSendMgmt;
1387
1388#ifdef FEATURE_WLAN_TDLS_INTERNAL
1389typedef struct tagCsrTdlsDisRequest
1390{
1391 tSirMacAddr peerMac;
1392 tANI_U8 disType;
1393}tCsrTdlsDisRequest;
1394
1395typedef struct tagCsrTdlsSetupRequest
1396{
1397 tSirMacAddr peerMac;
1398 tANI_U8 linkIndex;
1399}tCsrTdlsSetupRequest;
1400
1401typedef struct tagCsrTdlsTeardownRequest
1402{
1403 tSirMacAddr peerMac;
1404 tANI_U8 linkIndex;
1405}tCsrTdlsTeardownRequest ;
1406#endif
1407#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001408
1409typedef void * tScanResultHandle;
1410
1411#define CSR_INVALID_SCANRESULT_HANDLE (NULL)
1412
Varun Reddy Yeturu2c35a7d2013-05-20 11:47:10 -07001413#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1414typedef struct tagCsrHandoffRequest
1415{
1416 tCsrBssid bssid;
1417 tANI_U8 channel;
1418}tCsrHandoffRequest;
1419#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001420
Srinivas Girigowda33c9a222013-11-10 16:37:38 -08001421#if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD)
1422typedef struct tagCsrCcxBeaconReqParams
1423{
1424 tANI_U16 measurementToken;
1425 tANI_U8 channel;
1426 tANI_U8 scanMode;
1427 tANI_U16 measurementDuration;
1428} tCsrCcxBeaconReqParams, *tpCsrCcxBeaconReqParams;
1429
1430typedef struct tagCsrCcxBeaconReq
1431{
1432 tANI_U8 numBcnReqIe;
1433 tCsrCcxBeaconReqParams bcnReq[SIR_CCX_MAX_MEAS_IE_REQS];
1434} tCsrCcxBeaconReq, *tpCsrCcxBeaconReq;
1435#endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -07001436
1437////////////////////////////////////////////Common SCAN starts
1438
1439//void *p2 -- the second context pass in for the caller
1440//***what if callback is called before requester gets the scanId??
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001441typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status);
Jeff Johnson295189b2012-06-20 16:38:30 -07001442
1443
1444
1445///////////////////////////////////////////Common Roam starts
1446
1447//pContext is the pContext passed in with the roam request
1448//pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and
1449// eRoamCmdResult for detail valid members. It may be NULL
1450//roamId is to identify the callback related roam request. 0 means unsolicit
1451//roamStatus is a flag indicating the status of the callback
1452//roamResult is the result
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001453typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001454 eRoamCmdStatus roamStatus, eCsrRoamResult roamResult);
1455
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001456typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);
Jeff Johnson295189b2012-06-20 16:38:30 -07001457
1458/* ---------------------------------------------------------------------------
1459 \fn csrRoamGetNumPMKIDCache
1460 \brief return number of PMKID cache entries
1461 \return tANI_U32 - the number of PMKID cache entries
1462 -------------------------------------------------------------------------------*/
1463//tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal);
1464
1465/* ---------------------------------------------------------------------------
1466 \fn csrRoamGetPMKIDCache
1467 \brief return PMKID cache from CSR
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001468 \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 -07001469 needed or actually number in tPmkidCacheInfo.
1470 \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return
1471 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1472 -------------------------------------------------------------------------------*/
1473//eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache);
1474
1475//pProfile - pointer to tCsrRoamProfile
1476#define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType)
1477#define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType)
1478#define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) )
1479#define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType)
1480#define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType)
1481#define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1482#define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1483#define CSR_IS_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07001484#define CSR_IS_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001485
1486//pProfile - pointer to tCsrRoamConnectedProfile
Jeff Johnson295189b2012-06-20 16:38:30 -07001487#define CSR_IS_CONN_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001488#define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1489#define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1490#define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
1491
1492
1493
1494///////////////////////////////////////////Common Roam ends
1495
1496
1497
Jeff Johnson295189b2012-06-20 16:38:30 -07001498/* ---------------------------------------------------------------------------
1499 \fn csrSetChannels
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001500 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001501 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1502 \param pParam - caller allocated memory
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001503 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001504 -------------------------------------------------------------------------------*/
1505
1506eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam );
1507
1508eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07001509
1510
1511//enum to string conversion for debug output
1512const char * get_eRoamCmdStatus_str(eRoamCmdStatus val);
1513const char * get_eCsrRoamResult_str(eCsrRoamResult val);
1514/* ---------------------------------------------------------------------------
1515 \fn csrSetPhyMode
1516 \brief HDD calls this function to set the phyMode.
1517 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1518 CSR.
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001519 \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 -07001520 See eCsrPhyMode for definition
1521 \param eBand - specify the operational band (2.4, 5 or both)
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001522 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
Jeff Johnson295189b2012-06-20 16:38:30 -07001523 a restart is needed to apply the change
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001524 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001525 -------------------------------------------------------------------------------*/
1526eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded);
1527
1528void csrDumpInit(tHalHandle hHal);
1529
1530
1531/*---------------------------------------------------------------------------
1532 This is the type for a link quality callback to be registered with SME
1533 for indications
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001534 Once the link quality has been indicated, subsequently, link indications are
Jeff Johnson295189b2012-06-20 16:38:30 -07001535 posted each time there is a CHANGE in link quality.
1536 *** If there is no change in link, there will be no indication ***
1537
1538 The indications may be based on one or more criteria internal to SME
1539 such as RSSI and PER.
1540
1541 \param ind - Indication being posted
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001542 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001543 \return None
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001544
Jeff Johnson295189b2012-06-20 16:38:30 -07001545---------------------------------------------------------------------------*/
1546typedef void (* csrRoamLinkQualityIndCallback)
1547 (eCsrRoamLinkQualityInd ind, void *pContext);
1548
1549
1550/*---------------------------------------------------------------------------
1551 This is the type for a statistics callback to be registered with SME
1552 for stats reporting
1553
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001554 Since the client requesting for the stats already know which class/type of
1555 stats it asked for, the callback will carry them in the rsp buffer
1556 (void * stats) whose size will be same as the size of requested stats &
Jeff Johnson295189b2012-06-20 16:38:30 -07001557 will be exactly in the same order requested in the stats mask from LSB to MSB
1558
1559 \param stats - stats rsp buffer sent back with the report
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001560 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001561 \return None
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001562
Jeff Johnson295189b2012-06-20 16:38:30 -07001563---------------------------------------------------------------------------*/
1564typedef void ( *tCsrStatsCallback) (void * stats, void *pContext);
1565
1566/*---------------------------------------------------------------------------
1567 This is the type for a rssi callback to be registered with SME
1568 for getting rssi
1569
1570 \param rssi - rssi
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001571 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001572 \return None
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001573
Jeff Johnson295189b2012-06-20 16:38:30 -07001574---------------------------------------------------------------------------*/
1575
1576typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext);
1577
Srinivas Girigowda6b8b47c2013-10-08 09:13:25 -07001578
1579#if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD)
1580/*---------------------------------------------------------------------------
1581 This is the type for a tsm stats callback to be registered with SME
1582 for getting tsm stats
1583
1584 \param tsmMetrics - tsmMetrics
1585 \param pContext - any user data given at callback registration.
1586 \return None
1587
1588---------------------------------------------------------------------------*/
1589
1590typedef void ( *tCsrTsmStatsCallback) (tAniTrafStrmMetrics tsmMetrics, tANI_U32 staId, void *pContext);
1591#endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */
1592
Madan Mohan Koyyalamudife270a12013-08-13 09:27:30 +05301593/*---------------------------------------------------------------------------
1594 This is the type for a snr callback to be registered with SME
1595 for getting snr
1596
1597 \param snr
1598 \param pContext - any user data given at callback registration.
1599 \return None
1600
1601---------------------------------------------------------------------------*/
1602typedef void (*tCsrSnrCallback) (v_S7_t snr, tANI_U32 staId, void *pContext);
1603
Jeff Johnson295189b2012-06-20 16:38:30 -07001604#ifdef WLAN_FEATURE_VOWIFI_11R
1605eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription);
1606#endif
1607
1608/*---------------------------------------------------------------------------
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001609 This is the function to change the Band configuraiton (ALL/2.4 GHZ/5 GHZ)
Jeff Johnson295189b2012-06-20 16:38:30 -07001610
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001611 \param hHal - handle to Hal context
Jeff Johnson295189b2012-06-20 16:38:30 -07001612 \param eBand - band value
1613 \return eHalStatus
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001614
Jeff Johnson295189b2012-06-20 16:38:30 -07001615---------------------------------------------------------------------------*/
1616eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand);
1617
1618/*---------------------------------------------------------------------------
1619 This is the function to get the current operating band value
1620 \param hHal - handl to Hal context
1621 \return eCsrband - band value
Kiran Kumar Lokere30b07722013-02-24 22:21:28 -08001622
Jeff Johnson295189b2012-06-20 16:38:30 -07001623---------------------------------------------------------------------------*/
1624eCsrBand csrGetCurrentBand (tHalHandle hHal);
1625
1626#endif
1627