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