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