Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame] | 22 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 23 | * |
| 24 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 25 | * |
| 26 | * |
| 27 | * Permission to use, copy, modify, and/or distribute this software for |
| 28 | * any purpose with or without fee is hereby granted, provided that the |
| 29 | * above copyright notice and this permission notice appear in all |
| 30 | * copies. |
| 31 | * |
| 32 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 33 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 34 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 35 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 36 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 37 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 38 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 39 | * PERFORMANCE OF THIS SOFTWARE. |
| 40 | */ |
| 41 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 42 | /** ------------------------------------------------------------------------- * |
| 43 | ------------------------------------------------------------------------- * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 44 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 45 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 46 | \file csrInternal.h |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 47 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 48 | Define internal data structure for MAC. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 49 | |
| 50 | Copyright (C) 2006 Airgo Networks, Incorporated |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 51 | ========================================================================== */ |
| 52 | #ifndef CSRINTERNAL_H__ |
| 53 | #define CSRINTERNAL_H__ |
| 54 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 55 | #include "vos_status.h" |
| 56 | #include "vos_lock.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 57 | |
| 58 | #include "palTimer.h" |
| 59 | #include "csrSupport.h" |
| 60 | #include "vos_nvitem.h" |
| 61 | #include "wlan_qct_tl.h" |
| 62 | |
| 63 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 64 | #include "csrNeighborRoam.h" |
| 65 | #endif |
| 66 | |
| 67 | #define CSR_MAX_STA (HAL_NUM_STA) |
| 68 | |
| 69 | #define CSR_SME_SCAN_FLAGS_DELETE_CACHE 0x80 |
| 70 | |
| 71 | #define CSR_TITAN_MAX_RATE_MIMO_CB 240 |
| 72 | #define CSR_TITAN_MAX_RATE_MIMO 126 |
| 73 | |
| 74 | //define scan return criteria. LIM should use these define as well |
| 75 | #define CSR_SCAN_RETURN_AFTER_ALL_CHANNELS ( 0 ) |
| 76 | #define CSR_SCAN_RETURN_AFTER_FIRST_MATCH ( 0x01 ) |
| 77 | #define CSR_SCAN_RETURN_AFTER_5_BAND_11d_FOUND ( 0x80 ) |
| 78 | #define CSR_SCAN_RETURN_AFTER_24_BAND_11d_FOUND ( 0x40 ) |
| 79 | #define CSR_SCAN_RETURN_AFTER_EITHER_BAND_11d_FOUND ( CSR_SCAN_RETURN_AFTER_5_BAND_11d_FOUND | CSR_SCAN_RETURN_AFTER_24_BAND_11d_FOUND ) |
Madan Mohan Koyyalamudi | 4c8c635 | 2012-10-15 16:40:16 -0700 | [diff] [blame] | 80 | #define CSR_NUM_RSSI_CAT 15 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 81 | #define CSR_MAX_STATISTICS_REQ 10 |
| 82 | |
| 83 | //Support for multiple session |
| 84 | #define CSR_SESSION_ID_INVALID 0xFF // session ID invalid |
| 85 | #define CSR_ROAM_SESSION_MAX 5 // No of sessions to be supported, and a |
| 86 | // session is for Infra, IBSS or BT-AMP |
| 87 | |
| 88 | #define CSR_IS_SESSION_VALID( pMac, sessionId ) ( ( (sessionId) < CSR_ROAM_SESSION_MAX ) \ |
| 89 | && ( (pMac)->roam.roamSession[(sessionId)].sessionActive ) ) |
| 90 | #define CSR_GET_SESSION( pMac, sessionId ) \ |
| 91 | ( \ |
| 92 | (sessionId < CSR_ROAM_SESSION_MAX) ? \ |
| 93 | (&(pMac)->roam.roamSession[(sessionId)]) :\ |
| 94 | NULL \ |
| 95 | ) |
| 96 | |
Srinivas Girigowda | 41c7c5f | 2013-10-21 19:01:38 -0700 | [diff] [blame] | 97 | #define CSR_IS_SELECT_5GHZ_MARGIN( pMac ) \ |
| 98 | ( \ |
| 99 | (((pMac)->roam.configParam.nSelect5GHzMargin)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \ |
| 100 | ) |
| 101 | |
Madan Mohan Koyyalamudi | d502607 | 2012-11-30 14:56:21 -0800 | [diff] [blame] | 102 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
| 103 | #define CSR_IS_ROAM_PREFER_5GHZ( pMac ) \ |
| 104 | ( \ |
| 105 | (((pMac)->roam.configParam.nRoamPrefer5GHz)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \ |
| 106 | ) |
Srinivas Girigowda | bbd16eb | 2013-03-21 12:34:46 -0700 | [diff] [blame] | 107 | #define CSR_IS_ROAM_INTRA_BAND_ENABLED( pMac ) \ |
| 108 | ( \ |
| 109 | (((pMac)->roam.configParam.nRoamIntraBand)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \ |
| 110 | ) |
Madan Mohan Koyyalamudi | d502607 | 2012-11-30 14:56:21 -0800 | [diff] [blame] | 111 | #endif |
| 112 | |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 113 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 114 | #define CSR_IS_ROAM_SCAN_OFFLOAD_ENABLED( pMac ) \ |
| 115 | ( \ |
| 116 | (((pMac)->roam.configParam.isRoamOffloadScanEnabled)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \ |
| 117 | ) |
Srinivas Girigowda | 830bbd0 | 2013-06-13 19:44:16 -0700 | [diff] [blame] | 118 | |
| 119 | #define CSR_IS_FASTROAM_IN_CONCURRENCY_INI_FEATURE_ENABLED( pMac ) \ |
| 120 | ( \ |
| 121 | (((pMac)->roam.configParam.bFastRoamInConIniFeatureEnabled)?eANI_BOOLEAN_TRUE:eANI_BOOLEAN_FALSE) \ |
| 122 | ) |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 123 | #endif |
| 124 | |
Madan Mohan Koyyalamudi | 470d2cf | 2012-09-28 14:43:44 -0700 | [diff] [blame] | 125 | //Support for "Fast roaming" (i.e., CCX, LFR, or 802.11r.) |
| 126 | #define CSR_BG_SCAN_OCCUPIED_CHANNEL_LIST_LEN 15 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 127 | |
| 128 | typedef enum |
| 129 | { |
| 130 | //eCSR_CFG_DOT11_MODE_BEST = 0, |
| 131 | eCSR_CFG_DOT11_MODE_TAURUS = 0, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 132 | eCSR_CFG_DOT11_MODE_ABG, |
| 133 | eCSR_CFG_DOT11_MODE_11A, |
| 134 | eCSR_CFG_DOT11_MODE_11B, |
| 135 | eCSR_CFG_DOT11_MODE_11G, |
| 136 | eCSR_CFG_DOT11_MODE_11N, |
| 137 | eCSR_CFG_DOT11_MODE_POLARIS, |
| 138 | eCSR_CFG_DOT11_MODE_TITAN, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 139 | #ifdef WLAN_FEATURE_11AC |
| 140 | eCSR_CFG_DOT11_MODE_11AC, |
| 141 | #endif |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 142 | eCSR_CFG_DOT11_MODE_11G_ONLY, |
| 143 | eCSR_CFG_DOT11_MODE_11N_ONLY, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 144 | #ifdef WLAN_FEATURE_11AC |
| 145 | eCSR_CFG_DOT11_MODE_11AC_ONLY, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 146 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 147 | //This value can never set to CFG. It is for CSR's internal use |
| 148 | eCSR_CFG_DOT11_MODE_AUTO, |
| 149 | }eCsrCfgDot11Mode; //Used to determine what to set to the WNI_CFG_DOT11_MODE |
| 150 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 151 | typedef enum etCsrRoamCommands |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 152 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 153 | eCsrRoamNoCommand, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 154 | eCsrRoamCommandScan, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 155 | eCsrRoamCommandRoam, |
| 156 | eCsrRoamCommandWmStatusChange, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 157 | eCsrRoamCommandSetKey, |
| 158 | eCsrRoamCommandRemoveKey, |
| 159 | |
| 160 | } eCsrRoamCommands; |
| 161 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 162 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 163 | { |
| 164 | eCsrScanOther = 1, |
| 165 | eCsrScanLostLink1, |
| 166 | eCsrScanLostLink2, |
| 167 | eCsrScanLostLink3, |
| 168 | eCsrScanLostLink4, |
| 169 | eCsrScan11d1, //First 11d scan |
| 170 | eCsrScan11d2, //First 11d scan has failed |
| 171 | eCsrScan11dDone, //11d scan succeeded, try the rest of the channel |
| 172 | eCsrScanUserRequest, |
| 173 | eCsrScanGetResult, |
| 174 | eCsrScanSetBGScanParam, //used for HO too - bg scan request in NT Handoff sub-state |
| 175 | eCsrScanForSsid, |
| 176 | eCsrScanForCapsChange, |
| 177 | eCsrScanBGScanAbort, |
| 178 | eCsrScanBGScanEnable, |
| 179 | eCsrScanIdleScan, |
| 180 | eCsrScanGetScanChnInfo, //To get the list of channels scanned |
| 181 | |
| 182 | eCsrScanBgScan, // bg scan request in NRT & RT Handoff sub-states |
| 183 | eCsrScanProbeBss, // directed probe on an entry from the candidate list - HO |
| 184 | eCsrScanAbortBgScan, //aborting a BG scan (meaning the scan is triggered by LIM timer) |
| 185 | eCsrScanAbortNormalScan, //aborting a normal scan (the scan is trigger by eWNI_SME_SCAN_REQ) |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 186 | eCsrScanP2PFindPeer, |
| 187 | eCsrScanGetLfrResult, // get the LFR candidates from PE scan cache |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 188 | }eCsrScanReason; |
| 189 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 190 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 191 | { |
| 192 | eCsrNoConnection, // Roaming because we have not established the initial connection. |
| 193 | eCsrCapsChange, // roaming because LIM reported a Capability change in the associated AP. |
| 194 | eCsrForcedDisassoc, // roaming becuase someone asked us to Disassoc and stay disassociated. |
| 195 | eCsrHddIssued, // roaming because an 802.11 request was issued to the driver. |
| 196 | eCsrLostLink1, // roaming because we lost link to an associated AP |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 197 | eCsrLostLink2, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 198 | eCsrLostLink3, |
| 199 | eCsrForcedDisassocMICFailure, // roaming because we need to force a Disassoc due to MIC failure |
| 200 | eCsrHddIssuedReassocToSameAP, |
| 201 | eCsrSmeIssuedReassocToSameAP, |
| 202 | eCsrSmeIssuedReassocToDiffAP, |
| 203 | eCsrForcedDeauth, // roaming becuase someone asked us to deauth and stay disassociated. |
| 204 | eCsrSmeIssuedDisassocForHandoff, // will be issued by Handoff logic to disconect from current AP |
| 205 | eCsrSmeIssuedAssocToSimilarAP, // will be issued by Handoff logic to join a new AP with same profile |
| 206 | eCsrSmeIssuedIbssJoinFailure, // ibss join timer fired before any perr showed up, so shut down the network |
| 207 | eCsrForcedIbssLeave, |
| 208 | eCsrStopBss, |
| 209 | eCsrSmeIssuedFTReassoc, |
| 210 | eCsrForcedDisassocSta, |
| 211 | eCsrForcedDeauthSta, |
Madan Mohan Koyyalamudi | 286b60e | 2012-10-11 12:59:07 -0700 | [diff] [blame] | 212 | eCsrPerformPreauth, |
Venkata Prathyusha Kuntupalli | 239278b | 2013-03-26 15:58:18 -0700 | [diff] [blame] | 213 | eCsrLostLink1Abort, |
| 214 | eCsrLostLink2Abort, |
| 215 | eCsrLostLink3Abort, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 216 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 217 | }eCsrRoamReason; |
| 218 | |
| 219 | typedef enum |
| 220 | { |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 221 | eCSR_ROAM_SUBSTATE_NONE = 0, |
| 222 | eCSR_ROAM_SUBSTATE_START_BSS_REQ, |
| 223 | eCSR_ROAM_SUBSTATE_JOIN_REQ, |
| 224 | eCSR_ROAM_SUBSTATE_REASSOC_REQ, |
| 225 | eCSR_ROAM_SUBSTATE_DISASSOC_REQ, |
| 226 | eCSR_ROAM_SUBSTATE_STOP_BSS_REQ, |
| 227 | eCSR_ROAM_SUBSTATE_DISCONNECT_CONTINUE_ROAMING, //Continue the current roam command after disconnect |
| 228 | eCSR_ROAM_SUBSTATE_AUTH_REQ, |
| 229 | eCSR_ROAM_SUBSTATE_CONFIG, |
| 230 | eCSR_ROAM_SUBSTATE_DEAUTH_REQ, |
| 231 | eCSR_ROAM_SUBSTATE_DISASSOC_NOTHING_TO_JOIN, |
| 232 | eCSR_ROAM_SUBSTATE_DISASSOC_REASSOC_FAILURE, |
| 233 | eCSR_ROAM_SUBSTATE_DISASSOC_FORCED, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 234 | eCSR_ROAM_SUBSTATE_WAIT_FOR_KEY, |
| 235 | eCSR_ROAM_SUBSTATE_DISASSOC_HANDOFF, |
| 236 | eCSR_ROAM_SUBSTATE_JOINED_NO_TRAFFIC, |
| 237 | eCSR_ROAM_SUBSTATE_JOINED_NON_REALTIME_TRAFFIC, |
| 238 | eCSR_ROAM_SUBSTATE_JOINED_REALTIME_TRAFFIC, |
| 239 | // max is 15 unless the bitfield is expanded... |
| 240 | } eCsrRoamSubState; |
| 241 | |
| 242 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 243 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 244 | { |
| 245 | eCSR_ROAMING_STATE_STOP = 0, |
| 246 | eCSR_ROAMING_STATE_IDLE, |
| 247 | eCSR_ROAMING_STATE_SCANNING, |
| 248 | eCSR_ROAMING_STATE_JOINING, |
| 249 | eCSR_ROAMING_STATE_JOINED, |
| 250 | }eCsrRoamState; |
| 251 | |
| 252 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 253 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 254 | { |
| 255 | eCsrContinueRoaming, |
| 256 | eCsrStopRoaming, |
| 257 | eCsrStartIbss, |
| 258 | eCsrStartIbssSameIbss, |
| 259 | eCsrReassocToSelfNoCapChange, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 260 | eCsrStopRoamingDueToConcurrency, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 261 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 262 | }eCsrJoinState; |
| 263 | |
| 264 | typedef enum |
| 265 | { |
| 266 | eCsrNotRoaming, |
| 267 | eCsrLostlinkRoamingDisassoc, |
| 268 | eCsrLostlinkRoamingDeauth, |
| 269 | eCsrDynamicRoaming, |
| 270 | eCsrReassocRoaming, |
| 271 | }eCsrRoamingReason; |
| 272 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 273 | typedef enum |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 274 | { |
| 275 | eCsrDisassociated, |
| 276 | eCsrDeauthenticated |
| 277 | |
| 278 | }eCsrRoamWmStatusChangeTypes; |
| 279 | |
| 280 | typedef enum |
| 281 | { |
| 282 | eCsrSummaryStats = 0, |
| 283 | eCsrGlobalClassAStats, |
| 284 | eCsrGlobalClassBStats, |
| 285 | eCsrGlobalClassCStats, |
| 286 | eCsrGlobalClassDStats, |
| 287 | eCsrPerStaStats, |
| 288 | eCsrMaxStats |
| 289 | }eCsrRoamStatsClassTypes; |
| 290 | |
| 291 | #ifdef FEATURE_WLAN_DIAG_SUPPORT |
| 292 | typedef enum |
| 293 | { |
| 294 | eCSR_WLAN_STATUS_CONNECT =0, |
| 295 | eCSR_WLAN_STATUS_DISCONNECT |
| 296 | |
| 297 | }eCsrDiagWlanStatusEventSubtype; |
| 298 | |
| 299 | typedef enum |
| 300 | { |
| 301 | eCSR_REASON_UNSPECIFIED = 0, |
| 302 | eCSR_REASON_USER_REQUESTED, |
| 303 | eCSR_REASON_MIC_ERROR, |
| 304 | eCSR_REASON_DISASSOC, |
| 305 | eCSR_REASON_DEAUTH, |
| 306 | eCSR_REASON_HANDOFF, |
| 307 | |
| 308 | }eCsrDiagWlanStatusEventReason; |
| 309 | |
| 310 | typedef enum |
| 311 | { |
| 312 | eCSR_WLAN_HANDOFF_EVENT =0, |
| 313 | |
| 314 | }eCsrDiagWlanHandoffEventSubtype; |
| 315 | |
| 316 | typedef enum |
| 317 | { |
| 318 | eCSR_WLAN_VCC_EVENT =0, |
| 319 | |
| 320 | }eCsrDiagWlanVccEventSubtype; |
| 321 | |
| 322 | #endif //FEATURE_WLAN_DIAG_SUPPORT |
| 323 | |
| 324 | typedef struct tagCsrChannel |
| 325 | { |
| 326 | tANI_U8 numChannels; |
| 327 | tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 328 | }tCsrChannel; |
| 329 | |
| 330 | typedef struct tagScanProfile |
| 331 | { |
| 332 | tANI_U32 minChnTime; |
| 333 | tANI_U32 maxChnTime; |
| 334 | tANI_U32 restTime; //This is ignored if not associated |
| 335 | tANI_U32 numOfChannels; |
| 336 | tANI_U8 *pChannelList; |
| 337 | tSirScanType scanType; //active or passive |
| 338 | eCsrRoamBssType bssType; //BSS or IBSS |
| 339 | tANI_U8 ssid[WNI_CFG_SSID_LEN]; |
| 340 | tANI_U8 bReturnAfter1stMatch; |
| 341 | tANI_U8 fUniqueResult; |
| 342 | tANI_U8 freshScan; |
| 343 | tCsrBssid bssid; |
| 344 | }tScanProfile; |
| 345 | |
| 346 | typedef struct tagBssConfigParam |
| 347 | { |
| 348 | eCsrMediaAccessType qosType; |
| 349 | tSirMacSSid SSID; |
| 350 | tANI_U32 uRTSThresh; |
| 351 | tANI_U32 uDeferThresh; // |
| 352 | eCsrCfgDot11Mode uCfgDot11Mode; |
| 353 | eCsrBand eBand; |
| 354 | tANI_U8 standardRate[CSR_DOT11_SUPPORTED_RATES_MAX]; |
| 355 | tANI_U8 extendedRate[CSR_DOT11_EXTENDED_SUPPORTED_RATES_MAX]; |
| 356 | eCsrExposedTxRate txRate; |
| 357 | tAniAuthType authType; |
| 358 | eCsrEncryptionType encType; |
| 359 | tANI_U32 uShortSlotTime; |
| 360 | tANI_U32 uHTSupport; //High throughput |
| 361 | tANI_U32 uPowerLimit; |
| 362 | tANI_U32 uHeartBeatThresh; |
| 363 | tANI_U32 uJoinTimeOut; |
| 364 | tSirMacCapabilityInfo BssCap; |
| 365 | tANI_BOOLEAN f11hSupport; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 366 | ePhyChanBondState cbMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 367 | }tBssConfigParam; |
| 368 | |
| 369 | |
| 370 | typedef struct tagCsrRoamStartBssParams |
| 371 | { |
| 372 | tSirMacSSid ssId; |
| 373 | tCsrBssid bssid; //this is the BSSID for the party we want to join (only use for IBSS or WDS) |
| 374 | tSirNwType sirNwType; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 375 | ePhyChanBondState cbMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 376 | tSirMacRateSet operationalRateSet; |
| 377 | tSirMacRateSet extendedRateSet; |
| 378 | tANI_U8 operationChn; |
| 379 | eCsrCfgDot11Mode uCfgDot11Mode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 380 | tANI_U8 privacy; |
| 381 | tANI_BOOLEAN fwdWPSPBCProbeReq; |
| 382 | tANI_BOOLEAN protEnabled; |
| 383 | tANI_BOOLEAN obssProtEnabled; |
| 384 | tAniAuthType authType; |
| 385 | tANI_U16 beaconInterval; //If this is 0, SME will fill in for caller. |
| 386 | tANI_U16 ht_protection; |
| 387 | tANI_U32 dtimPeriod; |
| 388 | tANI_U8 ApUapsdEnable; |
| 389 | tANI_U8 ssidHidden; |
| 390 | tANI_U8 wps_state; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 391 | tVOS_CON_MODE bssPersona; |
| 392 | tANI_U16 nRSNIELength; //The byte count in the pRSNIE, if 0, pRSNIE is ignored. |
| 393 | tANI_U8 *pRSNIE; //If not null, it has the IE byte stream for RSN |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 394 | tANI_BOOLEAN updatebeaconInterval; //Flag used to indicate update |
| 395 | // beaconInterval |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 396 | }tCsrRoamStartBssParams; |
| 397 | |
| 398 | |
| 399 | typedef struct tagScanCmd |
| 400 | { |
| 401 | tANI_U32 scanID; |
| 402 | csrScanCompleteCallback callback; |
| 403 | void *pContext; |
| 404 | eCsrScanReason reason; |
| 405 | eCsrRoamState lastRoamState[CSR_ROAM_SESSION_MAX]; |
| 406 | tCsrRoamProfile *pToRoamProfile; |
| 407 | tANI_U32 roamId; //this is the ID related to the pToRoamProfile |
| 408 | union |
| 409 | { |
| 410 | tCsrScanRequest scanRequest; |
| 411 | tCsrBGScanRequest bgScanRequest; |
| 412 | }u; |
| 413 | }tScanCmd; |
| 414 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 415 | typedef struct tagRoamCmd |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 416 | { |
| 417 | tANI_U32 roamId; |
| 418 | eCsrRoamReason roamReason; |
| 419 | tCsrRoamProfile roamProfile; |
| 420 | tScanResultHandle hBSSList; //BSS list fits the profile |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 421 | tListElem *pRoamBssEntry; //point to the current BSS in the list that is roaming. It starts from head to tail |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 422 | tSirBssDescription *pLastRoamBss; //the last BSS we try and failed |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 423 | tANI_BOOLEAN fReleaseBssList; //whether to free hBSSList |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 424 | tANI_BOOLEAN fReleaseProfile; //whether to free roamProfile |
| 425 | tANI_BOOLEAN fReassoc; //whether this command is for reassociation |
| 426 | tANI_BOOLEAN fUpdateCurRoamProfile; //whether pMac->roam.pCurRoamProfile needs to be updated |
| 427 | //this is for CSR internal used only. And it should not be assigned when creating the command |
| 428 | //This causes the roam command not to do anything. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 429 | tANI_BOOLEAN fReassocToSelfNoCapChange; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 430 | |
| 431 | tANI_BOOLEAN fStopWds; |
| 432 | tSirMacAddr peerMac; |
| 433 | tSirMacReasonCodes reason; |
| 434 | }tRoamCmd; |
| 435 | |
| 436 | typedef struct tagSetKeyCmd |
| 437 | { |
| 438 | tANI_U32 roamId; |
| 439 | eCsrEncryptionType encType; |
| 440 | eCsrAuthType authType; |
| 441 | tAniKeyDirection keyDirection; //Tx, Rx or Tx-and-Rx |
| 442 | tSirMacAddr peerMac; //Peer's MAC address. ALL 1's for group key |
| 443 | tANI_U8 paeRole; //0 for supplicant |
| 444 | tANI_U8 keyId; // Kye index |
| 445 | tANI_U8 keyLength; //Number of bytes containing the key in pKey |
| 446 | tANI_U8 Key[CSR_MAX_KEY_LEN]; |
| 447 | tANI_U8 keyRsc[CSR_MAX_RSC_LEN]; |
| 448 | } tSetKeyCmd; |
| 449 | |
| 450 | typedef struct tahRemoveKeyCmd |
| 451 | { |
| 452 | tANI_U32 roamId; |
| 453 | eCsrEncryptionType encType; |
| 454 | eCsrAuthType authType; |
| 455 | tSirMacAddr peerMac; //Peer's MAC address. ALL 1's for group key |
| 456 | tANI_U8 keyId; //key index |
| 457 | } tRemoveKeyCmd; |
| 458 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 459 | typedef struct tagWmStatusChangeCmd |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 460 | { |
| 461 | eCsrRoamWmStatusChangeTypes Type; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 462 | union |
| 463 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 464 | tSirSmeDeauthInd DeauthIndMsg; |
| 465 | tSirSmeDisassocInd DisassocIndMsg; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 466 | }u; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 467 | |
| 468 | }tWmStatusChangeCmd; |
| 469 | |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 470 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 471 | typedef struct tagAddStaForSessionCmd |
| 472 | { |
| 473 | //Session self mac addr |
| 474 | tSirMacAddr selfMacAddr; |
Kiran Kumar Lokere | 0ad5cd3 | 2013-06-25 11:26:22 -0700 | [diff] [blame] | 475 | tVOS_CON_MODE currDeviceMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 476 | }tAddStaForSessionCmd; |
| 477 | |
| 478 | typedef struct tagDelStaForSessionCmd |
| 479 | { |
| 480 | //Session self mac addr |
| 481 | tSirMacAddr selfMacAddr; |
| 482 | csrRoamSessionCloseCallback callback; |
| 483 | void *pContext; |
| 484 | }tDelStaForSessionCmd; |
| 485 | |
| 486 | //This structure represents one scan request |
| 487 | typedef struct tagCsrCmd |
| 488 | { |
| 489 | tListElem Link; |
| 490 | eCsrRoamCommands command; |
| 491 | tANI_U8 sessionId; // Session ID for this command |
| 492 | union |
| 493 | { |
| 494 | tScanCmd scanCmd; |
| 495 | tRoamCmd roamCmd; |
| 496 | tWmStatusChangeCmd wmStatusChangeCmd; |
| 497 | tSetKeyCmd setKeyCmd; |
| 498 | tRemoveKeyCmd removeKeyCmd; |
| 499 | tAddStaForSessionCmd addStaSessionCmd; |
| 500 | tDelStaForSessionCmd delStaSessionCmd; |
| 501 | }u; |
| 502 | }tCsrCmd; |
| 503 | |
| 504 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 505 | typedef struct tagCsr11rConfig |
| 506 | { |
| 507 | tANI_BOOLEAN IsFTResourceReqSupported; |
| 508 | } tCsr11rConfig; |
| 509 | #endif |
| 510 | |
| 511 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 512 | typedef struct tagCsrNeighborRoamConfig |
| 513 | { |
| 514 | tANI_U32 nNeighborScanTimerPeriod; |
| 515 | tANI_U8 nNeighborLookupRssiThreshold; |
| 516 | tANI_U8 nNeighborReassocRssiThreshold; |
| 517 | tANI_U16 nNeighborScanMinChanTime; |
| 518 | tANI_U16 nNeighborScanMaxChanTime; |
| 519 | sCsrChannel neighborScanChanList; |
| 520 | tANI_U8 nMaxNeighborRetries; |
| 521 | tANI_U16 nNeighborResultsRefreshPeriod; |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 522 | tANI_U16 nEmptyScanRefreshPeriod; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 523 | }tCsrNeighborRoamConfig; |
| 524 | #endif |
| 525 | |
| 526 | typedef struct tagCsrConfig |
| 527 | { |
| 528 | tANI_U32 agingCount; |
| 529 | tANI_U32 FragmentationThreshold; |
| 530 | tANI_U32 channelBondingMode24GHz; |
| 531 | tANI_U32 channelBondingMode5GHz; |
| 532 | tANI_U32 RTSThreshold; |
| 533 | eCsrPhyMode phyMode; |
| 534 | eCsrCfgDot11Mode uCfgDot11Mode; |
| 535 | eCsrBand eBand; |
| 536 | tANI_U32 HeartbeatThresh50; |
| 537 | tANI_U32 HeartbeatThresh24; |
| 538 | tANI_U32 bgScanInterval; |
| 539 | eCsrCBChoice cbChoice; |
| 540 | eCsrBand bandCapability; //indicate hw capability |
| 541 | eCsrRoamWmmUserModeType WMMSupportMode; |
| 542 | tANI_BOOLEAN Is11eSupportEnabled; |
| 543 | tANI_BOOLEAN Is11dSupportEnabled; |
| 544 | tANI_BOOLEAN Is11dSupportEnabledOriginal; |
| 545 | tANI_BOOLEAN Is11hSupportEnabled; |
| 546 | tANI_BOOLEAN shortSlotTime; |
| 547 | tANI_BOOLEAN ProprietaryRatesEnabled; |
| 548 | tANI_BOOLEAN fenableMCCMode; |
| 549 | tANI_U16 TxRate; |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 550 | tANI_U8 fAllowMCCGODiffBI; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 551 | tANI_U8 AdHocChannel24; |
| 552 | tANI_U8 AdHocChannel5G; |
| 553 | tANI_U32 impsSleepTime; //in units of microseconds |
| 554 | tANI_U32 scanAgeTimeNCNPS; //scan result aging time threshold when Not-Connect-No-Power-Save, in seconds |
| 555 | tANI_U32 scanAgeTimeNCPS; //scan result aging time threshold when Not-Connect-Power-Save, in seconds |
| 556 | tANI_U32 scanAgeTimeCNPS; //scan result aging time threshold when Connect-No-Power-Save, in seconds, |
| 557 | tANI_U32 scanAgeTimeCPS; //scan result aging time threshold when Connect-Power-Savein seconds |
| 558 | tANI_U32 BssPreferValue[CSR_NUM_RSSI_CAT]; //each RSSI category has one value |
| 559 | int RSSICat[CSR_NUM_RSSI_CAT]; |
| 560 | tANI_U8 bCatRssiOffset; //to set the RSSI difference for each category |
| 561 | tANI_U32 nRoamingTime; //In seconds, CSR will try this long before gives up, 0 means no roaming |
| 562 | //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] | 563 | //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] | 564 | //default channels and the channels in the 802.11d IE. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 565 | tANI_BOOLEAN fEnforce11dChannels; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 566 | //Country Code Priority |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 567 | //0 = 802.11D > Configured Country > NV |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 568 | //1 = Configured Country > 802.11D > NV |
| 569 | tANI_BOOLEAN fSupplicantCountryCodeHasPriority; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 570 | //When true, AP with unknown country code won't be see. |
| 571 | //"Unknown country code" means either Ap doesn't have 11d IE or we cannot |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 572 | //find a domain for the country code in its 11d IE. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 573 | tANI_BOOLEAN fEnforceCountryCodeMatch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 574 | //When true, only APs in the default domain can be seen. If the Ap has "unknown country |
| 575 | //code", or the doamin of the country code doesn't match the default domain, the Ap is |
| 576 | //not acceptable. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 577 | tANI_BOOLEAN fEnforceDefaultDomain; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 578 | |
| 579 | tANI_U16 vccRssiThreshold; |
| 580 | tANI_U32 vccUlMacLossThreshold; |
| 581 | |
| 582 | tANI_U32 nPassiveMinChnTime; //in units of milliseconds |
| 583 | tANI_U32 nPassiveMaxChnTime; //in units of milliseconds |
| 584 | tANI_U32 nActiveMinChnTime; //in units of milliseconds |
| 585 | tANI_U32 nActiveMaxChnTime; //in units of milliseconds |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 586 | |
| 587 | tANI_U32 nActiveMinChnTimeBtc; //in units of milliseconds |
| 588 | tANI_U32 nActiveMaxChnTimeBtc; //in units of milliseconds |
Kiran Kumar Lokere | 458d732 | 2013-05-29 14:29:43 -0700 | [diff] [blame] | 589 | tANI_U8 disableAggWithBtc; |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 590 | #ifdef WLAN_AP_STA_CONCURRENCY |
| 591 | tANI_U32 nPassiveMinChnTimeConc; //in units of milliseconds |
| 592 | tANI_U32 nPassiveMaxChnTimeConc; //in units of milliseconds |
| 593 | tANI_U32 nActiveMinChnTimeConc; //in units of milliseconds |
| 594 | tANI_U32 nActiveMaxChnTimeConc; //in units of milliseconds |
| 595 | tANI_U32 nRestTimeConc; //in units of milliseconds |
Sudhir Sattayappa Kohalli | eb97d50 | 2013-05-22 23:16:42 -0700 | [diff] [blame] | 596 | tANI_U8 nNumStaChanCombinedConc; //number of channels combined for |
| 597 | //Sta in each split scan operation |
| 598 | tANI_U8 nNumP2PChanCombinedConc; //number of channels combined for |
| 599 | //P2P in each split scan operation |
Madan Mohan Koyyalamudi | 4ff9cd6 | 2012-10-30 17:48:57 -0700 | [diff] [blame] | 600 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 601 | |
| 602 | tANI_BOOLEAN IsIdleScanEnabled; |
| 603 | //in dBm, the maximum TX power |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 604 | //The actual TX power is the lesser of this value and 11d. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 605 | //If 11d is disable, the lesser of this and default setting. |
| 606 | tANI_U8 nTxPowerCap; |
| 607 | tANI_U32 statsReqPeriodicity; //stats request frequency from PE while in full power |
| 608 | tANI_U32 statsReqPeriodicityInPS;//stats request frequency from PE while in power save |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 609 | tANI_U32 dtimPeriod; |
| 610 | tANI_BOOLEAN ssidHidden; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 611 | |
| 612 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 613 | tCsr11rConfig csr11rConfig; |
| 614 | #endif |
| 615 | |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 616 | #ifdef FEATURE_WLAN_LFR |
Srinivas Girigowda | 830bbd0 | 2013-06-13 19:44:16 -0700 | [diff] [blame] | 617 | tANI_U8 isFastRoamIniFeatureEnabled; |
Sameer Thalappil | 4ae66ec | 2013-11-05 14:17:35 -0800 | [diff] [blame] | 618 | tANI_U8 MAWCEnabled; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 619 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
Srinivas Girigowda | 830bbd0 | 2013-06-13 19:44:16 -0700 | [diff] [blame] | 620 | tANI_U8 isRoamOffloadScanEnabled; |
| 621 | tANI_BOOLEAN bFastRoamInConIniFeatureEnabled; |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 622 | #endif |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 623 | #endif |
| 624 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 625 | #ifdef FEATURE_WLAN_CCX |
| 626 | tANI_U8 isCcxIniFeatureEnabled; |
| 627 | #endif |
| 628 | |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 629 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 630 | tANI_U8 isFastTransitionEnabled; |
| 631 | tANI_U8 RoamRssiDiff; |
| 632 | tANI_U8 nImmediateRoamRssiDiff; |
| 633 | tANI_BOOLEAN nRoamPrefer5GHz; |
| 634 | tANI_BOOLEAN nRoamIntraBand; |
Srinivas Girigowda | ad34ca9 | 2013-10-22 10:54:29 -0700 | [diff] [blame] | 635 | tANI_BOOLEAN isWESModeEnabled; |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 636 | tANI_BOOLEAN nRoamScanControl; |
Varun Reddy Yeturu | 920df21 | 2013-05-22 08:07:23 -0700 | [diff] [blame] | 637 | tANI_U8 nProbes; |
| 638 | tANI_U16 nRoamScanHomeAwayTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 639 | #endif |
| 640 | |
| 641 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
| 642 | tCsrNeighborRoamConfig neighborRoamConfig; |
| 643 | #endif |
| 644 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 645 | /* 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] | 646 | * This is mandated by WMM-AC certification */ |
| 647 | tANI_BOOLEAN addTSWhenACMIsOff; |
| 648 | |
| 649 | tANI_BOOLEAN fValidateList; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 650 | //Remove this code once SLM_Sessionization is supported |
Madan Mohan Koyyalamudi | 96dd30d | 2012-10-05 17:24:51 -0700 | [diff] [blame] | 651 | //BMPS_WORKAROUND_NOT_NEEDED |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 652 | tANI_BOOLEAN doBMPSWorkaround; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 653 | |
| 654 | //To enable/disable scanning 2.4Ghz channels twice on a single scan request from HDD |
| 655 | tANI_BOOLEAN fScanTwice; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 656 | #ifdef WLAN_FEATURE_11AC |
| 657 | tANI_U32 nVhtChannelWidth; |
Shailender Karmuchi | 08f87c2 | 2013-01-17 12:51:24 -0800 | [diff] [blame] | 658 | tANI_U8 txBFEnable; |
Shailender Karmuchi | cc3fe44 | 2013-02-16 18:18:33 -0800 | [diff] [blame] | 659 | tANI_U8 txBFCsnValue; |
Ravi Joshi | 83bfaa1 | 2013-05-28 22:12:08 -0700 | [diff] [blame] | 660 | tANI_BOOLEAN enableVhtFor24GHz; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 661 | #endif |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 662 | tANI_U8 txLdpcEnable; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 663 | |
Ravi Joshi | d2ca7c4 | 2013-07-23 08:37:49 -0700 | [diff] [blame] | 664 | /* |
| 665 | * Enable/Disable heartbeat offload |
| 666 | */ |
| 667 | tANI_BOOLEAN enableHeartBeatOffload; |
krunal soni | 5afa96c | 2013-09-06 22:19:02 -0700 | [diff] [blame] | 668 | tANI_U8 isAmsduSupportInAMPDU; |
Srinivas Girigowda | 41c7c5f | 2013-10-21 19:01:38 -0700 | [diff] [blame] | 669 | tANI_U8 nSelect5GHzMargin; |
krunal soni | e9002db | 2013-11-25 14:24:17 -0800 | [diff] [blame^] | 670 | tANI_U8 isCoalesingInIBSSAllowed; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 671 | }tCsrConfig; |
| 672 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 673 | typedef struct tagCsrChannelPowerInfo |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 674 | { |
| 675 | tListElem link; |
| 676 | tANI_U8 firstChannel; |
| 677 | tANI_U8 numChannels; |
| 678 | tANI_U8 txPower; |
| 679 | tANI_U8 interChannelOffset; |
| 680 | }tCsrChannelPowerInfo; |
| 681 | |
| 682 | typedef struct tagRoamJoinStatus |
| 683 | { |
| 684 | tSirResultCodes statusCode; |
| 685 | //this is set to unspecified if statusCode indicates timeout. Or it is the failed reason from the other BSS(per 802.11 spec) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 686 | tANI_U32 reasonCode; |
Kiran Kumar Lokere | c8550fa | 2013-04-15 22:23:00 -0700 | [diff] [blame] | 687 | tSirMacAddr bssId; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 688 | }tCsrRoamJoinStatus; |
| 689 | |
| 690 | typedef struct tagCsrOsChannelMask |
| 691 | { |
| 692 | tANI_U8 numChannels; |
| 693 | tANI_BOOLEAN scanEnabled[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 694 | tANI_U8 channelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 695 | }tCsrOsChannelMask; |
| 696 | |
| 697 | |
| 698 | typedef struct tagCsrScanStruct |
| 699 | { |
| 700 | tScanProfile scanProfile; |
| 701 | tANI_U32 nextScanID; |
Madan Mohan Koyyalamudi | ca43cdf | 2012-09-24 13:15:49 -0700 | [diff] [blame] | 702 | tDblLinkList scanResultList; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 703 | tDblLinkList tempScanResults; |
| 704 | tANI_BOOLEAN fScanEnable; |
| 705 | tANI_BOOLEAN fFullScanIssued; |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 706 | vos_timer_t hTimerGetResult; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 707 | #ifdef WLAN_AP_STA_CONCURRENCY |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 708 | vos_timer_t hTimerStaApConcTimer; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 709 | #endif |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 710 | vos_timer_t hTimerIdleScan; |
| 711 | vos_timer_t hTimerResultAging; |
| 712 | vos_timer_t hTimerResultCfgAging; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 713 | tPalTimerHandle hTimerBgScan; |
| 714 | //changes on every scan, it is used as a flag for whether 11d info is found on every scan |
Sandeep Puligilla | 2b6dc63 | 2012-12-17 14:44:16 -0800 | [diff] [blame] | 715 | tANI_U8 channelOf11dInfo; |
| 716 | tANI_U8 scanResultCfgAgingTime; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 717 | //changes on every scan, a flag to tell whether conflict 11d info found on each BSS |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 718 | tANI_BOOLEAN fAmbiguous11dInfoFound; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 719 | //Tush: changes on every scan, a flag to tell whether the applied 11d info present in one of the scan results |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 720 | tANI_BOOLEAN fCurrent11dInfoMatch; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 721 | tANI_BOOLEAN f11dInfoReset; //to indicate whether the 11d info in CFG is reset to default |
| 722 | tSirScanType curScanType; |
| 723 | tCsrChannel baseChannels; //This are all the supported channels AND(&) to the current eBand |
| 724 | tCsrChannel channels11d; |
| 725 | tChannelListWithPower defaultPowerTable[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV |
| 726 | tChannelListWithPower defaultPowerTable40MHz[WNI_CFG_VALID_CHANNEL_LIST_LEN]; //From NV |
| 727 | tANI_U32 numChannelsDefault; //total channels of NV |
| 728 | tCsrChannel base20MHzChannels; //The channel base to work on |
| 729 | tCsrChannel base40MHzChannels; //center channels for 40MHz channels |
| 730 | tDblLinkList channelPowerInfoList24; |
| 731 | tDblLinkList channelPowerInfoList5G; |
| 732 | tANI_U32 nLastAgeTimeOut; |
| 733 | tANI_U32 nAgingCountDown; |
Gopichand Nakkala | 114718f | 2013-03-25 19:19:46 -0700 | [diff] [blame] | 734 | tANI_U8 countryCodeDefault[WNI_CFG_COUNTRY_CODE_LEN]; //The country code from NV |
| 735 | tANI_U8 countryCodeCurrent[WNI_CFG_COUNTRY_CODE_LEN]; |
| 736 | tANI_U8 countryCode11d[WNI_CFG_COUNTRY_CODE_LEN]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 737 | v_REGDOMAIN_t domainIdDefault; //default regulatory domain |
| 738 | v_REGDOMAIN_t domainIdCurrent; //current regulatory domain |
Agarwal Ashish | d9d7260 | 2013-09-13 00:06:17 +0530 | [diff] [blame] | 739 | tCsrBssid currentCountryBssid; // Bssid for current country code |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 740 | tANI_BOOLEAN f11dInfoApplied; |
| 741 | tANI_BOOLEAN fCancelIdleScan; |
| 742 | #ifdef FEATURE_WLAN_WAPI |
| 743 | // tANI_U16 NumBkidCandidate; |
| 744 | // tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED]; /* Move this as part of SessionEntry */ |
| 745 | #endif /* FEATURE_WLAN_WAPI */ |
| 746 | tANI_U8 numBGScanChannel; //number of valid channels in the bgScanChannelList |
| 747 | tANI_U8 bgScanChannelList[WNI_CFG_BG_SCAN_CHANNEL_LIST_LEN]; |
| 748 | //the ChannelInfo member is not used in this structure. |
| 749 | //numBGScanChannel and bgScanChannelList are used for the BG scan channel info |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 750 | tCsrBGScanRequest bgScanParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 751 | tANI_BOOLEAN fRestartIdleScan; |
| 752 | tANI_U32 nIdleScanTimeGap; //the time since last trying to trigger idle scan |
| 753 | tCsrOsChannelMask osScanChannelMask;//keep a track of channels to be scnned while in traffic condition |
| 754 | tANI_U16 nBssLimit; //the maximum number of BSS in scan cache |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 755 | /*channelPowerInfoList24 has been seen corrupted. Set this flag to true trying to |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 756 | * detect when it happens. Adding this into code because we can't reproduce it easily. |
| 757 | * We don't know when it happens. */ |
| 758 | tANI_BOOLEAN fValidateList; |
| 759 | /*Customer wants to start with an active scan based on the default country code. |
| 760 | * This optimization will minimize the driver load to association time. |
| 761 | * Based on this flag we will bypass the initial passive scan needed for 11d |
| 762 | * to determine the country code & domain */ |
| 763 | tANI_BOOLEAN fEnableBypass11d; |
| 764 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 765 | /*Customer wants to optimize the scan time. Avoiding scans(passive) on DFS |
| 766 | * channels while swipping through both bands can save some time |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 767 | * (apprx 1.3 sec) */ |
| 768 | tANI_BOOLEAN fEnableDFSChnlScan; |
| 769 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 770 | /* |
| 771 | * To enable/disable scanning only 2.4Ghz channels on first scan |
| 772 | */ |
| 773 | tANI_BOOLEAN fFirstScanOnly2GChnl; |
| 774 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 775 | tANI_BOOLEAN fDropScanCmd; //true means we don't accept scan commands |
| 776 | |
| 777 | #ifdef WLAN_AP_STA_CONCURRENCY |
| 778 | tDblLinkList scanCmdPendingList; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 779 | #endif |
Madan Mohan Koyyalamudi | 470d2cf | 2012-09-28 14:43:44 -0700 | [diff] [blame] | 780 | tCsrChannel occupiedChannels; //This includes all channels on which candidate APs are found |
Srinivas Girigowda | 41c7c5f | 2013-10-21 19:01:38 -0700 | [diff] [blame] | 781 | tANI_S8 inScanResultBestAPRssi; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 782 | }tCsrScanStruct; |
| 783 | |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 784 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 785 | /* |
| 786 | * struct to carry TDLS discovery info.. |
| 787 | */ |
| 788 | typedef struct sCsrTdlsContext |
| 789 | { |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 790 | tDblLinkList tdlsPotentialPeerList ; |
| 791 | tANI_U16 tdlsCommonFlag ; |
| 792 | tANI_U16 tdlsCommonState ; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 793 | tANI_U16 tdlsPeerCount ; |
| 794 | }tCsrTdlsCtxStruct; |
| 795 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 796 | typedef struct sCsrTdlsPeerLinkInfo |
| 797 | { |
| 798 | tListElem tdlsPeerStaLink ; |
| 799 | tSirTdlsPeerInfo tdlsDisPeerInfo ; |
| 800 | }tCsrTdlsPeerLinkinfo ; |
| 801 | #endif |
Gopichand Nakkala | b977a97 | 2013-02-18 19:15:09 -0800 | [diff] [blame] | 802 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 803 | |
| 804 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 805 | |
| 806 | //Save the connected information. This structure + connectedProfile |
| 807 | //should contain all information about the connection |
| 808 | typedef struct tagRoamCsrConnectedInfo |
| 809 | { |
| 810 | tANI_U32 nBeaconLength; //the length, in bytes, of the beacon frame, can be 0 |
| 811 | tANI_U32 nAssocReqLength; //the length, in bytes, of the assoc req frame, can be 0 |
| 812 | tANI_U32 nAssocRspLength; //The length, in bytes, of the assoc rsp frame, can be 0 |
| 813 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 814 | tANI_U32 nRICRspLength; //Length of the parsed RIC response IEs received in reassoc response |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 815 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 816 | #ifdef FEATURE_WLAN_CCX |
| 817 | tANI_U32 nTspecIeLength; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 818 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 819 | tANI_U8 *pbFrames; //Point to a buffer contain the beacon, assoc req, assoc rsp frame, in that order |
| 820 | //user needs to use nBeaconLength, nAssocReqLength, nAssocRspLength to desice where |
| 821 | //each frame starts and ends. |
| 822 | tANI_U8 staId; |
| 823 | }tCsrRoamConnectedInfo; |
| 824 | |
| 825 | |
| 826 | typedef struct tagCsrLinkQualityIndInfo |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 827 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 828 | csrRoamLinkQualityIndCallback callback; |
| 829 | void *context; |
| 830 | }tCsrLinkQualityIndInfo; |
| 831 | |
| 832 | typedef struct tagCsrPeStatsReqInfo |
| 833 | { |
| 834 | tListElem link; /* list links */ |
| 835 | tANI_U32 statsMask; |
| 836 | tANI_U32 periodicity; |
| 837 | tANI_BOOLEAN rspPending; |
| 838 | vos_timer_t hPeStatsTimer; |
| 839 | tANI_BOOLEAN timerRunning; |
| 840 | tANI_U8 staId; |
| 841 | tANI_U8 numClient; |
| 842 | tpAniSirGlobal pMac; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 843 | /* To remember if the peStats timer is stopped successfully or not */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 844 | tANI_BOOLEAN timerStopFailed; |
| 845 | |
| 846 | }tCsrPeStatsReqInfo; |
| 847 | |
| 848 | typedef struct tagCsrStatsClientReqInfo |
| 849 | { |
| 850 | tListElem link; /* list links */ |
| 851 | eCsrStatsRequesterType requesterId; |
| 852 | tCsrStatsCallback callback; |
| 853 | tANI_U32 periodicity; |
| 854 | void *pContext; |
| 855 | tANI_U32 statsMask; |
| 856 | tCsrPeStatsReqInfo *pPeStaEntry; |
| 857 | tANI_U8 staId; |
| 858 | vos_timer_t timer; |
| 859 | tANI_BOOLEAN timerExpired; |
| 860 | tpAniSirGlobal pMac; // TODO: Confirm this change BTAMP |
| 861 | }tCsrStatsClientReqInfo; |
| 862 | |
| 863 | typedef struct tagCsrTlStatsReqInfo |
| 864 | { |
| 865 | tANI_U32 periodicity; |
| 866 | tANI_BOOLEAN timerRunning; |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 867 | vos_timer_t hTlStatsTimer; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 868 | tANI_U8 numClient; |
| 869 | }tCsrTlStatsReqInfo; |
| 870 | |
| 871 | typedef struct tagCsrRoamSession |
| 872 | { |
| 873 | tANI_U8 sessionId; // Session ID |
| 874 | tANI_BOOLEAN sessionActive; // TRUE if it is used |
| 875 | tCsrBssid selfMacAddr; // For BT-AMP station, this serve as BSSID for self-BSS. |
| 876 | csrRoamCompleteCallback callback; |
| 877 | void *pContext; |
| 878 | eCsrConnectState connectState; |
| 879 | tCsrRoamConnectedProfile connectedProfile; |
| 880 | tCsrRoamConnectedInfo connectedInfo; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 881 | tCsrRoamProfile *pCurRoamProfile; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 882 | tSirBssDescription *pConnectBssDesc; |
| 883 | tANI_U16 NumPmkidCache; |
| 884 | tPmkidCacheInfo PmkidCacheInfo[CSR_MAX_PMKID_ALLOWED]; |
| 885 | tANI_U8 cJoinAttemps; |
| 886 | //This may or may not have the up-to-date valid channel list |
| 887 | //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time |
| 888 | tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 889 | tANI_S32 sPendingCommands; //0 means CSR is ok to low power |
| 890 | #ifdef FEATURE_WLAN_WAPI |
| 891 | tANI_U16 NumBkidCache; |
| 892 | tBkidCacheInfo BkidCacheInfo[CSR_MAX_BKID_ALLOWED]; |
| 893 | #endif /* FEATURE_WLAN_WAPI */ |
| 894 | tANI_BOOLEAN fRoaming; //indicate whether CSR is roaming (either via lostlink or dynamic roaming) |
| 895 | //to remember some parameters needed for START_BSS. |
| 896 | //All member must be set every time we try to join or start an IBSS or BT-AMP |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 897 | tCsrRoamStartBssParams bssParams; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 898 | tANI_U32 nWpaRsnReqIeLength; //the byte count of pWpaRsnIE; |
| 899 | tANI_U8 *pWpaRsnReqIE; //this contain the WPA/RSN IE in assoc request or the one sent in beacon (IBSS) |
| 900 | tANI_U32 nWpaRsnRspIeLength; //the byte count for pWpaRsnRspIE |
| 901 | tANI_U8 *pWpaRsnRspIE; //this contain the WPA/RSN IE in beacon/probe rsp |
| 902 | #ifdef FEATURE_WLAN_WAPI |
| 903 | tANI_U32 nWapiReqIeLength; //the byte count of pWapiReqIE; |
| 904 | tANI_U8 *pWapiReqIE; //this contain the WAPI IE in assoc request or the one sent in beacon (IBSS) |
| 905 | tANI_U32 nWapiRspIeLength; //the byte count for pWapiRspIE |
| 906 | tANI_U8 *pWapiRspIE; //this contain the WAPI IE in beacon/probe rsp |
| 907 | #endif /* FEATURE_WLAN_WAPI */ |
| 908 | tANI_U32 nAddIEScanLength; //the byte count of pAddIeScanIE; |
| 909 | tANI_U8 *pAddIEScan; //this contains the additional IE in (unicast) probe request at the time of join |
| 910 | tANI_U32 nAddIEAssocLength; //the byte count for pAddIeAssocIE |
| 911 | tANI_U8 *pAddIEAssoc; //this contains the additional IE in (re) assoc request |
| 912 | |
| 913 | tANI_TIMESTAMP roamingStartTime; //in units of 10ms |
| 914 | tCsrTimerInfo roamingTimerInfo; |
| 915 | eCsrRoamingReason roamingReason; |
| 916 | tANI_BOOLEAN fCancelRoaming; |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 917 | vos_timer_t hTimerRoaming; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 918 | eCsrRoamResult roamResult; //the roamResult that is used when the roaming timer fires |
| 919 | tCsrRoamJoinStatus joinFailStatusCode; //This is the reason code for join(assoc) failure |
| 920 | //The status code returned from PE for deauth or disassoc (in case of lostlink), or our own dynamic roaming |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 921 | tANI_U32 roamingStatusCode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 922 | tANI_U16 NumPmkidCandidate; |
| 923 | tPmkidCandidateInfo PmkidCandidateInfo[CSR_MAX_PMKID_ALLOWED]; |
| 924 | #ifdef FEATURE_WLAN_WAPI |
| 925 | tANI_U16 NumBkidCandidate; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 926 | tBkidCandidateInfo BkidCandidateInfo[CSR_MAX_BKID_ALLOWED]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 927 | #endif |
| 928 | tANI_BOOLEAN fWMMConnection; |
| 929 | #ifdef FEATURE_WLAN_BTAMP_UT_RF |
| 930 | //To retry a join later when it fails if so desired |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 931 | vos_timer_t hTimerJoinRetry; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 932 | tCsrTimerInfo joinRetryTimerInfo; |
| 933 | tANI_U32 maxRetryCount; |
| 934 | #endif |
| 935 | #ifdef FEATURE_WLAN_CCX |
| 936 | tCsrCcxCckmInfo ccxCckmInfo; |
| 937 | tANI_BOOLEAN isPrevApInfoValid; |
| 938 | tSirMacSSid prevApSSID; |
| 939 | tCsrBssid prevApBssid; |
| 940 | tANI_U8 prevOpChannel; |
| 941 | tANI_U16 clientDissSecs; |
| 942 | tANI_U32 roamTS1; |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 943 | #if defined(FEATURE_WLAN_CCX_UPLOAD) |
| 944 | tCsrCcxCckmIe suppCckmIeInfo; |
| 945 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 946 | #endif |
| 947 | tANI_U8 bRefAssocStartCnt; //Tracking assoc start indication |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 948 | /* to force the AP initiate fresh 802.1x authentication after re-association need to clear |
Madan Mohan Koyyalamudi | ea22cdc | 2012-10-18 21:02:23 -0700 | [diff] [blame] | 949 | * the PMKID cache. To clear the cache in this particular case this is added |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 950 | * it is needed by the HS 2.0 passpoint certification 5.2.a and b testcases */ |
Madan Mohan Koyyalamudi | ea22cdc | 2012-10-18 21:02:23 -0700 | [diff] [blame] | 951 | tANI_BOOLEAN fIgnorePMKIDCache; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 952 | } tCsrRoamSession; |
| 953 | |
| 954 | typedef struct tagCsrRoamStruct |
| 955 | { |
| 956 | tANI_U32 nextRoamId; |
| 957 | tDblLinkList roamCmdPendingList; |
| 958 | tDblLinkList channelList5G; |
| 959 | tDblLinkList channelList24; |
| 960 | tCsrConfig configParam; |
| 961 | tANI_U32 numChannelsEeprom; //total channels of eeprom |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 962 | tCsrChannel base20MHzChannels; //The channel base to work on |
| 963 | tCsrChannel base40MHzChannels; //center channels for 40MHz channels |
| 964 | eCsrRoamState curState[CSR_ROAM_SESSION_MAX]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 965 | eCsrRoamSubState curSubState[CSR_ROAM_SESSION_MAX]; |
| 966 | //This may or may not have the up-to-date valid channel list |
| 967 | //It is used to get WNI_CFG_VALID_CHANNEL_LIST and not allocate memory all the time |
| 968 | tSirMacChanNum validChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN]; |
| 969 | tANI_U32 numValidChannels; //total number of channels in CFG |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 970 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 971 | tANI_S32 sPendingCommands; |
Madan Mohan Koyyalamudi | a48c681 | 2013-07-11 12:01:37 +0530 | [diff] [blame] | 972 | vos_timer_t hTimerWaitForKey; //To support timeout for WaitForKey state |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 973 | tCsrSummaryStatsInfo summaryStatsInfo; |
| 974 | tCsrGlobalClassAStatsInfo classAStatsInfo; |
| 975 | tCsrGlobalClassBStatsInfo classBStatsInfo; |
| 976 | tCsrGlobalClassCStatsInfo classCStatsInfo; |
| 977 | tCsrGlobalClassDStatsInfo classDStatsInfo; |
| 978 | tCsrPerStaStatsInfo perStaStatsInfo[CSR_MAX_STA]; |
| 979 | tDblLinkList statsClientReqList; |
| 980 | tDblLinkList peStatsReqList; |
| 981 | tCsrTlStatsReqInfo tlStatsReqInfo; |
| 982 | eCsrRoamLinkQualityInd vccLinkQuality; |
| 983 | tCsrLinkQualityIndInfo linkQualityIndInfo; |
| 984 | v_CONTEXT_t gVosContext; //used for interaction with TL |
| 985 | //To specify whether an association or a IBSS is WMM enabled |
| 986 | //This parameter is only valid during a join or start BSS command is being executed |
| 987 | //tANI_BOOLEAN fWMMConnection; /* Moving it to be part of roamsession */ |
| 988 | v_U8_t ucACWeights[WLANTL_MAX_AC]; |
| 989 | /* TODO : Upto here */ |
| 990 | tCsrTimerInfo WaitForKeyTimerInfo; |
| 991 | tCsrRoamSession *roamSession; |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 992 | tANI_U32 transactionId; // Current transaction ID for internal use. |
| 993 | #ifdef WLAN_FEATURE_NEIGHBOR_ROAMING |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 994 | tCsrNeighborRoamControlInfo neighborRoamInfo; |
| 995 | #endif |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 996 | #ifdef FEATURE_WLAN_LFR |
| 997 | tANI_U8 isFastRoamIniFeatureEnabled; |
| 998 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 999 | #ifdef FEATURE_WLAN_CCX |
| 1000 | tANI_U8 isCcxIniFeatureEnabled; |
| 1001 | #endif |
Jeff Johnson | 43971f5 | 2012-07-17 12:26:56 -0700 | [diff] [blame] | 1002 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 1003 | tANI_U8 RoamRssiDiff; |
Srinivas Girigowda | ad34ca9 | 2013-10-22 10:54:29 -0700 | [diff] [blame] | 1004 | tANI_BOOLEAN isWESModeEnabled; |
Jeff Johnson | 43971f5 | 2012-07-17 12:26:56 -0700 | [diff] [blame] | 1005 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1006 | }tCsrRoamStruct; |
| 1007 | |
| 1008 | |
| 1009 | #define GET_NEXT_ROAM_ID(pRoamStruct) (((pRoamStruct)->nextRoamId + 1 == 0) ? 1 : (pRoamStruct)->nextRoamId) |
| 1010 | #define CSR_IS_ROAM_STATE(pMac, state, sessionId) ( (state) == (pMac)->roam.curState[sessionId] ) |
| 1011 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1012 | #define CSR_IS_ROAM_STOP(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_STOP, sessionId ) |
| 1013 | #define CSR_IS_ROAM_INIT(pMac, sessionId) CSR_IS_ROAM_STATE( (pMac), eCSR_ROAMING_STATE_INIT, sessionId ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1014 | #define CSR_IS_ROAM_SCANNING(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_SCANNING, sessionId ) |
| 1015 | #define CSR_IS_ROAM_JOINING(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_JOINING, sessionId ) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1016 | #define CSR_IS_ROAM_IDLE(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_IDLE, sessionId ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1017 | #define CSR_IS_ROAM_JOINED(pMac, sessionId) CSR_IS_ROAM_STATE( pMac, eCSR_ROAMING_STATE_JOINED, sessionId ) |
| 1018 | |
| 1019 | #define CSR_IS_ROAM_SUBSTATE(pMac, subState, sessionId) ((subState) == (pMac)->roam.curSubState[sessionId]) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1020 | #define CSR_IS_ROAM_SUBSTATE_JOIN_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOIN_REQ, sessionId) |
| 1021 | #define CSR_IS_ROAM_SUBSTATE_AUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_AUTH_REQ, sessionId) |
| 1022 | #define CSR_IS_ROAM_SUBSTATE_REASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_REASSOC_REQ, sessionId) |
| 1023 | #define CSR_IS_ROAM_SUBSTATE_DISASSOC_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REQ, sessionId) |
| 1024 | #define CSR_IS_ROAM_SUBSTATE_DISASSOC_NO_JOIN(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_NOTHING_TO_JOIN, sessionId) |
| 1025 | #define CSR_IS_ROAM_SUBSTATE_REASSOC_FAIL(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_REASSOC_FAILURE, sessionId) |
| 1026 | #define CSR_IS_ROAM_SUBSTATE_DISASSOC_FORCED(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_FORCED, sessionId) |
| 1027 | #define CSR_IS_ROAM_SUBSTATE_DEAUTH_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DEAUTH_REQ, sessionId) |
| 1028 | #define CSR_IS_ROAM_SUBSTATE_START_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_START_BSS_REQ, sessionId) |
| 1029 | #define CSR_IS_ROAM_SUBSTATE_STOP_BSS_REQ(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_STOP_BSS_REQ, sessionId) |
| 1030 | #define CSR_IS_ROAM_SUBSTATE_DISCONNECT_CONTINUE(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISCONNECT_CONTINUE_ROAMING, sessionId) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1031 | #define CSR_IS_ROAM_SUBSTATE_CONFIG(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_CONFIG, sessionId) |
| 1032 | #define CSR_IS_ROAM_SUBSTATE_WAITFORKEY(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_WAIT_FOR_KEY, sessionId) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1033 | #define CSR_IS_ROAM_SUBSTATE_DISASSOC_HO(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_DISASSOC_HANDOFF, sessionId) |
| 1034 | #define CSR_IS_ROAM_SUBSTATE_HO_NT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NO_TRAFFIC, sessionId) |
| 1035 | #define CSR_IS_ROAM_SUBSTATE_HO_NRT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_NON_REALTIME_TRAFFIC, sessionId) |
| 1036 | #define CSR_IS_ROAM_SUBSTATE_HO_RT(pMac, sessionId) CSR_IS_ROAM_SUBSTATE((pMac), eCSR_ROAM_SUBSTATE_JOINED_REALTIME_TRAFFIC, sessionId) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1037 | |
| 1038 | #define CSR_IS_PHY_MODE_B_ONLY(pMac) \ |
| 1039 | ((eCSR_DOT11_MODE_11b == (pMac)->roam.configParam.phyMode) ||\ |
| 1040 | (eCSR_DOT11_MODE_11b_ONLY == (pMac)->roam.configParam.phyMode)) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1041 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1042 | #define CSR_IS_PHY_MODE_G_ONLY(pMac) \ |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1043 | (eCSR_DOT11_MODE_11g == (pMac)->roam.configParam.phyMode || eCSR_DOT11_MODE_11g_ONLY == (pMac)->roam.configParam.phyMode) |
| 1044 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1045 | #define CSR_IS_PHY_MODE_A_ONLY(pMac) \ |
| 1046 | ((eCSR_DOT11_MODE_11a == (pMac)->roam.configParam.phyMode) ||\ |
| 1047 | (eCSR_DOT11_MODE_11a_ONLY == (pMac)->roam.configParam.phyMode)) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1048 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1049 | #ifdef WLAN_FEATURE_11AC |
| 1050 | #define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \ |
| 1051 | ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \ |
| 1052 | (eCSR_DOT11_MODE_11ac & (phyMode)) || \ |
| 1053 | (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \ |
| 1054 | (eCSR_DOT11_MODE_AUTO & (phyMode))) |
| 1055 | #else |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1056 | #define CSR_IS_PHY_MODE_DUAL_BAND(phyMode) \ |
| 1057 | ((eCSR_DOT11_MODE_abg & (phyMode)) || (eCSR_DOT11_MODE_11n & (phyMode)) || \ |
| 1058 | (eCSR_DOT11_MODE_TAURUS & (phyMode)) || \ |
| 1059 | (eCSR_DOT11_MODE_AUTO & (phyMode))) |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1060 | #endif |
| 1061 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1062 | |
| 1063 | // this function returns TRUE if the NIC is operating exclusively in the 2.4 GHz band, meaning |
| 1064 | // it is NOT operating in the 5.0 GHz band. |
| 1065 | #define CSR_IS_24_BAND_ONLY(pMac) \ |
| 1066 | (eCSR_BAND_24 == (pMac)->roam.configParam.eBand) |
| 1067 | |
| 1068 | #define CSR_IS_5G_BAND_ONLY(pMac) \ |
| 1069 | (eCSR_BAND_5G == (pMac)->roam.configParam.eBand) |
| 1070 | |
| 1071 | #define CSR_IS_RADIO_DUAL_BAND(pMac) \ |
| 1072 | (eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability) |
| 1073 | |
| 1074 | #define CSR_IS_RADIO_BG_ONLY(pMac) \ |
| 1075 | (eCSR_BAND_24 == (pMac)->roam.configParam.bandCapability) |
| 1076 | |
| 1077 | // this function returns TRUE if the NIC is operating exclusively in the 5.0 GHz band, meaning |
| 1078 | // it is NOT operating in the 2.4 GHz band |
| 1079 | #define CSR_IS_RADIO_A_ONLY(pMac) \ |
| 1080 | (eCSR_BAND_5G == (pMac)->roam.configParam.bandCapability) |
| 1081 | |
| 1082 | // this function returns TRUE if the NIC is operating in both bands. |
| 1083 | #define CSR_IS_OPEARTING_DUAL_BAND(pMac) \ |
| 1084 | ((eCSR_BAND_ALL == (pMac)->roam.configParam.bandCapability) && (eCSR_BAND_ALL == (pMac)->roam.configParam.eBand)) |
| 1085 | |
| 1086 | // this function returns TRUE if the NIC can operate in the 5.0 GHz band (could operate in the |
| 1087 | // 2.4 GHz band also). |
| 1088 | #define CSR_IS_OPERATING_A_BAND(pMac) \ |
| 1089 | (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_A_ONLY((pMac)) || CSR_IS_5G_BAND_ONLY((pMac))) |
| 1090 | |
| 1091 | // this function returns TRUE if the NIC can operate in the 2.4 GHz band (could operate in the |
| 1092 | // 5.0 GHz band also). |
| 1093 | #define CSR_IS_OPERATING_BG_BAND(pMac) \ |
| 1094 | (CSR_IS_OPEARTING_DUAL_BAND((pMac)) || CSR_IS_RADIO_BG_ONLY((pMac)) || CSR_IS_24_BAND_ONLY((pMac))) |
| 1095 | |
| 1096 | #define CSR_IS_CHANNEL_5GHZ(chnNum) \ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1097 | (((chnNum) >= CSR_MIN_5GHz_CHANNEL_NUMBER) && ((chnNum) <= CSR_MAX_5GHz_CHANNEL_NUMBER)) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1098 | |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 1099 | #define CSR_IS_CHANNEL_DFS(chnNum) \ |
| 1100 | (NV_CHANNEL_ENABLE != vos_nv_getChannelEnabledState(chnNum)) |
| 1101 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1102 | #define CSR_IS_CHANNEL_24GHZ(chnNum) \ |
| 1103 | (((chnNum) > 0) && ((chnNum) <= CSR_MAX_24GHz_CHANNEL_NUMBER)) |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1104 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1105 | #define CSR_IS_SAME_BAND_CHANNELS(ch1, ch2) (CSR_IS_CHANNEL_5GHZ(ch1) == CSR_IS_CHANNEL_5GHZ(ch2)) |
| 1106 | |
| 1107 | |
| 1108 | #define CSR_IS_11D_INFO_FOUND(pMac) \ |
| 1109 | (0 != (pMac)->scan.channelOf11dInfo) |
| 1110 | // DEAUTHIND |
| 1111 | #define CSR_IS_ROAMING(pSession) ((CSR_IS_LOSTLINK_ROAMING((pSession)->roamingReason)) || \ |
| 1112 | (eCsrDynamicRoaming == (pSession)->roamingReason) || \ |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1113 | (eCsrReassocRoaming == (pSession)->roamingReason)) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1114 | |
| 1115 | |
| 1116 | #define CSR_IS_SET_KEY_COMMAND( pCommand ) ( eSmeCommandSetKey == (pCommand)->command ) |
| 1117 | |
| 1118 | #define CSR_IS_ADDTS_WHEN_ACMOFF_SUPPORTED(pMac) (pMac->roam.configParam.addTSWhenACMIsOff) |
| 1119 | // DEAUTHIND |
| 1120 | #define CSR_IS_LOSTLINK_ROAMING(reason) ((eCsrLostlinkRoamingDisassoc == (reason)) || (eCsrLostlinkRoamingDeauth == (reason))) |
| 1121 | |
Venkata Prathyusha Kuntupalli | 239278b | 2013-03-26 15:58:18 -0700 | [diff] [blame] | 1122 | #define CSR_IS_ROAMING_COMMAND(pCommand) ((eCsrLostLink1 == (pCommand)->u.roamCmd.roamReason) ||\ |
| 1123 | (eCsrLostLink2 == (pCommand)->u.roamCmd.roamReason) ||\ |
| 1124 | (eCsrLostLink3 == (pCommand)->u.roamCmd.roamReason) ) |
| 1125 | |
| 1126 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1127 | //Stop CSR from asking for IMPS, This function doesn't disable IMPS from CSR |
| 1128 | void csrScanSuspendIMPS( tpAniSirGlobal pMac ); |
| 1129 | //Start CSR from asking for IMPS. This function doesn't trigger CSR to request entering IMPS |
| 1130 | //because IMPS maybe disabled. |
| 1131 | void csrScanResumeIMPS( tpAniSirGlobal pMac ); |
| 1132 | |
| 1133 | eHalStatus csrInitGetChannels(tpAniSirGlobal pMac); |
| 1134 | |
| 1135 | eHalStatus csrSetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 1136 | tCsrRoamModifyProfileFields *pModifyProfileFields); |
| 1137 | /* --------------------------------------------------------------------------- |
| 1138 | \fn csrGetModifyProfileFields |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1139 | \brief HDD or SME - QOS calls this function to get the current values of |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1140 | connected profile fields changing which can cause reassoc. |
| 1141 | This function must be called after CFG is downloaded and STA is in connected |
| 1142 | state. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1143 | \param pModifyProfileFields - pointer to the connected profile fields |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1144 | changing which can cause reassoc |
| 1145 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1146 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1147 | -------------------------------------------------------------------------------*/ |
| 1148 | eHalStatus csrGetModifyProfileFields(tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 1149 | tCsrRoamModifyProfileFields * pModifyProfileFields); |
| 1150 | void csrSetGlobalCfgs( tpAniSirGlobal pMac ); |
| 1151 | void csrSetDefaultDot11Mode( tpAniSirGlobal pMac ); |
| 1152 | void csrScanSetChannelMask(tpAniSirGlobal pMac, tCsrChannelInfo *pChannelInfo); |
| 1153 | tANI_BOOLEAN csrIsConnStateDisconnected(tpAniSirGlobal pMac, tANI_U32 sessionId); |
| 1154 | tANI_BOOLEAN csrIsConnStateConnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1155 | tANI_BOOLEAN csrIsConnStateDisconnectedIbss( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1156 | tANI_BOOLEAN csrIsConnStateConnectedInfra( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1157 | tANI_BOOLEAN csrIsConnStateConnected( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1158 | tANI_BOOLEAN csrIsConnStateInfra( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1159 | tANI_BOOLEAN csrIsConnStateIbss( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1160 | tANI_BOOLEAN csrIsConnStateWds( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1161 | tANI_BOOLEAN csrIsConnStateConnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1162 | tANI_BOOLEAN csrIsConnStateDisconnectedWds( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1163 | tANI_BOOLEAN csrIsAnySessionInConnectState( tpAniSirGlobal pMac ); |
| 1164 | tANI_BOOLEAN csrIsAllSessionDisconnected( tpAniSirGlobal pMac ); |
Madan Mohan Koyyalamudi | 48081ef | 2012-12-04 16:49:55 -0800 | [diff] [blame] | 1165 | tANI_BOOLEAN csrIsStaSessionConnected( tpAniSirGlobal pMac ); |
| 1166 | tANI_BOOLEAN csrIsP2pSessionConnected( tpAniSirGlobal pMac ); |
Madan Mohan Koyyalamudi | d3d2259 | 2012-09-24 14:01:29 -0700 | [diff] [blame] | 1167 | tANI_BOOLEAN csrIsAnySessionConnected( tpAniSirGlobal pMac ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1168 | tANI_BOOLEAN csrIsInfraConnected( tpAniSirGlobal pMac ); |
| 1169 | tANI_BOOLEAN csrIsConcurrentInfraConnected( tpAniSirGlobal pMac ); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1170 | tANI_BOOLEAN csrIsConcurrentSessionRunning( tpAniSirGlobal pMac ); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1171 | tANI_BOOLEAN csrIsInfraApStarted( tpAniSirGlobal pMac ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1172 | tANI_BOOLEAN csrIsIBSSStarted( tpAniSirGlobal pMac ); |
| 1173 | tANI_BOOLEAN csrIsBTAMPStarted( tpAniSirGlobal pMac ); |
| 1174 | tANI_BOOLEAN csrIsBTAMP( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
| 1175 | eHalStatus csrIsBTAMPAllowed( tpAniSirGlobal pMac, tANI_U32 chnId ); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1176 | tANI_BOOLEAN csrIsValidMcConcurrentSession(tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 1177 | tSirBssDescription *pBssDesc); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1178 | tANI_BOOLEAN csrIsConnStateConnectedInfraAp( tpAniSirGlobal pMac, tANI_U32 sessionId ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1179 | /*---------------------------------------------------------------------------- |
| 1180 | \fn csrRoamRegisterLinkQualityIndCallback |
| 1181 | |
| 1182 | \brief |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1183 | a CSR function to allow HDD to register a callback handler with CSR for |
| 1184 | link quality indications. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1185 | |
| 1186 | Only one callback may be registered at any time. |
| 1187 | In order to deregister the callback, a NULL cback may be provided. |
| 1188 | |
| 1189 | Registration happens in the task context of the caller. |
| 1190 | |
| 1191 | \param callback - Call back being registered |
| 1192 | \param pContext - user data |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1193 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1194 | DEPENDENCIES: After CSR open |
| 1195 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1196 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1197 | -----------------------------------------------------------------------------*/ |
| 1198 | eHalStatus csrRoamRegisterLinkQualityIndCallback(tpAniSirGlobal pMac, |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1199 | csrRoamLinkQualityIndCallback callback, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1200 | void *pContext); |
| 1201 | /* --------------------------------------------------------------------------- |
| 1202 | \fn csrGetStatistics |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1203 | \brief csr function that client calls to register a callback to get |
| 1204 | different PHY level statistics from CSR. |
| 1205 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1206 | \param requesterId - different client requesting for statistics, HDD, UMA/GAN etc |
| 1207 | \param statsMask - The different category/categories of stats requester is looking for |
| 1208 | \param callback - SME sends back the requested stats using the callback |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1209 | \param periodicity - If requester needs periodic update, 0 means it's an one |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1210 | time request |
| 1211 | \param cache - If requester is happy with cached stats |
| 1212 | \param staId - The station ID for which the stats is requested for |
| 1213 | \param pContext - user context to be passed back along with the callback |
| 1214 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1215 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1216 | ---------------------------------------------------------------------------*/ |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1217 | eHalStatus csrGetStatistics(tpAniSirGlobal pMac, eCsrStatsRequesterType requesterId, |
| 1218 | tANI_U32 statsMask, |
| 1219 | tCsrStatsCallback callback, |
| 1220 | tANI_U32 periodicity, tANI_BOOLEAN cache, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1221 | tANI_U8 staId, void *pContext); |
| 1222 | |
Madan Mohan Koyyalamudi | 8af9b40 | 2013-07-11 14:59:10 +0530 | [diff] [blame] | 1223 | /* --------------------------------------------------------------------------- |
| 1224 | \fn csrGetTLSTAState |
| 1225 | \helper function to get the TL STA State whenever the function is called. |
| 1226 | |
| 1227 | \param staId - The staID to be passed to the TL |
| 1228 | to get the relevant TL STA State |
| 1229 | \return the state as tANI_U16 |
| 1230 | ---------------------------------------------------------------------------*/ |
| 1231 | tANI_U16 csrGetTLSTAState(tpAniSirGlobal pMac, tANI_U8 staId); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1232 | |
| 1233 | eHalStatus csrGetRssi(tpAniSirGlobal pMac,tCsrRssiCallback callback,tANI_U8 staId,tCsrBssid bssId,void * pContext,void * pVosContext); |
Madan Mohan Koyyalamudi | d9383fd | 2013-08-13 09:27:30 +0530 | [diff] [blame] | 1234 | |
| 1235 | /* --------------------------------------------------------------------------- |
| 1236 | \fn csrGetSnr |
| 1237 | \brief csr function that client calls to register a callback to get |
| 1238 | SNR stored in TL |
| 1239 | |
| 1240 | \param callback - SME sends back the requested stats using the callback |
| 1241 | \param staId - The station ID for which the stats is requested for |
| 1242 | \param bssid - The bssid for the connected session |
| 1243 | \param pContext - user context to be passed back along with the callback |
| 1244 | |
| 1245 | \return eHalStatus |
| 1246 | ---------------------------------------------------------------------------*/ |
| 1247 | eHalStatus csrGetSnr(tpAniSirGlobal pMac, tCsrSnrCallback callback, |
| 1248 | tANI_U8 staId, tCsrBssid bssId, void *pContext); |
| 1249 | |
Srinivas Girigowda | d34cedb | 2013-01-25 13:33:11 -0800 | [diff] [blame] | 1250 | #if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_CCX || defined(FEATURE_WLAN_LFR) |
| 1251 | eHalStatus csrGetRoamRssi(tpAniSirGlobal pMac, |
| 1252 | tCsrRssiCallback callback, |
| 1253 | tANI_U8 staId, |
| 1254 | tCsrBssid bssId, |
| 1255 | void * pContext, |
| 1256 | void * pVosContext); |
| 1257 | #endif |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1258 | |
| 1259 | #if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD) |
| 1260 | eHalStatus csrGetTsmStats(tpAniSirGlobal pMac, tCsrTsmStatsCallback callback, tANI_U8 staId, |
| 1261 | tCsrBssid bssId, void *pContext, void* pVosContext, |
| 1262 | tANI_U8 tid); |
| 1263 | #endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */ |
| 1264 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1265 | eHalStatus csrRoamRegisterCallback(tpAniSirGlobal pMac, csrRoamCompleteCallback callback, void *pContext); |
| 1266 | /* --------------------------------------------------------------------------- |
| 1267 | \fn csrGetConfigParam |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1268 | \brief HDD calls this function to get the global settings currently maintained by CSR. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1269 | \param pParam - caller allocated memory |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1270 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1271 | -------------------------------------------------------------------------------*/ |
| 1272 | eHalStatus csrGetConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam); |
| 1273 | |
| 1274 | /* --------------------------------------------------------------------------- |
| 1275 | \fn csrMsgProcessor |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1276 | \brief HDD calls this function to change some global settings. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1277 | caller must set the all fields or call csrGetConfigParam to prefill the fields. |
| 1278 | \param pParam - caller allocated memory |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1279 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1280 | -------------------------------------------------------------------------------*/ |
| 1281 | eHalStatus csrChangeDefaultConfigParam(tpAniSirGlobal pMac, tCsrConfigParam *pParam); |
| 1282 | |
| 1283 | |
| 1284 | /* --------------------------------------------------------------------------- |
| 1285 | \fn csrMsgProcessor |
| 1286 | \brief HDD calls this function for the messages that are handled by CSR. |
| 1287 | \param pMsgBuf - a pointer to a buffer that maps to various structures base on the message type. |
| 1288 | The beginning of the buffer can always map to tSirSmeRsp. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1289 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1290 | -------------------------------------------------------------------------------*/ |
| 1291 | eHalStatus csrMsgProcessor( tpAniSirGlobal pMac, void *pMsgBuf ); |
| 1292 | |
| 1293 | /* --------------------------------------------------------------------------- |
| 1294 | \fn csrOpen |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1295 | \brief This function must be called before any API call to CSR. |
| 1296 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1297 | -------------------------------------------------------------------------------*/ |
| 1298 | eHalStatus csrOpen(tpAniSirGlobal pMac); |
| 1299 | /* --------------------------------------------------------------------------- |
| 1300 | \fn csrClose |
| 1301 | \brief To close down CSR module. There should not be any API call into CSR after calling this function. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1302 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1303 | -------------------------------------------------------------------------------*/ |
| 1304 | eHalStatus csrClose(tpAniSirGlobal pMac); |
| 1305 | /* --------------------------------------------------------------------------- |
| 1306 | \fn csrStart |
| 1307 | \brief To start CSR. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1308 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1309 | -------------------------------------------------------------------------------*/ |
| 1310 | eHalStatus csrStart(tpAniSirGlobal pMac); |
| 1311 | /* --------------------------------------------------------------------------- |
| 1312 | \fn csrStop |
| 1313 | \brief To stop CSR. CSR still keeps its current setting. |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1314 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1315 | -------------------------------------------------------------------------------*/ |
| 1316 | eHalStatus csrStop(tpAniSirGlobal pMac); |
| 1317 | /* --------------------------------------------------------------------------- |
| 1318 | \fn csrReady |
| 1319 | \brief To let CSR is ready to operate |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1320 | \return eHalStatus |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1321 | -------------------------------------------------------------------------------*/ |
| 1322 | eHalStatus csrReady(tpAniSirGlobal pMac); |
| 1323 | |
| 1324 | #ifdef FEATURE_WLAN_WAPI |
| 1325 | eHalStatus csrRoamGetBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pNum, |
| 1326 | tBkidCacheInfo *pBkidCache); |
| 1327 | |
| 1328 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1329 | eHalStatus csrScanGetBKIDCandidateList(tpAniSirGlobal pMac, tANI_U32 sessionId, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1330 | tBkidCandidateInfo *pBkidList, tANI_U32 *pNumItems ); |
| 1331 | tANI_U32 csrRoamGetNumBKIDCache(tpAniSirGlobal pMac, tANI_U32 sessionId); |
| 1332 | eHalStatus csrRoamSetBKIDCache( tpAniSirGlobal pMac, tANI_U32 sessionId, tBkidCacheInfo *pBKIDCache, |
| 1333 | tANI_U32 numItems ); |
| 1334 | /* --------------------------------------------------------------------------- |
| 1335 | \fn csrRoamGetWapiReqIE |
| 1336 | \brief return the WAPI IE CSR passes to PE to JOIN request or START_BSS request |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1337 | \param pLen - caller allocated memory that has the length of pBuf as input. Upon returned, *pLen has the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1338 | needed or IE length in pBuf. |
| 1339 | \param pBuf - Caller allocated memory that contain the IE field, if any, upon return |
| 1340 | \return eHalStatus - when fail, it usually means the buffer allocated is not big enough |
| 1341 | -------------------------------------------------------------------------------*/ |
| 1342 | eHalStatus csrRoamGetWapiReqIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf); |
| 1343 | |
| 1344 | /* --------------------------------------------------------------------------- |
| 1345 | \fn csrRoamGetWapiRspIE |
| 1346 | \brief return the WAPI IE from the beacon or probe rsp if connected |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1347 | \param pLen - caller allocated memory that has the length of pBuf as input. Upon returned, *pLen has the |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1348 | needed or IE length in pBuf. |
| 1349 | \param pBuf - Caller allocated memory that contain the IE field, if any, upon return |
| 1350 | \return eHalStatus - when fail, it usually means the buffer allocated is not big enough |
| 1351 | -------------------------------------------------------------------------------*/ |
| 1352 | eHalStatus csrRoamGetWapiRspIE(tpAniSirGlobal pMac, tANI_U32 sessionId, tANI_U32 *pLen, tANI_U8 *pBuf); |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1353 | tANI_U8 csrConstructWapiIe( tpAniSirGlobal pMac, tANI_U32 sessionId, tCsrRoamProfile *pProfile, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1354 | tSirBssDescription *pSirBssDesc, tDot11fBeaconIEs *pIes, tCsrWapiIe *pWapiIe ); |
| 1355 | #endif /* FEATURE_WLAN_WAPI */ |
| 1356 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1357 | eHalStatus csrRoamUpdateAPWPSIE( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirAPWPSIEs *pAPWPSIES ); |
| 1358 | eHalStatus csrRoamUpdateWPARSNIEs( tpAniSirGlobal pMac, tANI_U32 sessionId, tSirRSNie * pAPSirRSNie); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1359 | void csrSetCfgPrivacy( tpAniSirGlobal pMac, tCsrRoamProfile *pProfile, tANI_BOOLEAN fPrivacy ); |
| 1360 | tANI_S8 csrGetInfraSessionId( tpAniSirGlobal pMac ); |
| 1361 | tANI_U8 csrGetInfraOperationChannel( tpAniSirGlobal pMac, tANI_U8 sessionId); |
| 1362 | tANI_U8 csrGetConcurrentOperationChannel( tpAniSirGlobal pMac ); |
| 1363 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1364 | eHalStatus csrRoamCopyConnectProfile(tpAniSirGlobal pMac, tANI_U32 sessionId, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1365 | tCsrRoamConnectedProfile *pProfile); |
| 1366 | tANI_BOOLEAN csrIsSetKeyAllowed(tpAniSirGlobal pMac, tANI_U32 sessionId); |
| 1367 | |
| 1368 | void csrSetOppositeBandChannelInfo( tpAniSirGlobal pMac ); |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1369 | void csrConstructCurrentValidChannelList( tpAniSirGlobal pMac, tDblLinkList *pChannelSetList, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1370 | tANI_U8 *pChannelList, tANI_U8 bSize, tANI_U8 *pNumChannels ); |
Manjunathappa Prakash | 4f1d5a5 | 2013-11-11 16:22:19 -0800 | [diff] [blame] | 1371 | |
| 1372 | #ifdef FEATURE_WLAN_SCAN_PNO |
Srikant Kuppa | 066904f | 2013-05-07 13:56:02 -0700 | [diff] [blame] | 1373 | eHalStatus csrScanSavePreferredNetworkFound(tpAniSirGlobal pMac, |
| 1374 | tSirPrefNetworkFoundInd *pPrefNetworkFoundInd); |
Manjunathappa Prakash | 4f1d5a5 | 2013-11-11 16:22:19 -0800 | [diff] [blame] | 1375 | #endif //FEATURE_WLAN_SCAN_PNO |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1376 | #endif |
| 1377 | |
| 1378 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1379 | //Returns whether the current association is a 11r assoc or not |
| 1380 | tANI_BOOLEAN csrRoamIs11rAssoc(tpAniSirGlobal pMac); |
| 1381 | #endif |
| 1382 | |
| 1383 | #ifdef FEATURE_WLAN_CCX |
| 1384 | //Returns whether the current association is a CCX assoc or not |
| 1385 | tANI_BOOLEAN csrRoamIsCCXAssoc(tpAniSirGlobal pMac); |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 1386 | tANI_BOOLEAN csrRoamIsCcxIniFeatureEnabled(tpAniSirGlobal pMac); |
| 1387 | tANI_BOOLEAN csrNeighborRoamIsCCXAssoc(tpAniSirGlobal pMac); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1388 | #endif |
| 1389 | |
Kiran Kumar Lokere | 3527f0c | 2013-02-24 22:21:28 -0800 | [diff] [blame] | 1390 | //Remove this code once SLM_Sessionization is supported |
Madan Mohan Koyyalamudi | 96dd30d | 2012-10-05 17:24:51 -0700 | [diff] [blame] | 1391 | //BMPS_WORKAROUND_NOT_NEEDED |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1392 | void csrDisconnectAllActiveSessions(tpAniSirGlobal pMac); |
Mohit Khanna | 349bc39 | 2012-09-11 17:24:52 -0700 | [diff] [blame] | 1393 | |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1394 | #ifdef FEATURE_WLAN_LFR |
| 1395 | //Returns whether "Legacy Fast Roaming" is enabled...or not |
Madan Mohan Koyyalamudi | 03aae5f | 2012-11-28 01:51:22 +0530 | [diff] [blame] | 1396 | tANI_BOOLEAN csrRoamIsFastRoamEnabled(tpAniSirGlobal pMac, tANI_U32 sessionId); |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1397 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 1398 | tANI_BOOLEAN csrRoamIsRoamOffloadScanEnabled(tpAniSirGlobal pMac); |
| 1399 | #endif |
Madan Mohan Koyyalamudi | 470d2cf | 2012-09-28 14:43:44 -0700 | [diff] [blame] | 1400 | tANI_BOOLEAN csrIsChannelPresentInList( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel ); |
| 1401 | VOS_STATUS csrAddToChannelListFront( tANI_U8 *pChannelList, int numChannels, tANI_U8 channel ); |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1402 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 1403 | eHalStatus csrScanRequestLfrResult(tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 1404 | csrScanCompleteCallback callback, void *pContext); |
Varun Reddy Yeturu | cc661d2 | 2013-05-20 11:47:10 -0700 | [diff] [blame] | 1405 | eHalStatus csrRoamOffloadScanRspHdlr(tpAniSirGlobal pMac, tANI_U8 reason); |
| 1406 | eHalStatus csrHandoffRequest(tpAniSirGlobal pMac, tCsrHandoffRequest *pHandoffInfo); |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 1407 | #endif |
| 1408 | tANI_BOOLEAN csrRoamIsStaMode(tpAniSirGlobal pMac, tANI_U32 sessionId); |
Jeff Johnson | 04dd8a8 | 2012-06-29 20:41:40 -0700 | [diff] [blame] | 1409 | #endif |
| 1410 | |