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