blob: 59eb8eb0416f2bb8dc5355260ec58e52eae3c3a5 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Rajeev Kumar Sirasanagandla2bb30b82019-01-07 22:30:16 +05302 * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
Kiet Lam0fb93dd2014-02-19 00:32:59 -08003 *
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
22/*
Kiet Lama7f454d2014-07-24 12:04:06 -070023 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080026 */
Kiet Lam0fb93dd2014-02-19 00:32:59 -080027
28
Kiet Lama7f454d2014-07-24 12:04:06 -070029
30
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080031/** ------------------------------------------------------------------------- *
32 ------------------------------------------------------------------------- *
Jeff Johnson295189b2012-06-20 16:38:30 -070033 \file csrApi.h
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080034
Jeff Johnson295189b2012-06-20 16:38:30 -070035 Exports and types for the Common Scan and Roaming Module interfaces.
Jeff Johnson295189b2012-06-20 16:38:30 -070036 ========================================================================== */
37#ifndef CSRAPI_H__
38#define CSRAPI_H__
39
40#include "sirApi.h"
41#include "sirMacProtDef.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070042#include "csrLinkList.h"
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080043typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -070044{
45 eCSR_AUTH_TYPE_NONE, //never used
46 // MAC layer authentication types
47 eCSR_AUTH_TYPE_OPEN_SYSTEM,
48 eCSR_AUTH_TYPE_SHARED_KEY,
49 eCSR_AUTH_TYPE_AUTOSWITCH,
50
51 // Upper layer authentication types
52 eCSR_AUTH_TYPE_WPA,
53 eCSR_AUTH_TYPE_WPA_PSK,
54 eCSR_AUTH_TYPE_WPA_NONE,
55
56 eCSR_AUTH_TYPE_RSN,
57 eCSR_AUTH_TYPE_RSN_PSK,
58#if defined WLAN_FEATURE_VOWIFI_11R
59 eCSR_AUTH_TYPE_FT_RSN,
60 eCSR_AUTH_TYPE_FT_RSN_PSK,
61#endif
62#ifdef FEATURE_WLAN_WAPI
63 eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE,
64 eCSR_AUTH_TYPE_WAPI_WAI_PSK,
65#endif /* FEATURE_WLAN_WAPI */
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080066#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -070067 eCSR_AUTH_TYPE_CCKM_WPA,
68 eCSR_AUTH_TYPE_CCKM_RSN,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080069#endif /* FEATURE_WLAN_ESE */
Chet Lanctot186b5732013-03-18 10:26:30 -070070#ifdef WLAN_FEATURE_11W
71 eCSR_AUTH_TYPE_RSN_PSK_SHA256,
Abhishek Singhae408032014-09-25 17:22:04 +053072 eCSR_AUTH_TYPE_RSN_8021X_SHA256,
Chet Lanctot186b5732013-03-18 10:26:30 -070073#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070074 eCSR_NUM_OF_SUPPORT_AUTH_TYPE,
75 eCSR_AUTH_TYPE_FAILED = 0xff,
76 eCSR_AUTH_TYPE_UNKNOWN = eCSR_AUTH_TYPE_FAILED,
77
78}eCsrAuthType;
79
80
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080081typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -070082{
83 eCSR_ENCRYPT_TYPE_NONE,
84 eCSR_ENCRYPT_TYPE_WEP40_STATICKEY,
85 eCSR_ENCRYPT_TYPE_WEP104_STATICKEY,
86
87 eCSR_ENCRYPT_TYPE_WEP40,
88 eCSR_ENCRYPT_TYPE_WEP104,
89 eCSR_ENCRYPT_TYPE_TKIP,
90 eCSR_ENCRYPT_TYPE_AES,
91#ifdef FEATURE_WLAN_WAPI
92 eCSR_ENCRYPT_TYPE_WPI, //WAPI
93#endif /* FEATURE_WLAN_WAPI */
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080094#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -070095 eCSR_ENCRYPT_TYPE_KRK,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080096#endif /* FEATURE_WLAN_ESE */
Jeff Johnson295189b2012-06-20 16:38:30 -070097#ifdef WLAN_FEATURE_11W
98 //11w BIP
99 eCSR_ENCRYPT_TYPE_AES_CMAC,
100#endif
101 eCSR_ENCRYPT_TYPE_ANY,
102 eCSR_NUM_OF_ENCRYPT_TYPE = eCSR_ENCRYPT_TYPE_ANY,
103
104 eCSR_ENCRYPT_TYPE_FAILED = 0xff,
105 eCSR_ENCRYPT_TYPE_UNKNOWN = eCSR_ENCRYPT_TYPE_FAILED,
106
107}eCsrEncryptionType;
108
109/*---------------------------------------------------------------------------
110 Enumeration of the various Security types
111---------------------------------------------------------------------------*/
112typedef enum
113{
114 eCSR_SECURITY_TYPE_WPA,
115 eCSR_SECURITY_TYPE_RSN,
116#ifdef FEATURE_WLAN_WAPI
117 eCSR_SECURITY_TYPE_WAPI,
118#endif /* FEATURE_WLAN_WAPI */
119 eCSR_SECURITY_TYPE_UNKNOWN,
120
121}eCsrSecurityType;
122
123typedef enum
124{
125 eCSR_DOT11_MODE_TAURUS = 0, //This mean everything because it covers all thing we support
126 eCSR_DOT11_MODE_abg = 0x0001, //11a/b/g only, no HT, no proprietary
127 eCSR_DOT11_MODE_11a = 0x0002,
128 eCSR_DOT11_MODE_11b = 0x0004,
129 eCSR_DOT11_MODE_11g = 0x0008,
130 eCSR_DOT11_MODE_11n = 0x0010,
131 eCSR_DOT11_MODE_POLARIS = 0x0020,
132 eCSR_DOT11_MODE_TITAN = 0x0040,
133 eCSR_DOT11_MODE_11g_ONLY = 0x0080,
134 eCSR_DOT11_MODE_11n_ONLY = 0x0100,
135 eCSR_DOT11_MODE_TAURUS_ONLY = 0x0200,
136 eCSR_DOT11_MODE_11b_ONLY = 0x0400,
137 eCSR_DOT11_MODE_11a_ONLY = 0x0800,
Jeff Johnsone7245742012-09-05 17:12:55 -0700138#ifdef WLAN_FEATURE_11AC
139 eCSR_DOT11_MODE_11ac = 0x1000,
140 eCSR_DOT11_MODE_11ac_ONLY = 0x2000,
141#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700142 //This is for WIFI test. It is same as eWNIAPI_MAC_PROTOCOL_ALL except when it starts IBSS in 11B of 2.4GHz
143 //It is for CSR internal use
Jeff Johnsone7245742012-09-05 17:12:55 -0700144 eCSR_DOT11_MODE_AUTO = 0x4000,
Jeff Johnson295189b2012-06-20 16:38:30 -0700145
146 eCSR_NUM_PHY_MODE = 16, //specify the number of maximum bits for phyMode
147}eCsrPhyMode;
148
149
150typedef tANI_U8 tCsrBssid[WNI_CFG_BSSID_LEN];
151
152typedef enum
153{
Varun Reddy Yeturu2cc78922013-04-10 11:50:02 -0700154 eCSR_BSS_TYPE_NONE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700155 eCSR_BSS_TYPE_INFRASTRUCTURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700156 eCSR_BSS_TYPE_INFRA_AP, // SoftAP AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700157 eCSR_BSS_TYPE_IBSS, // an IBSS network we will NOT start
158 eCSR_BSS_TYPE_START_IBSS, // an IBSS network we will start if no partners detected.
159 eCSR_BSS_TYPE_WDS_AP, // BT-AMP AP
160 eCSR_BSS_TYPE_WDS_STA, // BT-AMP station
161 eCSR_BSS_TYPE_ANY, // any BSS type (IBSS or Infrastructure).
162}eCsrRoamBssType;
163
164
165
166typedef enum {
167 eCSR_SCAN_REQUEST_11D_SCAN = 1,
168 eCSR_SCAN_REQUEST_FULL_SCAN,
169 eCSR_SCAN_IDLE_MODE_SCAN,
170 eCSR_SCAN_HO_BG_SCAN, // bg scan request in NRT & RT Handoff sub-states
171 eCSR_SCAN_HO_PROBE_SCAN, // directed probe on an entry from the candidate list
172 eCSR_SCAN_HO_NT_BG_SCAN, // bg scan request in NT sub-state
173 eCSR_SCAN_P2P_DISCOVERY,
174
175 eCSR_SCAN_SOFTAP_CHANNEL_RANGE,
176 eCSR_SCAN_P2P_FIND_PEER,
177}eCsrRequestType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700178typedef enum {
179 eCSR_SCAN_RESULT_GET = 0,
180 eCSR_SCAN_RESULT_FLUSH = 1, //to delete all cached scan results
181}eCsrScanResultCmd;
182
183typedef enum
184{
185 eCSR_SCAN_SUCCESS,
186 eCSR_SCAN_FAILURE,
187 eCSR_SCAN_ABORT,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800188 eCSR_SCAN_FOUND_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700189}eCsrScanStatus;
190
Srinivas, Dasari138af4f2014-02-07 11:13:45 +0530191/* Reason to abort the scan
192 * The reason can used later to decide whether to update the scan results
193 * to upper layer or not
194 */
195typedef enum
196{
Ratheesh S Pece1f832015-07-25 15:50:25 +0530197 eCSR_SCAN_ABORT_DEFAULT = 1,
Srinivas, Dasari138af4f2014-02-07 11:13:45 +0530198 eCSR_SCAN_ABORT_DUE_TO_BAND_CHANGE, //Scan aborted due to band change
199}eCsrAbortReason;
200
Hardik Kantilal Pateldd107952014-11-20 15:24:52 +0530201typedef enum
202{
203 eCSR_INI_SINGLE_CHANNEL_CENTERED = 0,
204 eCSR_INI_DOUBLE_CHANNEL_HIGH_PRIMARY,
205 eCSR_INI_DOUBLE_CHANNEL_LOW_PRIMARY,
206#ifdef WLAN_FEATURE_11AC
207 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED,
208 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED,
209 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED,
210 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW,
211 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW,
212 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH,
213 eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH,
214#endif
215 eCSR_INI_CHANNEL_BONDING_STATE_MAX
216}eIniChanBondState;
217
Jeff Johnson295189b2012-06-20 16:38:30 -0700218#define CSR_SCAN_TIME_DEFAULT 0
219#define CSR_VALUE_IGNORED 0xFFFFFFFF
220#define CSR_RSN_PMKID_SIZE 16
Kanchanapally, Vidyullatha2633ace2014-09-25 15:16:50 +0530221#define CSR_MAX_PMKID_ALLOWED 32
Jeff Johnson295189b2012-06-20 16:38:30 -0700222#define CSR_WEP40_KEY_LEN 5
223#define CSR_WEP104_KEY_LEN 13
224#define CSR_TKIP_KEY_LEN 32
225#define CSR_AES_KEY_LEN 16
226#define CSR_MAX_TX_POWER ( WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX )
227#define CSR_MAX_RSC_LEN 16
228#ifdef FEATURE_WLAN_WAPI
229#define CSR_WAPI_BKID_SIZE 16
230#define CSR_MAX_BKID_ALLOWED 16
231#define CSR_WAPI_KEY_LEN 32
232#define CSR_MAX_KEY_LEN ( CSR_WAPI_KEY_LEN ) //longest one is for WAPI
233#else
234#define CSR_MAX_KEY_LEN ( CSR_TKIP_KEY_LEN ) //longest one is for TKIP
235#endif /* FEATURE_WLAN_WAPI */
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800236#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -0700237#define CSR_KRK_KEY_LEN 16
238#endif
239
240
241
242typedef struct tagCsrChannelInfo
243{
244 tANI_U8 numOfChannels;
245 tANI_U8 *ChannelList; //it will be an array of channels
Madan Mohan Koyyalamudidd3c9662012-11-09 17:39:30 -0800246}tCsrChannelInfo, *tpCsrChannelInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700247
248typedef struct tagCsrSSIDInfo
249{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800250 tSirMacSSid SSID;
Jeff Johnson295189b2012-06-20 16:38:30 -0700251 tANI_BOOLEAN handoffPermitted;
252 tANI_BOOLEAN ssidHidden;
253}tCsrSSIDInfo;
254
255typedef struct tagCsrSSIDs
256{
257 tANI_U32 numOfSSIDs;
258 tCsrSSIDInfo *SSIDList; //To be allocated for array of SSIDs
259}tCsrSSIDs;
260
261typedef struct tagCsrBSSIDs
262{
263 tANI_U32 numOfBSSIDs;
264 tCsrBssid *bssid;
265}tCsrBSSIDs;
266
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800267typedef struct tagCsrStaParams
268{
269 tANI_U16 capability;
270 tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP];
271 tANI_U8 supported_rates_len;
272 tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES];
Hoonki Lee66b75f32013-04-16 18:30:07 -0700273 tANI_U8 htcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800274 tSirHTCap HTCap;
Hoonki Lee66b75f32013-04-16 18:30:07 -0700275 tANI_U8 vhtcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800276 tSirVHTCap VHTCap;
277 tANI_U8 uapsd_queues;
278 tANI_U8 max_sp;
Naresh Jayaramdff88f92014-02-12 21:44:29 +0530279 tANI_U8 supported_channels_len;
280 tANI_U8 supported_channels[SIR_MAC_MAX_SUPP_CHANNELS];
281 tANI_U8 supported_oper_classes_len;
282 tANI_U8 supported_oper_classes[SIR_MAC_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800283}tCsrStaParams;
Jeff Johnson295189b2012-06-20 16:38:30 -0700284
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800285typedef struct tagCsrScanRequest
Jeff Johnson295189b2012-06-20 16:38:30 -0700286{
287 tSirScanType scanType;
288 tCsrBssid bssid;
289 eCsrRoamBssType BSSType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800290 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700291 tCsrChannelInfo ChannelInfo;
292 tANI_U32 minChnTime; //in units of milliseconds
293 tANI_U32 maxChnTime; //in units of milliseconds
Abhishek Singh3a93ee42016-09-29 17:00:03 +0530294 tANI_U32 min_chntime_btc_esco; //in units of milliseconds
295 tANI_U32 max_chntime_btc_esco; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700296 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
297 tANI_U32 uIEFieldLen;
298 tANI_U8 *pIEField;
Rajeev Kumar Sirasanagandla2bb30b82019-01-07 22:30:16 +0530299 bool scan_randomize;
300 bool nl_scan;
Jeff Johnson295189b2012-06-20 16:38:30 -0700301 eCsrRequestType requestType; //11d scan or full scan
Jeff Johnson295189b2012-06-20 16:38:30 -0700302 tANI_BOOLEAN p2pSearch;
Jeff Johnsone7245742012-09-05 17:12:55 -0700303 tANI_BOOLEAN skipDfsChnlInP2pSearch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700304}tCsrScanRequest;
305
306typedef struct tagCsrBGScanRequest
307{
308 tSirScanType scanType;
309 tSirMacSSid SSID;
310 tCsrChannelInfo ChannelInfo;
311 tANI_U32 scanInterval; //in units of milliseconds
312 tANI_U32 minChnTime; //in units of milliseconds
313 tANI_U32 maxChnTime; //in units of milliseconds
Abhishek Singh3a93ee42016-09-29 17:00:03 +0530314 tANI_U32 min_chntime_btc_esco; //in units of milliseconds
315 tANI_U32 max_chntime_btc_esco; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700316 tANI_U32 restTime; //in units of milliseconds //ignored when not connected
317 tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected
318 tCsrBssid bssid; //how to use it?? Apple
Srikant Kuppa866893f2012-12-27 17:28:14 -0800319}tCsrBGScanRequest, *tpCsrBGScanRequest;
Jeff Johnson295189b2012-06-20 16:38:30 -0700320
321
322typedef struct tagCsrScanResultInfo
323{
324 //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS.
325 void *pvIes;
326 tAniSSID ssId;
327 v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value
328 //This member must be the last in the structure because the end of tSirBssDescription is an
329 // array with nonknown size at this time
330 tSirBssDescription BssDescriptor;
331}tCsrScanResultInfo;
332
333typedef struct tagCsrEncryptionList
334{
335
336 tANI_U32 numEntries;
337 eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE];
338
339}tCsrEncryptionList, *tpCsrEncryptionList;
340
341typedef struct tagCsrAuthList
342{
343 tANI_U32 numEntries;
344 eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE];
345}tCsrAuthList, *tpCsrAuthList;
346
347#ifdef WLAN_FEATURE_VOWIFI_11R
348typedef struct tagCsrMobilityDomainInfo
349{
350 tANI_U8 mdiePresent;
351 tANI_U16 mobilityDomain;
352} tCsrMobilityDomainInfo;
353#endif
354
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800355#ifdef FEATURE_WLAN_ESE
356typedef struct tagCsrEseCckmInfo
Jeff Johnson295189b2012-06-20 16:38:30 -0700357{
358 tANI_U32 reassoc_req_num;
359 tANI_BOOLEAN krk_plumbed;
360 tANI_U8 krk[CSR_KRK_KEY_LEN];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800361} tCsrEseCckmInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700362#endif
363
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800364#if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700365#define CSR_DOT11F_IE_RSN_MAX_LEN (114) /*TODO: duplicate one in dot11f.h */
366
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800367typedef struct tagCsrEseCckmIe
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700368{
369 tANI_U8 cckmIe[CSR_DOT11F_IE_RSN_MAX_LEN];
370 tANI_U8 cckmIeLen;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800371} tCsrEseCckmIe;
372#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -0700373
374typedef struct tagCsrScanResultFilter
375{
376 tCsrBSSIDs BSSIDs; //each bssid has a length of WNI_CFG_BSSID_LEN (6)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800377 tCsrSSIDs SSIDs;
Jeff Johnson295189b2012-06-20 16:38:30 -0700378 tCsrChannelInfo ChannelInfo;
379 tCsrAuthList authType;
380 tCsrEncryptionList EncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800381 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700382 //put all supported encryption types in here
383 tCsrEncryptionList mcEncryptionType;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800384 eCsrRoamBssType BSSType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700385 //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800386 tANI_U32 phyMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700387 //If countryCode[0] is not 0, countryCode is checked independent of fCheckUnknownCountryCode
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800388 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN];
389 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700390 /*For WPS filtering if true => auth and ecryption should be ignored*/
391 tANI_BOOLEAN bWPSAssociation;
Leela Venkata Kiran Kumar Reddy Chiralaf257bef2014-04-11 18:48:12 -0700392 tANI_BOOLEAN bOSENAssociation;
Jeff Johnson295189b2012-06-20 16:38:30 -0700393#if defined WLAN_FEATURE_VOWIFI
394 /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/
395 tANI_BOOLEAN fMeasurement;
396#endif
397#ifdef WLAN_FEATURE_VOWIFI_11R
398 tCsrMobilityDomainInfo MDID;
399#endif
400 tANI_BOOLEAN p2pResult;
Abhishek Singh3b56d3a2014-06-25 12:37:39 +0530401#ifdef WLAN_FEATURE_11W
402 // Management Frame Protection
403 tANI_BOOLEAN MFPEnabled;
404 tANI_U8 MFPRequired;
405 tANI_U8 MFPCapable;
406#endif
Kapil Gupta04ab1992016-06-26 13:36:51 +0530407#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
408 tANI_BOOLEAN isPERRoamScan;
409#endif
Abhishek Singhb3e376c2017-01-04 15:27:13 +0530410 tCsrBssid bssid_hint;
Pragaspathi Thilagaraja2419962018-06-19 01:41:11 +0530411 bool ignore_pmf_cap;
Jeff Johnson295189b2012-06-20 16:38:30 -0700412}tCsrScanResultFilter;
413
414
415typedef struct sCsrChnPower_
416{
417 tANI_U8 firstChannel;
418 tANI_U8 numChannels;
419 tANI_U8 maxtxPower;
420}sCsrChnPower;
421
422
423typedef struct sCsrChannel_
424{
425 tANI_U8 numChannels;
426 tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
427}sCsrChannel;
428
429
430typedef struct tagCsr11dinfo
431{
432 sCsrChannel Channels;
433 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1];
434 //max power channel list
435 sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN];
436}tCsr11dinfo;
437
438
439typedef enum
440{
441 eCSR_ROAM_CANCELLED = 1,
442 //this mean error happens before association_start or roaming_start is called.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800443 eCSR_ROAM_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700444 //a CSR trigger roaming operation starts, callback may get a pointer to tCsrConnectedProfile
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800445 eCSR_ROAM_ROAMING_START,
Jeff Johnson295189b2012-06-20 16:38:30 -0700446 //a CSR trigger roaming operation is completed
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800447 eCSR_ROAM_ROAMING_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700448 //Connection completed status.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800449 eCSR_ROAM_CONNECT_COMPLETION,
450 //an association or start_IBSS operation starts,
451 //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription
452 eCSR_ROAM_ASSOCIATION_START,
453 //a roaming operation is finish, see eCsrRoamResult for
Jeff Johnson295189b2012-06-20 16:38:30 -0700454 //possible data passed back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800455 eCSR_ROAM_ASSOCIATION_COMPLETION,
Jeff Johnson295189b2012-06-20 16:38:30 -0700456 eCSR_ROAM_DISASSOCIATED,
457 eCSR_ROAM_ASSOCIATION_FAILURE,
458 //when callback with this flag. callback gets a pointer to the BSS desc.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800459 eCSR_ROAM_SHOULD_ROAM,
Jeff Johnson295189b2012-06-20 16:38:30 -0700460 //A new candidate for PMKID is found
461 eCSR_ROAM_SCAN_FOUND_NEW_BSS,
462 //CSR is done lostlink roaming and still cannot reconnect
463 eCSR_ROAM_LOSTLINK,
464 //a link lost is detected. CSR starts roaming.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800465 eCSR_ROAM_LOSTLINK_DETECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700466 //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd
467 eCSR_ROAM_MIC_ERROR_IND,
468 eCSR_ROAM_IBSS_IND, //IBSS indications.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800469 //Update the connection status, useful for IBSS: new peer added, network is active etc.
470 eCSR_ROAM_CONNECT_STATUS_UPDATE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700471 eCSR_ROAM_GEN_INFO,
472 eCSR_ROAM_SET_KEY_COMPLETE,
473 eCSR_ROAM_REMOVE_KEY_COMPLETE,
474 eCSR_ROAM_IBSS_LEAVE, //IBSS indications.
475 //BSS in WDS mode status indication
476 eCSR_ROAM_WDS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700477 //BSS in SoftAP mode status indication
478 eCSR_ROAM_INFRA_IND,
479 eCSR_ROAM_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700480#ifdef WLAN_FEATURE_VOWIFI_11R
481 eCSR_ROAM_FT_RESPONSE,
482#endif
483 eCSR_ROAM_FT_START,
Jeff Johnson295189b2012-06-20 16:38:30 -0700484 eCSR_ROAM_REMAIN_CHAN_READY,
485 eCSR_ROAM_SEND_ACTION_CNF,
486 //this mean error happens before association_start or roaming_start is called.
487 eCSR_ROAM_SESSION_OPENED,
488 eCSR_ROAM_FT_REASSOC_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700489#ifdef FEATURE_WLAN_LFR
490 eCSR_ROAM_PMK_NOTIFY,
491#endif
Yue Maef608272013-04-08 23:09:17 -0700492#ifdef FEATURE_WLAN_LFR_METRICS
493 eCSR_ROAM_PREAUTH_INIT_NOTIFY,
494 eCSR_ROAM_PREAUTH_STATUS_SUCCESS,
495 eCSR_ROAM_PREAUTH_STATUS_FAILURE,
496 eCSR_ROAM_HANDOVER_SUCCESS,
497#endif
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800498#ifdef FEATURE_WLAN_TDLS
499 eCSR_ROAM_TDLS_STATUS_UPDATE,
Gopichand Nakkalab977a972013-02-18 19:15:09 -0800500 eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800501#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800502 eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800503 eCSR_ROAM_SEND_P2P_STOP_BSS, //Stopbss triggered from SME due to different
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800504 // beacon interval
Chet Lanctot186b5732013-03-18 10:26:30 -0700505#ifdef WLAN_FEATURE_11W
506 eCSR_ROAM_UNPROT_MGMT_FRAME_IND,
507#endif
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -0800508
Abhishek Singh00b71972016-01-07 10:51:04 +0530509#ifdef WLAN_FEATURE_RMC
510 eCSR_ROAM_IBSS_PEER_INFO_COMPLETE,
511#endif
512
Hardik Kantilal Patel81f76342014-11-14 12:45:26 -0800513#ifdef WLAN_FEATURE_AP_HT40_24G
514 eCSR_ROAM_2040_COEX_INFO_IND,
515#endif
516
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800517#if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700518 eCSR_ROAM_TSM_IE_IND,
519 eCSR_ROAM_CCKM_PREAUTH_NOTIFY,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800520 eCSR_ROAM_ESE_ADJ_AP_REPORT_IND,
521 eCSR_ROAM_ESE_BCN_REPORT_IND,
522#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Girish Gowlia95daca2015-02-04 20:31:31 +0530523 eCSR_ROAM_UPDATE_MAX_RATE_IND,
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +0530524 eCSR_ROAM_LOST_LINK_PARAMS_IND,
Selvaraj, Sridhar59c50392016-06-09 17:08:05 +0530525 eCSR_ROAM_UPDATE_SCAN_RESULT,
Abhishek Singh550aa8c2017-10-30 17:34:53 +0530526 eCSR_ROAM_ECSA_BCN_TX_IND,
527 eCSR_ROAM_ECSA_CHAN_CHANGE_RSP,
Ganesh Kondabattini529397f2017-12-27 19:13:52 +0530528 eCSR_ROAM_STA_CHANNEL_SWITCH,
Jeff Johnson295189b2012-06-20 16:38:30 -0700529}eRoamCmdStatus;
530
531
532//comment inside indicates what roaming callback gets
533typedef enum
534{
535 eCSR_ROAM_RESULT_NONE,
536 //this means no more action in CSR
537 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION, tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800538 eCSR_ROAM_RESULT_FAILURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700539 //Pass back pointer to tCsrRoamInfo
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800540 eCSR_ROAM_RESULT_ASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700541 eCSR_ROAM_RESULT_NOT_ASSOCIATED,
542 eCSR_ROAM_RESULT_MIC_FAILURE,
543 eCSR_ROAM_RESULT_FORCED,
544 eCSR_ROAM_RESULT_DISASSOC_IND,
545 eCSR_ROAM_RESULT_DEAUTH_IND,
546 eCSR_ROAM_RESULT_CAP_CHANGED,
547 //This means we starts an IBSS
548 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800549 eCSR_ROAM_RESULT_IBSS_STARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700550 //START_BSS failed
551 //tCsrRoamInfo's pBssDesc may pass back
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800552 eCSR_ROAM_RESULT_IBSS_START_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700553 eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800554 eCSR_ROAM_RESULT_IBSS_JOIN_FAILED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700555 eCSR_ROAM_RESULT_IBSS_CONNECT,
556 eCSR_ROAM_RESULT_IBSS_INACTIVE,
557 //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800558 //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid
559 //If roamStatus is eCSR_ROAM_IBSS_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700560 //the peer's MAC address in peerMacOrBssid and a beacon frame of the IBSS in pbFrames
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800561 eCSR_ROAM_RESULT_IBSS_NEW_PEER,
Jeff Johnson295189b2012-06-20 16:38:30 -0700562 //Peer departed from IBSS, Callback may get a pointer tSmeIbssPeerInd in pIbssPeerInd
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800563 eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700564 //Coalescing in the IBSS network (joined an IBSS network)
565 //Callback pass a BSSID in peerMacOrBssid
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800566 eCSR_ROAM_RESULT_IBSS_COALESCED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700567 //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 -0800568 eCSR_ROAM_RESULT_IBSS_STOP,
569 eCSR_ROAM_RESULT_LOSTLINK,
Jeff Johnson295189b2012-06-20 16:38:30 -0700570 eCSR_ROAM_RESULT_MIC_ERROR_UNICAST,
571 eCSR_ROAM_RESULT_MIC_ERROR_GROUP,
572 eCSR_ROAM_RESULT_AUTHENTICATED,
573 eCSR_ROAM_RESULT_NEW_RSN_BSS,
574#ifdef FEATURE_WLAN_WAPI
575 eCSR_ROAM_RESULT_NEW_WAPI_BSS,
576#endif /* FEATURE_WLAN_WAPI */
577 // WDS started successfully
578 eCSR_ROAM_RESULT_WDS_STARTED,
579 // WDS start failed
580 eCSR_ROAM_RESULT_WDS_START_FAILED,
581 // WDS stopped
582 eCSR_ROAM_RESULT_WDS_STOPPED,
583 // WDS joined successfully in STA mode
584 eCSR_ROAM_RESULT_WDS_ASSOCIATED,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800585 // A station joined WDS AP
Jeff Johnson295189b2012-06-20 16:38:30 -0700586 eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND,
587 // WDS join failed in STA mode
588 eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED,
589 // WDS disassociated
590 eCSR_ROAM_RESULT_WDS_DISASSOCIATED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700591 // INFRA started successfully
592 eCSR_ROAM_RESULT_INFRA_STARTED,
593 // INFRA start failed
594 eCSR_ROAM_RESULT_INFRA_START_FAILED,
595 // INFRA stopped
596 eCSR_ROAM_RESULT_INFRA_STOPPED,
597 // A station joining INFRA AP
598 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND,
599 // A station joined INFRA AP
600 eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF,
601 // INFRA disassociated
602 eCSR_ROAM_RESULT_INFRA_DISASSOCIATED,
603 eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND,
Jeff Johnson295189b2012-06-20 16:38:30 -0700604 eCSR_ROAM_RESULT_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700605 // peer rejected assoc because max assoc limit reached. callback gets pointer to peer
606 eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED,
Jeff Johnsone7245742012-09-05 17:12:55 -0700607 //Assoc rejected due to concurrent session running on a different channel
608 eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800609#ifdef FEATURE_WLAN_TDLS
610 eCSR_ROAM_RESULT_ADD_TDLS_PEER,
Gopichand Nakkala681989c2013-03-06 22:27:48 -0800611 eCSR_ROAM_RESULT_UPDATE_TDLS_PEER,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800612 eCSR_ROAM_RESULT_DELETE_TDLS_PEER,
Hoonki Leee6bfe942013-02-05 15:01:19 -0800613 eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND,
Gopichand Nakkala2a0a1572013-02-10 21:39:16 -0800614 eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND,
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530615 eCSR_ROAM_RESULT_LINK_ESTABLISH_REQ_RSP,
Masti, Narayanraddi36c67622016-01-06 16:07:34 +0530616 eCSR_ROAM_RESULT_CHANNEL_SWITCH_REQ_RSP,
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800617#endif
618
Abhishek Singh00b71972016-01-07 10:51:04 +0530619#ifdef WLAN_FEATURE_RMC
620 eCSR_ROAM_RESULT_IBSS_PEER_INFO_SUCCESS,
621 eCSR_ROAM_RESULT_IBSS_PEER_INFO_FAILED,
622#endif
Abhishek Singhbfb3c9e2016-07-22 11:25:43 +0530623 /* If Scan for SSID failed to found proper BSS */
624 eCSR_ROAM_RESULT_SCAN_FOR_SSID_FAILURE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700625}eCsrRoamResult;
626
627
628
629/*----------------------------------------------------------------------------
630 List of link quality indications HDD can receive from SME
631-----------------------------------------------------------------------------*/
632typedef enum
633{
634 eCSR_ROAM_LINK_QUAL_MIN_IND = -1,
635
636 eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */
637 eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */
638 eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */
639 eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */
640
641 eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */
642
643} eCsrRoamLinkQualityInd;
644
645typedef enum
646{
647 eCSR_DISCONNECT_REASON_UNSPECIFIED = 0,
648 eCSR_DISCONNECT_REASON_MIC_ERROR,
649 eCSR_DISCONNECT_REASON_DISASSOC,
650 eCSR_DISCONNECT_REASON_DEAUTH,
651 eCSR_DISCONNECT_REASON_HANDOFF,
652 eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE,
653 eCSR_DISCONNECT_REASON_IBSS_LEAVE,
654}eCsrRoamDisconnectReason;
655
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800656typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700657{
658 // Not associated in Infra or participating in an IBSS / Ad-hoc network.
659 eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED,
660 // Associated in an Infrastructure network.
661 eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED,
662 // Participating in an IBSS network though disconnected (no partner stations
663 // in the IBSS).
664 eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED,
665 // Participating in an IBSS network with partner stations also present
666 eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED,
667 // Participating in a WDS network in AP or STA mode but not connected yet
668 eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED,
669 // Participating in a WDS network and connected peer to peer
670 eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700671 // Participating in a Infra network in AP not yet in connected state
672 eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED,
673 // Participating in a Infra network and connected to a peer
674 eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED,
Jeff Johnson295189b2012-06-20 16:38:30 -0700675
676}eCsrConnectState;
677
678
679// This parameter is no longer supported in the Profile. Need to set this in the global properties
680// for the adapter.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800681typedef enum eCSR_MEDIUM_ACCESS
Jeff Johnson295189b2012-06-20 16:38:30 -0700682{
683 eCSR_MEDIUM_ACCESS_AUTO = 0,
684 eCSR_MEDIUM_ACCESS_DCF,
685 eCSR_MEDIUM_ACCESS_eDCF,
686 eCSR_MEDIUM_ACCESS_HCF,
687
688 eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p,
689 eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP,
690 eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify,
691 eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF,
692 eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF,
693}eCsrMediaAccessType;
694
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800695typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700696{
697 eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate.
698
699 eCSR_TX_RATE_1Mbps = 0x00000001,
700 eCSR_TX_RATE_2Mbps = 0x00000002,
701 eCSR_TX_RATE_5_5Mbps = 0x00000004,
702 eCSR_TX_RATE_6Mbps = 0x00000008,
703 eCSR_TX_RATE_9Mbps = 0x00000010,
704 eCSR_TX_RATE_11Mbps = 0x00000020,
705 eCSR_TX_RATE_12Mbps = 0x00000040,
706 eCSR_TX_RATE_18Mbps = 0x00000080,
707 eCSR_TX_RATE_24Mbps = 0x00000100,
708 eCSR_TX_RATE_36Mbps = 0x00000200,
709 eCSR_TX_RATE_42Mbps = 0x00000400,
710 eCSR_TX_RATE_48Mbps = 0x00000800,
711 eCSR_TX_RATE_54Mbps = 0x00001000,
712 eCSR_TX_RATE_72Mbps = 0x00002000,
713 eCSR_TX_RATE_84Mbps = 0x00004000,
714 eCSR_TX_RATE_96Mbps = 0x00008000,
715 eCSR_TX_RATE_108Mbps = 0x00010000,
716 eCSR_TX_RATE_126Mbps = 0x00020000,
717 eCSR_TX_RATE_144Mbps = 0x00040000,
718 eCSR_TX_RATE_168Mbps = 0x00080000,
719 eCSR_TX_RATE_192Mbps = 0x00100000,
720 eCSR_TX_RATE_216Mbps = 0x00200000,
721 eCSR_TX_RATE_240Mbps = 0x00400000,
722
723}eCsrExposedTxRate;
724
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800725typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700726{
727 eCSR_OPERATING_CHANNEL_ALL = 0,
728 eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL,
729 eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL,
730}eOperationChannel;
731
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800732typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700733{
734 eCSR_DOT11_FRAG_THRESH_AUTO = -1,
735 eCSR_DOT11_FRAG_THRESH_MIN = 256,
736 eCSR_DOT11_FRAG_THRESH_MAX = 2346,
737 eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000
738}eCsrDot11FragThresh;
739
740
741//for channel bonding for ibss
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800742typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700743{
744 eCSR_CB_OFF = 0,
745 eCSR_CB_AUTO = 1,
746 eCSR_CB_DOWN = 2,
747 eCSR_CB_UP = 3,
748}eCsrCBChoice;
749
750//For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode.
751#define CSR_CB_CHANNEL_GAP 4
752#define CSR_CB_CENTER_CHANNEL_OFFSET 2
753#define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END )
Jeff Johnsone7245742012-09-05 17:12:55 -0700754#define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN )
755#define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END )
Jeff Johnson295189b2012-06-20 16:38:30 -0700756
757// WEP keysize (in bits)...
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800758typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700759{
760 eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP
761 eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP
762
763 eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40,
764 eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104,
765 eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ),
766}eCsrWEPKeySize;
767
768
769// Possible values for the WEP static key ID...
770typedef enum
771{
772
773 eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0,
774 eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3,
775 eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0,
776
777 eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1,
778
779}eCsrWEPStaticKeyID;
780
Chet Lanctot186b5732013-03-18 10:26:30 -0700781// Two extra key indicies are used for the IGTK (which is used by BIP)
782#define CSR_MAX_NUM_KEY (eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX + 2 + 1)
Jeff Johnson295189b2012-06-20 16:38:30 -0700783
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800784typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700785{
786 eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE,
787 eCSR_SECURITY_SET_KEY_ACTION_SET_KEY,
788 eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY,
789}eCsrSetKeyAction;
790
791typedef enum
792{
793 eCSR_BAND_ALL,
794 eCSR_BAND_24,
795 eCSR_BAND_5G,
796 eCSR_BAND_MAX,
797}eCsrBand;
798
799
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800800typedef enum
Jeff Johnson295189b2012-06-20 16:38:30 -0700801{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800802 // Roaming because HDD requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700803 // tCsrRoamModifyProfileFields. OR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800804 // Roaming because SME requested for reassoc by changing one of the fields in
Jeff Johnson295189b2012-06-20 16:38:30 -0700805 // tCsrRoamModifyProfileFields.
806 eCsrRoamReasonStaCapabilityChanged,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800807 // Roaming because SME requested for reassoc to a different AP, as part of
Jeff Johnson295189b2012-06-20 16:38:30 -0700808 // inter AP handoff.
809 eCsrRoamReasonBetterAP,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800810 // Roaming because SME requested it as the link is lost - placeholder, will
Jeff Johnson295189b2012-06-20 16:38:30 -0700811 // clean it up once handoff code gets in
812 eCsrRoamReasonSmeIssuedForLostLink,
813
814}eCsrRoamReasonCodes;
815
816typedef enum
817{
818 eCsrRoamWmmAuto = 0,
819 eCsrRoamWmmQbssOnly = 1,
820 eCsrRoamWmmNoQos = 2,
821
822} eCsrRoamWmmUserModeType;
823
824typedef enum
825{
826 eCSR_REQUESTER_MIN = 0,
827 eCSR_DIAG,
828 eCSR_UMA_GAN,
829 eCSR_HDD
830} eCsrStatsRequesterType;
831
Agarwal Ashish6db9d532014-09-30 18:19:10 +0530832typedef enum
833{
834 INIT = 0,
835 REINIT,
836} driver_load_type;
837
Jeff Johnson295189b2012-06-20 16:38:30 -0700838typedef struct tagPmkidCandidateInfo
839{
840 tCsrBssid BSSID;
841 tANI_BOOLEAN preAuthSupported;
842}tPmkidCandidateInfo;
843
844typedef struct tagPmkidCacheInfo
845{
846 tCsrBssid BSSID;
847 tANI_U8 PMKID[CSR_RSN_PMKID_SIZE];
848}tPmkidCacheInfo;
849
850#ifdef FEATURE_WLAN_WAPI
851typedef struct tagBkidCandidateInfo
852{
853 tCsrBssid BSSID;
854 tANI_BOOLEAN preAuthSupported;
855}tBkidCandidateInfo;
856
857typedef struct tagBkidCacheInfo
858{
859 tCsrBssid BSSID;
860 tANI_U8 BKID[CSR_WAPI_BKID_SIZE];
861}tBkidCacheInfo;
862#endif /* FEATURE_WLAN_WAPI */
863
864typedef struct tagCsrKeys
865{
866 tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set
867 tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ];
868 tANI_U8 defaultIndex;
869}tCsrKeys;
870
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800871/* Following are fields which are part of tCsrRoamConnectedProfile might need
Jeff Johnson295189b2012-06-20 16:38:30 -0700872 modification dynamically once STA is up & running and this could trigger
873 reassoc */
874typedef struct tagCsrRoamModifyProfileFields
875{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800876 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700877 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800878 // During assoc response this COULD carry confirmation of what ACs U-APSD
Jeff Johnson295189b2012-06-20 16:38:30 -0700879 // got setup for. Later if an APP looking for APSD, SME-QoS might need to
880 // modify this field
881 tANI_U8 uapsd_mask;
882 // HDD might ask to modify this field
883 tANI_U16 listen_interval;
884}tCsrRoamModifyProfileFields;
885
886typedef struct tagCsrRoamProfile
887{
888 //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs.
889 //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP
890 //that we need to join. Index 1 is the SSID for self BSS.
891 tCsrSSIDs SSIDs;
892 tCsrBSSIDs BSSIDs;
893 tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode
894 eCsrRoamBssType BSSType;
895
896 tCsrAuthList AuthType;
897 eCsrAuthType negotiatedAuthType;
898
899 tCsrEncryptionList EncryptionType;
900 //This field is for output only, not for input
901 eCsrEncryptionType negotiatedUCEncryptionType;
902
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800903 //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case,
Jeff Johnson295189b2012-06-20 16:38:30 -0700904 //put all supported encryption types in here
905 tCsrEncryptionList mcEncryptionType;
906 //This field is for output only, not for input
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800907 eCsrEncryptionType negotiatedMCEncryptionType;
Jeff Johnson295189b2012-06-20 16:38:30 -0700908
Chet Lanctot186b5732013-03-18 10:26:30 -0700909#ifdef WLAN_FEATURE_11W
910 // Management Frame Protection
911 tANI_BOOLEAN MFPEnabled;
912 tANI_U8 MFPRequired;
913 tANI_U8 MFPCapable;
914#endif
915
Jeff Johnson295189b2012-06-20 16:38:30 -0700916 tCsrKeys Keys;
917 eCsrCBChoice CBMode; //up, down or auto
918 tCsrChannelInfo ChannelInfo;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800919 tANI_U8 operationChannel;
Jeff Johnson295189b2012-06-20 16:38:30 -0700920 tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800921 // during connect this specifies ACs U-APSD is to be setup
Jeff Johnson295189b2012-06-20 16:38:30 -0700922 // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored).
923 // During assoc response this COULD carry confirmation of what ACs U-APSD got setup for
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800924 tANI_U8 uapsd_mask;
Jeff Johnson295189b2012-06-20 16:38:30 -0700925 tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE
926 tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA
927 tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE
928 tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN
929#ifdef FEATURE_WLAN_WAPI
930 tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE
931 tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI
932#endif /* FEATURE_WLAN_WAPI */
933
Agarwal Ashish4f616132013-12-30 23:32:50 +0530934 //The byte count in the pAddIE for scan (at the time of join)
935 tANI_U32 nAddIEScanLength;
936 /* Additional IE information.
937 * It has the IE byte stream for additional IE,
938 * which can be WSC IE and/or P2P IE
939 */
Ganesh Kondabattini7500fb32015-04-10 14:50:32 +0530940 tANI_U8 addIEScan[SIR_MAC_MAX_ADD_IE_LENGTH+2]; //Additional IE information.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800941 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
Jeff Johnson295189b2012-06-20 16:38:30 -0700942 tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE
943
944 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0.
945 /*WPS Association if true => auth and ecryption should be ignored*/
946 tANI_BOOLEAN bWPSAssociation;
Leela Venkata Kiran Kumar Reddy Chiralaf257bef2014-04-11 18:48:12 -0700947 tANI_BOOLEAN bOSENAssociation;
Jeff Johnson295189b2012-06-20 16:38:30 -0700948 tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE
949 tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC
950
Jeff Johnson295189b2012-06-20 16:38:30 -0700951 tANI_U8 ieee80211d;
952 tANI_U8 privacy;
953 tANI_BOOLEAN fwdWPSPBCProbeReq;
954 tAniAuthType csr80211AuthType;
955 tANI_U32 dtimPeriod;
956 tANI_BOOLEAN ApUapsdEnable;
957 tANI_BOOLEAN protEnabled;
958 tANI_BOOLEAN obssProtEnabled;
959 tANI_U16 cfg_protection;
960 tANI_U8 wps_state;
Jeff Johnson295189b2012-06-20 16:38:30 -0700961
962#ifdef WLAN_FEATURE_VOWIFI_11R
963 tCsrMobilityDomainInfo MDID;
964#endif
965 tVOS_CON_MODE csrPersona;
Abhishek Singhe3beee22017-07-31 15:35:40 +0530966 bool force_24ghz_in_ht20;
Abhishek Singhb3e376c2017-01-04 15:27:13 +0530967 tCsrBssid bssid_hint;
Pragaspathi Thilagaraj03e2ab12018-06-22 12:19:48 +0530968 bool force_rsne_override;
Jeff Johnson295189b2012-06-20 16:38:30 -0700969}tCsrRoamProfile;
970
971
972typedef struct tagCsrRoamConnectedProfile
973{
974 tSirMacSSid SSID;
975 tANI_BOOLEAN handoffPermitted;
976 tANI_BOOLEAN ssidHidden;
977 tCsrBssid bssid;
978 eCsrRoamBssType BSSType;
979 eCsrAuthType AuthType;
980 tCsrAuthList AuthInfo;
981 eCsrEncryptionType EncryptionType;
982 tCsrEncryptionList EncryptionInfo;
983 eCsrEncryptionType mcEncryptionType;
984 tCsrEncryptionList mcEncryptionInfo;
985 eCsrCBChoice CBMode; //up, down or auto
986 tANI_U8 operationChannel;
Jeff Johnsone7245742012-09-05 17:12:55 -0700987 tANI_U16 beaconInterval;
Jeff Johnson295189b2012-06-20 16:38:30 -0700988 tCsrKeys Keys;
989 // meaningless on connect. It's an OUT param from CSR's point of view
990 // During assoc response carries the ACM bit-mask i.e. what
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800991 // ACs have ACM=1 (if any),
Jeff Johnson295189b2012-06-20 16:38:30 -0700992 // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored)
993 tANI_U8 acm_mask;
994 tCsrRoamModifyProfileFields modifyProfileFields;
Madan Mohan Koyyalamudiea22cdc2012-10-18 21:02:23 -0700995 tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc
996 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 -0800997
998 tSirBssDescription *pBssDesc;
Jeff Johnson295189b2012-06-20 16:38:30 -0700999 tANI_BOOLEAN qap; //AP supports QoS
1000 tANI_BOOLEAN qosConnection; //A connection is QoS enabled
1001#ifdef WLAN_FEATURE_VOWIFI_11R
1002 tCsrMobilityDomainInfo MDID;
1003#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001004
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001005#ifdef FEATURE_WLAN_ESE
1006 tCsrEseCckmInfo eseCckmInfo;
1007 tANI_BOOLEAN isESEAssoc;
Jeff Johnson295189b2012-06-20 16:38:30 -07001008#endif
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +05301009 tANI_U32 dot11Mode;
Abhishek Singh2fb3a6e2014-11-20 16:03:01 +05301010
1011#ifdef WLAN_FEATURE_11W
1012 /* Management Frame Protection */
1013 tANI_BOOLEAN MFPEnabled;
1014 tANI_U8 MFPRequired;
1015 tANI_U8 MFPCapable;
1016#endif
1017
Jeff Johnson295189b2012-06-20 16:38:30 -07001018}tCsrRoamConnectedProfile;
1019
1020
1021#ifdef WLAN_FEATURE_VOWIFI_11R
1022typedef struct tagCsr11rConfigParams
1023{
1024 tANI_BOOLEAN IsFTResourceReqSupported;
1025} tCsr11rConfigParams;
1026#endif
1027
1028#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
1029typedef struct tagCsrNeighborRoamConfigParams
1030{
1031
1032 tANI_U32 nNeighborScanTimerPeriod;
1033 tANI_U8 nNeighborLookupRssiThreshold;
1034 tANI_U8 nNeighborReassocRssiThreshold;
1035 tANI_U16 nNeighborScanMinChanTime;
1036 tANI_U16 nNeighborScanMaxChanTime;
1037 sCsrChannel neighborScanChanList;
1038 tANI_U8 nMaxNeighborRetries;
1039 tANI_U16 nNeighborResultsRefreshPeriod;
Srinivas Girigowdade697412013-02-14 16:31:48 -08001040 tANI_U16 nEmptyScanRefreshPeriod;
Mukul Sharmad49b3d62014-09-02 01:45:32 +05301041 tANI_U8 nNeighborInitialForcedRoamTo5GhEnable;
Sreelakshmi Konamki70bfdaf2017-05-29 18:47:29 +05301042 tANI_U8 nWeakZoneRssiThresholdForRoam;
Jeff Johnson295189b2012-06-20 16:38:30 -07001043}tCsrNeighborRoamConfigParams;
1044#endif
1045
1046typedef struct tagCsrConfigParam
1047{
1048 tANI_U32 FragmentationThreshold;
Jeff Johnsone7245742012-09-05 17:12:55 -07001049 tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState
1050 tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState
Jeff Johnson295189b2012-06-20 16:38:30 -07001051 eCsrPhyMode phyMode;
1052 eCsrBand eBand;
1053 tANI_U32 RTSThreshold;
1054 tANI_U32 HeartbeatThresh50;
1055 tANI_U32 HeartbeatThresh24;
1056 eCsrCBChoice cbChoice;
1057 eCsrBand bandCapability; //indicate hw capability
1058 tANI_U32 bgScanInterval;
1059 tANI_U16 TxRate;
1060 eCsrRoamWmmUserModeType WMMSupportMode;
1061 tANI_BOOLEAN Is11eSupportEnabled;
1062 tANI_BOOLEAN Is11dSupportEnabled;
1063 tANI_BOOLEAN Is11dSupportEnabledOriginal;
1064 tANI_BOOLEAN Is11hSupportEnabled;
1065 tANI_BOOLEAN shortSlotTime;
1066 tANI_BOOLEAN ProprietaryRatesEnabled;
1067 tANI_U8 AdHocChannel24;
1068 tANI_U8 AdHocChannel5G;
1069 tANI_U32 impsSleepTime; //in units of seconds
1070 tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed
1071 tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds
1072 tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds
1073 tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds,
1074 tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds
1075 tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming
1076 tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category
1077 tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode
Mohit Khanna7ed53f02012-09-11 17:52:10 -07001078 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
1079 //at the moment, this flag is provided only to pass Wi-Fi Cert. 5.1.12
Jeff Johnson295189b2012-06-20 16:38:30 -07001080 tCsr11dinfo Csr11dinfo;
1081 //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001082 //channels are limited to the default channel list. It is an "AND" operation between the
Jeff Johnson295189b2012-06-20 16:38:30 -07001083 //default channels and the channels in the 802.11d IE.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001084 tANI_BOOLEAN fEnforce11dChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001085 //Country Code Priority
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001086 //0 = 802.11D > Country IOCTL > NV
Jeff Johnson295189b2012-06-20 16:38:30 -07001087 //1 = Country IOCTL > 802.11D > NV
1088 tANI_BOOLEAN fSupplicantCountryCodeHasPriority;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001089 //When true, AP with unknown country code won't be see.
1090 //"Unknown country code" means either Ap doesn't have 11d IE or we cannot
1091 //find a domain for the country code in its 11d IE.
1092 tANI_BOOLEAN fEnforceCountryCodeMatch;
Jeff Johnson295189b2012-06-20 16:38:30 -07001093 //When true, only APs in the default domain can be seen. If the Ap has "unknown country
1094 //code", or the domain of the country code doesn't match the default domain, the Ap is
1095 //not acceptable.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001096 tANI_BOOLEAN fEnforceDefaultDomain;
Jeff Johnson295189b2012-06-20 16:38:30 -07001097
1098 tANI_U16 vccRssiThreshold;
1099 tANI_U32 vccUlMacLossThreshold;
1100
1101 tANI_U32 nPassiveMinChnTime; //in units of milliseconds
1102 tANI_U32 nPassiveMaxChnTime; //in units of milliseconds
1103 tANI_U32 nActiveMinChnTime; //in units of milliseconds
1104 tANI_U32 nActiveMaxChnTime; //in units of milliseconds
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001105
c_hpothu059edb02014-03-12 21:44:28 +05301106 tANI_U32 nInitialDwellTime; //in units of milliseconds
1107
Abhishek Singh3a93ee42016-09-29 17:00:03 +05301108 uint32_t min_chntime_btc_esco; //in units of milliseconds
1109 uint32_t max_chntime_btc_esco; //in units of milliseconds
1110 uint32_t min_chntime_btc_sco;
1111 uint32_t max_chntime_btc_sco;
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -07001112 tANI_U32 disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001113#ifdef WLAN_AP_STA_CONCURRENCY
1114 tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds
1115 tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds
1116 tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds
1117 tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds
1118 tANI_U32 nRestTimeConc; //in units of milliseconds
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -07001119 tANI_U8 nNumStaChanCombinedConc; //number of channels combined for
1120 //STA in each split scan operation
1121 tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for
1122 //P2P in each split scan operation
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07001123#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001124
1125 tANI_BOOLEAN IsIdleScanEnabled;
1126 //in dBm, the maximum TX power
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001127 //The actual TX power is the lesser of this value and 11d.
Jeff Johnson295189b2012-06-20 16:38:30 -07001128 //If 11d is disable, the lesser of this and default setting.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001129 tANI_U8 nTxPowerCap;
Jeff Johnson295189b2012-06-20 16:38:30 -07001130 tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power
1131 tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save
1132#ifdef WLAN_FEATURE_VOWIFI_11R
1133 tCsr11rConfigParams csr11rConfig;
1134#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001135#ifdef FEATURE_WLAN_ESE
1136 tANI_U8 isEseIniFeatureEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001137#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001138#ifdef FEATURE_WLAN_LFR
1139 tANI_U8 isFastRoamIniFeatureEnabled;
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08001140 tANI_U8 MAWCEnabled;
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001141#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001142
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001143#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001144 tANI_U8 isFastTransitionEnabled;
1145 tANI_U8 RoamRssiDiff;
1146 tANI_U8 nImmediateRoamRssiDiff;
Srinivas Girigowdaad34ca92013-10-22 10:54:29 -07001147 tANI_BOOLEAN isWESModeEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001148#endif
1149
1150#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
1151 tCsrNeighborRoamConfigParams neighborRoamConfig;
1152#endif
1153
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001154 /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC
Jeff Johnson295189b2012-06-20 16:38:30 -07001155 * This is mandated by WMM-AC certification */
1156 tANI_BOOLEAN addTSWhenACMIsOff;
1157
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001158
1159 /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to
Jeff Johnson295189b2012-06-20 16:38:30 -07001160 * detect when it happens. Adding this into code because we can't reproduce it easily.
1161 * We don't know when it happens. */
1162 tANI_BOOLEAN fValidateList;
1163
1164 /*Customer wants to start with an active scan based on the default country code.
1165 * This optimization will minimize the driver load to association time.
1166 * Based on this flag we will bypass the initial passive scan needed for 11d
1167 * to determine the country code & domain */
1168 tANI_BOOLEAN fEnableBypass11d;
1169
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001170 /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS
1171 * channels while swipping through both bands can save some time
Jeff Johnson295189b2012-06-20 16:38:30 -07001172 * (apprx 1.3 sec) */
Padma, Santhosh Kumar814d0992015-05-05 18:52:43 +05301173 tANI_U8 fEnableDFSChnlScan;
Jeff Johnson295189b2012-06-20 16:38:30 -07001174
1175 //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD
1176 tANI_BOOLEAN fScanTwice;
Jeff Johnsone7245742012-09-05 17:12:55 -07001177#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07001178 tANI_U32 nVhtChannelWidth;
1179 tANI_U8 enableTxBF;
1180 tANI_U8 txBFCsnValue;
1181 tANI_BOOLEAN enableVhtFor24GHz;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05301182 tANI_U8 enableMuBformee;
Jeff Johnsone7245742012-09-05 17:12:55 -07001183#endif
1184
1185 /*
1186 * To enable/disable scanning only 2.4Ghz channels on first scan
1187 */
1188 tANI_BOOLEAN fFirstScanOnly2GChnl;
Jeff Johnson295189b2012-06-20 16:38:30 -07001189
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001190#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08001191 tANI_BOOLEAN nRoamPrefer5GHz;
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001192 tANI_BOOLEAN nRoamIntraBand;
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07001193 tANI_U8 nProbes;
1194 tANI_U16 nRoamScanHomeAwayTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001195
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001196#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1197 tANI_BOOLEAN isRoamOffloadScanEnabled;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001198 tANI_BOOLEAN bFastRoamInConIniFeatureEnabled;
Kapil Gupta04ab1992016-06-26 13:36:51 +05301199 v_BOOL_t isPERRoamEnabled;
1200 v_BOOL_t isPERRoamCCAEnabled;
Kapil Guptac69c28a2016-08-25 14:11:17 +05301201 v_S15_t PERRoamFullScanThreshold;
Kapil Gupta192d9d42016-11-25 16:24:13 +05301202 v_S15_t PERMinRssiThresholdForRoam;
Kapil Gupta04ab1992016-06-26 13:36:51 +05301203 v_U32_t rateUpThreshold;
1204 v_U32_t rateDownThreshold;
1205 v_U32_t waitPeriodForNextPERScan;
1206 v_U32_t PERtimerThreshold;
1207 v_U32_t PERroamTriggerPercent;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001208#endif
Padma, Santhosh Kumar67f479b2016-12-28 15:43:42 +05301209
1210#ifdef WLAN_FEATURE_LFR_MBB
1211 tANI_BOOLEAN enable_lfr_mbb;
1212#endif
1213
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07001214#endif
1215
Abhishek Singhc98534e2015-06-12 10:44:34 +05301216 tANI_BOOLEAN ignorePeerErpInfo;
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08001217 tANI_U8 scanCfgAgingTime;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001218
1219 tANI_U8 enableTxLdpc;
krunal soni4f087d22013-07-29 16:32:26 -07001220
krunal soni5afa96c2013-09-06 22:19:02 -07001221 tANI_U8 isAmsduSupportInAMPDU;
Srinivas Girigowda41c7c5f2013-10-21 19:01:38 -07001222 tANI_U8 nSelect5GHzMargin;
krunal soni5afa96c2013-09-06 22:19:02 -07001223
krunal sonie9002db2013-11-25 14:24:17 -08001224 tANI_U8 isCoalesingInIBSSAllowed;
Sandeep Puligillac80f26e2014-03-11 18:36:10 +05301225 tANI_U8 allowDFSChannelRoam;
c_hpothu0d5a7352014-03-22 12:30:25 +05301226 tANI_BOOLEAN initialScanSkipDFSCh;
Abhishek Singhde51a412014-05-20 19:17:26 +05301227 tANI_BOOLEAN sendDeauthBeforeCon;
Peng Xu2446a892014-09-05 17:21:18 +05301228
1229 eCsrBand scanBandPreference;
Hardik Kantilal Pateldd107952014-11-20 15:24:52 +05301230#ifdef WLAN_FEATURE_AP_HT40_24G
1231 tANI_BOOLEAN apHT40_24GEnabled;
1232 tANI_U32 channelBondingAPMode24GHz; // Use for SAP/P2P GO 2.4GHz channel Bonding
1233#endif
Sushant Kaushikc9682be2014-11-26 12:27:04 +05301234 tANI_U32 nOBSSScanWidthTriggerInterval;
Girish Gowli1c2fc802015-01-19 16:18:07 +05301235 tANI_U8 roamDelayStatsEnabled;
Sushant Kaushikae17dd62015-08-27 17:07:04 +05301236 tANI_BOOLEAN ignorePeerHTopMode;
Abhishek Singh795e1b82015-09-25 15:35:03 +05301237 tANI_BOOLEAN disableP2PMacSpoofing;
Abhishek Singh837adf22015-10-01 17:37:37 +05301238 tANI_BOOLEAN enableFatalEvent;
Gupta, Kapil01be56b2015-12-30 20:36:33 +05301239 tANI_U8 max_chan_for_dwell_time_cfg;
Abhishek Singh48cd3402016-03-30 15:20:19 +05301240 uint32_t enable_edca_params;
1241 uint32_t edca_vo_cwmin;
1242 uint32_t edca_vi_cwmin;
1243 uint32_t edca_bk_cwmin;
1244 uint32_t edca_be_cwmin;
1245 uint32_t edca_vo_cwmax;
1246 uint32_t edca_vi_cwmax;
1247 uint32_t edca_bk_cwmax;
1248 uint32_t edca_be_cwmax;
1249 uint32_t edca_vo_aifs;
1250 uint32_t edca_vi_aifs;
1251 uint32_t edca_bk_aifs;
1252 uint32_t edca_be_aifs;
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05301253 tANI_BOOLEAN disable_scan_during_sco;
Paul Zhang83289792017-02-28 18:58:52 +08001254 uint32_t sta_auth_retries_for_code17;
Ganesh Kondabattinie3ac17f2017-11-30 15:09:07 +05301255 uint32_t sta_sap_scc_on_dfs_chan;
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05301256 tANI_U8 agg_btc_sco_oui[3];
1257 tANI_U8 num_ba_buff_btc_sco;
1258 tANI_U8 num_ba_buff;
Yeshwanth Sriram Guntukad3a9fc52018-01-10 15:09:49 +05301259 bool force_scc_with_ecsa;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001260}tCsrConfigParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07001261
1262//Tush
1263typedef struct tagCsrUpdateConfigParam
1264{
1265 tCsr11dinfo Csr11dinfo;
1266}tCsrUpdateConfigParam;
1267
1268typedef struct tagCsrRoamInfo
1269{
1270 tCsrRoamProfile *pProfile; //may be NULL
1271 tSirBssDescription *pBssDesc; //May be NULL
1272 tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0
1273 tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0
1274 tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0
1275 tANI_U32 nFrameLength;
1276 tANI_U8 frameType;
1277 tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order
1278 //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where
1279 //each frame starts and ends.
1280 tANI_BOOLEAN fReassocReq; //set to true if for re-association
1281 tANI_BOOLEAN fReassocRsp; //set to true if for re-association
1282 tCsrBssid bssid;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001283 //Only valid in IBSS
Jeff Johnson295189b2012-06-20 16:38:30 -07001284 //this is the peers MAC address for eCSR_ROAM_RESULT_IBSS_NEW_PEER or PEER_DEPARTED
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001285 tCsrBssid peerMac;
Jeff Johnson295189b2012-06-20 16:38:30 -07001286 tSirResultCodes statusCode;
1287 tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec)
1288 tANI_U8 staId; // Peer stationId when connected
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001289 /*The DPU signatures will be sent eventually to TL to help it determine the
Jeff Johnson295189b2012-06-20 16:38:30 -07001290 association to which a packet belongs to*/
1291 /*Unicast DPU signature*/
1292 tANI_U8 ucastSig;
1293
1294 /*Broadcast DPU signature*/
1295 tANI_U8 bcastSig;
1296
1297 tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open)
1298 tANI_U8 sessionId;
1299 tANI_U8 rsnIELen;
1300 tANI_U8 *prsnIE;
1301
1302 tANI_U8 addIELen;
1303 tANI_U8 *paddIE;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001304
Jeff Johnson295189b2012-06-20 16:38:30 -07001305 union
1306 {
1307 tSirMicFailureInfo *pMICFailureInfo;
1308 tCsrRoamConnectedProfile *pConnectedProfile;
Jeff Johnson295189b2012-06-20 16:38:30 -07001309 tSirWPSPBCProbeReq *pWPSPBCProbeReq;
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +05301310 tSirLostLinkParamsInfo *pLostLinkParams;
Jeff Johnson295189b2012-06-20 16:38:30 -07001311 } u;
1312
Jeff Johnson295189b2012-06-20 16:38:30 -07001313 tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA
Hardik Kantilal Patel1ba630f2014-11-21 04:32:05 +05301314#ifdef WLAN_FEATURE_AP_HT40_24G
1315 tANI_BOOLEAN HT40MHzIntoEnabledSta; //set to true if 40 MHz Intolerant enabled STA
1316#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001317 tANI_U32 dtimPeriod;
Jeff Johnson295189b2012-06-20 16:38:30 -07001318
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001319#ifdef FEATURE_WLAN_ESE
1320 tANI_BOOLEAN isESEAssoc;
1321#ifdef FEATURE_WLAN_ESE_UPLOAD
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07001322 tSirTsmIE tsmIe;
1323 tANI_U32 timestamp[2];
1324 tANI_U16 tsmRoamDelay;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001325 tSirEseBcnReportRsp *pEseBcnReportRsp;
1326#endif /* FEATURE_WLAN_ESE_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -07001327#endif
Mukul Sharma9ca96b22014-11-15 19:40:04 +05301328
1329#ifdef WLAN_FEATURE_VOWIFI_11R
1330 tANI_BOOLEAN is11rAssoc;
1331#endif
1332
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001333 void* pRemainCtx;
Jeff Johnson295189b2012-06-20 16:38:30 -07001334 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07001335
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001336#ifdef FEATURE_WLAN_TDLS
1337 tANI_U8 staType;
1338#endif
1339
Jeff Johnson295189b2012-06-20 16:38:30 -07001340 // Required for indicating the frames to upper layer
1341 tANI_U32 beaconLength;
1342 tANI_U8* beaconPtr;
1343 tANI_U32 assocReqLength;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001344 tANI_U8* assocReqPtr;
Chilam NG571c65a2013-01-19 12:27:36 +05301345
1346 tANI_S8 rxRssi;
c_hpothu44ff4e02014-05-08 00:13:57 +05301347 tANI_U32 maxRateFlags;
Hardik Kantilal Patel81f76342014-11-14 12:45:26 -08001348#ifdef WLAN_FEATURE_AP_HT40_24G
1349 tpSirHT2040CoexInfoInd pSmeHT2040CoexInfoInd;
1350#endif
Anurag Chouhanbdb1fd62017-07-19 16:32:33 +05301351 tDot11fIEHTCaps ht_caps;
1352 tDot11fIEVHTCaps vht_caps;
1353 tDot11fIEhs20vendor_ie hs20vendor_ie;
1354 tDot11fIEVHTOperation vht_operation;
1355 tDot11fIEHTInfo ht_operation;
1356 bool reassoc;
Abhishek Singh550aa8c2017-10-30 17:34:53 +05301357 struct sir_channel_chanege_rsp *ap_chan_change_rsp;
Hanumanth Reddy Pothula57323632017-12-06 17:55:09 +05301358 tSirSmeChanInfo chan_info;
1359 tSirMacHTChannelWidth ch_width;
Jeff Johnson295189b2012-06-20 16:38:30 -07001360}tCsrRoamInfo;
1361
Jeff Johnson295189b2012-06-20 16:38:30 -07001362typedef struct tagCsrFreqScanInfo
1363{
1364 tANI_U32 nStartFreq; //in unit of MHz
1365 tANI_U32 nEndFreq; //in unit of MHz
1366 tSirScanType scanType;
1367}tCsrFreqScanInfo;
1368
1369
Jeff Johnson295189b2012-06-20 16:38:30 -07001370typedef struct sSirSmeAssocIndToUpperLayerCnf
1371{
1372 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1373 tANI_U16 length;
1374 tANI_U8 sessionId;
1375 tSirResultCodes statusCode;
1376 tSirMacAddr bssId; // Self BSSID
1377 tSirMacAddr peerMacAddr;
1378 tANI_U16 aid;
1379 tSirMacAddr alternateBssId;
1380 tANI_U8 alternateChannelId;
1381 tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA
1382 tSirRSNie rsnIE; // RSN IE received from peer
1383 tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE
1384 tANI_U8 reassocReq; //set to true if reassoc
Hardik Kantilal Patel1ba630f2014-11-21 04:32:05 +05301385#ifdef WLAN_FEATURE_AP_HT40_24G
1386 tANI_U8 HT40MHzIntoEnabledSta; //set to true if 40 MHz Intolerant enabled STA
1387#endif
Deepthi Gowriae6a1662015-10-12 12:59:37 +05301388 uint32_t rate_flags;
Hanumanth Reddy Pothula57323632017-12-06 17:55:09 +05301389 tSirSmeChanInfo chan_info;
1390 tSirMacHTChannelWidth ch_width;
1391 tDot11fIEHTCaps HTCaps;
1392 tDot11fIEVHTCaps VHTCaps;
Jeff Johnson295189b2012-06-20 16:38:30 -07001393} tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf;
Jeff Johnson295189b2012-06-20 16:38:30 -07001394
1395typedef struct tagCsrSummaryStatsInfo
1396{
1397 tANI_U32 retry_cnt[4];
1398 tANI_U32 multiple_retry_cnt[4];
1399 tANI_U32 tx_frm_cnt[4];
1400 //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt
1401 //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt
1402 tANI_U32 rx_frm_cnt;
1403 tANI_U32 frm_dup_cnt;
1404 tANI_U32 fail_cnt[4];
1405 tANI_U32 rts_fail_cnt;
1406 tANI_U32 ack_fail_cnt;
1407 tANI_U32 rts_succ_cnt;
1408 tANI_U32 rx_discard_cnt;
1409 tANI_U32 rx_error_cnt;
1410 tANI_U32 tx_byte_cnt;
1411
1412}tCsrSummaryStatsInfo;
1413
1414typedef struct tagCsrGlobalClassAStatsInfo
1415{
1416 tANI_U32 rx_frag_cnt;
1417 tANI_U32 promiscuous_rx_frag_cnt;
1418 //tANI_U32 rx_fcs_err;
1419 tANI_U32 rx_input_sensitivity;
1420 tANI_U32 max_pwr;
1421 //tANI_U32 default_pwr;
1422 tANI_U32 sync_fail_cnt;
1423 tANI_U32 tx_rate;
1424 //mcs index for HT20 and HT40 rates
1425 tANI_U32 mcs_index;
1426 //to defferentiate between HT20 and HT40 rates;short and long guard interval
1427 tANI_U32 tx_rate_flags;
1428
1429}tCsrGlobalClassAStatsInfo;
1430
1431typedef struct tagCsrGlobalClassBStatsInfo
1432{
1433 tANI_U32 uc_rx_wep_unencrypted_frm_cnt;
1434 tANI_U32 uc_rx_mic_fail_cnt;
1435 tANI_U32 uc_tkip_icv_err;
1436 tANI_U32 uc_aes_ccmp_format_err;
1437 tANI_U32 uc_aes_ccmp_replay_cnt;
1438 tANI_U32 uc_aes_ccmp_decrpt_err;
1439 tANI_U32 uc_wep_undecryptable_cnt;
1440 tANI_U32 uc_wep_icv_err;
1441 tANI_U32 uc_rx_decrypt_succ_cnt;
1442 tANI_U32 uc_rx_decrypt_fail_cnt;
1443 tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt;
1444 tANI_U32 mcbc_rx_mic_fail_cnt;
1445 tANI_U32 mcbc_tkip_icv_err;
1446 tANI_U32 mcbc_aes_ccmp_format_err;
1447 tANI_U32 mcbc_aes_ccmp_replay_cnt;
1448 tANI_U32 mcbc_aes_ccmp_decrpt_err;
1449 tANI_U32 mcbc_wep_undecryptable_cnt;
1450 tANI_U32 mcbc_wep_icv_err;
1451 tANI_U32 mcbc_rx_decrypt_succ_cnt;
1452 tANI_U32 mcbc_rx_decrypt_fail_cnt;
1453
1454}tCsrGlobalClassBStatsInfo;
1455
1456typedef struct tagCsrGlobalClassCStatsInfo
1457{
1458 tANI_U32 rx_amsdu_cnt;
1459 tANI_U32 rx_ampdu_cnt;
1460 tANI_U32 tx_20_frm_cnt;
1461 tANI_U32 rx_20_frm_cnt;
1462 tANI_U32 rx_mpdu_in_ampdu_cnt;
1463 tANI_U32 ampdu_delimiter_crc_err;
1464
1465}tCsrGlobalClassCStatsInfo;
1466
1467typedef struct tagCsrGlobalClassDStatsInfo
1468{
1469 tANI_U32 tx_uc_frm_cnt;
1470 tANI_U32 tx_mc_frm_cnt;
1471 tANI_U32 tx_bc_frm_cnt;
1472 tANI_U32 rx_uc_frm_cnt;
1473 tANI_U32 rx_mc_frm_cnt;
1474 tANI_U32 rx_bc_frm_cnt;
1475 tANI_U32 tx_uc_byte_cnt[4];
1476 tANI_U32 tx_mc_byte_cnt;
1477 tANI_U32 tx_bc_byte_cnt;
1478 tANI_U32 rx_uc_byte_cnt[4];
1479 tANI_U32 rx_mc_byte_cnt;
1480 tANI_U32 rx_bc_byte_cnt;
1481 tANI_U32 rx_byte_cnt;
1482 tANI_U32 num_rx_bytes_crc_ok;
1483 tANI_U32 rx_rate;
1484
1485}tCsrGlobalClassDStatsInfo;
1486
1487typedef struct tagCsrPerStaStatsInfo
1488{
1489 tANI_U32 tx_frag_cnt[4];
1490 tANI_U32 tx_ampdu_cnt;
1491 tANI_U32 tx_mpdu_in_ampdu_cnt;
1492} tCsrPerStaStatsInfo;
1493
1494typedef struct tagCsrRoamSetKey
1495{
1496 eCsrEncryptionType encType;
1497 tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx
1498 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1499 tANI_U8 paeRole; //0 for supplicant
1500 tANI_U8 keyId; // Kye index
1501 tANI_U16 keyLength; //Number of bytes containing the key in pKey
1502 tANI_U8 Key[CSR_MAX_KEY_LEN];
1503 tANI_U8 keyRsc[CSR_MAX_RSC_LEN];
1504} tCsrRoamSetKey;
1505
1506typedef struct tagCsrRoamRemoveKey
1507{
1508 eCsrEncryptionType encType;
1509 tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key
1510 tANI_U8 keyId; //key index
1511} tCsrRoamRemoveKey;
1512
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001513#ifdef FEATURE_WLAN_TDLS
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301514
1515typedef struct tagCsrLinkEstablishParams
1516{
1517 tSirMacAddr peerMac;
1518 tANI_U8 uapsdQueues;
Agarwal Ashish16020c42014-12-29 22:01:11 +05301519 tANI_U8 qos;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301520 tANI_U8 maxSp;
1521 tANI_U8 isBufSta;
Naresh Jayaramdff88f92014-02-12 21:44:29 +05301522 tANI_U8 isOffChannelSupported;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301523 tANI_U8 isResponder;
Naresh Jayaramdff88f92014-02-12 21:44:29 +05301524 tANI_U8 supportedChannelsLen;
1525 tANI_U8 supportedChannels[SIR_MAC_MAX_SUPP_CHANNELS];
1526 tANI_U8 supportedOperClassesLen;
1527 tANI_U8 supportedOperClasses[SIR_MAC_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05301528}tCsrTdlsLinkEstablishParams;
1529
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001530typedef struct tagCsrTdlsSendMgmt
1531{
1532 tSirMacAddr peerMac;
1533 tANI_U8 frameType;
1534 tANI_U8 dialog;
1535 tANI_U16 statusCode;
Hoonki Leea34dd892013-02-05 22:56:02 -08001536 tANI_U8 responder;
Pradeep Reddy POTTETIca171f82014-03-21 14:17:35 +05301537 tANI_U32 peerCapability;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001538 tANI_U8 *buf;
1539 tANI_U8 len;
1540
1541}tCsrTdlsSendMgmt;
1542
Mohit Khanna698ba2a2012-12-04 15:08:18 -08001543#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001544
1545typedef void * tScanResultHandle;
1546
1547#define CSR_INVALID_SCANRESULT_HANDLE (NULL)
1548
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001549#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1550typedef struct tagCsrHandoffRequest
1551{
1552 tCsrBssid bssid;
1553 tANI_U8 channel;
Selvaraj, Sridhar3714c4d2016-06-22 15:19:12 +05301554 /* To check if its a REASSOC or a FASTREASSOC IOCTL */
1555 tANI_U8 src;
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07001556}tCsrHandoffRequest;
1557#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001558
Selvaraj, Sridhar4fa15232016-06-18 12:27:25 +05301559typedef enum {
1560 REASSOC = 0,
1561 FASTREASSOC = 1,
1562 CONNECT_CMD_USERSPACE = 2,
1563} handoff_src;
1564
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001565#if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD)
1566typedef struct tagCsrEseBeaconReqParams
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08001567{
1568 tANI_U16 measurementToken;
1569 tANI_U8 channel;
1570 tANI_U8 scanMode;
1571 tANI_U16 measurementDuration;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001572} tCsrEseBeaconReqParams, *tpCsrEseBeaconReqParams;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08001573
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001574typedef struct tagCsrEseBeaconReq
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08001575{
1576 tANI_U8 numBcnReqIe;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001577 tCsrEseBeaconReqParams bcnReq[SIR_ESE_MAX_MEAS_IE_REQS];
1578} tCsrEseBeaconReq, *tpCsrEseBeaconReq;
1579#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -07001580
Hanumantha Reddy Pothulaf57da152014-10-31 13:02:08 +05301581struct tagCsrDelStaParams
1582{
1583 tCsrBssid peerMacAddr;
1584 u16 reason_code;
1585 u8 subtype;
1586};
1587
Padma, Santhosh Kumar98b5d252016-10-17 17:30:41 +05301588
1589/**
1590 * struct csr_set_tx_max_pwr_per_band - Req params to
1591 * set max tx power per band
1592 * @band: band for which power to be set
1593 * @power: power to set in dB
1594 */
1595struct csr_set_tx_max_pwr_per_band {
1596 eCsrBand band;
1597 tPowerdBm power;
1598};
1599
Jeff Johnson295189b2012-06-20 16:38:30 -07001600////////////////////////////////////////////Common SCAN starts
1601
1602//void *p2 -- the second context pass in for the caller
1603//***what if callback is called before requester gets the scanId??
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001604typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status);
Jeff Johnson295189b2012-06-20 16:38:30 -07001605
1606
1607
1608///////////////////////////////////////////Common Roam starts
1609
1610//pContext is the pContext passed in with the roam request
1611//pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and
1612// eRoamCmdResult for detail valid members. It may be NULL
1613//roamId is to identify the callback related roam request. 0 means unsolicit
1614//roamStatus is a flag indicating the status of the callback
1615//roamResult is the result
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001616typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId,
Jeff Johnson295189b2012-06-20 16:38:30 -07001617 eRoamCmdStatus roamStatus, eCsrRoamResult roamResult);
1618
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001619typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);
Jeff Johnson295189b2012-06-20 16:38:30 -07001620
1621/* ---------------------------------------------------------------------------
1622 \fn csrRoamGetNumPMKIDCache
1623 \brief return number of PMKID cache entries
1624 \return tANI_U32 - the number of PMKID cache entries
1625 -------------------------------------------------------------------------------*/
1626//tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal);
1627
1628/* ---------------------------------------------------------------------------
1629 \fn csrRoamGetPMKIDCache
1630 \brief return PMKID cache from CSR
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001631 \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 -07001632 needed or actually number in tPmkidCacheInfo.
1633 \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return
1634 \return eHalStatus - when fail, it usually means the buffer allocated is not big enough
1635 -------------------------------------------------------------------------------*/
1636//eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache);
1637
1638//pProfile - pointer to tCsrRoamProfile
1639#define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType)
1640#define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType)
1641#define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) )
1642#define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType)
1643#define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType)
1644#define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1645#define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1646#define CSR_IS_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07001647#define CSR_IS_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001648
1649//pProfile - pointer to tCsrRoamConnectedProfile
Jeff Johnson295189b2012-06-20 16:38:30 -07001650#define CSR_IS_CONN_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType )
Jeff Johnson295189b2012-06-20 16:38:30 -07001651#define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType )
1652#define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType )
1653#define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) )
1654
1655
1656
1657///////////////////////////////////////////Common Roam ends
1658
1659
Jeff Johnson295189b2012-06-20 16:38:30 -07001660/* ---------------------------------------------------------------------------
1661 \fn csrSetChannels
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001662 \brief HDD calls this function to change some global settings.
Jeff Johnson295189b2012-06-20 16:38:30 -07001663 caller must set the all fields or call csrGetConfigParam to prefill the fields.
1664 \param pParam - caller allocated memory
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001665 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001666 -------------------------------------------------------------------------------*/
1667
1668eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam );
1669
1670eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07001671
1672
1673//enum to string conversion for debug output
1674const char * get_eRoamCmdStatus_str(eRoamCmdStatus val);
1675const char * get_eCsrRoamResult_str(eCsrRoamResult val);
1676/* ---------------------------------------------------------------------------
1677 \fn csrSetPhyMode
1678 \brief HDD calls this function to set the phyMode.
1679 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1680 CSR.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001681 \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 -07001682 See eCsrPhyMode for definition
1683 \param eBand - specify the operational band (2.4, 5 or both)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001684 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
Jeff Johnson295189b2012-06-20 16:38:30 -07001685 a restart is needed to apply the change
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001686 \return eHalStatus
Jeff Johnson295189b2012-06-20 16:38:30 -07001687 -------------------------------------------------------------------------------*/
1688eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded);
1689
1690void csrDumpInit(tHalHandle hHal);
1691
1692
1693/*---------------------------------------------------------------------------
1694 This is the type for a link quality callback to be registered with SME
1695 for indications
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001696 Once the link quality has been indicated, subsequently, link indications are
Jeff Johnson295189b2012-06-20 16:38:30 -07001697 posted each time there is a CHANGE in link quality.
1698 *** If there is no change in link, there will be no indication ***
1699
1700 The indications may be based on one or more criteria internal to SME
1701 such as RSSI and PER.
1702
1703 \param ind - Indication being posted
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001704 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001705 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001706
Jeff Johnson295189b2012-06-20 16:38:30 -07001707---------------------------------------------------------------------------*/
1708typedef void (* csrRoamLinkQualityIndCallback)
1709 (eCsrRoamLinkQualityInd ind, void *pContext);
1710
1711
1712/*---------------------------------------------------------------------------
1713 This is the type for a statistics callback to be registered with SME
1714 for stats reporting
1715
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001716 Since the client requesting for the stats already know which class/type of
1717 stats it asked for, the callback will carry them in the rsp buffer
1718 (void * stats) whose size will be same as the size of requested stats &
Jeff Johnson295189b2012-06-20 16:38:30 -07001719 will be exactly in the same order requested in the stats mask from LSB to MSB
1720
1721 \param stats - stats rsp buffer sent back with the report
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001722 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001723 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001724
Jeff Johnson295189b2012-06-20 16:38:30 -07001725---------------------------------------------------------------------------*/
1726typedef void ( *tCsrStatsCallback) (void * stats, void *pContext);
1727
1728/*---------------------------------------------------------------------------
1729 This is the type for a rssi callback to be registered with SME
1730 for getting rssi
1731
1732 \param rssi - rssi
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001733 \param pContext - any user data given at callback registration.
Jeff Johnson295189b2012-06-20 16:38:30 -07001734 \return None
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001735
Jeff Johnson295189b2012-06-20 16:38:30 -07001736---------------------------------------------------------------------------*/
1737
1738typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext);
1739
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07001740
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001741#if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07001742/*---------------------------------------------------------------------------
1743 This is the type for a tsm stats callback to be registered with SME
1744 for getting tsm stats
1745
1746 \param tsmMetrics - tsmMetrics
1747 \param pContext - any user data given at callback registration.
1748 \return None
1749
1750---------------------------------------------------------------------------*/
1751
1752typedef void ( *tCsrTsmStatsCallback) (tAniTrafStrmMetrics tsmMetrics, tANI_U32 staId, void *pContext);
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001753#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07001754
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05301755/*---------------------------------------------------------------------------
1756 This is the type for a snr callback to be registered with SME
1757 for getting snr
1758
1759 \param snr
1760 \param pContext - any user data given at callback registration.
1761 \return None
1762
1763---------------------------------------------------------------------------*/
1764typedef void (*tCsrSnrCallback) (v_S7_t snr, tANI_U32 staId, void *pContext);
1765
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +05301766/*---------------------------------------------------------------------------
1767 This is the type for a get current antenna callback to be registered with SME
1768 for getting cuurently used antenna index
1769
1770 \param antennaId to be filled by firmware.
1771 \param pContext - any user data given at callback registration.
1772 \return None
1773
1774---------------------------------------------------------------------------*/
1775typedef void ( *tCsrAntennaIndexCallback) (int antennaId, void *pContext);
1776
1777
Jeff Johnson295189b2012-06-20 16:38:30 -07001778#ifdef WLAN_FEATURE_VOWIFI_11R
1779eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription);
1780#endif
1781
1782/*---------------------------------------------------------------------------
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001783 This is the function to change the Band configuraiton (ALL/2.4 GHZ/5 GHZ)
Jeff Johnson295189b2012-06-20 16:38:30 -07001784
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001785 \param hHal - handle to Hal context
Jeff Johnson295189b2012-06-20 16:38:30 -07001786 \param eBand - band value
1787 \return eHalStatus
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001788
Jeff Johnson295189b2012-06-20 16:38:30 -07001789---------------------------------------------------------------------------*/
1790eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand);
1791
1792/*---------------------------------------------------------------------------
1793 This is the function to get the current operating band value
1794 \param hHal - handl to Hal context
1795 \return eCsrband - band value
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001796
Jeff Johnson295189b2012-06-20 16:38:30 -07001797---------------------------------------------------------------------------*/
1798eCsrBand csrGetCurrentBand (tHalHandle hHal);
1799
Abhishek Singhe8ebb922017-11-01 13:30:26 +05301800/**
1801 * csrConvertCBIniValueToPhyCBState() - convert ini CB value to Phy CB val
1802 * @cb_ini_value: ini value of cb mode
1803 *
1804 * Return: phy CB val
1805 */
1806ePhyChanBondState csrConvertCBIniValueToPhyCBState(v_U32_t cb_ini_val);
Jeff Johnson295189b2012-06-20 16:38:30 -07001807#endif
1808