Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Rajeev Kumar Sirasanagandla | 2bb30b8 | 2019-01-07 22:30:16 +0530 | [diff] [blame] | 2 | * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved. |
Kiet Lam | 0fb93dd | 2014-02-19 00:32:59 -0800 | [diff] [blame] | 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 | |
| 22 | /* |
Kiet Lam | a7f454d | 2014-07-24 12:04:06 -0700 | [diff] [blame] | 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 26 | */ |
Kiet Lam | 0fb93dd | 2014-02-19 00:32:59 -0800 | [diff] [blame] | 27 | |
| 28 | |
Kiet Lam | a7f454d | 2014-07-24 12:04:06 -0700 | [diff] [blame] | 29 | |
| 30 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 31 | /** ------------------------------------------------------------------------- * |
| 32 | ------------------------------------------------------------------------- * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 33 | \file csrApi.h |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 34 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 35 | Exports and types for the Common Scan and Roaming Module interfaces. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 36 | ========================================================================== */ |
| 37 | #ifndef CSRAPI_H__ |
| 38 | #define CSRAPI_H__ |
| 39 | |
| 40 | #include "sirApi.h" |
| 41 | #include "sirMacProtDef.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 42 | #include "csrLinkList.h" |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 43 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 44 | { |
| 45 | eCSR_AUTH_TYPE_NONE, //never used |
| 46 | // MAC layer authentication types |
| 47 | eCSR_AUTH_TYPE_OPEN_SYSTEM, |
| 48 | eCSR_AUTH_TYPE_SHARED_KEY, |
Abhinav Kumar | 4d44f63 | 2019-08-02 13:55:54 +0530 | [diff] [blame] | 49 | eCSR_AUTH_TYPE_SAE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 50 | eCSR_AUTH_TYPE_AUTOSWITCH, |
| 51 | |
| 52 | // Upper layer authentication types |
| 53 | eCSR_AUTH_TYPE_WPA, |
| 54 | eCSR_AUTH_TYPE_WPA_PSK, |
| 55 | eCSR_AUTH_TYPE_WPA_NONE, |
| 56 | |
| 57 | eCSR_AUTH_TYPE_RSN, |
| 58 | eCSR_AUTH_TYPE_RSN_PSK, |
| 59 | #if defined WLAN_FEATURE_VOWIFI_11R |
| 60 | eCSR_AUTH_TYPE_FT_RSN, |
| 61 | eCSR_AUTH_TYPE_FT_RSN_PSK, |
| 62 | #endif |
| 63 | #ifdef FEATURE_WLAN_WAPI |
| 64 | eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE, |
| 65 | eCSR_AUTH_TYPE_WAPI_WAI_PSK, |
| 66 | #endif /* FEATURE_WLAN_WAPI */ |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 67 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 68 | eCSR_AUTH_TYPE_CCKM_WPA, |
| 69 | eCSR_AUTH_TYPE_CCKM_RSN, |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 70 | #endif /* FEATURE_WLAN_ESE */ |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 71 | #ifdef WLAN_FEATURE_11W |
| 72 | eCSR_AUTH_TYPE_RSN_PSK_SHA256, |
Abhishek Singh | ae40803 | 2014-09-25 17:22:04 +0530 | [diff] [blame] | 73 | eCSR_AUTH_TYPE_RSN_8021X_SHA256, |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 74 | #endif |
Abhinav Kumar | 487e49e | 2019-07-22 14:46:18 +0530 | [diff] [blame] | 75 | eCSR_AUTH_TYPE_OWE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 76 | eCSR_NUM_OF_SUPPORT_AUTH_TYPE, |
| 77 | eCSR_AUTH_TYPE_FAILED = 0xff, |
| 78 | eCSR_AUTH_TYPE_UNKNOWN = eCSR_AUTH_TYPE_FAILED, |
| 79 | |
| 80 | }eCsrAuthType; |
| 81 | |
| 82 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 83 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 84 | { |
| 85 | eCSR_ENCRYPT_TYPE_NONE, |
| 86 | eCSR_ENCRYPT_TYPE_WEP40_STATICKEY, |
| 87 | eCSR_ENCRYPT_TYPE_WEP104_STATICKEY, |
| 88 | |
| 89 | eCSR_ENCRYPT_TYPE_WEP40, |
| 90 | eCSR_ENCRYPT_TYPE_WEP104, |
| 91 | eCSR_ENCRYPT_TYPE_TKIP, |
| 92 | eCSR_ENCRYPT_TYPE_AES, |
| 93 | #ifdef FEATURE_WLAN_WAPI |
| 94 | eCSR_ENCRYPT_TYPE_WPI, //WAPI |
| 95 | #endif /* FEATURE_WLAN_WAPI */ |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 96 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 97 | eCSR_ENCRYPT_TYPE_KRK, |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 98 | #endif /* FEATURE_WLAN_ESE */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 99 | #ifdef WLAN_FEATURE_11W |
| 100 | //11w BIP |
| 101 | eCSR_ENCRYPT_TYPE_AES_CMAC, |
| 102 | #endif |
| 103 | eCSR_ENCRYPT_TYPE_ANY, |
| 104 | eCSR_NUM_OF_ENCRYPT_TYPE = eCSR_ENCRYPT_TYPE_ANY, |
| 105 | |
| 106 | eCSR_ENCRYPT_TYPE_FAILED = 0xff, |
| 107 | eCSR_ENCRYPT_TYPE_UNKNOWN = eCSR_ENCRYPT_TYPE_FAILED, |
| 108 | |
| 109 | }eCsrEncryptionType; |
| 110 | |
| 111 | /*--------------------------------------------------------------------------- |
| 112 | Enumeration of the various Security types |
| 113 | ---------------------------------------------------------------------------*/ |
| 114 | typedef enum |
| 115 | { |
| 116 | eCSR_SECURITY_TYPE_WPA, |
| 117 | eCSR_SECURITY_TYPE_RSN, |
| 118 | #ifdef FEATURE_WLAN_WAPI |
| 119 | eCSR_SECURITY_TYPE_WAPI, |
| 120 | #endif /* FEATURE_WLAN_WAPI */ |
| 121 | eCSR_SECURITY_TYPE_UNKNOWN, |
| 122 | |
| 123 | }eCsrSecurityType; |
| 124 | |
| 125 | typedef enum |
| 126 | { |
| 127 | eCSR_DOT11_MODE_TAURUS = 0, //This mean everything because it covers all thing we support |
| 128 | eCSR_DOT11_MODE_abg = 0x0001, //11a/b/g only, no HT, no proprietary |
| 129 | eCSR_DOT11_MODE_11a = 0x0002, |
| 130 | eCSR_DOT11_MODE_11b = 0x0004, |
| 131 | eCSR_DOT11_MODE_11g = 0x0008, |
| 132 | eCSR_DOT11_MODE_11n = 0x0010, |
| 133 | eCSR_DOT11_MODE_POLARIS = 0x0020, |
| 134 | eCSR_DOT11_MODE_TITAN = 0x0040, |
| 135 | eCSR_DOT11_MODE_11g_ONLY = 0x0080, |
| 136 | eCSR_DOT11_MODE_11n_ONLY = 0x0100, |
| 137 | eCSR_DOT11_MODE_TAURUS_ONLY = 0x0200, |
| 138 | eCSR_DOT11_MODE_11b_ONLY = 0x0400, |
| 139 | eCSR_DOT11_MODE_11a_ONLY = 0x0800, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 140 | #ifdef WLAN_FEATURE_11AC |
| 141 | eCSR_DOT11_MODE_11ac = 0x1000, |
| 142 | eCSR_DOT11_MODE_11ac_ONLY = 0x2000, |
| 143 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 144 | //This is for WIFI test. It is same as eWNIAPI_MAC_PROTOCOL_ALL except when it starts IBSS in 11B of 2.4GHz |
| 145 | //It is for CSR internal use |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 146 | eCSR_DOT11_MODE_AUTO = 0x4000, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 147 | |
| 148 | eCSR_NUM_PHY_MODE = 16, //specify the number of maximum bits for phyMode |
| 149 | }eCsrPhyMode; |
| 150 | |
| 151 | |
| 152 | typedef tANI_U8 tCsrBssid[WNI_CFG_BSSID_LEN]; |
| 153 | |
| 154 | typedef enum |
| 155 | { |
Varun Reddy Yeturu | 2cc7892 | 2013-04-10 11:50:02 -0700 | [diff] [blame] | 156 | eCSR_BSS_TYPE_NONE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 157 | eCSR_BSS_TYPE_INFRASTRUCTURE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 158 | eCSR_BSS_TYPE_INFRA_AP, // SoftAP AP |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 159 | eCSR_BSS_TYPE_IBSS, // an IBSS network we will NOT start |
| 160 | eCSR_BSS_TYPE_START_IBSS, // an IBSS network we will start if no partners detected. |
| 161 | eCSR_BSS_TYPE_WDS_AP, // BT-AMP AP |
| 162 | eCSR_BSS_TYPE_WDS_STA, // BT-AMP station |
| 163 | eCSR_BSS_TYPE_ANY, // any BSS type (IBSS or Infrastructure). |
| 164 | }eCsrRoamBssType; |
| 165 | |
| 166 | |
| 167 | |
| 168 | typedef enum { |
| 169 | eCSR_SCAN_REQUEST_11D_SCAN = 1, |
| 170 | eCSR_SCAN_REQUEST_FULL_SCAN, |
| 171 | eCSR_SCAN_IDLE_MODE_SCAN, |
| 172 | eCSR_SCAN_HO_BG_SCAN, // bg scan request in NRT & RT Handoff sub-states |
| 173 | eCSR_SCAN_HO_PROBE_SCAN, // directed probe on an entry from the candidate list |
| 174 | eCSR_SCAN_HO_NT_BG_SCAN, // bg scan request in NT sub-state |
| 175 | eCSR_SCAN_P2P_DISCOVERY, |
| 176 | |
| 177 | eCSR_SCAN_SOFTAP_CHANNEL_RANGE, |
| 178 | eCSR_SCAN_P2P_FIND_PEER, |
| 179 | }eCsrRequestType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 180 | typedef enum { |
| 181 | eCSR_SCAN_RESULT_GET = 0, |
| 182 | eCSR_SCAN_RESULT_FLUSH = 1, //to delete all cached scan results |
| 183 | }eCsrScanResultCmd; |
| 184 | |
| 185 | typedef enum |
| 186 | { |
| 187 | eCSR_SCAN_SUCCESS, |
| 188 | eCSR_SCAN_FAILURE, |
| 189 | eCSR_SCAN_ABORT, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 190 | eCSR_SCAN_FOUND_PEER, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 191 | }eCsrScanStatus; |
| 192 | |
Srinivas, Dasari | 138af4f | 2014-02-07 11:13:45 +0530 | [diff] [blame] | 193 | /* Reason to abort the scan |
| 194 | * The reason can used later to decide whether to update the scan results |
| 195 | * to upper layer or not |
| 196 | */ |
| 197 | typedef enum |
| 198 | { |
Ratheesh S P | ece1f83 | 2015-07-25 15:50:25 +0530 | [diff] [blame] | 199 | eCSR_SCAN_ABORT_DEFAULT = 1, |
Srinivas, Dasari | 138af4f | 2014-02-07 11:13:45 +0530 | [diff] [blame] | 200 | eCSR_SCAN_ABORT_DUE_TO_BAND_CHANGE, //Scan aborted due to band change |
| 201 | }eCsrAbortReason; |
| 202 | |
Hardik Kantilal Patel | dd10795 | 2014-11-20 15:24:52 +0530 | [diff] [blame] | 203 | typedef enum |
| 204 | { |
| 205 | eCSR_INI_SINGLE_CHANNEL_CENTERED = 0, |
| 206 | eCSR_INI_DOUBLE_CHANNEL_HIGH_PRIMARY, |
| 207 | eCSR_INI_DOUBLE_CHANNEL_LOW_PRIMARY, |
| 208 | #ifdef WLAN_FEATURE_11AC |
| 209 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED, |
| 210 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED, |
| 211 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED, |
| 212 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW, |
| 213 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW, |
| 214 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH, |
| 215 | eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH, |
| 216 | #endif |
| 217 | eCSR_INI_CHANNEL_BONDING_STATE_MAX |
| 218 | }eIniChanBondState; |
| 219 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 220 | #define CSR_SCAN_TIME_DEFAULT 0 |
| 221 | #define CSR_VALUE_IGNORED 0xFFFFFFFF |
| 222 | #define CSR_RSN_PMKID_SIZE 16 |
Abhinav Kumar | 8c12259 | 2019-08-07 15:43:20 +0530 | [diff] [blame] | 223 | #define CSR_RSN_MAX_PMK_LEN 48 |
Kanchanapally, Vidyullatha | 2633ace | 2014-09-25 15:16:50 +0530 | [diff] [blame] | 224 | #define CSR_MAX_PMKID_ALLOWED 32 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 225 | #define CSR_WEP40_KEY_LEN 5 |
| 226 | #define CSR_WEP104_KEY_LEN 13 |
| 227 | #define CSR_TKIP_KEY_LEN 32 |
| 228 | #define CSR_AES_KEY_LEN 16 |
| 229 | #define CSR_MAX_TX_POWER ( WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX ) |
| 230 | #define CSR_MAX_RSC_LEN 16 |
| 231 | #ifdef FEATURE_WLAN_WAPI |
| 232 | #define CSR_WAPI_BKID_SIZE 16 |
| 233 | #define CSR_MAX_BKID_ALLOWED 16 |
| 234 | #define CSR_WAPI_KEY_LEN 32 |
| 235 | #define CSR_MAX_KEY_LEN ( CSR_WAPI_KEY_LEN ) //longest one is for WAPI |
| 236 | #else |
| 237 | #define CSR_MAX_KEY_LEN ( CSR_TKIP_KEY_LEN ) //longest one is for TKIP |
| 238 | #endif /* FEATURE_WLAN_WAPI */ |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 239 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 240 | #define CSR_KRK_KEY_LEN 16 |
| 241 | #endif |
| 242 | |
| 243 | |
| 244 | |
| 245 | typedef struct tagCsrChannelInfo |
| 246 | { |
| 247 | tANI_U8 numOfChannels; |
| 248 | tANI_U8 *ChannelList; //it will be an array of channels |
Madan Mohan Koyyalamudi | dd3c966 | 2012-11-09 17:39:30 -0800 | [diff] [blame] | 249 | }tCsrChannelInfo, *tpCsrChannelInfo; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 250 | |
| 251 | typedef struct tagCsrSSIDInfo |
| 252 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 253 | tSirMacSSid SSID; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 254 | tANI_BOOLEAN handoffPermitted; |
| 255 | tANI_BOOLEAN ssidHidden; |
| 256 | }tCsrSSIDInfo; |
| 257 | |
| 258 | typedef struct tagCsrSSIDs |
| 259 | { |
| 260 | tANI_U32 numOfSSIDs; |
| 261 | tCsrSSIDInfo *SSIDList; //To be allocated for array of SSIDs |
| 262 | }tCsrSSIDs; |
| 263 | |
| 264 | typedef struct tagCsrBSSIDs |
| 265 | { |
| 266 | tANI_U32 numOfBSSIDs; |
| 267 | tCsrBssid *bssid; |
| 268 | }tCsrBSSIDs; |
| 269 | |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 270 | typedef struct tagCsrStaParams |
| 271 | { |
| 272 | tANI_U16 capability; |
| 273 | tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP]; |
| 274 | tANI_U8 supported_rates_len; |
| 275 | tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES]; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 276 | tANI_U8 htcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 277 | tSirHTCap HTCap; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 278 | tANI_U8 vhtcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 279 | tSirVHTCap VHTCap; |
| 280 | tANI_U8 uapsd_queues; |
| 281 | tANI_U8 max_sp; |
Naresh Jayaram | dff88f9 | 2014-02-12 21:44:29 +0530 | [diff] [blame] | 282 | tANI_U8 supported_channels_len; |
| 283 | tANI_U8 supported_channels[SIR_MAC_MAX_SUPP_CHANNELS]; |
| 284 | tANI_U8 supported_oper_classes_len; |
| 285 | tANI_U8 supported_oper_classes[SIR_MAC_MAX_SUPP_OPER_CLASSES]; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 286 | }tCsrStaParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 287 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 288 | typedef struct tagCsrScanRequest |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 289 | { |
| 290 | tSirScanType scanType; |
| 291 | tCsrBssid bssid; |
| 292 | eCsrRoamBssType BSSType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 293 | tCsrSSIDs SSIDs; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 294 | tCsrChannelInfo ChannelInfo; |
| 295 | tANI_U32 minChnTime; //in units of milliseconds |
| 296 | tANI_U32 maxChnTime; //in units of milliseconds |
Abhishek Singh | 3a93ee4 | 2016-09-29 17:00:03 +0530 | [diff] [blame] | 297 | tANI_U32 min_chntime_btc_esco; //in units of milliseconds |
| 298 | tANI_U32 max_chntime_btc_esco; //in units of milliseconds |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 299 | tANI_U32 restTime; //in units of milliseconds //ignored when not connected |
| 300 | tANI_U32 uIEFieldLen; |
| 301 | tANI_U8 *pIEField; |
Rajeev Kumar Sirasanagandla | 2bb30b8 | 2019-01-07 22:30:16 +0530 | [diff] [blame] | 302 | bool scan_randomize; |
| 303 | bool nl_scan; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 304 | eCsrRequestType requestType; //11d scan or full scan |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 305 | tANI_BOOLEAN p2pSearch; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 306 | tANI_BOOLEAN skipDfsChnlInP2pSearch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 307 | }tCsrScanRequest; |
| 308 | |
| 309 | typedef struct tagCsrBGScanRequest |
| 310 | { |
| 311 | tSirScanType scanType; |
| 312 | tSirMacSSid SSID; |
| 313 | tCsrChannelInfo ChannelInfo; |
| 314 | tANI_U32 scanInterval; //in units of milliseconds |
| 315 | tANI_U32 minChnTime; //in units of milliseconds |
| 316 | tANI_U32 maxChnTime; //in units of milliseconds |
Abhishek Singh | 3a93ee4 | 2016-09-29 17:00:03 +0530 | [diff] [blame] | 317 | tANI_U32 min_chntime_btc_esco; //in units of milliseconds |
| 318 | tANI_U32 max_chntime_btc_esco; //in units of milliseconds |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 319 | tANI_U32 restTime; //in units of milliseconds //ignored when not connected |
| 320 | tANI_U32 throughputImpact; //specify whether BG scan cares about impacting throughput //ignored when not connected |
| 321 | tCsrBssid bssid; //how to use it?? Apple |
Srikant Kuppa | 866893f | 2012-12-27 17:28:14 -0800 | [diff] [blame] | 322 | }tCsrBGScanRequest, *tpCsrBGScanRequest; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 323 | |
| 324 | |
| 325 | typedef struct tagCsrScanResultInfo |
| 326 | { |
| 327 | //Carry the IEs for the current BSSDescription. A pointer to tDot11fBeaconIEs. Maybe NULL for start BSS. |
| 328 | void *pvIes; |
| 329 | tAniSSID ssId; |
| 330 | v_TIME_t timer; // timer is variable which is used for hidden SSID's timer value |
| 331 | //This member must be the last in the structure because the end of tSirBssDescription is an |
| 332 | // array with nonknown size at this time |
| 333 | tSirBssDescription BssDescriptor; |
| 334 | }tCsrScanResultInfo; |
| 335 | |
| 336 | typedef struct tagCsrEncryptionList |
| 337 | { |
| 338 | |
| 339 | tANI_U32 numEntries; |
| 340 | eCsrEncryptionType encryptionType[eCSR_NUM_OF_ENCRYPT_TYPE]; |
| 341 | |
| 342 | }tCsrEncryptionList, *tpCsrEncryptionList; |
| 343 | |
| 344 | typedef struct tagCsrAuthList |
| 345 | { |
| 346 | tANI_U32 numEntries; |
| 347 | eCsrAuthType authType[eCSR_NUM_OF_SUPPORT_AUTH_TYPE]; |
| 348 | }tCsrAuthList, *tpCsrAuthList; |
| 349 | |
| 350 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 351 | typedef struct tagCsrMobilityDomainInfo |
| 352 | { |
| 353 | tANI_U8 mdiePresent; |
| 354 | tANI_U16 mobilityDomain; |
| 355 | } tCsrMobilityDomainInfo; |
| 356 | #endif |
| 357 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 358 | #ifdef FEATURE_WLAN_ESE |
| 359 | typedef struct tagCsrEseCckmInfo |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 360 | { |
| 361 | tANI_U32 reassoc_req_num; |
| 362 | tANI_BOOLEAN krk_plumbed; |
| 363 | tANI_U8 krk[CSR_KRK_KEY_LEN]; |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 364 | } tCsrEseCckmInfo; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 365 | #endif |
| 366 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 367 | #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD) |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 368 | #define CSR_DOT11F_IE_RSN_MAX_LEN (114) /*TODO: duplicate one in dot11f.h */ |
| 369 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 370 | typedef struct tagCsrEseCckmIe |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 371 | { |
| 372 | tANI_U8 cckmIe[CSR_DOT11F_IE_RSN_MAX_LEN]; |
| 373 | tANI_U8 cckmIeLen; |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 374 | } tCsrEseCckmIe; |
| 375 | #endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 376 | |
| 377 | typedef struct tagCsrScanResultFilter |
| 378 | { |
| 379 | 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] | 380 | tCsrSSIDs SSIDs; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 381 | tCsrChannelInfo ChannelInfo; |
| 382 | tCsrAuthList authType; |
| 383 | tCsrEncryptionList EncryptionType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 384 | //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] | 385 | //put all supported encryption types in here |
| 386 | tCsrEncryptionList mcEncryptionType; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 387 | eCsrRoamBssType BSSType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 388 | //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] | 389 | tANI_U32 phyMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 390 | //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] | 391 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; |
| 392 | tANI_U8 uapsd_mask; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 393 | /*For WPS filtering if true => auth and ecryption should be ignored*/ |
| 394 | tANI_BOOLEAN bWPSAssociation; |
Leela Venkata Kiran Kumar Reddy Chirala | f257bef | 2014-04-11 18:48:12 -0700 | [diff] [blame] | 395 | tANI_BOOLEAN bOSENAssociation; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 396 | #if defined WLAN_FEATURE_VOWIFI |
| 397 | /*For measurement reports --> if set, only SSID, BSSID and channel is considered for filtering.*/ |
| 398 | tANI_BOOLEAN fMeasurement; |
| 399 | #endif |
| 400 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 401 | tCsrMobilityDomainInfo MDID; |
| 402 | #endif |
| 403 | tANI_BOOLEAN p2pResult; |
Abhishek Singh | 3b56d3a | 2014-06-25 12:37:39 +0530 | [diff] [blame] | 404 | #ifdef WLAN_FEATURE_11W |
| 405 | // Management Frame Protection |
| 406 | tANI_BOOLEAN MFPEnabled; |
| 407 | tANI_U8 MFPRequired; |
| 408 | tANI_U8 MFPCapable; |
| 409 | #endif |
Kapil Gupta | 04ab199 | 2016-06-26 13:36:51 +0530 | [diff] [blame] | 410 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 411 | tANI_BOOLEAN isPERRoamScan; |
| 412 | #endif |
Abhishek Singh | b3e376c | 2017-01-04 15:27:13 +0530 | [diff] [blame] | 413 | tCsrBssid bssid_hint; |
Pragaspathi Thilagaraj | a241996 | 2018-06-19 01:41:11 +0530 | [diff] [blame] | 414 | bool ignore_pmf_cap; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 415 | }tCsrScanResultFilter; |
| 416 | |
| 417 | |
| 418 | typedef struct sCsrChnPower_ |
| 419 | { |
| 420 | tANI_U8 firstChannel; |
| 421 | tANI_U8 numChannels; |
| 422 | tANI_U8 maxtxPower; |
| 423 | }sCsrChnPower; |
| 424 | |
| 425 | |
| 426 | typedef struct sCsrChannel_ |
| 427 | { |
| 428 | tANI_U8 numChannels; |
| 429 | tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 430 | }sCsrChannel; |
| 431 | |
| 432 | |
| 433 | typedef struct tagCsr11dinfo |
| 434 | { |
| 435 | sCsrChannel Channels; |
| 436 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN+1]; |
| 437 | //max power channel list |
| 438 | sCsrChnPower ChnPower[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 439 | }tCsr11dinfo; |
| 440 | |
| 441 | |
| 442 | typedef enum |
| 443 | { |
| 444 | eCSR_ROAM_CANCELLED = 1, |
| 445 | //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] | 446 | eCSR_ROAM_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 447 | //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] | 448 | eCSR_ROAM_ROAMING_START, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 449 | //a CSR trigger roaming operation is completed |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 450 | eCSR_ROAM_ROAMING_COMPLETION, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 451 | //Connection completed status. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 452 | eCSR_ROAM_CONNECT_COMPLETION, |
| 453 | //an association or start_IBSS operation starts, |
| 454 | //callback may get a pointer to tCsrRoamProfile and a pointer to tSirBssDescription |
| 455 | eCSR_ROAM_ASSOCIATION_START, |
| 456 | //a roaming operation is finish, see eCsrRoamResult for |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 457 | //possible data passed back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 458 | eCSR_ROAM_ASSOCIATION_COMPLETION, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 459 | eCSR_ROAM_DISASSOCIATED, |
| 460 | eCSR_ROAM_ASSOCIATION_FAILURE, |
| 461 | //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] | 462 | eCSR_ROAM_SHOULD_ROAM, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 463 | //A new candidate for PMKID is found |
| 464 | eCSR_ROAM_SCAN_FOUND_NEW_BSS, |
| 465 | //CSR is done lostlink roaming and still cannot reconnect |
| 466 | eCSR_ROAM_LOSTLINK, |
| 467 | //a link lost is detected. CSR starts roaming. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 468 | eCSR_ROAM_LOSTLINK_DETECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 469 | //TKIP MIC error detected, callback gets a pointer to tpSirSmeMicFailureInd |
| 470 | eCSR_ROAM_MIC_ERROR_IND, |
| 471 | eCSR_ROAM_IBSS_IND, //IBSS indications. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 472 | //Update the connection status, useful for IBSS: new peer added, network is active etc. |
| 473 | eCSR_ROAM_CONNECT_STATUS_UPDATE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 474 | eCSR_ROAM_GEN_INFO, |
| 475 | eCSR_ROAM_SET_KEY_COMPLETE, |
| 476 | eCSR_ROAM_REMOVE_KEY_COMPLETE, |
| 477 | eCSR_ROAM_IBSS_LEAVE, //IBSS indications. |
| 478 | //BSS in WDS mode status indication |
| 479 | eCSR_ROAM_WDS_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 480 | //BSS in SoftAP mode status indication |
| 481 | eCSR_ROAM_INFRA_IND, |
| 482 | eCSR_ROAM_WPS_PBC_PROBE_REQ_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 483 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 484 | eCSR_ROAM_FT_RESPONSE, |
| 485 | #endif |
| 486 | eCSR_ROAM_FT_START, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 487 | eCSR_ROAM_REMAIN_CHAN_READY, |
| 488 | eCSR_ROAM_SEND_ACTION_CNF, |
| 489 | //this mean error happens before association_start or roaming_start is called. |
| 490 | eCSR_ROAM_SESSION_OPENED, |
| 491 | eCSR_ROAM_FT_REASSOC_FAILED, |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 492 | #ifdef FEATURE_WLAN_LFR |
| 493 | eCSR_ROAM_PMK_NOTIFY, |
| 494 | #endif |
Yue Ma | ef60827 | 2013-04-08 23:09:17 -0700 | [diff] [blame] | 495 | #ifdef FEATURE_WLAN_LFR_METRICS |
| 496 | eCSR_ROAM_PREAUTH_INIT_NOTIFY, |
| 497 | eCSR_ROAM_PREAUTH_STATUS_SUCCESS, |
| 498 | eCSR_ROAM_PREAUTH_STATUS_FAILURE, |
| 499 | eCSR_ROAM_HANDOVER_SUCCESS, |
| 500 | #endif |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 501 | #ifdef FEATURE_WLAN_TDLS |
| 502 | eCSR_ROAM_TDLS_STATUS_UPDATE, |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 503 | eCSR_ROAM_RESULT_MGMT_TX_COMPLETE_IND, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 504 | #endif |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 505 | eCSR_ROAM_DISCONNECT_ALL_P2P_CLIENTS, //Disaconnect all the clients |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 506 | 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] | 507 | // beacon interval |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 508 | #ifdef WLAN_FEATURE_11W |
| 509 | eCSR_ROAM_UNPROT_MGMT_FRAME_IND, |
| 510 | #endif |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 511 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 512 | #ifdef WLAN_FEATURE_RMC |
| 513 | eCSR_ROAM_IBSS_PEER_INFO_COMPLETE, |
| 514 | #endif |
| 515 | |
Hardik Kantilal Patel | 81f7634 | 2014-11-14 12:45:26 -0800 | [diff] [blame] | 516 | #ifdef WLAN_FEATURE_AP_HT40_24G |
| 517 | eCSR_ROAM_2040_COEX_INFO_IND, |
| 518 | #endif |
| 519 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 520 | #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD) |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 521 | eCSR_ROAM_TSM_IE_IND, |
| 522 | eCSR_ROAM_CCKM_PREAUTH_NOTIFY, |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 523 | eCSR_ROAM_ESE_ADJ_AP_REPORT_IND, |
| 524 | eCSR_ROAM_ESE_BCN_REPORT_IND, |
| 525 | #endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */ |
Girish Gowli | a95daca | 2015-02-04 20:31:31 +0530 | [diff] [blame] | 526 | eCSR_ROAM_UPDATE_MAX_RATE_IND, |
Sachin Ahuja | 3d47fcd | 2015-08-28 16:02:06 +0530 | [diff] [blame] | 527 | eCSR_ROAM_LOST_LINK_PARAMS_IND, |
Selvaraj, Sridhar | 59c5039 | 2016-06-09 17:08:05 +0530 | [diff] [blame] | 528 | eCSR_ROAM_UPDATE_SCAN_RESULT, |
Abhishek Singh | 550aa8c | 2017-10-30 17:34:53 +0530 | [diff] [blame] | 529 | eCSR_ROAM_ECSA_BCN_TX_IND, |
| 530 | eCSR_ROAM_ECSA_CHAN_CHANGE_RSP, |
Ganesh Kondabattini | 529397f | 2017-12-27 19:13:52 +0530 | [diff] [blame] | 531 | eCSR_ROAM_STA_CHANNEL_SWITCH, |
Abhinav Kumar | d6d8dd2 | 2019-08-05 12:38:50 +0530 | [diff] [blame] | 532 | eCSR_ROAM_SAE_COMPUTE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 533 | }eRoamCmdStatus; |
| 534 | |
| 535 | |
| 536 | //comment inside indicates what roaming callback gets |
| 537 | typedef enum |
| 538 | { |
| 539 | eCSR_ROAM_RESULT_NONE, |
| 540 | //this means no more action in CSR |
| 541 | //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] | 542 | eCSR_ROAM_RESULT_FAILURE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 543 | //Pass back pointer to tCsrRoamInfo |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 544 | eCSR_ROAM_RESULT_ASSOCIATED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 545 | eCSR_ROAM_RESULT_NOT_ASSOCIATED, |
| 546 | eCSR_ROAM_RESULT_MIC_FAILURE, |
| 547 | eCSR_ROAM_RESULT_FORCED, |
| 548 | eCSR_ROAM_RESULT_DISASSOC_IND, |
| 549 | eCSR_ROAM_RESULT_DEAUTH_IND, |
| 550 | eCSR_ROAM_RESULT_CAP_CHANGED, |
| 551 | //This means we starts an IBSS |
| 552 | //tCsrRoamInfo's pBssDesc may pass back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 553 | eCSR_ROAM_RESULT_IBSS_STARTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 554 | //START_BSS failed |
| 555 | //tCsrRoamInfo's pBssDesc may pass back |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 556 | eCSR_ROAM_RESULT_IBSS_START_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 557 | eCSR_ROAM_RESULT_IBSS_JOIN_SUCCESS, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 558 | eCSR_ROAM_RESULT_IBSS_JOIN_FAILED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 559 | eCSR_ROAM_RESULT_IBSS_CONNECT, |
| 560 | eCSR_ROAM_RESULT_IBSS_INACTIVE, |
| 561 | //If roamStatus is eCSR_ROAM_ASSOCIATION_COMPLETION |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 562 | //tCsrRoamInfo's pBssDesc may pass back. and the peer's MAC address in peerMacOrBssid |
| 563 | //If roamStatus is eCSR_ROAM_IBSS_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 564 | //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] | 565 | eCSR_ROAM_RESULT_IBSS_NEW_PEER, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 566 | //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] | 567 | eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 568 | //Coalescing in the IBSS network (joined an IBSS network) |
| 569 | //Callback pass a BSSID in peerMacOrBssid |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 570 | eCSR_ROAM_RESULT_IBSS_COALESCED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 571 | //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] | 572 | eCSR_ROAM_RESULT_IBSS_STOP, |
| 573 | eCSR_ROAM_RESULT_LOSTLINK, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 574 | eCSR_ROAM_RESULT_MIC_ERROR_UNICAST, |
| 575 | eCSR_ROAM_RESULT_MIC_ERROR_GROUP, |
| 576 | eCSR_ROAM_RESULT_AUTHENTICATED, |
| 577 | eCSR_ROAM_RESULT_NEW_RSN_BSS, |
| 578 | #ifdef FEATURE_WLAN_WAPI |
| 579 | eCSR_ROAM_RESULT_NEW_WAPI_BSS, |
| 580 | #endif /* FEATURE_WLAN_WAPI */ |
| 581 | // WDS started successfully |
| 582 | eCSR_ROAM_RESULT_WDS_STARTED, |
| 583 | // WDS start failed |
| 584 | eCSR_ROAM_RESULT_WDS_START_FAILED, |
| 585 | // WDS stopped |
| 586 | eCSR_ROAM_RESULT_WDS_STOPPED, |
| 587 | // WDS joined successfully in STA mode |
| 588 | eCSR_ROAM_RESULT_WDS_ASSOCIATED, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 589 | // A station joined WDS AP |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 590 | eCSR_ROAM_RESULT_WDS_ASSOCIATION_IND, |
| 591 | // WDS join failed in STA mode |
| 592 | eCSR_ROAM_RESULT_WDS_NOT_ASSOCIATED, |
| 593 | // WDS disassociated |
| 594 | eCSR_ROAM_RESULT_WDS_DISASSOCIATED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 595 | // INFRA started successfully |
| 596 | eCSR_ROAM_RESULT_INFRA_STARTED, |
| 597 | // INFRA start failed |
| 598 | eCSR_ROAM_RESULT_INFRA_START_FAILED, |
| 599 | // INFRA stopped |
| 600 | eCSR_ROAM_RESULT_INFRA_STOPPED, |
| 601 | // A station joining INFRA AP |
| 602 | eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND, |
| 603 | // A station joined INFRA AP |
| 604 | eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF, |
| 605 | // INFRA disassociated |
| 606 | eCSR_ROAM_RESULT_INFRA_DISASSOCIATED, |
| 607 | eCSR_ROAM_RESULT_WPS_PBC_PROBE_REQ_IND, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 608 | eCSR_ROAM_RESULT_SEND_ACTION_FAIL, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 609 | // peer rejected assoc because max assoc limit reached. callback gets pointer to peer |
| 610 | eCSR_ROAM_RESULT_MAX_ASSOC_EXCEEDED, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 611 | //Assoc rejected due to concurrent session running on a different channel |
| 612 | eCSR_ROAM_RESULT_ASSOC_FAIL_CON_CHANNEL, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 613 | #ifdef FEATURE_WLAN_TDLS |
| 614 | eCSR_ROAM_RESULT_ADD_TDLS_PEER, |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 615 | eCSR_ROAM_RESULT_UPDATE_TDLS_PEER, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 616 | eCSR_ROAM_RESULT_DELETE_TDLS_PEER, |
Hoonki Lee | e6bfe94 | 2013-02-05 15:01:19 -0800 | [diff] [blame] | 617 | eCSR_ROAM_RESULT_TEARDOWN_TDLS_PEER_IND, |
Gopichand Nakkala | 2a0a157 | 2013-02-10 21:39:16 -0800 | [diff] [blame] | 618 | eCSR_ROAM_RESULT_DELETE_ALL_TDLS_PEER_IND, |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 619 | eCSR_ROAM_RESULT_LINK_ESTABLISH_REQ_RSP, |
Masti, Narayanraddi | 36c6762 | 2016-01-06 16:07:34 +0530 | [diff] [blame] | 620 | eCSR_ROAM_RESULT_CHANNEL_SWITCH_REQ_RSP, |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 621 | #endif |
| 622 | |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 623 | #ifdef WLAN_FEATURE_RMC |
| 624 | eCSR_ROAM_RESULT_IBSS_PEER_INFO_SUCCESS, |
| 625 | eCSR_ROAM_RESULT_IBSS_PEER_INFO_FAILED, |
| 626 | #endif |
Abhishek Singh | bfb3c9e | 2016-07-22 11:25:43 +0530 | [diff] [blame] | 627 | /* If Scan for SSID failed to found proper BSS */ |
| 628 | eCSR_ROAM_RESULT_SCAN_FOR_SSID_FAILURE, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 629 | }eCsrRoamResult; |
| 630 | |
| 631 | |
| 632 | |
| 633 | /*---------------------------------------------------------------------------- |
| 634 | List of link quality indications HDD can receive from SME |
| 635 | -----------------------------------------------------------------------------*/ |
| 636 | typedef enum |
| 637 | { |
| 638 | eCSR_ROAM_LINK_QUAL_MIN_IND = -1, |
| 639 | |
| 640 | eCSR_ROAM_LINK_QUAL_POOR_IND = 0, /* bad link */ |
| 641 | eCSR_ROAM_LINK_QUAL_GOOD_IND = 1, /* acceptable for voice */ |
| 642 | eCSR_ROAM_LINK_QUAL_VERY_GOOD_IND = 2, /* suitable for voice */ |
| 643 | eCSR_ROAM_LINK_QUAL_EXCELLENT_IND = 3, /* suitable for voice */ |
| 644 | |
| 645 | eCSR_ROAM_LINK_QUAL_MAX_IND /* invalid value */ |
| 646 | |
| 647 | } eCsrRoamLinkQualityInd; |
| 648 | |
| 649 | typedef enum |
| 650 | { |
| 651 | eCSR_DISCONNECT_REASON_UNSPECIFIED = 0, |
| 652 | eCSR_DISCONNECT_REASON_MIC_ERROR, |
| 653 | eCSR_DISCONNECT_REASON_DISASSOC, |
| 654 | eCSR_DISCONNECT_REASON_DEAUTH, |
| 655 | eCSR_DISCONNECT_REASON_HANDOFF, |
| 656 | eCSR_DISCONNECT_REASON_IBSS_JOIN_FAILURE, |
| 657 | eCSR_DISCONNECT_REASON_IBSS_LEAVE, |
| 658 | }eCsrRoamDisconnectReason; |
| 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 | // Not associated in Infra or participating in an IBSS / Ad-hoc network. |
| 663 | eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED, |
| 664 | // Associated in an Infrastructure network. |
| 665 | eCSR_ASSOC_STATE_TYPE_INFRA_ASSOCIATED, |
| 666 | // Participating in an IBSS network though disconnected (no partner stations |
| 667 | // in the IBSS). |
| 668 | eCSR_ASSOC_STATE_TYPE_IBSS_DISCONNECTED, |
| 669 | // Participating in an IBSS network with partner stations also present |
| 670 | eCSR_ASSOC_STATE_TYPE_IBSS_CONNECTED, |
| 671 | // Participating in a WDS network in AP or STA mode but not connected yet |
| 672 | eCSR_ASSOC_STATE_TYPE_WDS_DISCONNECTED, |
| 673 | // Participating in a WDS network and connected peer to peer |
| 674 | eCSR_ASSOC_STATE_TYPE_WDS_CONNECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 675 | // Participating in a Infra network in AP not yet in connected state |
| 676 | eCSR_ASSOC_STATE_TYPE_INFRA_DISCONNECTED, |
| 677 | // Participating in a Infra network and connected to a peer |
| 678 | eCSR_ASSOC_STATE_TYPE_INFRA_CONNECTED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 679 | |
| 680 | }eCsrConnectState; |
| 681 | |
| 682 | |
| 683 | // This parameter is no longer supported in the Profile. Need to set this in the global properties |
| 684 | // for the adapter. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 685 | typedef enum eCSR_MEDIUM_ACCESS |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 686 | { |
| 687 | eCSR_MEDIUM_ACCESS_AUTO = 0, |
| 688 | eCSR_MEDIUM_ACCESS_DCF, |
| 689 | eCSR_MEDIUM_ACCESS_eDCF, |
| 690 | eCSR_MEDIUM_ACCESS_HCF, |
| 691 | |
| 692 | eCSR_MEDIUM_ACCESS_WMM_eDCF_802dot1p, |
| 693 | eCSR_MEDIUM_ACCESS_WMM_eDCF_DSCP, |
| 694 | eCSR_MEDIUM_ACCESS_WMM_eDCF_NoClassify, |
| 695 | eCSR_MEDIUM_ACCESS_11e_eDCF = eCSR_MEDIUM_ACCESS_eDCF, |
| 696 | eCSR_MEDIUM_ACCESS_11e_HCF = eCSR_MEDIUM_ACCESS_HCF, |
| 697 | }eCsrMediaAccessType; |
| 698 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 699 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 700 | { |
| 701 | eCSR_TX_RATE_AUTO = 0, // use rate adaption to determine Tx rate. |
| 702 | |
| 703 | eCSR_TX_RATE_1Mbps = 0x00000001, |
| 704 | eCSR_TX_RATE_2Mbps = 0x00000002, |
| 705 | eCSR_TX_RATE_5_5Mbps = 0x00000004, |
| 706 | eCSR_TX_RATE_6Mbps = 0x00000008, |
| 707 | eCSR_TX_RATE_9Mbps = 0x00000010, |
| 708 | eCSR_TX_RATE_11Mbps = 0x00000020, |
| 709 | eCSR_TX_RATE_12Mbps = 0x00000040, |
| 710 | eCSR_TX_RATE_18Mbps = 0x00000080, |
| 711 | eCSR_TX_RATE_24Mbps = 0x00000100, |
| 712 | eCSR_TX_RATE_36Mbps = 0x00000200, |
| 713 | eCSR_TX_RATE_42Mbps = 0x00000400, |
| 714 | eCSR_TX_RATE_48Mbps = 0x00000800, |
| 715 | eCSR_TX_RATE_54Mbps = 0x00001000, |
| 716 | eCSR_TX_RATE_72Mbps = 0x00002000, |
| 717 | eCSR_TX_RATE_84Mbps = 0x00004000, |
| 718 | eCSR_TX_RATE_96Mbps = 0x00008000, |
| 719 | eCSR_TX_RATE_108Mbps = 0x00010000, |
| 720 | eCSR_TX_RATE_126Mbps = 0x00020000, |
| 721 | eCSR_TX_RATE_144Mbps = 0x00040000, |
| 722 | eCSR_TX_RATE_168Mbps = 0x00080000, |
| 723 | eCSR_TX_RATE_192Mbps = 0x00100000, |
| 724 | eCSR_TX_RATE_216Mbps = 0x00200000, |
| 725 | eCSR_TX_RATE_240Mbps = 0x00400000, |
| 726 | |
| 727 | }eCsrExposedTxRate; |
| 728 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 729 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 730 | { |
| 731 | eCSR_OPERATING_CHANNEL_ALL = 0, |
| 732 | eCSR_OPERATING_CHANNEL_AUTO = eCSR_OPERATING_CHANNEL_ALL, |
| 733 | eCSR_OPERATING_CHANNEL_ANY = eCSR_OPERATING_CHANNEL_ALL, |
| 734 | }eOperationChannel; |
| 735 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 736 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 737 | { |
| 738 | eCSR_DOT11_FRAG_THRESH_AUTO = -1, |
| 739 | eCSR_DOT11_FRAG_THRESH_MIN = 256, |
| 740 | eCSR_DOT11_FRAG_THRESH_MAX = 2346, |
| 741 | eCSR_DOT11_FRAG_THRESH_DEFAULT = 2000 |
| 742 | }eCsrDot11FragThresh; |
| 743 | |
| 744 | |
| 745 | //for channel bonding for ibss |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 746 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 747 | { |
| 748 | eCSR_CB_OFF = 0, |
| 749 | eCSR_CB_AUTO = 1, |
| 750 | eCSR_CB_DOWN = 2, |
| 751 | eCSR_CB_UP = 3, |
| 752 | }eCsrCBChoice; |
| 753 | |
| 754 | //For channel bonding, the channel number gap is 4, either up or down. For both 11a and 11g mode. |
| 755 | #define CSR_CB_CHANNEL_GAP 4 |
| 756 | #define CSR_CB_CENTER_CHANNEL_OFFSET 2 |
| 757 | #define CSR_MAX_24GHz_CHANNEL_NUMBER ( SIR_11B_CHANNEL_END ) |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 758 | #define CSR_MIN_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_BEGIN ) |
| 759 | #define CSR_MAX_5GHz_CHANNEL_NUMBER ( SIR_11A_CHANNEL_END ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 760 | |
| 761 | // WEP keysize (in bits)... |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 762 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 763 | { |
| 764 | eCSR_SECURITY_WEP_KEYSIZE_40 = 40, // 40 bit key + 24bit IV = 64bit WEP |
| 765 | eCSR_SECURITY_WEP_KEYSIZE_104 = 104, // 104bit key + 24bit IV = 128bit WEP |
| 766 | |
| 767 | eCSR_SECURITY_WEP_KEYSIZE_MIN = eCSR_SECURITY_WEP_KEYSIZE_40, |
| 768 | eCSR_SECURITY_WEP_KEYSIZE_MAX = eCSR_SECURITY_WEP_KEYSIZE_104, |
| 769 | eCSR_SECURITY_WEP_KEYSIZE_MAX_BYTES = ( eCSR_SECURITY_WEP_KEYSIZE_MAX / 8 ), |
| 770 | }eCsrWEPKeySize; |
| 771 | |
| 772 | |
| 773 | // Possible values for the WEP static key ID... |
| 774 | typedef enum |
| 775 | { |
| 776 | |
| 777 | eCSR_SECURITY_WEP_STATIC_KEY_ID_MIN = 0, |
| 778 | eCSR_SECURITY_WEP_STATIC_KEY_ID_MAX = 3, |
| 779 | eCSR_SECURITY_WEP_STATIC_KEY_ID_DEFAULT = 0, |
| 780 | |
| 781 | eCSR_SECURITY_WEP_STATIC_KEY_ID_INVALID = -1, |
| 782 | |
| 783 | }eCsrWEPStaticKeyID; |
| 784 | |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 785 | // Two extra key indicies are used for the IGTK (which is used by BIP) |
| 786 | #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] | 787 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 788 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 789 | { |
| 790 | eCSR_SECURITY_SET_KEY_ACTION_NO_CHANGE, |
| 791 | eCSR_SECURITY_SET_KEY_ACTION_SET_KEY, |
| 792 | eCSR_SECURITY_SET_KEY_ACTION_DELETE_KEY, |
| 793 | }eCsrSetKeyAction; |
| 794 | |
| 795 | typedef enum |
| 796 | { |
| 797 | eCSR_BAND_ALL, |
| 798 | eCSR_BAND_24, |
| 799 | eCSR_BAND_5G, |
| 800 | eCSR_BAND_MAX, |
| 801 | }eCsrBand; |
| 802 | |
| 803 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 804 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 805 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 806 | // 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] | 807 | // tCsrRoamModifyProfileFields. OR |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 808 | // 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] | 809 | // tCsrRoamModifyProfileFields. |
| 810 | eCsrRoamReasonStaCapabilityChanged, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 811 | // 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] | 812 | // inter AP handoff. |
| 813 | eCsrRoamReasonBetterAP, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 814 | // Roaming because SME requested it as the link is lost - placeholder, will |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 815 | // clean it up once handoff code gets in |
| 816 | eCsrRoamReasonSmeIssuedForLostLink, |
| 817 | |
| 818 | }eCsrRoamReasonCodes; |
| 819 | |
| 820 | typedef enum |
| 821 | { |
| 822 | eCsrRoamWmmAuto = 0, |
| 823 | eCsrRoamWmmQbssOnly = 1, |
| 824 | eCsrRoamWmmNoQos = 2, |
| 825 | |
| 826 | } eCsrRoamWmmUserModeType; |
| 827 | |
| 828 | typedef enum |
| 829 | { |
| 830 | eCSR_REQUESTER_MIN = 0, |
| 831 | eCSR_DIAG, |
| 832 | eCSR_UMA_GAN, |
| 833 | eCSR_HDD |
| 834 | } eCsrStatsRequesterType; |
| 835 | |
Agarwal Ashish | 6db9d53 | 2014-09-30 18:19:10 +0530 | [diff] [blame] | 836 | typedef enum |
| 837 | { |
| 838 | INIT = 0, |
| 839 | REINIT, |
| 840 | } driver_load_type; |
| 841 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 842 | typedef struct tagPmkidCandidateInfo |
| 843 | { |
| 844 | tCsrBssid BSSID; |
| 845 | tANI_BOOLEAN preAuthSupported; |
| 846 | }tPmkidCandidateInfo; |
| 847 | |
| 848 | typedef struct tagPmkidCacheInfo |
| 849 | { |
| 850 | tCsrBssid BSSID; |
| 851 | tANI_U8 PMKID[CSR_RSN_PMKID_SIZE]; |
Abhinav Kumar | 8c12259 | 2019-08-07 15:43:20 +0530 | [diff] [blame] | 852 | uint8_t pmk[CSR_RSN_MAX_PMK_LEN]; |
| 853 | uint8_t pmk_len; |
| 854 | uint8_t ssid_len; |
| 855 | uint8_t ssid[SIR_MAC_MAX_SSID_LENGTH]; |
| 856 | uint8_t cache_id[CACHE_ID_LEN]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 857 | }tPmkidCacheInfo; |
| 858 | |
| 859 | #ifdef FEATURE_WLAN_WAPI |
| 860 | typedef struct tagBkidCandidateInfo |
| 861 | { |
| 862 | tCsrBssid BSSID; |
| 863 | tANI_BOOLEAN preAuthSupported; |
| 864 | }tBkidCandidateInfo; |
| 865 | |
| 866 | typedef struct tagBkidCacheInfo |
| 867 | { |
| 868 | tCsrBssid BSSID; |
| 869 | tANI_U8 BKID[CSR_WAPI_BKID_SIZE]; |
| 870 | }tBkidCacheInfo; |
| 871 | #endif /* FEATURE_WLAN_WAPI */ |
| 872 | |
| 873 | typedef struct tagCsrKeys |
| 874 | { |
| 875 | tANI_U8 KeyLength[ CSR_MAX_NUM_KEY ]; //Also use to indicate whether the key index is set |
| 876 | tANI_U8 KeyMaterial[ CSR_MAX_NUM_KEY ][ CSR_MAX_KEY_LEN ]; |
| 877 | tANI_U8 defaultIndex; |
| 878 | }tCsrKeys; |
| 879 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 880 | /* Following are fields which are part of tCsrRoamConnectedProfile might need |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 881 | modification dynamically once STA is up & running and this could trigger |
| 882 | reassoc */ |
| 883 | typedef struct tagCsrRoamModifyProfileFields |
| 884 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 885 | // during connect this specifies ACs U-APSD is to be setup |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 886 | // 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] | 887 | // During assoc response this COULD carry confirmation of what ACs U-APSD |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 888 | // got setup for. Later if an APP looking for APSD, SME-QoS might need to |
| 889 | // modify this field |
| 890 | tANI_U8 uapsd_mask; |
| 891 | // HDD might ask to modify this field |
| 892 | tANI_U16 listen_interval; |
| 893 | }tCsrRoamModifyProfileFields; |
| 894 | |
| 895 | typedef struct tagCsrRoamProfile |
| 896 | { |
| 897 | //For eCSR_BSS_TYPE_WDS_AP. There must be one SSID in SSIDs. |
| 898 | //For eCSR_BSS_TYPE_WDS_STA. There must be two SSIDs. Index 0 is the SSID of the WDS-AP |
| 899 | //that we need to join. Index 1 is the SSID for self BSS. |
| 900 | tCsrSSIDs SSIDs; |
| 901 | tCsrBSSIDs BSSIDs; |
| 902 | tANI_U32 phyMode; //this is a bit mask of all the needed phy mode defined in eCsrPhyMode |
| 903 | eCsrRoamBssType BSSType; |
| 904 | |
| 905 | tCsrAuthList AuthType; |
| 906 | eCsrAuthType negotiatedAuthType; |
| 907 | |
| 908 | tCsrEncryptionList EncryptionType; |
| 909 | //This field is for output only, not for input |
| 910 | eCsrEncryptionType negotiatedUCEncryptionType; |
| 911 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 912 | //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] | 913 | //put all supported encryption types in here |
| 914 | tCsrEncryptionList mcEncryptionType; |
| 915 | //This field is for output only, not for input |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 916 | eCsrEncryptionType negotiatedMCEncryptionType; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 917 | |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 918 | #ifdef WLAN_FEATURE_11W |
| 919 | // Management Frame Protection |
| 920 | tANI_BOOLEAN MFPEnabled; |
| 921 | tANI_U8 MFPRequired; |
| 922 | tANI_U8 MFPCapable; |
| 923 | #endif |
| 924 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 925 | tCsrKeys Keys; |
| 926 | eCsrCBChoice CBMode; //up, down or auto |
| 927 | tCsrChannelInfo ChannelInfo; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 928 | tANI_U8 operationChannel; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 929 | 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] | 930 | // during connect this specifies ACs U-APSD is to be setup |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 931 | // for (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored). |
| 932 | // 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] | 933 | tANI_U8 uapsd_mask; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 934 | tANI_U32 nWPAReqIELength; //The byte count in the pWPAReqIE |
| 935 | tANI_U8 *pWPAReqIE; //If not null, it has the IE byte stream for WPA |
| 936 | tANI_U32 nRSNReqIELength; //The byte count in the pRSNReqIE |
| 937 | tANI_U8 *pRSNReqIE; //If not null, it has the IE byte stream for RSN |
| 938 | #ifdef FEATURE_WLAN_WAPI |
| 939 | tANI_U32 nWAPIReqIELength; //The byte count in the pWAPIReqIE |
| 940 | tANI_U8 *pWAPIReqIE; //If not null, it has the IE byte stream for WAPI |
| 941 | #endif /* FEATURE_WLAN_WAPI */ |
| 942 | |
Agarwal Ashish | 4f61613 | 2013-12-30 23:32:50 +0530 | [diff] [blame] | 943 | //The byte count in the pAddIE for scan (at the time of join) |
| 944 | tANI_U32 nAddIEScanLength; |
| 945 | /* Additional IE information. |
| 946 | * It has the IE byte stream for additional IE, |
| 947 | * which can be WSC IE and/or P2P IE |
| 948 | */ |
Ganesh Kondabattini | 7500fb3 | 2015-04-10 14:50:32 +0530 | [diff] [blame] | 949 | tANI_U8 addIEScan[SIR_MAC_MAX_ADD_IE_LENGTH+2]; //Additional IE information. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 950 | tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 951 | tANI_U8 *pAddIEAssoc; //If not null, it has the IE byte stream for additional IE, which can be WSC IE and/or P2P IE |
| 952 | |
| 953 | tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //it is ignored if [0] is 0. |
| 954 | /*WPS Association if true => auth and ecryption should be ignored*/ |
| 955 | tANI_BOOLEAN bWPSAssociation; |
Leela Venkata Kiran Kumar Reddy Chirala | f257bef | 2014-04-11 18:48:12 -0700 | [diff] [blame] | 956 | tANI_BOOLEAN bOSENAssociation; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 957 | tANI_U32 nWSCReqIELength; //The byte count in the pWSCReqIE |
| 958 | tANI_U8 *pWSCReqIE; //If not null, it has the IE byte stream for WSC |
| 959 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 960 | tANI_U8 ieee80211d; |
| 961 | tANI_U8 privacy; |
| 962 | tANI_BOOLEAN fwdWPSPBCProbeReq; |
| 963 | tAniAuthType csr80211AuthType; |
| 964 | tANI_U32 dtimPeriod; |
| 965 | tANI_BOOLEAN ApUapsdEnable; |
| 966 | tANI_BOOLEAN protEnabled; |
| 967 | tANI_BOOLEAN obssProtEnabled; |
| 968 | tANI_U16 cfg_protection; |
| 969 | tANI_U8 wps_state; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 970 | |
| 971 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 972 | tCsrMobilityDomainInfo MDID; |
| 973 | #endif |
| 974 | tVOS_CON_MODE csrPersona; |
Abhishek Singh | e3beee2 | 2017-07-31 15:35:40 +0530 | [diff] [blame] | 975 | bool force_24ghz_in_ht20; |
Abhishek Singh | b3e376c | 2017-01-04 15:27:13 +0530 | [diff] [blame] | 976 | tCsrBssid bssid_hint; |
Pragaspathi Thilagaraj | 03e2ab1 | 2018-06-22 12:19:48 +0530 | [diff] [blame] | 977 | bool force_rsne_override; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 978 | }tCsrRoamProfile; |
| 979 | |
| 980 | |
| 981 | typedef struct tagCsrRoamConnectedProfile |
| 982 | { |
| 983 | tSirMacSSid SSID; |
| 984 | tANI_BOOLEAN handoffPermitted; |
| 985 | tANI_BOOLEAN ssidHidden; |
| 986 | tCsrBssid bssid; |
| 987 | eCsrRoamBssType BSSType; |
| 988 | eCsrAuthType AuthType; |
| 989 | tCsrAuthList AuthInfo; |
| 990 | eCsrEncryptionType EncryptionType; |
| 991 | tCsrEncryptionList EncryptionInfo; |
| 992 | eCsrEncryptionType mcEncryptionType; |
| 993 | tCsrEncryptionList mcEncryptionInfo; |
| 994 | eCsrCBChoice CBMode; //up, down or auto |
| 995 | tANI_U8 operationChannel; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 996 | tANI_U16 beaconInterval; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 997 | tCsrKeys Keys; |
| 998 | // meaningless on connect. It's an OUT param from CSR's point of view |
| 999 | // During assoc response carries the ACM bit-mask i.e. what |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1000 | // ACs have ACM=1 (if any), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1001 | // (Bit0:VO; Bit1:VI; Bit2:BK; Bit3:BE all other bits are ignored) |
| 1002 | tANI_U8 acm_mask; |
| 1003 | tCsrRoamModifyProfileFields modifyProfileFields; |
Madan Mohan Koyyalamudi | ea22cdc | 2012-10-18 21:02:23 -0700 | [diff] [blame] | 1004 | tANI_U32 nAddIEAssocLength; //The byte count in the pAddIE for assoc |
| 1005 | 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] | 1006 | |
| 1007 | tSirBssDescription *pBssDesc; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1008 | tANI_BOOLEAN qap; //AP supports QoS |
| 1009 | tANI_BOOLEAN qosConnection; //A connection is QoS enabled |
| 1010 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1011 | tCsrMobilityDomainInfo MDID; |
| 1012 | #endif |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1013 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1014 | #ifdef FEATURE_WLAN_ESE |
| 1015 | tCsrEseCckmInfo eseCckmInfo; |
| 1016 | tANI_BOOLEAN isESEAssoc; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1017 | #endif |
Gopichand Nakkala | dacbcb5 | 2013-04-18 16:41:54 +0530 | [diff] [blame] | 1018 | tANI_U32 dot11Mode; |
Abhishek Singh | 2fb3a6e | 2014-11-20 16:03:01 +0530 | [diff] [blame] | 1019 | |
| 1020 | #ifdef WLAN_FEATURE_11W |
| 1021 | /* Management Frame Protection */ |
| 1022 | tANI_BOOLEAN MFPEnabled; |
| 1023 | tANI_U8 MFPRequired; |
| 1024 | tANI_U8 MFPCapable; |
| 1025 | #endif |
| 1026 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1027 | }tCsrRoamConnectedProfile; |
| 1028 | |
| 1029 | |
| 1030 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1031 | typedef struct tagCsr11rConfigParams |
| 1032 | { |
| 1033 | tANI_BOOLEAN IsFTResourceReqSupported; |
| 1034 | } tCsr11rConfigParams; |
| 1035 | #endif |
| 1036 | |
| 1037 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 1038 | typedef struct tagCsrNeighborRoamConfigParams |
| 1039 | { |
| 1040 | |
| 1041 | tANI_U32 nNeighborScanTimerPeriod; |
| 1042 | tANI_U8 nNeighborLookupRssiThreshold; |
| 1043 | tANI_U8 nNeighborReassocRssiThreshold; |
| 1044 | tANI_U16 nNeighborScanMinChanTime; |
| 1045 | tANI_U16 nNeighborScanMaxChanTime; |
| 1046 | sCsrChannel neighborScanChanList; |
| 1047 | tANI_U8 nMaxNeighborRetries; |
| 1048 | tANI_U16 nNeighborResultsRefreshPeriod; |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 1049 | tANI_U16 nEmptyScanRefreshPeriod; |
Mukul Sharma | d49b3d6 | 2014-09-02 01:45:32 +0530 | [diff] [blame] | 1050 | tANI_U8 nNeighborInitialForcedRoamTo5GhEnable; |
Sreelakshmi Konamki | 70bfdaf | 2017-05-29 18:47:29 +0530 | [diff] [blame] | 1051 | tANI_U8 nWeakZoneRssiThresholdForRoam; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1052 | }tCsrNeighborRoamConfigParams; |
| 1053 | #endif |
| 1054 | |
| 1055 | typedef struct tagCsrConfigParam |
| 1056 | { |
| 1057 | tANI_U32 FragmentationThreshold; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1058 | tANI_U32 channelBondingMode24GHz; // keep this tANI_U32. This gets converted to ePhyChannelBondState |
| 1059 | tANI_U32 channelBondingMode5GHz; // in csrChangeDefaultConfigParam using convertCBIniValueToPhyCBState |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1060 | eCsrPhyMode phyMode; |
| 1061 | eCsrBand eBand; |
| 1062 | tANI_U32 RTSThreshold; |
| 1063 | tANI_U32 HeartbeatThresh50; |
| 1064 | tANI_U32 HeartbeatThresh24; |
| 1065 | eCsrCBChoice cbChoice; |
| 1066 | eCsrBand bandCapability; //indicate hw capability |
| 1067 | tANI_U32 bgScanInterval; |
| 1068 | tANI_U16 TxRate; |
| 1069 | eCsrRoamWmmUserModeType WMMSupportMode; |
| 1070 | tANI_BOOLEAN Is11eSupportEnabled; |
| 1071 | tANI_BOOLEAN Is11dSupportEnabled; |
| 1072 | tANI_BOOLEAN Is11dSupportEnabledOriginal; |
| 1073 | tANI_BOOLEAN Is11hSupportEnabled; |
| 1074 | tANI_BOOLEAN shortSlotTime; |
| 1075 | tANI_BOOLEAN ProprietaryRatesEnabled; |
| 1076 | tANI_U8 AdHocChannel24; |
| 1077 | tANI_U8 AdHocChannel5G; |
| 1078 | tANI_U32 impsSleepTime; //in units of seconds |
| 1079 | tANI_U32 nScanResultAgeCount; //this number minus one is the number of times a scan doesn't find it before it is removed |
| 1080 | tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds |
| 1081 | tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds |
| 1082 | tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds, |
| 1083 | tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds |
| 1084 | tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up. 0 means no roaming |
| 1085 | tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category |
| 1086 | tANI_U8 fEnableMCCMode; //to set MCC Enable/Disable mode |
Mohit Khanna | 7ed53f0 | 2012-09-11 17:52:10 -0700 | [diff] [blame] | 1087 | 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 |
| 1088 | //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] | 1089 | tCsr11dinfo Csr11dinfo; |
| 1090 | //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] | 1091 | //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] | 1092 | //default channels and the channels in the 802.11d IE. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1093 | tANI_BOOLEAN fEnforce11dChannels; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1094 | //Country Code Priority |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1095 | //0 = 802.11D > Country IOCTL > NV |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1096 | //1 = Country IOCTL > 802.11D > NV |
| 1097 | tANI_BOOLEAN fSupplicantCountryCodeHasPriority; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1098 | //When true, AP with unknown country code won't be see. |
| 1099 | //"Unknown country code" means either Ap doesn't have 11d IE or we cannot |
| 1100 | //find a domain for the country code in its 11d IE. |
| 1101 | tANI_BOOLEAN fEnforceCountryCodeMatch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1102 | //When true, only APs in the default domain can be seen. If the Ap has "unknown country |
| 1103 | //code", or the domain of the country code doesn't match the default domain, the Ap is |
| 1104 | //not acceptable. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1105 | tANI_BOOLEAN fEnforceDefaultDomain; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1106 | |
| 1107 | tANI_U16 vccRssiThreshold; |
| 1108 | tANI_U32 vccUlMacLossThreshold; |
| 1109 | |
| 1110 | tANI_U32 nPassiveMinChnTime; //in units of milliseconds |
| 1111 | tANI_U32 nPassiveMaxChnTime; //in units of milliseconds |
| 1112 | tANI_U32 nActiveMinChnTime; //in units of milliseconds |
| 1113 | tANI_U32 nActiveMaxChnTime; //in units of milliseconds |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1114 | |
c_hpothu | 059edb0 | 2014-03-12 21:44:28 +0530 | [diff] [blame] | 1115 | tANI_U32 nInitialDwellTime; //in units of milliseconds |
| 1116 | |
Abhishek Singh | 3a93ee4 | 2016-09-29 17:00:03 +0530 | [diff] [blame] | 1117 | uint32_t min_chntime_btc_esco; //in units of milliseconds |
| 1118 | uint32_t max_chntime_btc_esco; //in units of milliseconds |
| 1119 | uint32_t min_chntime_btc_sco; |
| 1120 | uint32_t max_chntime_btc_sco; |
Kiran Kumar Lokere | 458d732 | 2013-05-29 14:29:43 -0700 | [diff] [blame] | 1121 | tANI_U32 disableAggWithBtc; |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 1122 | #ifdef WLAN_AP_STA_CONCURRENCY |
| 1123 | tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds |
| 1124 | tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds |
| 1125 | tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds |
| 1126 | tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds |
| 1127 | tANI_U32 nRestTimeConc; //in units of milliseconds |
Sudhir Sattayappa Kohalli | eb97d50 | 2013-05-22 23:16:42 -0700 | [diff] [blame] | 1128 | tANI_U8 nNumStaChanCombinedConc; //number of channels combined for |
| 1129 | //STA in each split scan operation |
| 1130 | tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for |
| 1131 | //P2P in each split scan operation |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 1132 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1133 | |
| 1134 | tANI_BOOLEAN IsIdleScanEnabled; |
| 1135 | //in dBm, the maximum TX power |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1136 | //The actual TX power is the lesser of this value and 11d. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1137 | //If 11d is disable, the lesser of this and default setting. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1138 | tANI_U8 nTxPowerCap; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1139 | tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power |
| 1140 | tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save |
| 1141 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1142 | tCsr11rConfigParams csr11rConfig; |
| 1143 | #endif |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1144 | #ifdef FEATURE_WLAN_ESE |
| 1145 | tANI_U8 isEseIniFeatureEnabled; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1146 | #endif |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1147 | #ifdef FEATURE_WLAN_LFR |
| 1148 | tANI_U8 isFastRoamIniFeatureEnabled; |
Sameer Thalappil | 4ae66ec | 2013-11-05 14:17:35 -0800 | [diff] [blame] | 1149 | tANI_U8 MAWCEnabled; |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1150 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1151 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1152 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR) |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 1153 | tANI_U8 isFastTransitionEnabled; |
| 1154 | tANI_U8 RoamRssiDiff; |
| 1155 | tANI_U8 nImmediateRoamRssiDiff; |
Srinivas Girigowda | ad34ca9 | 2013-10-22 10:54:29 -0700 | [diff] [blame] | 1156 | tANI_BOOLEAN isWESModeEnabled; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1157 | #endif |
| 1158 | |
| 1159 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 1160 | tCsrNeighborRoamConfigParams neighborRoamConfig; |
| 1161 | #endif |
| 1162 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1163 | /* 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] | 1164 | * This is mandated by WMM-AC certification */ |
| 1165 | tANI_BOOLEAN addTSWhenACMIsOff; |
| 1166 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1167 | |
| 1168 | /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1169 | * detect when it happens. Adding this into code because we can't reproduce it easily. |
| 1170 | * We don't know when it happens. */ |
| 1171 | tANI_BOOLEAN fValidateList; |
| 1172 | |
| 1173 | /*Customer wants to start with an active scan based on the default country code. |
| 1174 | * This optimization will minimize the driver load to association time. |
| 1175 | * Based on this flag we will bypass the initial passive scan needed for 11d |
| 1176 | * to determine the country code & domain */ |
| 1177 | tANI_BOOLEAN fEnableBypass11d; |
| 1178 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1179 | /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS |
| 1180 | * channels while swipping through both bands can save some time |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1181 | * (apprx 1.3 sec) */ |
Padma, Santhosh Kumar | 814d099 | 2015-05-05 18:52:43 +0530 | [diff] [blame] | 1182 | tANI_U8 fEnableDFSChnlScan; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1183 | |
| 1184 | //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD |
| 1185 | tANI_BOOLEAN fScanTwice; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1186 | #ifdef WLAN_FEATURE_11AC |
Ravi Joshi | 83bfaa1 | 2013-05-28 22:12:08 -0700 | [diff] [blame] | 1187 | tANI_U32 nVhtChannelWidth; |
| 1188 | tANI_U8 enableTxBF; |
| 1189 | tANI_U8 txBFCsnValue; |
| 1190 | tANI_BOOLEAN enableVhtFor24GHz; |
Abhishek Singh | 6d5d29c | 2014-07-03 14:25:22 +0530 | [diff] [blame] | 1191 | tANI_U8 enableMuBformee; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1192 | #endif |
| 1193 | |
| 1194 | /* |
| 1195 | * To enable/disable scanning only 2.4Ghz channels on first scan |
| 1196 | */ |
| 1197 | tANI_BOOLEAN fFirstScanOnly2GChnl; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1198 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1199 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR) |
Madan Mohan Koyyalamudi | d502607 | 2012-11-30 14:56:21 -0800 | [diff] [blame] | 1200 | tANI_BOOLEAN nRoamPrefer5GHz; |
Srinivas Girigowda | bbd16eb | 2013-03-21 12:34:46 -0700 | [diff] [blame] | 1201 | tANI_BOOLEAN nRoamIntraBand; |
Varun Reddy Yeturu | 920df21 | 2013-05-22 08:07:23 -0700 | [diff] [blame] | 1202 | tANI_U8 nProbes; |
| 1203 | tANI_U16 nRoamScanHomeAwayTime; |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 1204 | |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1205 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 1206 | tANI_BOOLEAN isRoamOffloadScanEnabled; |
Srinivas Girigowda | 830bbd0 | 2013-06-13 19:44:16 -0700 | [diff] [blame] | 1207 | tANI_BOOLEAN bFastRoamInConIniFeatureEnabled; |
Kapil Gupta | 04ab199 | 2016-06-26 13:36:51 +0530 | [diff] [blame] | 1208 | v_BOOL_t isPERRoamEnabled; |
| 1209 | v_BOOL_t isPERRoamCCAEnabled; |
Kapil Gupta | c69c28a | 2016-08-25 14:11:17 +0530 | [diff] [blame] | 1210 | v_S15_t PERRoamFullScanThreshold; |
Kapil Gupta | 192d9d4 | 2016-11-25 16:24:13 +0530 | [diff] [blame] | 1211 | v_S15_t PERMinRssiThresholdForRoam; |
Kapil Gupta | 04ab199 | 2016-06-26 13:36:51 +0530 | [diff] [blame] | 1212 | v_U32_t rateUpThreshold; |
| 1213 | v_U32_t rateDownThreshold; |
| 1214 | v_U32_t waitPeriodForNextPERScan; |
| 1215 | v_U32_t PERtimerThreshold; |
| 1216 | v_U32_t PERroamTriggerPercent; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1217 | #endif |
Padma, Santhosh Kumar | 67f479b | 2016-12-28 15:43:42 +0530 | [diff] [blame] | 1218 | |
| 1219 | #ifdef WLAN_FEATURE_LFR_MBB |
| 1220 | tANI_BOOLEAN enable_lfr_mbb; |
| 1221 | #endif |
| 1222 | |
Srinivas Girigowda | 830bbd0 | 2013-06-13 19:44:16 -0700 | [diff] [blame] | 1223 | #endif |
| 1224 | |
Abhishek Singh | c98534e | 2015-06-12 10:44:34 +0530 | [diff] [blame] | 1225 | tANI_BOOLEAN ignorePeerErpInfo; |
Sandeep Puligilla | 2b6dc63 | 2012-12-17 14:44:16 -0800 | [diff] [blame] | 1226 | tANI_U8 scanCfgAgingTime; |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 1227 | |
| 1228 | tANI_U8 enableTxLdpc; |
krunal soni | 4f087d2 | 2013-07-29 16:32:26 -0700 | [diff] [blame] | 1229 | |
krunal soni | 5afa96c | 2013-09-06 22:19:02 -0700 | [diff] [blame] | 1230 | tANI_U8 isAmsduSupportInAMPDU; |
Srinivas Girigowda | 41c7c5f | 2013-10-21 19:01:38 -0700 | [diff] [blame] | 1231 | tANI_U8 nSelect5GHzMargin; |
krunal soni | 5afa96c | 2013-09-06 22:19:02 -0700 | [diff] [blame] | 1232 | |
krunal soni | e9002db | 2013-11-25 14:24:17 -0800 | [diff] [blame] | 1233 | tANI_U8 isCoalesingInIBSSAllowed; |
Sandeep Puligilla | c80f26e | 2014-03-11 18:36:10 +0530 | [diff] [blame] | 1234 | tANI_U8 allowDFSChannelRoam; |
c_hpothu | 0d5a735 | 2014-03-22 12:30:25 +0530 | [diff] [blame] | 1235 | tANI_BOOLEAN initialScanSkipDFSCh; |
Abhishek Singh | de51a41 | 2014-05-20 19:17:26 +0530 | [diff] [blame] | 1236 | tANI_BOOLEAN sendDeauthBeforeCon; |
Peng Xu | 2446a89 | 2014-09-05 17:21:18 +0530 | [diff] [blame] | 1237 | |
| 1238 | eCsrBand scanBandPreference; |
Hardik Kantilal Patel | dd10795 | 2014-11-20 15:24:52 +0530 | [diff] [blame] | 1239 | #ifdef WLAN_FEATURE_AP_HT40_24G |
| 1240 | tANI_BOOLEAN apHT40_24GEnabled; |
| 1241 | tANI_U32 channelBondingAPMode24GHz; // Use for SAP/P2P GO 2.4GHz channel Bonding |
| 1242 | #endif |
Sushant Kaushik | c9682be | 2014-11-26 12:27:04 +0530 | [diff] [blame] | 1243 | tANI_U32 nOBSSScanWidthTriggerInterval; |
Girish Gowli | 1c2fc80 | 2015-01-19 16:18:07 +0530 | [diff] [blame] | 1244 | tANI_U8 roamDelayStatsEnabled; |
Sushant Kaushik | ae17dd6 | 2015-08-27 17:07:04 +0530 | [diff] [blame] | 1245 | tANI_BOOLEAN ignorePeerHTopMode; |
Abhishek Singh | 795e1b8 | 2015-09-25 15:35:03 +0530 | [diff] [blame] | 1246 | tANI_BOOLEAN disableP2PMacSpoofing; |
Abhishek Singh | 837adf2 | 2015-10-01 17:37:37 +0530 | [diff] [blame] | 1247 | tANI_BOOLEAN enableFatalEvent; |
Gupta, Kapil | 01be56b | 2015-12-30 20:36:33 +0530 | [diff] [blame] | 1248 | tANI_U8 max_chan_for_dwell_time_cfg; |
Abhishek Singh | 48cd340 | 2016-03-30 15:20:19 +0530 | [diff] [blame] | 1249 | uint32_t enable_edca_params; |
| 1250 | uint32_t edca_vo_cwmin; |
| 1251 | uint32_t edca_vi_cwmin; |
| 1252 | uint32_t edca_bk_cwmin; |
| 1253 | uint32_t edca_be_cwmin; |
| 1254 | uint32_t edca_vo_cwmax; |
| 1255 | uint32_t edca_vi_cwmax; |
| 1256 | uint32_t edca_bk_cwmax; |
| 1257 | uint32_t edca_be_cwmax; |
| 1258 | uint32_t edca_vo_aifs; |
| 1259 | uint32_t edca_vi_aifs; |
| 1260 | uint32_t edca_bk_aifs; |
| 1261 | uint32_t edca_be_aifs; |
Padma, Santhosh Kumar | 3618335 | 2016-11-08 17:48:34 +0530 | [diff] [blame] | 1262 | tANI_BOOLEAN disable_scan_during_sco; |
Paul Zhang | 8328979 | 2017-02-28 18:58:52 +0800 | [diff] [blame] | 1263 | uint32_t sta_auth_retries_for_code17; |
Ganesh Kondabattini | e3ac17f | 2017-11-30 15:09:07 +0530 | [diff] [blame] | 1264 | uint32_t sta_sap_scc_on_dfs_chan; |
Yeshwanth Sriram Guntuka | 8d9b29c | 2017-12-12 15:44:57 +0530 | [diff] [blame] | 1265 | tANI_U8 agg_btc_sco_oui[3]; |
| 1266 | tANI_U8 num_ba_buff_btc_sco; |
| 1267 | tANI_U8 num_ba_buff; |
Yeshwanth Sriram Guntuka | d3a9fc5 | 2018-01-10 15:09:49 +0530 | [diff] [blame] | 1268 | bool force_scc_with_ecsa; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1269 | }tCsrConfigParam; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1270 | |
| 1271 | //Tush |
| 1272 | typedef struct tagCsrUpdateConfigParam |
| 1273 | { |
| 1274 | tCsr11dinfo Csr11dinfo; |
| 1275 | }tCsrUpdateConfigParam; |
| 1276 | |
| 1277 | typedef struct tagCsrRoamInfo |
| 1278 | { |
| 1279 | tCsrRoamProfile *pProfile; //may be NULL |
| 1280 | tSirBssDescription *pBssDesc; //May be NULL |
| 1281 | tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0 |
| 1282 | tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0 |
| 1283 | tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0 |
| 1284 | tANI_U32 nFrameLength; |
| 1285 | tANI_U8 frameType; |
| 1286 | tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order |
| 1287 | //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where |
| 1288 | //each frame starts and ends. |
| 1289 | tANI_BOOLEAN fReassocReq; //set to true if for re-association |
| 1290 | tANI_BOOLEAN fReassocRsp; //set to true if for re-association |
| 1291 | tCsrBssid bssid; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1292 | //Only valid in IBSS |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1293 | //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] | 1294 | tCsrBssid peerMac; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1295 | tSirResultCodes statusCode; |
| 1296 | tANI_U32 reasonCode; //this could be our own defined or sent from the other BSS(per 802.11 spec) |
| 1297 | tANI_U8 staId; // Peer stationId when connected |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1298 | /*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] | 1299 | association to which a packet belongs to*/ |
| 1300 | /*Unicast DPU signature*/ |
| 1301 | tANI_U8 ucastSig; |
| 1302 | |
| 1303 | /*Broadcast DPU signature*/ |
| 1304 | tANI_U8 bcastSig; |
| 1305 | |
| 1306 | tANI_BOOLEAN fAuthRequired; //FALSE means auth needed from supplicant. TRUE means authenticated(static WEP, open) |
| 1307 | tANI_U8 sessionId; |
| 1308 | tANI_U8 rsnIELen; |
| 1309 | tANI_U8 *prsnIE; |
| 1310 | |
| 1311 | tANI_U8 addIELen; |
| 1312 | tANI_U8 *paddIE; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1313 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1314 | union |
| 1315 | { |
| 1316 | tSirMicFailureInfo *pMICFailureInfo; |
| 1317 | tCsrRoamConnectedProfile *pConnectedProfile; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1318 | tSirWPSPBCProbeReq *pWPSPBCProbeReq; |
Sachin Ahuja | 3d47fcd | 2015-08-28 16:02:06 +0530 | [diff] [blame] | 1319 | tSirLostLinkParamsInfo *pLostLinkParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1320 | } u; |
| 1321 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1322 | tANI_BOOLEAN wmmEnabledSta; //set to true if WMM enabled STA |
Hardik Kantilal Patel | 1ba630f | 2014-11-21 04:32:05 +0530 | [diff] [blame] | 1323 | #ifdef WLAN_FEATURE_AP_HT40_24G |
| 1324 | tANI_BOOLEAN HT40MHzIntoEnabledSta; //set to true if 40 MHz Intolerant enabled STA |
| 1325 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1326 | tANI_U32 dtimPeriod; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1327 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1328 | #ifdef FEATURE_WLAN_ESE |
| 1329 | tANI_BOOLEAN isESEAssoc; |
| 1330 | #ifdef FEATURE_WLAN_ESE_UPLOAD |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1331 | tSirTsmIE tsmIe; |
| 1332 | tANI_U32 timestamp[2]; |
| 1333 | tANI_U16 tsmRoamDelay; |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1334 | tSirEseBcnReportRsp *pEseBcnReportRsp; |
| 1335 | #endif /* FEATURE_WLAN_ESE_UPLOAD */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1336 | #endif |
Mukul Sharma | 9ca96b2 | 2014-11-15 19:40:04 +0530 | [diff] [blame] | 1337 | |
| 1338 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1339 | tANI_BOOLEAN is11rAssoc; |
| 1340 | #endif |
| 1341 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1342 | void* pRemainCtx; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1343 | tANI_U32 rxChan; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1344 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1345 | #ifdef FEATURE_WLAN_TDLS |
| 1346 | tANI_U8 staType; |
| 1347 | #endif |
| 1348 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1349 | // Required for indicating the frames to upper layer |
| 1350 | tANI_U32 beaconLength; |
| 1351 | tANI_U8* beaconPtr; |
| 1352 | tANI_U32 assocReqLength; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1353 | tANI_U8* assocReqPtr; |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 1354 | |
| 1355 | tANI_S8 rxRssi; |
c_hpothu | 44ff4e0 | 2014-05-08 00:13:57 +0530 | [diff] [blame] | 1356 | tANI_U32 maxRateFlags; |
Hardik Kantilal Patel | 81f7634 | 2014-11-14 12:45:26 -0800 | [diff] [blame] | 1357 | #ifdef WLAN_FEATURE_AP_HT40_24G |
| 1358 | tpSirHT2040CoexInfoInd pSmeHT2040CoexInfoInd; |
| 1359 | #endif |
Anurag Chouhan | bdb1fd6 | 2017-07-19 16:32:33 +0530 | [diff] [blame] | 1360 | tDot11fIEHTCaps ht_caps; |
| 1361 | tDot11fIEVHTCaps vht_caps; |
| 1362 | tDot11fIEhs20vendor_ie hs20vendor_ie; |
| 1363 | tDot11fIEVHTOperation vht_operation; |
| 1364 | tDot11fIEHTInfo ht_operation; |
| 1365 | bool reassoc; |
Abhishek Singh | 550aa8c | 2017-10-30 17:34:53 +0530 | [diff] [blame] | 1366 | struct sir_channel_chanege_rsp *ap_chan_change_rsp; |
Hanumanth Reddy Pothula | 5732363 | 2017-12-06 17:55:09 +0530 | [diff] [blame] | 1367 | tSirSmeChanInfo chan_info; |
| 1368 | tSirMacHTChannelWidth ch_width; |
Abhinav Kumar | d6d8dd2 | 2019-08-05 12:38:50 +0530 | [diff] [blame] | 1369 | #ifdef WLAN_FEATURE_SAE |
| 1370 | struct sir_sae_info *sae_info; |
| 1371 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1372 | }tCsrRoamInfo; |
| 1373 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1374 | typedef struct tagCsrFreqScanInfo |
| 1375 | { |
| 1376 | tANI_U32 nStartFreq; //in unit of MHz |
| 1377 | tANI_U32 nEndFreq; //in unit of MHz |
| 1378 | tSirScanType scanType; |
| 1379 | }tCsrFreqScanInfo; |
| 1380 | |
| 1381 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1382 | typedef struct sSirSmeAssocIndToUpperLayerCnf |
| 1383 | { |
| 1384 | tANI_U16 messageType; // eWNI_SME_ASSOC_CNF |
| 1385 | tANI_U16 length; |
| 1386 | tANI_U8 sessionId; |
| 1387 | tSirResultCodes statusCode; |
| 1388 | tSirMacAddr bssId; // Self BSSID |
| 1389 | tSirMacAddr peerMacAddr; |
| 1390 | tANI_U16 aid; |
| 1391 | tSirMacAddr alternateBssId; |
| 1392 | tANI_U8 alternateChannelId; |
| 1393 | tANI_U8 wmmEnabledSta; //set to true if WMM enabled STA |
| 1394 | tSirRSNie rsnIE; // RSN IE received from peer |
| 1395 | tSirAddie addIE; // Additional IE received from peer, which can be WSC and/or P2P IE |
| 1396 | tANI_U8 reassocReq; //set to true if reassoc |
Hardik Kantilal Patel | 1ba630f | 2014-11-21 04:32:05 +0530 | [diff] [blame] | 1397 | #ifdef WLAN_FEATURE_AP_HT40_24G |
| 1398 | tANI_U8 HT40MHzIntoEnabledSta; //set to true if 40 MHz Intolerant enabled STA |
| 1399 | #endif |
Deepthi Gowri | ae6a166 | 2015-10-12 12:59:37 +0530 | [diff] [blame] | 1400 | uint32_t rate_flags; |
Hanumanth Reddy Pothula | 5732363 | 2017-12-06 17:55:09 +0530 | [diff] [blame] | 1401 | tSirSmeChanInfo chan_info; |
| 1402 | tSirMacHTChannelWidth ch_width; |
| 1403 | tDot11fIEHTCaps HTCaps; |
| 1404 | tDot11fIEVHTCaps VHTCaps; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1405 | } tSirSmeAssocIndToUpperLayerCnf, *tpSirSmeAssocIndToUpperLayerCnf; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1406 | |
| 1407 | typedef struct tagCsrSummaryStatsInfo |
| 1408 | { |
| 1409 | tANI_U32 retry_cnt[4]; |
| 1410 | tANI_U32 multiple_retry_cnt[4]; |
| 1411 | tANI_U32 tx_frm_cnt[4]; |
| 1412 | //tANI_U32 num_rx_frm_crc_err; same as rx_error_cnt |
| 1413 | //tANI_U32 num_rx_frm_crc_ok; same as rx_frm_cnt |
| 1414 | tANI_U32 rx_frm_cnt; |
| 1415 | tANI_U32 frm_dup_cnt; |
| 1416 | tANI_U32 fail_cnt[4]; |
| 1417 | tANI_U32 rts_fail_cnt; |
| 1418 | tANI_U32 ack_fail_cnt; |
| 1419 | tANI_U32 rts_succ_cnt; |
| 1420 | tANI_U32 rx_discard_cnt; |
| 1421 | tANI_U32 rx_error_cnt; |
| 1422 | tANI_U32 tx_byte_cnt; |
| 1423 | |
| 1424 | }tCsrSummaryStatsInfo; |
| 1425 | |
| 1426 | typedef struct tagCsrGlobalClassAStatsInfo |
| 1427 | { |
| 1428 | tANI_U32 rx_frag_cnt; |
| 1429 | tANI_U32 promiscuous_rx_frag_cnt; |
| 1430 | //tANI_U32 rx_fcs_err; |
| 1431 | tANI_U32 rx_input_sensitivity; |
| 1432 | tANI_U32 max_pwr; |
| 1433 | //tANI_U32 default_pwr; |
| 1434 | tANI_U32 sync_fail_cnt; |
| 1435 | tANI_U32 tx_rate; |
| 1436 | //mcs index for HT20 and HT40 rates |
| 1437 | tANI_U32 mcs_index; |
| 1438 | //to defferentiate between HT20 and HT40 rates;short and long guard interval |
| 1439 | tANI_U32 tx_rate_flags; |
| 1440 | |
| 1441 | }tCsrGlobalClassAStatsInfo; |
| 1442 | |
| 1443 | typedef struct tagCsrGlobalClassBStatsInfo |
| 1444 | { |
| 1445 | tANI_U32 uc_rx_wep_unencrypted_frm_cnt; |
| 1446 | tANI_U32 uc_rx_mic_fail_cnt; |
| 1447 | tANI_U32 uc_tkip_icv_err; |
| 1448 | tANI_U32 uc_aes_ccmp_format_err; |
| 1449 | tANI_U32 uc_aes_ccmp_replay_cnt; |
| 1450 | tANI_U32 uc_aes_ccmp_decrpt_err; |
| 1451 | tANI_U32 uc_wep_undecryptable_cnt; |
| 1452 | tANI_U32 uc_wep_icv_err; |
| 1453 | tANI_U32 uc_rx_decrypt_succ_cnt; |
| 1454 | tANI_U32 uc_rx_decrypt_fail_cnt; |
| 1455 | tANI_U32 mcbc_rx_wep_unencrypted_frm_cnt; |
| 1456 | tANI_U32 mcbc_rx_mic_fail_cnt; |
| 1457 | tANI_U32 mcbc_tkip_icv_err; |
| 1458 | tANI_U32 mcbc_aes_ccmp_format_err; |
| 1459 | tANI_U32 mcbc_aes_ccmp_replay_cnt; |
| 1460 | tANI_U32 mcbc_aes_ccmp_decrpt_err; |
| 1461 | tANI_U32 mcbc_wep_undecryptable_cnt; |
| 1462 | tANI_U32 mcbc_wep_icv_err; |
| 1463 | tANI_U32 mcbc_rx_decrypt_succ_cnt; |
| 1464 | tANI_U32 mcbc_rx_decrypt_fail_cnt; |
| 1465 | |
| 1466 | }tCsrGlobalClassBStatsInfo; |
| 1467 | |
| 1468 | typedef struct tagCsrGlobalClassCStatsInfo |
| 1469 | { |
| 1470 | tANI_U32 rx_amsdu_cnt; |
| 1471 | tANI_U32 rx_ampdu_cnt; |
| 1472 | tANI_U32 tx_20_frm_cnt; |
| 1473 | tANI_U32 rx_20_frm_cnt; |
| 1474 | tANI_U32 rx_mpdu_in_ampdu_cnt; |
| 1475 | tANI_U32 ampdu_delimiter_crc_err; |
| 1476 | |
| 1477 | }tCsrGlobalClassCStatsInfo; |
| 1478 | |
| 1479 | typedef struct tagCsrGlobalClassDStatsInfo |
| 1480 | { |
| 1481 | tANI_U32 tx_uc_frm_cnt; |
| 1482 | tANI_U32 tx_mc_frm_cnt; |
| 1483 | tANI_U32 tx_bc_frm_cnt; |
| 1484 | tANI_U32 rx_uc_frm_cnt; |
| 1485 | tANI_U32 rx_mc_frm_cnt; |
| 1486 | tANI_U32 rx_bc_frm_cnt; |
| 1487 | tANI_U32 tx_uc_byte_cnt[4]; |
| 1488 | tANI_U32 tx_mc_byte_cnt; |
| 1489 | tANI_U32 tx_bc_byte_cnt; |
| 1490 | tANI_U32 rx_uc_byte_cnt[4]; |
| 1491 | tANI_U32 rx_mc_byte_cnt; |
| 1492 | tANI_U32 rx_bc_byte_cnt; |
| 1493 | tANI_U32 rx_byte_cnt; |
| 1494 | tANI_U32 num_rx_bytes_crc_ok; |
| 1495 | tANI_U32 rx_rate; |
| 1496 | |
| 1497 | }tCsrGlobalClassDStatsInfo; |
| 1498 | |
| 1499 | typedef struct tagCsrPerStaStatsInfo |
| 1500 | { |
| 1501 | tANI_U32 tx_frag_cnt[4]; |
| 1502 | tANI_U32 tx_ampdu_cnt; |
| 1503 | tANI_U32 tx_mpdu_in_ampdu_cnt; |
| 1504 | } tCsrPerStaStatsInfo; |
| 1505 | |
| 1506 | typedef struct tagCsrRoamSetKey |
| 1507 | { |
| 1508 | eCsrEncryptionType encType; |
| 1509 | tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx |
| 1510 | tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key |
| 1511 | tANI_U8 paeRole; //0 for supplicant |
| 1512 | tANI_U8 keyId; // Kye index |
| 1513 | tANI_U16 keyLength; //Number of bytes containing the key in pKey |
| 1514 | tANI_U8 Key[CSR_MAX_KEY_LEN]; |
| 1515 | tANI_U8 keyRsc[CSR_MAX_RSC_LEN]; |
| 1516 | } tCsrRoamSetKey; |
| 1517 | |
| 1518 | typedef struct tagCsrRoamRemoveKey |
| 1519 | { |
| 1520 | eCsrEncryptionType encType; |
| 1521 | tCsrBssid peerMac; //Peers MAC address. ALL 1's for group key |
| 1522 | tANI_U8 keyId; //key index |
| 1523 | } tCsrRoamRemoveKey; |
| 1524 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1525 | #ifdef FEATURE_WLAN_TDLS |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 1526 | |
| 1527 | typedef struct tagCsrLinkEstablishParams |
| 1528 | { |
| 1529 | tSirMacAddr peerMac; |
| 1530 | tANI_U8 uapsdQueues; |
Agarwal Ashish | 16020c4 | 2014-12-29 22:01:11 +0530 | [diff] [blame] | 1531 | tANI_U8 qos; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 1532 | tANI_U8 maxSp; |
| 1533 | tANI_U8 isBufSta; |
Naresh Jayaram | dff88f9 | 2014-02-12 21:44:29 +0530 | [diff] [blame] | 1534 | tANI_U8 isOffChannelSupported; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 1535 | tANI_U8 isResponder; |
Naresh Jayaram | dff88f9 | 2014-02-12 21:44:29 +0530 | [diff] [blame] | 1536 | tANI_U8 supportedChannelsLen; |
| 1537 | tANI_U8 supportedChannels[SIR_MAC_MAX_SUPP_CHANNELS]; |
| 1538 | tANI_U8 supportedOperClassesLen; |
| 1539 | tANI_U8 supportedOperClasses[SIR_MAC_MAX_SUPP_OPER_CLASSES]; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 1540 | }tCsrTdlsLinkEstablishParams; |
| 1541 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1542 | typedef struct tagCsrTdlsSendMgmt |
| 1543 | { |
| 1544 | tSirMacAddr peerMac; |
| 1545 | tANI_U8 frameType; |
| 1546 | tANI_U8 dialog; |
| 1547 | tANI_U16 statusCode; |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 1548 | tANI_U8 responder; |
Pradeep Reddy POTTETI | ca171f8 | 2014-03-21 14:17:35 +0530 | [diff] [blame] | 1549 | tANI_U32 peerCapability; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1550 | tANI_U8 *buf; |
| 1551 | tANI_U8 len; |
| 1552 | |
| 1553 | }tCsrTdlsSendMgmt; |
| 1554 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1555 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1556 | |
| 1557 | typedef void * tScanResultHandle; |
| 1558 | |
| 1559 | #define CSR_INVALID_SCANRESULT_HANDLE (NULL) |
| 1560 | |
Varun Reddy Yeturu | cc661d2 | 2013-05-20 11:47:10 -0700 | [diff] [blame] | 1561 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 1562 | typedef struct tagCsrHandoffRequest |
| 1563 | { |
| 1564 | tCsrBssid bssid; |
| 1565 | tANI_U8 channel; |
Selvaraj, Sridhar | 3714c4d | 2016-06-22 15:19:12 +0530 | [diff] [blame] | 1566 | /* To check if its a REASSOC or a FASTREASSOC IOCTL */ |
| 1567 | tANI_U8 src; |
Varun Reddy Yeturu | cc661d2 | 2013-05-20 11:47:10 -0700 | [diff] [blame] | 1568 | }tCsrHandoffRequest; |
| 1569 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1570 | |
Selvaraj, Sridhar | 4fa1523 | 2016-06-18 12:27:25 +0530 | [diff] [blame] | 1571 | typedef enum { |
| 1572 | REASSOC = 0, |
| 1573 | FASTREASSOC = 1, |
| 1574 | CONNECT_CMD_USERSPACE = 2, |
| 1575 | } handoff_src; |
| 1576 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1577 | #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD) |
| 1578 | typedef struct tagCsrEseBeaconReqParams |
Srinivas Girigowda | 91ccbe8 | 2013-11-10 16:37:38 -0800 | [diff] [blame] | 1579 | { |
| 1580 | tANI_U16 measurementToken; |
| 1581 | tANI_U8 channel; |
| 1582 | tANI_U8 scanMode; |
| 1583 | tANI_U16 measurementDuration; |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1584 | } tCsrEseBeaconReqParams, *tpCsrEseBeaconReqParams; |
Srinivas Girigowda | 91ccbe8 | 2013-11-10 16:37:38 -0800 | [diff] [blame] | 1585 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1586 | typedef struct tagCsrEseBeaconReq |
Srinivas Girigowda | 91ccbe8 | 2013-11-10 16:37:38 -0800 | [diff] [blame] | 1587 | { |
| 1588 | tANI_U8 numBcnReqIe; |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1589 | tCsrEseBeaconReqParams bcnReq[SIR_ESE_MAX_MEAS_IE_REQS]; |
| 1590 | } tCsrEseBeaconReq, *tpCsrEseBeaconReq; |
| 1591 | #endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1592 | |
Hanumantha Reddy Pothula | f57da15 | 2014-10-31 13:02:08 +0530 | [diff] [blame] | 1593 | struct tagCsrDelStaParams |
| 1594 | { |
| 1595 | tCsrBssid peerMacAddr; |
| 1596 | u16 reason_code; |
| 1597 | u8 subtype; |
| 1598 | }; |
| 1599 | |
Padma, Santhosh Kumar | 98b5d25 | 2016-10-17 17:30:41 +0530 | [diff] [blame] | 1600 | |
| 1601 | /** |
| 1602 | * struct csr_set_tx_max_pwr_per_band - Req params to |
| 1603 | * set max tx power per band |
| 1604 | * @band: band for which power to be set |
| 1605 | * @power: power to set in dB |
| 1606 | */ |
| 1607 | struct csr_set_tx_max_pwr_per_band { |
| 1608 | eCsrBand band; |
| 1609 | tPowerdBm power; |
| 1610 | }; |
| 1611 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1612 | ////////////////////////////////////////////Common SCAN starts |
| 1613 | |
| 1614 | //void *p2 -- the second context pass in for the caller |
| 1615 | //***what if callback is called before requester gets the scanId?? |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1616 | typedef eHalStatus (*csrScanCompleteCallback)(tHalHandle, void *p2, tANI_U32 scanID, eCsrScanStatus status); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1617 | |
| 1618 | |
| 1619 | |
| 1620 | ///////////////////////////////////////////Common Roam starts |
| 1621 | |
| 1622 | //pContext is the pContext passed in with the roam request |
| 1623 | //pParam is a pointer to a tCsrRoamInfo, see definition of eRoamCmdStatus and |
| 1624 | // eRoamCmdResult for detail valid members. It may be NULL |
| 1625 | //roamId is to identify the callback related roam request. 0 means unsolicit |
| 1626 | //roamStatus is a flag indicating the status of the callback |
| 1627 | //roamResult is the result |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1628 | typedef eHalStatus (*csrRoamCompleteCallback)(void *pContext, tCsrRoamInfo *pParam, tANI_U32 roamId, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1629 | eRoamCmdStatus roamStatus, eCsrRoamResult roamResult); |
| 1630 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1631 | typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1632 | |
| 1633 | /* --------------------------------------------------------------------------- |
| 1634 | \fn csrRoamGetNumPMKIDCache |
| 1635 | \brief return number of PMKID cache entries |
| 1636 | \return tANI_U32 - the number of PMKID cache entries |
| 1637 | -------------------------------------------------------------------------------*/ |
| 1638 | //tANI_U32 csrRoamGetNumPMKIDCache(tHalHandle hHal); |
| 1639 | |
| 1640 | /* --------------------------------------------------------------------------- |
| 1641 | \fn csrRoamGetPMKIDCache |
| 1642 | \brief return PMKID cache from CSR |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1643 | \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] | 1644 | needed or actually number in tPmkidCacheInfo. |
| 1645 | \param pPmkidCache - Caller allocated memory that contains PMKID cache, if any, upon return |
| 1646 | \return eHalStatus - when fail, it usually means the buffer allocated is not big enough |
| 1647 | -------------------------------------------------------------------------------*/ |
| 1648 | //eHalStatus csrRoamGetPMKIDCache(tHalHandle hHal, tANI_U32 *pNum, tPmkidCacheInfo *pPmkidCache); |
| 1649 | |
| 1650 | //pProfile - pointer to tCsrRoamProfile |
| 1651 | #define CSR_IS_START_IBSS(pProfile) (eCSR_BSS_TYPE_START_IBSS == (pProfile)->BSSType) |
| 1652 | #define CSR_IS_JOIN_TO_IBSS(pProfile) (eCSR_BSS_TYPE_IBSS == (pProfile)->BSSType) |
| 1653 | #define CSR_IS_IBSS(pProfile) ( CSR_IS_START_IBSS(pProfile) || CSR_IS_JOIN_TO_IBSS(pProfile) ) |
| 1654 | #define CSR_IS_INFRASTRUCTURE(pProfile) (eCSR_BSS_TYPE_INFRASTRUCTURE == (pProfile)->BSSType) |
| 1655 | #define CSR_IS_ANY_BSS_TYPE(pProfile) (eCSR_BSS_TYPE_ANY == (pProfile)->BSSType) |
| 1656 | #define CSR_IS_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType ) |
| 1657 | #define CSR_IS_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType ) |
| 1658 | #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] | 1659 | #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] | 1660 | |
| 1661 | //pProfile - pointer to tCsrRoamConnectedProfile |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1662 | #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] | 1663 | #define CSR_IS_CONN_WDS_AP( pProfile ) ( eCSR_BSS_TYPE_WDS_AP == (pProfile)->BSSType ) |
| 1664 | #define CSR_IS_CONN_WDS_STA( pProfile ) ( eCSR_BSS_TYPE_WDS_STA == (pProfile)->BSSType ) |
| 1665 | #define CSR_IS_CONN_WDS( pProfile ) ( CSR_IS_WDS_AP( pProfile ) || CSR_IS_WDS_STA( pProfile ) ) |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 | ///////////////////////////////////////////Common Roam ends |
| 1670 | |
Abhinav Kumar | b72f8ce | 2019-08-07 16:11:54 +0530 | [diff] [blame] | 1671 | #ifdef WLAN_FEATURE_SAE |
| 1672 | #define CSR_IS_AUTH_TYPE_SAE(auth_type) \ |
| 1673 | (eCSR_AUTH_TYPE_SAE == auth_type) |
| 1674 | #else |
| 1675 | #define CSR_IS_AUTH_TYPE_SAE(auth_type) (false) |
| 1676 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1677 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1678 | /* --------------------------------------------------------------------------- |
| 1679 | \fn csrSetChannels |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1680 | \brief HDD calls this function to change some global settings. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1681 | caller must set the all fields or call csrGetConfigParam to prefill the fields. |
| 1682 | \param pParam - caller allocated memory |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1683 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1684 | -------------------------------------------------------------------------------*/ |
| 1685 | |
| 1686 | eHalStatus csrSetChannels(tHalHandle hHal, tCsrConfigParam *pParam ); |
| 1687 | |
| 1688 | eHalStatus csrSetRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1689 | |
| 1690 | |
| 1691 | //enum to string conversion for debug output |
| 1692 | const char * get_eRoamCmdStatus_str(eRoamCmdStatus val); |
| 1693 | const char * get_eCsrRoamResult_str(eCsrRoamResult val); |
| 1694 | /* --------------------------------------------------------------------------- |
| 1695 | \fn csrSetPhyMode |
| 1696 | \brief HDD calls this function to set the phyMode. |
| 1697 | This function must be called after CFG is downloaded and all the band/mode setting already passed into |
| 1698 | CSR. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1699 | \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] | 1700 | See eCsrPhyMode for definition |
| 1701 | \param eBand - specify the operational band (2.4, 5 or both) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1702 | \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] | 1703 | a restart is needed to apply the change |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1704 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1705 | -------------------------------------------------------------------------------*/ |
| 1706 | eHalStatus csrSetPhyMode(tHalHandle hHal, tANI_U32 phyMode, eCsrBand eBand, tANI_BOOLEAN *pfRestartNeeded); |
| 1707 | |
| 1708 | void csrDumpInit(tHalHandle hHal); |
| 1709 | |
| 1710 | |
| 1711 | /*--------------------------------------------------------------------------- |
| 1712 | This is the type for a link quality callback to be registered with SME |
| 1713 | for indications |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1714 | Once the link quality has been indicated, subsequently, link indications are |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1715 | posted each time there is a CHANGE in link quality. |
| 1716 | *** If there is no change in link, there will be no indication *** |
| 1717 | |
| 1718 | The indications may be based on one or more criteria internal to SME |
| 1719 | such as RSSI and PER. |
| 1720 | |
| 1721 | \param ind - Indication being posted |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1722 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1723 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1724 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1725 | ---------------------------------------------------------------------------*/ |
| 1726 | typedef void (* csrRoamLinkQualityIndCallback) |
| 1727 | (eCsrRoamLinkQualityInd ind, void *pContext); |
| 1728 | |
| 1729 | |
| 1730 | /*--------------------------------------------------------------------------- |
| 1731 | This is the type for a statistics callback to be registered with SME |
| 1732 | for stats reporting |
| 1733 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1734 | Since the client requesting for the stats already know which class/type of |
| 1735 | stats it asked for, the callback will carry them in the rsp buffer |
| 1736 | (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] | 1737 | will be exactly in the same order requested in the stats mask from LSB to MSB |
| 1738 | |
| 1739 | \param stats - stats rsp buffer sent back with the report |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1740 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1741 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1742 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1743 | ---------------------------------------------------------------------------*/ |
| 1744 | typedef void ( *tCsrStatsCallback) (void * stats, void *pContext); |
| 1745 | |
| 1746 | /*--------------------------------------------------------------------------- |
| 1747 | This is the type for a rssi callback to be registered with SME |
| 1748 | for getting rssi |
| 1749 | |
| 1750 | \param rssi - rssi |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1751 | \param pContext - any user data given at callback registration. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1752 | \return None |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1753 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1754 | ---------------------------------------------------------------------------*/ |
| 1755 | |
| 1756 | typedef void ( *tCsrRssiCallback) (v_S7_t rssi, tANI_U32 staId, void *pContext); |
| 1757 | |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1758 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1759 | #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD) |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1760 | /*--------------------------------------------------------------------------- |
| 1761 | This is the type for a tsm stats callback to be registered with SME |
| 1762 | for getting tsm stats |
| 1763 | |
| 1764 | \param tsmMetrics - tsmMetrics |
| 1765 | \param pContext - any user data given at callback registration. |
| 1766 | \return None |
| 1767 | |
| 1768 | ---------------------------------------------------------------------------*/ |
| 1769 | |
| 1770 | typedef void ( *tCsrTsmStatsCallback) (tAniTrafStrmMetrics tsmMetrics, tANI_U32 staId, void *pContext); |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 1771 | #endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */ |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1772 | |
Madan Mohan Koyyalamudi | d9383fd | 2013-08-13 09:27:30 +0530 | [diff] [blame] | 1773 | /*--------------------------------------------------------------------------- |
| 1774 | This is the type for a snr callback to be registered with SME |
| 1775 | for getting snr |
| 1776 | |
| 1777 | \param snr |
| 1778 | \param pContext - any user data given at callback registration. |
| 1779 | \return None |
| 1780 | |
| 1781 | ---------------------------------------------------------------------------*/ |
| 1782 | typedef void (*tCsrSnrCallback) (v_S7_t snr, tANI_U32 staId, void *pContext); |
| 1783 | |
Mahesh A Saptasagar | cfc65ae | 2015-12-22 15:06:10 +0530 | [diff] [blame] | 1784 | /*--------------------------------------------------------------------------- |
| 1785 | This is the type for a get current antenna callback to be registered with SME |
| 1786 | for getting cuurently used antenna index |
| 1787 | |
| 1788 | \param antennaId to be filled by firmware. |
| 1789 | \param pContext - any user data given at callback registration. |
| 1790 | \return None |
| 1791 | |
| 1792 | ---------------------------------------------------------------------------*/ |
| 1793 | typedef void ( *tCsrAntennaIndexCallback) (int antennaId, void *pContext); |
| 1794 | |
| 1795 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1796 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1797 | eHalStatus csrRoamIssueFTPreauthReq(tHalHandle hHal, tANI_U32 sessionId, tpSirBssDescription pBssDescription); |
| 1798 | #endif |
| 1799 | |
| 1800 | /*--------------------------------------------------------------------------- |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1801 | 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] | 1802 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1803 | \param hHal - handle to Hal context |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1804 | \param eBand - band value |
| 1805 | \return eHalStatus |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1806 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1807 | ---------------------------------------------------------------------------*/ |
| 1808 | eHalStatus csrSetBand(tHalHandle hHal, eCsrBand eBand); |
| 1809 | |
| 1810 | /*--------------------------------------------------------------------------- |
| 1811 | This is the function to get the current operating band value |
| 1812 | \param hHal - handl to Hal context |
| 1813 | \return eCsrband - band value |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1814 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1815 | ---------------------------------------------------------------------------*/ |
| 1816 | eCsrBand csrGetCurrentBand (tHalHandle hHal); |
| 1817 | |
Abhishek Singh | e8ebb92 | 2017-11-01 13:30:26 +0530 | [diff] [blame] | 1818 | /** |
| 1819 | * csrConvertCBIniValueToPhyCBState() - convert ini CB value to Phy CB val |
| 1820 | * @cb_ini_value: ini value of cb mode |
| 1821 | * |
| 1822 | * Return: phy CB val |
| 1823 | */ |
| 1824 | ePhyChanBondState csrConvertCBIniValueToPhyCBState(v_U32_t cb_ini_val); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1825 | #endif |
| 1826 | |