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