Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 2 | * 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 Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame] | 22 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 23 | * |
| 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 Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 42 | /** ------------------------------------------------------------------------- * |
| 43 | ------------------------------------------------------------------------- * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 44 | \file csrApi.h |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 45 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 46 | Exports and types for the Common Scan and Roaming Module interfaces. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 47 | |
| 48 | Copyright (C) 2006 Airgo Networks, Incorporated |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 49 | ========================================================================== */ |
| 50 | #ifndef CSRAPI_H__ |
| 51 | #define CSRAPI_H__ |
| 52 | |
| 53 | #include "sirApi.h" |
| 54 | #include "sirMacProtDef.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 55 | #include "csrLinkList.h" |
| 56 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 57 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 58 | { |
| 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 Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 84 | #ifdef WLAN_FEATURE_11W |
| 85 | eCSR_AUTH_TYPE_RSN_PSK_SHA256, |
| 86 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 87 | 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 Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 94 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 95 | { |
| 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 | ---------------------------------------------------------------------------*/ |
| 125 | typedef 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 | |
| 136 | typedef 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 Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 151 | #ifdef WLAN_FEATURE_11AC |
| 152 | eCSR_DOT11_MODE_11ac = 0x1000, |
| 153 | eCSR_DOT11_MODE_11ac_ONLY = 0x2000, |
| 154 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 155 | //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 Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 157 | eCSR_DOT11_MODE_AUTO = 0x4000, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 158 | |
| 159 | eCSR_NUM_PHY_MODE = 16, //specify the number of maximum bits for phyMode |
| 160 | }eCsrPhyMode; |
| 161 | |
| 162 | |
| 163 | typedef tANI_U8 tCsrBssid[WNI_CFG_BSSID_LEN]; |
| 164 | |
| 165 | typedef enum |
| 166 | { |
Varun Reddy Yeturu | 2cc7892 | 2013-04-10 11:50:02 -0700 | [diff] [blame] | 167 | eCSR_BSS_TYPE_NONE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 168 | eCSR_BSS_TYPE_INFRASTRUCTURE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 169 | eCSR_BSS_TYPE_INFRA_AP, // SoftAP AP |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 170 | 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 | |
| 179 | typedef 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 | |
| 192 | typedef enum { |
| 193 | eCSR_SCAN_RESULT_GET = 0, |
| 194 | eCSR_SCAN_RESULT_FLUSH = 1, //to delete all cached scan results |
| 195 | }eCsrScanResultCmd; |
| 196 | |
| 197 | typedef enum |
| 198 | { |
| 199 | eCSR_SCAN_SUCCESS, |
| 200 | eCSR_SCAN_FAILURE, |
| 201 | eCSR_SCAN_ABORT, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 202 | eCSR_SCAN_FOUND_PEER, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 203 | }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 | |
| 229 | typedef struct tagCsrChannelInfo |
| 230 | { |
| 231 | tANI_U8 numOfChannels; |
| 232 | tANI_U8 *ChannelList; //it will be an array of channels |
Madan Mohan Koyyalamudi | dd3c966 | 2012-11-09 17:39:30 -0800 | [diff] [blame] | 233 | }tCsrChannelInfo, *tpCsrChannelInfo; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 234 | |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 235 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
| 236 | typedef struct tagCsrCountryChannelInfo |
| 237 | { |
| 238 | tCsrChannelInfo countryValidChannelList; |
| 239 | tANI_U8 revision; /* KR 25, 25 is the country revision index |
| 240 | to the list of valid channels */ |
| 241 | }tCsrCountryChannelInfo, *tpCsrCountryChannelInfo; |
| 242 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 243 | typedef struct tagCsrSSIDInfo |
| 244 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 245 | tSirMacSSid SSID; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 246 | tANI_BOOLEAN handoffPermitted; |
| 247 | tANI_BOOLEAN ssidHidden; |
| 248 | }tCsrSSIDInfo; |
| 249 | |
| 250 | typedef struct tagCsrSSIDs |
| 251 | { |
| 252 | tANI_U32 numOfSSIDs; |
| 253 | tCsrSSIDInfo *SSIDList; //To be allocated for array of SSIDs |
| 254 | }tCsrSSIDs; |
| 255 | |
| 256 | typedef struct tagCsrBSSIDs |
| 257 | { |
| 258 | tANI_U32 numOfBSSIDs; |
| 259 | tCsrBssid *bssid; |
| 260 | }tCsrBSSIDs; |
| 261 | |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 262 | typedef struct tagCsrStaParams |
| 263 | { |
| 264 | tANI_U16 capability; |
| 265 | tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP]; |
| 266 | tANI_U8 supported_rates_len; |
| 267 | tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES]; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 268 | tANI_U8 htcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 269 | tSirHTCap HTCap; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 270 | tANI_U8 vhtcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 271 | tSirVHTCap VHTCap; |
| 272 | tANI_U8 uapsd_queues; |
| 273 | tANI_U8 max_sp; |
| 274 | }tCsrStaParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 275 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 276 | typedef struct tagCsrScanRequest |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 277 | { |
| 278 | tSirScanType scanType; |
| 279 | tCsrBssid bssid; |
| 280 | eCsrRoamBssType BSSType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 281 | tCsrSSIDs SSIDs; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 282 | tCsrChannelInfo ChannelInfo; |
| 283 | tANI_U32 minChnTime; //in units of milliseconds |
| 284 | tANI_U32 maxChnTime; //in units of milliseconds |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 285 | tANI_U32 minChnTimeBtc; //in units of milliseconds |
| 286 | tANI_U32 maxChnTimeBtc; //in units of milliseconds |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 287 | tANI_U32 restTime; //in units of milliseconds //ignored when not connected |
| 288 | tANI_U32 uIEFieldLen; |
| 289 | tANI_U8 *pIEField; |
| 290 | eCsrRequestType requestType; //11d scan or full scan |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 291 | tANI_BOOLEAN p2pSearch; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 292 | tANI_BOOLEAN skipDfsChnlInP2pSearch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 293 | }tCsrScanRequest; |
| 294 | |
| 295 | typedef struct tagCsrBGScanRequest |
| 296 | { |
| 297 | tSirScanType scanType; |
| 298 | tSirMacSSid SSID; |
| 299 | tCsrChannelInfo ChannelInfo; |
| 300 | tANI_U32 scanInterval; //in units of milliseconds |
| 301 | tANI_U32 minChnTime; //in units of milliseconds |
| 302 | tANI_U32 maxChnTime; //in units of milliseconds |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 303 | tANI_U32 minChnTimeBtc; //in units of milliseconds |
| 304 | tANI_U32 maxChnTimeBtc; //in units of milliseconds |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 305 | tANI_U32 restTime; //in units of milliseconds //ignored when not connected |
| 306 | tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected |
| 307 | tCsrBssid bssid; //how to use it?? Apple |
Srikant Kuppa | 866893f | 2012-12-27 17:28:14 -0800 | [diff] [blame] | 308 | }tCsrBGScanRequest, *tpCsrBGScanRequest; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 309 | |
| 310 | |
| 311 | typedef struct tagCsrScanResultInfo |
| 312 | { |
| 313 | //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS. |
| 314 | void *pvIes; |
| 315 | tAniSSID ssId; |
| 316 | v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value |
| 317 | //This member must be the last in the structure because the end of tSirBssDescription is an |
| 318 | // array with nonknown size at this time |
| 319 | tSirBssDescription BssDescriptor; |
| 320 | }tCsrScanResultInfo; |
| 321 | |
| 322 | typedef struct tagCsrEncryptionList |
| 323 | { |
| 324 | |
| 325 | tANI_U32 numEntries; |
| 326 | eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE]; |
| 327 | |
| 328 | }tCsrEncryptionList, *tpCsrEncryptionList; |
| 329 | |
| 330 | typedef struct tagCsrAuthList |
| 331 | { |
| 332 | tANI_U32 numEntries; |
| 333 | eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE]; |
| 334 | }tCsrAuthList, *tpCsrAuthList; |
| 335 | |
| 336 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 337 | typedef struct tagCsrMobilityDomainInfo |
| 338 | { |
| 339 | tANI_U8 mdiePresent; |
| 340 | tANI_U16 mobilityDomain; |
| 341 | } tCsrMobilityDomainInfo; |
| 342 | #endif |
| 343 | |
| 344 | #ifdef FEATURE_WLAN_CCX |
| 345 | typedef struct tagCsrCcxCckmInfo |
| 346 | { |
| 347 | tANI_U32 reassoc_req_num; |
| 348 | tANI_BOOLEAN krk_plumbed; |
| 349 | tANI_U8 krk[CSR_KRK_KEY_LEN]; |
| 350 | } tCsrCcxCckmInfo; |
| 351 | #endif |
| 352 | |
| 353 | |
| 354 | typedef struct tagCsrScanResultFilter |
| 355 | { |
| 356 | tCsrBSSIDs BSSIDs; //each bssid has a length of WNI_CFG_BSSID_LEN (6) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 357 | tCsrSSIDs SSIDs; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 358 | tCsrChannelInfo ChannelInfo; |
| 359 | tCsrAuthList authType; |
| 360 | tCsrEncryptionList EncryptionType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 361 | //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 362 | //put all supported encryption types in here |
| 363 | tCsrEncryptionList mcEncryptionType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 364 | eCsrRoamBssType BSSType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 365 | //this is a bit mask of all the needed phy mode defined in eCsrPhyMode |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 366 | tANI_U32 phyMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 367 | //If countryCode[0] is not 0, countryCode is checked independent of fCheckUnknownCountryCode |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 368 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; |
| 369 | tANI_U8 uapsd_mask; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 370 | /*For WPS filtering if true => auth and ecryption should be ignored*/ |
| 371 | tANI_BOOLEAN bWPSAssociation; |
| 372 | #if defined WLAN_FEATURE_VOWIFI |
| 373 | /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/ |
| 374 | tANI_BOOLEAN fMeasurement; |
| 375 | #endif |
| 376 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 377 | tCsrMobilityDomainInfo MDID; |
| 378 | #endif |
| 379 | tANI_BOOLEAN p2pResult; |
| 380 | }tCsrScanResultFilter; |
| 381 | |
| 382 | |
| 383 | typedef struct sCsrChnPower_ |
| 384 | { |
| 385 | tANI_U8 firstChannel; |
| 386 | tANI_U8 numChannels; |
| 387 | tANI_U8 maxtxPower; |
| 388 | }sCsrChnPower; |
| 389 | |
| 390 | |
| 391 | typedef struct sCsrChannel_ |
| 392 | { |
| 393 | tANI_U8 numChannels; |
| 394 | tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 395 | }sCsrChannel; |
| 396 | |
| 397 | |
| 398 | typedef struct tagCsr11dinfo |
| 399 | { |
| 400 | sCsrChannel Channels; |
| 401 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1]; |
| 402 | //max power channel list |
| 403 | sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 404 | }tCsr11dinfo; |
| 405 | |
| 406 | |
| 407 | typedef enum |
| 408 | { |
| 409 | eCSR_ROAM_CANCELLED = 1, |
| 410 | //this mean error happens before association_start or roaming_start is called. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 411 | eCSR_ROAM_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 412 | //a CSR trigger roaming operation starts, callback may get a pointer to tCsrConnectedProfile |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 413 | eCSR_ROAM_ROAMING_START, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 414 | //a CSR trigger roaming operation is completed |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 415 | eCSR_ROAM_ROAMING_COMPLETION, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 416 | //Connection completed status. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 417 | eCSR_ROAM_CONNECT_COMPLETION, |
| 418 | //an association or start_IBSS operation starts, |
| 419 | //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription |
| 420 | eCSR_ROAM_ASSOCIATION_START, |
| 421 | //a roaming operation is finish, see eCsrRoamResult for |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 422 | //possible data passed back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 423 | eCSR_ROAM_ASSOCIATION_COMPLETION, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 424 | eCSR_ROAM_DISASSOCIATED, |
| 425 | eCSR_ROAM_ASSOCIATION_FAILURE, |
| 426 | //when callback with this flag. callback gets a pointer to the BSS desc. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 427 | eCSR_ROAM_SHOULD_ROAM, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 428 | //A new candidate for PMKID is found |
| 429 | eCSR_ROAM_SCAN_FOUND_NEW_BSS, |
| 430 | //CSR is done lostlink roaming and still cannot reconnect |
| 431 | eCSR_ROAM_LOSTLINK, |
| 432 | //a link lost is detected. CSR starts roaming. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 433 | eCSR_ROAM_LOSTLINK_DETECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 434 | //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd |
| 435 | eCSR_ROAM_MIC_ERROR_IND, |
| 436 | eCSR_ROAM_IBSS_IND, //IBSS indications. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 437 | //Update the connection status, useful for IBSS: new peer added, network is active etc. |
| 438 | eCSR_ROAM_CONNECT_STATUS_UPDATE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 439 | eCSR_ROAM_GEN_INFO, |
| 440 | eCSR_ROAM_SET_KEY_COMPLETE, |
| 441 | eCSR_ROAM_REMOVE_KEY_COMPLETE, |
| 442 | eCSR_ROAM_IBSS_LEAVE, //IBSS indications. |
| 443 | //BSS in WDS mode status indication |
| 444 | eCSR_ROAM_WDS_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 445 | //BSS in SoftAP mode status indication |
| 446 | eCSR_ROAM_INFRA_IND, |
| 447 | eCSR_ROAM_WPS_PBC_PROBE_REQ_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 448 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 449 | eCSR_ROAM_FT_RESPONSE, |
| 450 | #endif |
| 451 | eCSR_ROAM_FT_START, |
| 452 | eCSR_ROAM_INDICATE_MGMT_FRAME, |
| 453 | eCSR_ROAM_REMAIN_CHAN_READY, |
| 454 | eCSR_ROAM_SEND_ACTION_CNF, |
| 455 | //this mean error happens before association_start or roaming_start is called. |
| 456 | eCSR_ROAM_SESSION_OPENED, |
| 457 | eCSR_ROAM_FT_REASSOC_FAILED, |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 458 | #ifdef FEATURE_WLAN_LFR |
| 459 | eCSR_ROAM_PMK_NOTIFY, |
| 460 | #endif |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 461 | #ifdef FEATURE_WLAN_TDLS |
| 462 | eCSR_ROAM_TDLS_STATUS_UPDATE, |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 463 | eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 464 | #endif |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 465 | eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 466 | eCSR_ROAM_SEND_P2P_STOP_BSS, //Stopbss triggered from SME due to different |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 467 | // beacon interval |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 468 | #ifdef WLAN_FEATURE_11W |
| 469 | eCSR_ROAM_UNPROT_MGMT_FRAME_IND, |
| 470 | #endif |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 471 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 472 | }eRoamCmdStatus; |
| 473 | |
| 474 | |
| 475 | //comment inside indicates what roaming callback gets |
| 476 | typedef enum |
| 477 | { |
| 478 | eCSR_ROAM_RESULT_NONE, |
| 479 | //this means no more action in CSR |
| 480 | //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION, tCsrRoamInfo's pBssDesc may pass back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 481 | eCSR_ROAM_RESULT_FAILURE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 482 | //Pass back pointer to tCsrRoamInfo |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 483 | eCSR_ROAM_RESULT_ASSOCIATED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 484 | eCSR_ROAM_RESULT_NOT_ASSOCIATED, |
| 485 | eCSR_ROAM_RESULT_MIC_FAILURE, |
| 486 | eCSR_ROAM_RESULT_FORCED, |
| 487 | eCSR_ROAM_RESULT_DISASSOC_IND, |
| 488 | eCSR_ROAM_RESULT_DEAUTH_IND, |
| 489 | eCSR_ROAM_RESULT_CAP_CHANGED, |
| 490 | //This means we starts an IBSS |
| 491 | //tCsrRoamInfo's pBssDesc may pass back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 492 | eCSR_ROAM_RESULT_IBSS_STARTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 493 | //START_BSS failed |
| 494 | //tCsrRoamInfo's pBssDesc may pass back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 495 | eCSR_ROAM_RESULT_IBSS_START_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 496 | eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 497 | eCSR_ROAM_RESULT_IBSS_JOIN_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 498 | eCSR_ROAM_RESULT_IBSS_CONNECT, |
| 499 | eCSR_ROAM_RESULT_IBSS_INACTIVE, |
| 500 | //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 501 | //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid |
| 502 | //If roamStatus is eCSR_ROAM_IBSS_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 503 | //the peer's MAC address in peerMacOrBssid and a beacon frame of the IBSS in pbFrames |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 504 | eCSR_ROAM_RESULT_IBSS_NEW_PEER, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 505 | //Peer departed from IBSS, Callback may get a pointer tSmeIbssPeerInd in pIbssPeerInd |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 506 | eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 507 | //Coalescing in the IBSS network (joined an IBSS network) |
| 508 | //Callback pass a BSSID in peerMacOrBssid |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 509 | eCSR_ROAM_RESULT_IBSS_COALESCED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 510 | //If roamStatus is eCSR_ROAM_ROAMING_START, callback may get a pointer to tCsrConnectedProfile used to connect. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 511 | eCSR_ROAM_RESULT_IBSS_STOP, |
| 512 | eCSR_ROAM_RESULT_LOSTLINK, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 513 | eCSR_ROAM_RESULT_MIC_ERROR_UNICAST, |
| 514 | eCSR_ROAM_RESULT_MIC_ERROR_GROUP, |
| 515 | eCSR_ROAM_RESULT_AUTHENTICATED, |
| 516 | eCSR_ROAM_RESULT_NEW_RSN_BSS, |
| 517 | #ifdef FEATURE_WLAN_WAPI |
| 518 | eCSR_ROAM_RESULT_NEW_WAPI_BSS, |
| 519 | #endif /* FEATURE_WLAN_WAPI */ |
| 520 | // WDS started successfully |
| 521 | eCSR_ROAM_RESULT_WDS_STARTED, |
| 522 | // WDS start failed |
| 523 | eCSR_ROAM_RESULT_WDS_START_FAILED, |
| 524 | // WDS stopped |
| 525 | eCSR_ROAM_RESULT_WDS_STOPPED, |
| 526 | // WDS joined successfully in STA mode |
| 527 | eCSR_ROAM_RESULT_WDS_ASSOCIATED, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 528 | // A station joined WDS AP |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 529 | eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND, |
| 530 | // WDS join failed in STA mode |
| 531 | eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED, |
| 532 | // WDS disassociated |
| 533 | eCSR_ROAM_RESULT_WDS_DISASSOCIATED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 534 | // INFRA started successfully |
| 535 | eCSR_ROAM_RESULT_INFRA_STARTED, |
| 536 | // INFRA start failed |
| 537 | eCSR_ROAM_RESULT_INFRA_START_FAILED, |
| 538 | // INFRA stopped |
| 539 | eCSR_ROAM_RESULT_INFRA_STOPPED, |
| 540 | // A station joining INFRA AP |
| 541 | eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND, |
| 542 | // A station joined INFRA AP |
| 543 | eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF, |
| 544 | // INFRA disassociated |
| 545 | eCSR_ROAM_RESULT_INFRA_DISASSOCIATED, |
| 546 | eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 547 | eCSR_ROAM_RESULT_SEND_ACTION_FAIL, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 548 | // peer rejected assoc because max assoc limit reached. callback gets pointer to peer |
| 549 | eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 550 | //Assoc rejected due to concurrent session running on a different channel |
| 551 | eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 552 | #ifdef FEATURE_WLAN_TDLS |
| 553 | eCSR_ROAM_RESULT_ADD_TDLS_PEER, |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 554 | eCSR_ROAM_RESULT_UPDATE_TDLS_PEER, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 555 | eCSR_ROAM_RESULT_DELETE_TDLS_PEER, |
Hoonki Lee | e6bfe94 | 2013-02-05 15:01:19 -0800 | [diff] [blame] | 556 | eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND, |
Gopichand Nakkala | 2a0a157 | 2013-02-10 21:39:16 -0800 | [diff] [blame] | 557 | eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 558 | #endif |
| 559 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 560 | }eCsrRoamResult; |
| 561 | |
| 562 | |
| 563 | |
| 564 | /*---------------------------------------------------------------------------- |
| 565 | List of link quality indications HDD can receive from SME |
| 566 | -----------------------------------------------------------------------------*/ |
| 567 | typedef enum |
| 568 | { |
| 569 | eCSR_ROAM_LINK_QUAL_MIN_IND = -1, |
| 570 | |
| 571 | eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */ |
| 572 | eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */ |
| 573 | eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */ |
| 574 | eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */ |
| 575 | |
| 576 | eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */ |
| 577 | |
| 578 | } eCsrRoamLinkQualityInd; |
| 579 | |
| 580 | typedef enum |
| 581 | { |
| 582 | eCSR_DISCONNECT_REASON_UNSPECIFIED = 0, |
| 583 | eCSR_DISCONNECT_REASON_MIC_ERROR, |
| 584 | eCSR_DISCONNECT_REASON_DISASSOC, |
| 585 | eCSR_DISCONNECT_REASON_DEAUTH, |
| 586 | eCSR_DISCONNECT_REASON_HANDOFF, |
| 587 | eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE, |
| 588 | eCSR_DISCONNECT_REASON_IBSS_LEAVE, |
| 589 | }eCsrRoamDisconnectReason; |
| 590 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 591 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 592 | { |
| 593 | // Not associated in Infra or participating in an IBSS / Ad-hoc network. |
| 594 | eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED, |
| 595 | // Associated in an Infrastructure network. |
| 596 | eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED, |
| 597 | // Participating in an IBSS network though disconnected (no partner stations |
| 598 | // in the IBSS). |
| 599 | eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED, |
| 600 | // Participating in an IBSS network with partner stations also present |
| 601 | eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED, |
| 602 | // Participating in a WDS network in AP or STA mode but not connected yet |
| 603 | eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED, |
| 604 | // Participating in a WDS network and connected peer to peer |
| 605 | eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 606 | // Participating in a Infra network in AP not yet in connected state |
| 607 | eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED, |
| 608 | // Participating in a Infra network and connected to a peer |
| 609 | eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 610 | |
| 611 | }eCsrConnectState; |
| 612 | |
| 613 | |
| 614 | // This parameter is no longer supported in the Profile. Need to set this in the global properties |
| 615 | // for the adapter. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 616 | typedef enum eCSR_MEDIUM_ACCESS |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 617 | { |
| 618 | eCSR_MEDIUM_ACCESS_AUTO = 0, |
| 619 | eCSR_MEDIUM_ACCESS_DCF, |
| 620 | eCSR_MEDIUM_ACCESS_eDCF, |
| 621 | eCSR_MEDIUM_ACCESS_HCF, |
| 622 | |
| 623 | eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p, |
| 624 | eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP, |
| 625 | eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify, |
| 626 | eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF, |
| 627 | eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF, |
| 628 | }eCsrMediaAccessType; |
| 629 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 630 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 631 | { |
| 632 | eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate. |
| 633 | |
| 634 | eCSR_TX_RATE_1Mbps = 0x00000001, |
| 635 | eCSR_TX_RATE_2Mbps = 0x00000002, |
| 636 | eCSR_TX_RATE_5_5Mbps = 0x00000004, |
| 637 | eCSR_TX_RATE_6Mbps = 0x00000008, |
| 638 | eCSR_TX_RATE_9Mbps = 0x00000010, |
| 639 | eCSR_TX_RATE_11Mbps = 0x00000020, |
| 640 | eCSR_TX_RATE_12Mbps = 0x00000040, |
| 641 | eCSR_TX_RATE_18Mbps = 0x00000080, |
| 642 | eCSR_TX_RATE_24Mbps = 0x00000100, |
| 643 | eCSR_TX_RATE_36Mbps = 0x00000200, |
| 644 | eCSR_TX_RATE_42Mbps = 0x00000400, |
| 645 | eCSR_TX_RATE_48Mbps = 0x00000800, |
| 646 | eCSR_TX_RATE_54Mbps = 0x00001000, |
| 647 | eCSR_TX_RATE_72Mbps = 0x00002000, |
| 648 | eCSR_TX_RATE_84Mbps = 0x00004000, |
| 649 | eCSR_TX_RATE_96Mbps = 0x00008000, |
| 650 | eCSR_TX_RATE_108Mbps = 0x00010000, |
| 651 | eCSR_TX_RATE_126Mbps = 0x00020000, |
| 652 | eCSR_TX_RATE_144Mbps = 0x00040000, |
| 653 | eCSR_TX_RATE_168Mbps = 0x00080000, |
| 654 | eCSR_TX_RATE_192Mbps = 0x00100000, |
| 655 | eCSR_TX_RATE_216Mbps = 0x00200000, |
| 656 | eCSR_TX_RATE_240Mbps = 0x00400000, |
| 657 | |
| 658 | }eCsrExposedTxRate; |
| 659 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 660 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 661 | { |
| 662 | eCSR_OPERATING_CHANNEL_ALL = 0, |
| 663 | eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL, |
| 664 | eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL, |
| 665 | }eOperationChannel; |
| 666 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 667 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 668 | { |
| 669 | eCSR_DOT11_FRAG_THRESH_AUTO = -1, |
| 670 | eCSR_DOT11_FRAG_THRESH_MIN = 256, |
| 671 | eCSR_DOT11_FRAG_THRESH_MAX = 2346, |
| 672 | eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000 |
| 673 | }eCsrDot11FragThresh; |
| 674 | |
| 675 | |
| 676 | //for channel bonding for ibss |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 677 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 678 | { |
| 679 | eCSR_CB_OFF = 0, |
| 680 | eCSR_CB_AUTO = 1, |
| 681 | eCSR_CB_DOWN = 2, |
| 682 | eCSR_CB_UP = 3, |
| 683 | }eCsrCBChoice; |
| 684 | |
| 685 | //For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode. |
| 686 | #define CSR_CB_CHANNEL_GAP 4 |
| 687 | #define CSR_CB_CENTER_CHANNEL_OFFSET 2 |
| 688 | #define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END ) |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 689 | #define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN ) |
| 690 | #define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 691 | |
| 692 | // WEP keysize (in bits)... |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 693 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 694 | { |
| 695 | eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP |
| 696 | eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP |
| 697 | |
| 698 | eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40, |
| 699 | eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104, |
| 700 | eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ), |
| 701 | }eCsrWEPKeySize; |
| 702 | |
| 703 | |
| 704 | // Possible values for the WEP static key ID... |
| 705 | typedef enum |
| 706 | { |
| 707 | |
| 708 | eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0, |
| 709 | eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3, |
| 710 | eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0, |
| 711 | |
| 712 | eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1, |
| 713 | |
| 714 | }eCsrWEPStaticKeyID; |
| 715 | |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 716 | // Two extra key indicies are used for the IGTK (which is used by BIP) |
| 717 | #define CSR_MAX_NUM_KEY (eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX + 2 + 1) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 718 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 719 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 720 | { |
| 721 | eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE, |
| 722 | eCSR_SECURITY_SET_KEY_ACTION_SET_KEY, |
| 723 | eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY, |
| 724 | }eCsrSetKeyAction; |
| 725 | |
| 726 | typedef enum |
| 727 | { |
| 728 | eCSR_BAND_ALL, |
| 729 | eCSR_BAND_24, |
| 730 | eCSR_BAND_5G, |
| 731 | eCSR_BAND_MAX, |
| 732 | }eCsrBand; |
| 733 | |
| 734 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 735 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 736 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 737 | // Roaming because HDD requested for reassoc by changing one of the fields in |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 738 | // tCsrRoamModifyProfileFields. OR |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 739 | // Roaming because SME requested for reassoc by changing one of the fields in |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 740 | // tCsrRoamModifyProfileFields. |
| 741 | eCsrRoamReasonStaCapabilityChanged, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 742 | // Roaming because SME requested for reassoc to a different AP, as part of |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 743 | // inter AP handoff. |
| 744 | eCsrRoamReasonBetterAP, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 745 | // Roaming because SME requested it as the link is lost - placeholder, will |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 746 | // clean it up once handoff code gets in |
| 747 | eCsrRoamReasonSmeIssuedForLostLink, |
| 748 | |
| 749 | }eCsrRoamReasonCodes; |
| 750 | |
| 751 | typedef enum |
| 752 | { |
| 753 | eCsrRoamWmmAuto = 0, |
| 754 | eCsrRoamWmmQbssOnly = 1, |
| 755 | eCsrRoamWmmNoQos = 2, |
| 756 | |
| 757 | } eCsrRoamWmmUserModeType; |
| 758 | |
| 759 | typedef enum |
| 760 | { |
| 761 | eCSR_REQUESTER_MIN = 0, |
| 762 | eCSR_DIAG, |
| 763 | eCSR_UMA_GAN, |
| 764 | eCSR_HDD |
| 765 | } eCsrStatsRequesterType; |
| 766 | |
| 767 | typedef struct tagPmkidCandidateInfo |
| 768 | { |
| 769 | tCsrBssid BSSID; |
| 770 | tANI_BOOLEAN preAuthSupported; |
| 771 | }tPmkidCandidateInfo; |
| 772 | |
| 773 | typedef struct tagPmkidCacheInfo |
| 774 | { |
| 775 | tCsrBssid BSSID; |
| 776 | tANI_U8 PMKID[CSR_RSN_PMKID_SIZE]; |
| 777 | }tPmkidCacheInfo; |
| 778 | |
| 779 | #ifdef FEATURE_WLAN_WAPI |
| 780 | typedef struct tagBkidCandidateInfo |
| 781 | { |
| 782 | tCsrBssid BSSID; |
| 783 | tANI_BOOLEAN preAuthSupported; |
| 784 | }tBkidCandidateInfo; |
| 785 | |
| 786 | typedef struct tagBkidCacheInfo |
| 787 | { |
| 788 | tCsrBssid BSSID; |
| 789 | tANI_U8 BKID[CSR_WAPI_BKID_SIZE]; |
| 790 | }tBkidCacheInfo; |
| 791 | #endif /* FEATURE_WLAN_WAPI */ |
| 792 | |
| 793 | typedef struct tagCsrKeys |
| 794 | { |
| 795 | tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set |
| 796 | tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ]; |
| 797 | tANI_U8 defaultIndex; |
| 798 | }tCsrKeys; |
| 799 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 800 | /* Following are fields which are part of tCsrRoamConnectedProfile might need |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 801 | modification dynamically once STA is up & running and this could trigger |
| 802 | reassoc */ |
| 803 | typedef struct tagCsrRoamModifyProfileFields |
| 804 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 805 | // during connect this specifies ACs U-APSD is to be setup |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 806 | // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored). |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 807 | // During assoc response this COULD carry confirmation of what ACs U-APSD |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 808 | // got setup for. Later if an APP looking for APSD, SME-QoS might need to |
| 809 | // modify this field |
| 810 | tANI_U8 uapsd_mask; |
| 811 | // HDD might ask to modify this field |
| 812 | tANI_U16 listen_interval; |
| 813 | }tCsrRoamModifyProfileFields; |
| 814 | |
| 815 | typedef struct tagCsrRoamProfile |
| 816 | { |
| 817 | //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs. |
| 818 | //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP |
| 819 | //that we need to join. Index 1 is the SSID for self BSS. |
| 820 | tCsrSSIDs SSIDs; |
| 821 | tCsrBSSIDs BSSIDs; |
| 822 | tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode |
| 823 | eCsrRoamBssType BSSType; |
| 824 | |
| 825 | tCsrAuthList AuthType; |
| 826 | eCsrAuthType negotiatedAuthType; |
| 827 | |
| 828 | tCsrEncryptionList EncryptionType; |
| 829 | //This field is for output only, not for input |
| 830 | eCsrEncryptionType negotiatedUCEncryptionType; |
| 831 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 832 | //eCSR_ENCRYPT_TYPE_ANY cannot be set in multicast encryption type. If caller doesn't case, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 833 | //put all supported encryption types in here |
| 834 | tCsrEncryptionList mcEncryptionType; |
| 835 | //This field is for output only, not for input |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 836 | eCsrEncryptionType negotiatedMCEncryptionType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 837 | |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 838 | #ifdef WLAN_FEATURE_11W |
| 839 | // Management Frame Protection |
| 840 | tANI_BOOLEAN MFPEnabled; |
| 841 | tANI_U8 MFPRequired; |
| 842 | tANI_U8 MFPCapable; |
| 843 | #endif |
| 844 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 845 | tCsrKeys Keys; |
| 846 | eCsrCBChoice CBMode; //up, down or auto |
| 847 | tCsrChannelInfo ChannelInfo; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 848 | tANI_U8 operationChannel; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 849 | tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 850 | // during connect this specifies ACs U-APSD is to be setup |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 851 | // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored). |
| 852 | // During assoc response this COULD carry confirmation of what ACs U-APSD got setup for |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 853 | tANI_U8 uapsd_mask; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 854 | tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE |
| 855 | tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA |
| 856 | tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE |
| 857 | tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN |
| 858 | #ifdef FEATURE_WLAN_WAPI |
| 859 | tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE |
| 860 | tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI |
| 861 | #endif /* FEATURE_WLAN_WAPI */ |
| 862 | |
| 863 | tANI_U32 nAddIEScanLength; //The byte count in the pAddIE for scan (at the time of join) |
| 864 | tANI_U8 *pAddIEScan; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 865 | tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 866 | tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE |
| 867 | |
| 868 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0. |
| 869 | /*WPS Association if true => auth and ecryption should be ignored*/ |
| 870 | tANI_BOOLEAN bWPSAssociation; |
| 871 | tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE |
| 872 | tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC |
| 873 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 874 | tANI_U8 ieee80211d; |
| 875 | tANI_U8 privacy; |
| 876 | tANI_BOOLEAN fwdWPSPBCProbeReq; |
| 877 | tAniAuthType csr80211AuthType; |
| 878 | tANI_U32 dtimPeriod; |
| 879 | tANI_BOOLEAN ApUapsdEnable; |
| 880 | tANI_BOOLEAN protEnabled; |
| 881 | tANI_BOOLEAN obssProtEnabled; |
| 882 | tANI_U16 cfg_protection; |
| 883 | tANI_U8 wps_state; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 884 | |
| 885 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 886 | tCsrMobilityDomainInfo MDID; |
| 887 | #endif |
| 888 | tVOS_CON_MODE csrPersona; |
| 889 | |
| 890 | }tCsrRoamProfile; |
| 891 | |
| 892 | |
| 893 | typedef struct tagCsrRoamConnectedProfile |
| 894 | { |
| 895 | tSirMacSSid SSID; |
| 896 | tANI_BOOLEAN handoffPermitted; |
| 897 | tANI_BOOLEAN ssidHidden; |
| 898 | tCsrBssid bssid; |
| 899 | eCsrRoamBssType BSSType; |
| 900 | eCsrAuthType AuthType; |
| 901 | tCsrAuthList AuthInfo; |
| 902 | eCsrEncryptionType EncryptionType; |
| 903 | tCsrEncryptionList EncryptionInfo; |
| 904 | eCsrEncryptionType mcEncryptionType; |
| 905 | tCsrEncryptionList mcEncryptionInfo; |
| 906 | eCsrCBChoice CBMode; //up, down or auto |
| 907 | tANI_U8 operationChannel; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 908 | tANI_U16 beaconInterval; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 909 | tCsrKeys Keys; |
| 910 | // meaningless on connect. It's an OUT param from CSR's point of view |
| 911 | // During assoc response carries the ACM bit-mask i.e. what |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 912 | // ACs have ACM=1 (if any), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 913 | // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored) |
| 914 | tANI_U8 acm_mask; |
| 915 | tCsrRoamModifyProfileFields modifyProfileFields; |
Madan Mohan Koyyalamudi | ea22cdc | 2012-10-18 21:02:23 -0700 | [diff] [blame] | 916 | tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc |
| 917 | 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 Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 918 | |
| 919 | tSirBssDescription *pBssDesc; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 920 | tANI_BOOLEAN qap; //AP supports QoS |
| 921 | tANI_BOOLEAN qosConnection; //A connection is QoS enabled |
| 922 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 923 | tCsrMobilityDomainInfo MDID; |
| 924 | #endif |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 925 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 926 | #ifdef FEATURE_WLAN_CCX |
| 927 | tCsrCcxCckmInfo ccxCckmInfo; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 928 | tANI_BOOLEAN isCCXAssoc; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 929 | #endif |
| 930 | }tCsrRoamConnectedProfile; |
| 931 | |
| 932 | |
| 933 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 934 | typedef struct tagCsr11rConfigParams |
| 935 | { |
| 936 | tANI_BOOLEAN IsFTResourceReqSupported; |
| 937 | } tCsr11rConfigParams; |
| 938 | #endif |
| 939 | |
| 940 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 941 | typedef struct tagCsrNeighborRoamConfigParams |
| 942 | { |
| 943 | |
| 944 | tANI_U32 nNeighborScanTimerPeriod; |
| 945 | tANI_U8 nNeighborLookupRssiThreshold; |
| 946 | tANI_U8 nNeighborReassocRssiThreshold; |
| 947 | tANI_U16 nNeighborScanMinChanTime; |
| 948 | tANI_U16 nNeighborScanMaxChanTime; |
| 949 | sCsrChannel neighborScanChanList; |
| 950 | tANI_U8 nMaxNeighborRetries; |
| 951 | tANI_U16 nNeighborResultsRefreshPeriod; |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 952 | tANI_U16 nEmptyScanRefreshPeriod; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 953 | }tCsrNeighborRoamConfigParams; |
| 954 | #endif |
| 955 | |
| 956 | typedef struct tagCsrConfigParam |
| 957 | { |
| 958 | tANI_U32 FragmentationThreshold; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 959 | tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState |
| 960 | tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 961 | eCsrPhyMode phyMode; |
| 962 | eCsrBand eBand; |
| 963 | tANI_U32 RTSThreshold; |
| 964 | tANI_U32 HeartbeatThresh50; |
| 965 | tANI_U32 HeartbeatThresh24; |
| 966 | eCsrCBChoice cbChoice; |
| 967 | eCsrBand bandCapability; //indicate hw capability |
| 968 | tANI_U32 bgScanInterval; |
| 969 | tANI_U16 TxRate; |
| 970 | eCsrRoamWmmUserModeType WMMSupportMode; |
| 971 | tANI_BOOLEAN Is11eSupportEnabled; |
| 972 | tANI_BOOLEAN Is11dSupportEnabled; |
| 973 | tANI_BOOLEAN Is11dSupportEnabledOriginal; |
| 974 | tANI_BOOLEAN Is11hSupportEnabled; |
| 975 | tANI_BOOLEAN shortSlotTime; |
| 976 | tANI_BOOLEAN ProprietaryRatesEnabled; |
| 977 | tANI_U8 AdHocChannel24; |
| 978 | tANI_U8 AdHocChannel5G; |
| 979 | tANI_U32 impsSleepTime; //in units of seconds |
| 980 | tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed |
| 981 | tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds |
| 982 | tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds |
| 983 | tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds, |
| 984 | tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds |
| 985 | tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming |
| 986 | tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category |
| 987 | tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode |
Mohit Khanna | 7ed53f0 | 2012-09-11 17:52:10 -0700 | [diff] [blame] | 988 | 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 |
| 989 | //at the moment, this flag is provided only to pass Wi-Fi Cert. 5.1.12 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 990 | tCsr11dinfo Csr11dinfo; |
| 991 | //Whether to limit the channels to the ones set in Csr11dInfo. If true, the opertaional |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 992 | //channels are limited to the default channel list. It is an "AND" operation between the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 993 | //default channels and the channels in the 802.11d IE. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 994 | tANI_BOOLEAN fEnforce11dChannels; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 995 | //Country Code Priority |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 996 | //0 = 802.11D > Country IOCTL > NV |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 997 | //1 = Country IOCTL > 802.11D > NV |
| 998 | tANI_BOOLEAN fSupplicantCountryCodeHasPriority; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 999 | //When true, AP with unknown country code won't be see. |
| 1000 | //"Unknown country code" means either Ap doesn't have 11d IE or we cannot |
| 1001 | //find a domain for the country code in its 11d IE. |
| 1002 | tANI_BOOLEAN fEnforceCountryCodeMatch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1003 | //When true, only APs in the default domain can be seen. If the Ap has "unknown country |
| 1004 | //code", or the domain of the country code doesn't match the default domain, the Ap is |
| 1005 | //not acceptable. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1006 | tANI_BOOLEAN fEnforceDefaultDomain; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1007 | |
| 1008 | tANI_U16 vccRssiThreshold; |
| 1009 | tANI_U32 vccUlMacLossThreshold; |
| 1010 | |
| 1011 | tANI_U32 nPassiveMinChnTime; //in units of milliseconds |
| 1012 | tANI_U32 nPassiveMaxChnTime; //in units of milliseconds |
| 1013 | tANI_U32 nActiveMinChnTime; //in units of milliseconds |
| 1014 | tANI_U32 nActiveMaxChnTime; //in units of milliseconds |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1015 | |
| 1016 | tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds |
| 1017 | tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 1018 | #ifdef WLAN_AP_STA_CONCURRENCY |
| 1019 | tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds |
| 1020 | tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds |
| 1021 | tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds |
| 1022 | tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds |
| 1023 | tANI_U32 nRestTimeConc; //in units of milliseconds |
Vinay Malekal | 05fdc81 | 2012-12-17 13:04:30 -0800 | [diff] [blame] | 1024 | tANI_U8 nNumChanCombinedConc; //number of channels combined |
| 1025 | //in each split scan operation |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 1026 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1027 | |
| 1028 | tANI_BOOLEAN IsIdleScanEnabled; |
| 1029 | //in dBm, the maximum TX power |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1030 | //The actual TX power is the lesser of this value and 11d. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1031 | //If 11d is disable, the lesser of this and default setting. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1032 | tANI_U8 nTxPowerCap; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1033 | tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power |
| 1034 | tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save |
| 1035 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1036 | tCsr11rConfigParams csr11rConfig; |
| 1037 | #endif |
| 1038 | #ifdef FEATURE_WLAN_CCX |
| 1039 | tANI_U8 isCcxIniFeatureEnabled; |
| 1040 | #endif |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1041 | #ifdef FEATURE_WLAN_LFR |
| 1042 | tANI_U8 isFastRoamIniFeatureEnabled; |
| 1043 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1044 | |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1045 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 1046 | tANI_U8 isFastTransitionEnabled; |
| 1047 | tANI_U8 RoamRssiDiff; |
| 1048 | tANI_U8 nImmediateRoamRssiDiff; |
| 1049 | tANI_BOOLEAN isWESModeEnabled; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1050 | #endif |
| 1051 | |
| 1052 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 1053 | tCsrNeighborRoamConfigParams neighborRoamConfig; |
| 1054 | #endif |
| 1055 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1056 | /* Instead of Reassoc, send ADDTS/DELTS even when ACM is off for that AC |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1057 | * This is mandated by WMM-AC certification */ |
| 1058 | tANI_BOOLEAN addTSWhenACMIsOff; |
| 1059 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1060 | |
| 1061 | /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1062 | * detect when it happens. Adding this into code because we can't reproduce it easily. |
| 1063 | * We don't know when it happens. */ |
| 1064 | tANI_BOOLEAN fValidateList; |
| 1065 | |
| 1066 | /*Customer wants to start with an active scan based on the default country code. |
| 1067 | * This optimization will minimize the driver load to association time. |
| 1068 | * Based on this flag we will bypass the initial passive scan needed for 11d |
| 1069 | * to determine the country code & domain */ |
| 1070 | tANI_BOOLEAN fEnableBypass11d; |
| 1071 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1072 | /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS |
| 1073 | * channels while swipping through both bands can save some time |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1074 | * (apprx 1.3 sec) */ |
| 1075 | tANI_BOOLEAN fEnableDFSChnlScan; |
| 1076 | |
| 1077 | //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD |
| 1078 | tANI_BOOLEAN fScanTwice; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1079 | #ifdef WLAN_FEATURE_11AC |
| 1080 | tANI_U32 nVhtChannelWidth; |
Shailender Karmuchi | 08f87c2 | 2013-01-17 12:51:24 -0800 | [diff] [blame] | 1081 | tANI_U8 enableTxBF; |
Shailender Karmuchi | cc3fe44 | 2013-02-16 18:18:33 -0800 | [diff] [blame] | 1082 | tANI_U8 txBFCsnValue; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1083 | #endif |
| 1084 | |
| 1085 | /* |
| 1086 | * To enable/disable scanning only 2.4Ghz channels on first scan |
| 1087 | */ |
| 1088 | tANI_BOOLEAN fFirstScanOnly2GChnl; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1089 | |
Madan Mohan Koyyalamudi | d502607 | 2012-11-30 14:56:21 -0800 | [diff] [blame] | 1090 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
| 1091 | tANI_BOOLEAN nRoamPrefer5GHz; |
Srinivas Girigowda | bbd16eb | 2013-03-21 12:34:46 -0700 | [diff] [blame] | 1092 | tANI_BOOLEAN nRoamIntraBand; |
Madan Mohan Koyyalamudi | d502607 | 2012-11-30 14:56:21 -0800 | [diff] [blame] | 1093 | #endif |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 1094 | |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1095 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 1096 | tANI_BOOLEAN isRoamOffloadScanEnabled; |
| 1097 | #endif |
| 1098 | |
Sandeep Puligilla | 2b6dc63 | 2012-12-17 14:44:16 -0800 | [diff] [blame] | 1099 | tANI_U8 scanCfgAgingTime; |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 1100 | |
| 1101 | tANI_U8 enableTxLdpc; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1102 | }tCsrConfigParam; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1103 | |
| 1104 | //Tush |
| 1105 | typedef struct tagCsrUpdateConfigParam |
| 1106 | { |
| 1107 | tCsr11dinfo Csr11dinfo; |
| 1108 | }tCsrUpdateConfigParam; |
| 1109 | |
| 1110 | typedef struct tagCsrRoamInfo |
| 1111 | { |
| 1112 | tCsrRoamProfile *pProfile; //may be NULL |
| 1113 | tSirBssDescription *pBssDesc; //May be NULL |
| 1114 | tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0 |
| 1115 | tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0 |
| 1116 | tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0 |
| 1117 | tANI_U32 nFrameLength; |
| 1118 | tANI_U8 frameType; |
| 1119 | tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order |
| 1120 | //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where |
| 1121 | //each frame starts and ends. |
| 1122 | tANI_BOOLEAN fReassocReq; //set to true if for re-association |
| 1123 | tANI_BOOLEAN fReassocRsp; //set to true if for re-association |
| 1124 | tCsrBssid bssid; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1125 | //Only valid in IBSS |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1126 | //this is the peers MAC address for eCSR_ROAM_RESULT_IBSS_NEW_PEER or PEER_DEPARTED |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1127 | tCsrBssid peerMac; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1128 | tSirResultCodes statusCode; |
| 1129 | tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec) |
| 1130 | tANI_U8 staId; // Peer stationId when connected |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1131 | /*The DPU signatures will be sent eventually to TL to help it determine the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1132 | association to which a packet belongs to*/ |
| 1133 | /*Unicast DPU signature*/ |
| 1134 | tANI_U8 ucastSig; |
| 1135 | |
| 1136 | /*Broadcast DPU signature*/ |
| 1137 | tANI_U8 bcastSig; |
| 1138 | |
| 1139 | tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open) |
| 1140 | tANI_U8 sessionId; |
| 1141 | tANI_U8 rsnIELen; |
| 1142 | tANI_U8 *prsnIE; |
| 1143 | |
| 1144 | tANI_U8 addIELen; |
| 1145 | tANI_U8 *paddIE; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1146 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1147 | union |
| 1148 | { |
| 1149 | tSirMicFailureInfo *pMICFailureInfo; |
| 1150 | tCsrRoamConnectedProfile *pConnectedProfile; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1151 | tSirWPSPBCProbeReq *pWPSPBCProbeReq; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1152 | } u; |
| 1153 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1154 | tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA |
| 1155 | tANI_U32 dtimPeriod; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1156 | |
| 1157 | #ifdef FEATURE_WLAN_CCX |
| 1158 | tANI_BOOLEAN isCCXAssoc; |
| 1159 | #endif |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1160 | void* pRemainCtx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1161 | tANI_U32 rxChan; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1162 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1163 | #ifdef FEATURE_WLAN_TDLS |
| 1164 | tANI_U8 staType; |
| 1165 | #endif |
| 1166 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1167 | // Required for indicating the frames to upper layer |
| 1168 | tANI_U32 beaconLength; |
| 1169 | tANI_U8* beaconPtr; |
| 1170 | tANI_U32 assocReqLength; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1171 | tANI_U8* assocReqPtr; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 1172 | |
| 1173 | tANI_S8 rxRssi; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1174 | }tCsrRoamInfo; |
| 1175 | |
| 1176 | |
| 1177 | |
| 1178 | |
| 1179 | |
| 1180 | typedef struct tagCsrFreqScanInfo |
| 1181 | { |
| 1182 | tANI_U32 nStartFreq; //in unit of MHz |
| 1183 | tANI_U32 nEndFreq; //in unit of MHz |
| 1184 | tSirScanType scanType; |
| 1185 | }tCsrFreqScanInfo; |
| 1186 | |
| 1187 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1188 | typedef struct sSirSmeAssocIndToUpperLayerCnf |
| 1189 | { |
| 1190 | tANI_U16 messageType; // eWNI_SME_ASSOC_CNF |
| 1191 | tANI_U16 length; |
| 1192 | tANI_U8 sessionId; |
| 1193 | tSirResultCodes statusCode; |
| 1194 | tSirMacAddr bssId; // Self BSSID |
| 1195 | tSirMacAddr peerMacAddr; |
| 1196 | tANI_U16 aid; |
| 1197 | tSirMacAddr alternateBssId; |
| 1198 | tANI_U8 alternateChannelId; |
| 1199 | tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA |
| 1200 | tSirRSNie rsnIE; // RSN IE received from peer |
| 1201 | tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE |
| 1202 | tANI_U8 reassocReq; //set to true if reassoc |
| 1203 | } tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1204 | |
| 1205 | typedef struct tagCsrSummaryStatsInfo |
| 1206 | { |
| 1207 | tANI_U32 retry_cnt[4]; |
| 1208 | tANI_U32 multiple_retry_cnt[4]; |
| 1209 | tANI_U32 tx_frm_cnt[4]; |
| 1210 | //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt |
| 1211 | //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt |
| 1212 | tANI_U32 rx_frm_cnt; |
| 1213 | tANI_U32 frm_dup_cnt; |
| 1214 | tANI_U32 fail_cnt[4]; |
| 1215 | tANI_U32 rts_fail_cnt; |
| 1216 | tANI_U32 ack_fail_cnt; |
| 1217 | tANI_U32 rts_succ_cnt; |
| 1218 | tANI_U32 rx_discard_cnt; |
| 1219 | tANI_U32 rx_error_cnt; |
| 1220 | tANI_U32 tx_byte_cnt; |
| 1221 | |
| 1222 | }tCsrSummaryStatsInfo; |
| 1223 | |
| 1224 | typedef struct tagCsrGlobalClassAStatsInfo |
| 1225 | { |
| 1226 | tANI_U32 rx_frag_cnt; |
| 1227 | tANI_U32 promiscuous_rx_frag_cnt; |
| 1228 | //tANI_U32 rx_fcs_err; |
| 1229 | tANI_U32 rx_input_sensitivity; |
| 1230 | tANI_U32 max_pwr; |
| 1231 | //tANI_U32 default_pwr; |
| 1232 | tANI_U32 sync_fail_cnt; |
| 1233 | tANI_U32 tx_rate; |
| 1234 | //mcs index for HT20 and HT40 rates |
| 1235 | tANI_U32 mcs_index; |
| 1236 | //to defferentiate between HT20 and HT40 rates;short and long guard interval |
| 1237 | tANI_U32 tx_rate_flags; |
| 1238 | |
| 1239 | }tCsrGlobalClassAStatsInfo; |
| 1240 | |
| 1241 | typedef struct tagCsrGlobalClassBStatsInfo |
| 1242 | { |
| 1243 | tANI_U32 uc_rx_wep_unencrypted_frm_cnt; |
| 1244 | tANI_U32 uc_rx_mic_fail_cnt; |
| 1245 | tANI_U32 uc_tkip_icv_err; |
| 1246 | tANI_U32 uc_aes_ccmp_format_err; |
| 1247 | tANI_U32 uc_aes_ccmp_replay_cnt; |
| 1248 | tANI_U32 uc_aes_ccmp_decrpt_err; |
| 1249 | tANI_U32 uc_wep_undecryptable_cnt; |
| 1250 | tANI_U32 uc_wep_icv_err; |
| 1251 | tANI_U32 uc_rx_decrypt_succ_cnt; |
| 1252 | tANI_U32 uc_rx_decrypt_fail_cnt; |
| 1253 | tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt; |
| 1254 | tANI_U32 mcbc_rx_mic_fail_cnt; |
| 1255 | tANI_U32 mcbc_tkip_icv_err; |
| 1256 | tANI_U32 mcbc_aes_ccmp_format_err; |
| 1257 | tANI_U32 mcbc_aes_ccmp_replay_cnt; |
| 1258 | tANI_U32 mcbc_aes_ccmp_decrpt_err; |
| 1259 | tANI_U32 mcbc_wep_undecryptable_cnt; |
| 1260 | tANI_U32 mcbc_wep_icv_err; |
| 1261 | tANI_U32 mcbc_rx_decrypt_succ_cnt; |
| 1262 | tANI_U32 mcbc_rx_decrypt_fail_cnt; |
| 1263 | |
| 1264 | }tCsrGlobalClassBStatsInfo; |
| 1265 | |
| 1266 | typedef struct tagCsrGlobalClassCStatsInfo |
| 1267 | { |
| 1268 | tANI_U32 rx_amsdu_cnt; |
| 1269 | tANI_U32 rx_ampdu_cnt; |
| 1270 | tANI_U32 tx_20_frm_cnt; |
| 1271 | tANI_U32 rx_20_frm_cnt; |
| 1272 | tANI_U32 rx_mpdu_in_ampdu_cnt; |
| 1273 | tANI_U32 ampdu_delimiter_crc_err; |
| 1274 | |
| 1275 | }tCsrGlobalClassCStatsInfo; |
| 1276 | |
| 1277 | typedef struct tagCsrGlobalClassDStatsInfo |
| 1278 | { |
| 1279 | tANI_U32 tx_uc_frm_cnt; |
| 1280 | tANI_U32 tx_mc_frm_cnt; |
| 1281 | tANI_U32 tx_bc_frm_cnt; |
| 1282 | tANI_U32 rx_uc_frm_cnt; |
| 1283 | tANI_U32 rx_mc_frm_cnt; |
| 1284 | tANI_U32 rx_bc_frm_cnt; |
| 1285 | tANI_U32 tx_uc_byte_cnt[4]; |
| 1286 | tANI_U32 tx_mc_byte_cnt; |
| 1287 | tANI_U32 tx_bc_byte_cnt; |
| 1288 | tANI_U32 rx_uc_byte_cnt[4]; |
| 1289 | tANI_U32 rx_mc_byte_cnt; |
| 1290 | tANI_U32 rx_bc_byte_cnt; |
| 1291 | tANI_U32 rx_byte_cnt; |
| 1292 | tANI_U32 num_rx_bytes_crc_ok; |
| 1293 | tANI_U32 rx_rate; |
| 1294 | |
| 1295 | }tCsrGlobalClassDStatsInfo; |
| 1296 | |
| 1297 | typedef struct tagCsrPerStaStatsInfo |
| 1298 | { |
| 1299 | tANI_U32 tx_frag_cnt[4]; |
| 1300 | tANI_U32 tx_ampdu_cnt; |
| 1301 | tANI_U32 tx_mpdu_in_ampdu_cnt; |
| 1302 | } tCsrPerStaStatsInfo; |
| 1303 | |
| 1304 | typedef struct tagCsrRoamSetKey |
| 1305 | { |
| 1306 | eCsrEncryptionType encType; |
| 1307 | tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx |
| 1308 | tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key |
| 1309 | tANI_U8 paeRole; //0 for supplicant |
| 1310 | tANI_U8 keyId; // Kye index |
| 1311 | tANI_U16 keyLength; //Number of bytes containing the key in pKey |
| 1312 | tANI_U8 Key[CSR_MAX_KEY_LEN]; |
| 1313 | tANI_U8 keyRsc[CSR_MAX_RSC_LEN]; |
| 1314 | } tCsrRoamSetKey; |
| 1315 | |
| 1316 | typedef struct tagCsrRoamRemoveKey |
| 1317 | { |
| 1318 | eCsrEncryptionType encType; |
| 1319 | tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key |
| 1320 | tANI_U8 keyId; //key index |
| 1321 | } tCsrRoamRemoveKey; |
| 1322 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1323 | #ifdef FEATURE_WLAN_TDLS |
| 1324 | typedef struct tagCsrTdlsSendMgmt |
| 1325 | { |
| 1326 | tSirMacAddr peerMac; |
| 1327 | tANI_U8 frameType; |
| 1328 | tANI_U8 dialog; |
| 1329 | tANI_U16 statusCode; |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 1330 | tANI_U8 responder; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1331 | tANI_U8 *buf; |
| 1332 | tANI_U8 len; |
| 1333 | |
| 1334 | }tCsrTdlsSendMgmt; |
| 1335 | |
| 1336 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 1337 | typedef struct tagCsrTdlsDisRequest |
| 1338 | { |
| 1339 | tSirMacAddr peerMac; |
| 1340 | tANI_U8 disType; |
| 1341 | }tCsrTdlsDisRequest; |
| 1342 | |
| 1343 | typedef struct tagCsrTdlsSetupRequest |
| 1344 | { |
| 1345 | tSirMacAddr peerMac; |
| 1346 | tANI_U8 linkIndex; |
| 1347 | }tCsrTdlsSetupRequest; |
| 1348 | |
| 1349 | typedef struct tagCsrTdlsTeardownRequest |
| 1350 | { |
| 1351 | tSirMacAddr peerMac; |
| 1352 | tANI_U8 linkIndex; |
| 1353 | }tCsrTdlsTeardownRequest ; |
| 1354 | #endif |
| 1355 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1356 | |
| 1357 | typedef void * tScanResultHandle; |
| 1358 | |
| 1359 | #define CSR_INVALID_SCANRESULT_HANDLE (NULL) |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | ////////////////////////////////////////////Common SCAN starts |
| 1364 | |
| 1365 | //void *p2 -- the second context pass in for the caller |
| 1366 | //***what if callback is called before requester gets the scanId?? |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1367 | typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1368 | |
| 1369 | |
| 1370 | |
| 1371 | ///////////////////////////////////////////Common Roam starts |
| 1372 | |
| 1373 | //pContext is the pContext passed in with the roam request |
| 1374 | //pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and |
| 1375 | // eRoamCmdResult for detail valid members. It may be NULL |
| 1376 | //roamId is to identify the callback related roam request. 0 means unsolicit |
| 1377 | //roamStatus is a flag indicating the status of the callback |
| 1378 | //roamResult is the result |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1379 | typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1380 | eRoamCmdStatus roamStatus, eCsrRoamResult roamResult); |
| 1381 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1382 | typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1383 | |
| 1384 | /* --------------------------------------------------------------------------- |
| 1385 | \fn csrRoamGetNumPMKIDCache |
| 1386 | \brief return number of PMKID cache entries |
| 1387 | \return tANI_U32 - the number of PMKID cache entries |
| 1388 | -------------------------------------------------------------------------------*/ |
| 1389 | //tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal); |
| 1390 | |
| 1391 | /* --------------------------------------------------------------------------- |
| 1392 | \fn csrRoamGetPMKIDCache |
| 1393 | \brief return PMKID cache from CSR |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1394 | \param pNum - caller allocated memory that has the space of the number of pBuf tPmkidCacheInfo as input. Upon returned, *pNum has the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1395 | needed or actually number in tPmkidCacheInfo. |
| 1396 | \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return |
| 1397 | \return eHalStatus - when fail, it usually means the buffer allocated is not big enough |
| 1398 | -------------------------------------------------------------------------------*/ |
| 1399 | //eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache); |
| 1400 | |
| 1401 | //pProfile - pointer to tCsrRoamProfile |
| 1402 | #define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType) |
| 1403 | #define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType) |
| 1404 | #define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) ) |
| 1405 | #define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType) |
| 1406 | #define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType) |
| 1407 | #define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType ) |
| 1408 | #define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType ) |
| 1409 | #define CSR_IS_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1410 | #define CSR_IS_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1411 | |
| 1412 | //pProfile - pointer to tCsrRoamConnectedProfile |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1413 | #define CSR_IS_CONN_INFRA_AP( pProfile ) ( eCSR_BSS_TYPE_INFRA_AP == (pProfile)->BSSType ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1414 | #define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType ) |
| 1415 | #define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType ) |
| 1416 | #define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) ) |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | ///////////////////////////////////////////Common Roam ends |
| 1421 | |
| 1422 | |
| 1423 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1424 | /* --------------------------------------------------------------------------- |
| 1425 | \fn csrSetChannels |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1426 | \brief HDD calls this function to change some global settings. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1427 | caller must set the all fields or call csrGetConfigParam to prefill the fields. |
| 1428 | \param pParam - caller allocated memory |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1429 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1430 | -------------------------------------------------------------------------------*/ |
| 1431 | |
| 1432 | eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam ); |
| 1433 | |
| 1434 | eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1435 | |
| 1436 | |
| 1437 | //enum to string conversion for debug output |
| 1438 | const char * get_eRoamCmdStatus_str(eRoamCmdStatus val); |
| 1439 | const char * get_eCsrRoamResult_str(eCsrRoamResult val); |
| 1440 | /* --------------------------------------------------------------------------- |
| 1441 | \fn csrSetPhyMode |
| 1442 | \brief HDD calls this function to set the phyMode. |
| 1443 | This function must be called after CFG is downloaded and all the band/mode setting already passed into |
| 1444 | CSR. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1445 | \param phyMode - indicate the phyMode needs to set to. The value has to be either 0, or some bits set. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1446 | See eCsrPhyMode for definition |
| 1447 | \param eBand - specify the operational band (2.4, 5 or both) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1448 | \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1449 | a restart is needed to apply the change |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1450 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1451 | -------------------------------------------------------------------------------*/ |
| 1452 | eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded); |
| 1453 | |
| 1454 | void csrDumpInit(tHalHandle hHal); |
| 1455 | |
| 1456 | |
| 1457 | /*--------------------------------------------------------------------------- |
| 1458 | This is the type for a link quality callback to be registered with SME |
| 1459 | for indications |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1460 | Once the link quality has been indicated, subsequently, link indications are |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1461 | posted each time there is a CHANGE in link quality. |
| 1462 | *** If there is no change in link, there will be no indication *** |
| 1463 | |
| 1464 | The indications may be based on one or more criteria internal to SME |
| 1465 | such as RSSI and PER. |
| 1466 | |
| 1467 | \param ind - Indication being posted |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1468 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1469 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1470 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1471 | ---------------------------------------------------------------------------*/ |
| 1472 | typedef void (* csrRoamLinkQualityIndCallback) |
| 1473 | (eCsrRoamLinkQualityInd ind, void *pContext); |
| 1474 | |
| 1475 | |
| 1476 | /*--------------------------------------------------------------------------- |
| 1477 | This is the type for a statistics callback to be registered with SME |
| 1478 | for stats reporting |
| 1479 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1480 | Since the client requesting for the stats already know which class/type of |
| 1481 | stats it asked for, the callback will carry them in the rsp buffer |
| 1482 | (void * stats) whose size will be same as the size of requested stats & |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1483 | will be exactly in the same order requested in the stats mask from LSB to MSB |
| 1484 | |
| 1485 | \param stats - stats rsp buffer sent back with the report |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1486 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1487 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1488 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1489 | ---------------------------------------------------------------------------*/ |
| 1490 | typedef void ( *tCsrStatsCallback) (void * stats, void *pContext); |
| 1491 | |
| 1492 | /*--------------------------------------------------------------------------- |
| 1493 | This is the type for a rssi callback to be registered with SME |
| 1494 | for getting rssi |
| 1495 | |
| 1496 | \param rssi - rssi |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1497 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1498 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1499 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1500 | ---------------------------------------------------------------------------*/ |
| 1501 | |
| 1502 | typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext); |
| 1503 | |
| 1504 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1505 | eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription); |
| 1506 | #endif |
| 1507 | |
| 1508 | /*--------------------------------------------------------------------------- |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1509 | This is the function to change the Band configuraiton (ALL/2.4 GHZ/5 GHZ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1510 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1511 | \param hHal - handle to Hal context |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1512 | \param eBand - band value |
| 1513 | \return eHalStatus |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1514 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1515 | ---------------------------------------------------------------------------*/ |
| 1516 | eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand); |
| 1517 | |
| 1518 | /*--------------------------------------------------------------------------- |
| 1519 | This is the function to get the current operating band value |
| 1520 | \param hHal - handl to Hal context |
| 1521 | \return eCsrband - band value |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1522 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1523 | ---------------------------------------------------------------------------*/ |
| 1524 | eCsrBand csrGetCurrentBand (tHalHandle hHal); |
| 1525 | |
| 1526 | #endif |
| 1527 | |