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