Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Sushant Kaushik | 74df8db | 2015-03-11 18:09:05 +0530 | [diff] [blame^] | 2 | * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved. |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -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. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 28 | #if !defined( __LIM_SESSION_H ) |
| 29 | #define __LIM_SESSION_H |
| 30 | |
| 31 | |
| 32 | /**========================================================================= |
Jeff Johnson | 3c3e178 | 2013-02-27 10:48:42 -0800 | [diff] [blame] | 33 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 34 | \file limSession.h |
Jeff Johnson | 3c3e178 | 2013-02-27 10:48:42 -0800 | [diff] [blame] | 35 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 36 | \brief prototype for lim Session related APIs |
| 37 | |
| 38 | \author Sunit Bhatia |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 39 | ========================================================================*/ |
| 40 | |
| 41 | |
| 42 | /*-------------------------------------------------------------------------- |
| 43 | Include Files |
| 44 | ------------------------------------------------------------------------*/ |
| 45 | |
| 46 | |
| 47 | |
| 48 | /*-------------------------------------------------------------------------- |
| 49 | Preprocessor definitions and constants |
| 50 | ------------------------------------------------------------------------*/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 51 | #define NUM_WEP_KEYS 4 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 52 | |
| 53 | /*-------------------------------------------------------------------------- |
| 54 | Type declarations |
| 55 | ------------------------------------------------------------------------*/ |
| 56 | typedef struct |
| 57 | { |
| 58 | tSirMacBeaconInterval beaconInterval; |
| 59 | tANI_U8 fShortPreamble; |
| 60 | tANI_U8 llaCoexist; |
| 61 | tANI_U8 llbCoexist; |
| 62 | tANI_U8 llgCoexist; |
| 63 | tANI_U8 ht20Coexist; |
| 64 | tANI_U8 llnNonGFCoexist; |
| 65 | tANI_U8 fRIFSMode; |
| 66 | tANI_U8 fLsigTXOPProtectionFullSupport; |
| 67 | tANI_U8 gHTObssMode; |
| 68 | }tBeaconParams, *tpBeaconParams; |
| 69 | |
| 70 | typedef struct sPESession // Added to Support BT-AMP |
| 71 | { |
| 72 | /* To check session table is in use or free*/ |
| 73 | tANI_U8 available; |
| 74 | tANI_U8 peSessionId; |
| 75 | tANI_U8 smeSessionId; |
| 76 | tANI_U16 transactionId; |
| 77 | |
| 78 | //In AP role: BSSID and selfMacAddr will be the same. |
| 79 | //In STA role: they will be different |
| 80 | tSirMacAddr bssId; |
| 81 | tSirMacAddr selfMacAddr; |
| 82 | tSirMacSSid ssId; |
| 83 | tANI_U8 bssIdx; |
| 84 | tANI_U8 valid; |
| 85 | tLimMlmStates limMlmState; //MLM State |
| 86 | tLimMlmStates limPrevMlmState; //Previous MLM State |
| 87 | tLimSmeStates limSmeState; //SME State |
| 88 | tLimSmeStates limPrevSmeState; //Previous SME State |
| 89 | tLimSystemRole limSystemRole; |
| 90 | tSirBssType bssType; |
| 91 | tANI_U8 operMode; // AP - 0; STA - 1 ; |
| 92 | tSirNwType nwType; |
| 93 | tpSirSmeStartBssReq pLimStartBssReq; //handle to smestart bss req |
Sushant Kaushik | 74df8db | 2015-03-11 18:09:05 +0530 | [diff] [blame^] | 94 | tANI_BOOLEAN bOSENAssociation; //handle to OSEN assoc req |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 95 | tpSirSmeJoinReq pLimJoinReq; // handle to sme join req |
Srinivas Girigowda | c16730e | 2013-01-16 13:39:39 -0800 | [diff] [blame] | 96 | tpSirSmeJoinReq pLimReAssocReq; //handle to sme reassoc req |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 97 | tpLimMlmJoinReq pLimMlmJoinReq; //handle to MLM join Req |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 98 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR) |
Madan Mohan Koyyalamudi | 61bc566 | 2012-11-02 14:33:10 -0700 | [diff] [blame] | 99 | void *pLimMlmReassocRetryReq; //keep reasoc req for retry |
| 100 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 101 | void *pLimMlmReassocReq; //handle to MLM reassoc Req |
| 102 | tANI_U16 channelChangeReasonCode; |
Kalikinkar dhara | 085c02f | 2014-02-28 15:32:12 -0800 | [diff] [blame] | 103 | tANI_U16 channelChangeCSA; // channel change flag for CSA |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 104 | tANI_U8 dot11mode; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 105 | tANI_U8 htCapability; |
| 106 | /* Supported Channel Width Set: 0-20MHz 1 - 40MHz */ |
| 107 | tANI_U8 htSupportedChannelWidthSet; |
| 108 | /* Recommended Tx Width Set |
| 109 | * 0 - use 20 MHz channel (control channel) |
| 110 | * 1 - use channel width enabled under Supported Channel Width Set |
| 111 | */ |
| 112 | tANI_U8 htRecommendedTxWidthSet; |
| 113 | /* Identifies the 40 MHz extension channel */ |
| 114 | ePhyChanBondState htSecondaryChannelOffset; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 115 | tSirRFBand limRFBand; |
| 116 | tANI_U8 limIbssActive; //TO SUPPORT CONCURRENCY |
| 117 | |
| 118 | /* These global varibales moved to session Table to support BT-AMP : Oct 9th review */ |
| 119 | tAniAuthType limCurrentAuthType; |
| 120 | tANI_U16 limCurrentBssCaps; |
| 121 | tANI_U8 limCurrentBssQosCaps; |
| 122 | tANI_U16 limCurrentBssPropCap; |
| 123 | tANI_U8 limSentCapsChangeNtf; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 124 | tANI_U16 limAID; |
| 125 | |
| 126 | /* Parameters For Reassociation */ |
| 127 | tSirMacAddr limReAssocbssId; |
| 128 | tSirMacChanNum limReassocChannelId; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 129 | /* CB paramaters required/duplicated for Reassoc since re-assoc mantains its own params in lim */ |
| 130 | tANI_U8 reAssocHtSupportedChannelWidthSet; |
| 131 | tANI_U8 reAssocHtRecommendedTxWidthSet; |
| 132 | ePhyChanBondState reAssocHtSecondaryChannelOffset; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 133 | tSirMacSSid limReassocSSID; |
| 134 | tANI_U16 limReassocBssCaps; |
| 135 | tANI_U8 limReassocBssQosCaps; |
| 136 | tANI_U16 limReassocBssPropCap; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 137 | |
| 138 | // Assoc or ReAssoc Response Data/Frame |
| 139 | void *limAssocResponseData; |
| 140 | |
| 141 | |
| 142 | |
| 143 | /** BSS Table parameters **/ |
| 144 | |
| 145 | |
| 146 | /* |
| 147 | * staId: Start BSS: this is the Sta Id for the BSS. |
| 148 | Join: this is the selfStaId |
| 149 | In both cases above, the peer STA ID wll be stored in dph hash table. |
| 150 | */ |
| 151 | tANI_U16 staId; |
| 152 | tANI_U16 statypeForBss; //to know session is for PEER or SELF |
| 153 | tANI_U8 shortSlotTimeSupported; |
| 154 | tANI_U8 dtimPeriod; |
| 155 | tSirMacRateSet rateSet; |
| 156 | tSirMacRateSet extRateSet; |
| 157 | tSirMacHTOperatingMode htOperMode; |
| 158 | tANI_U8 currentOperChannel; |
| 159 | tANI_U8 currentReqChannel; |
| 160 | tANI_U8 LimRxedBeaconCntDuringHB; |
| 161 | |
| 162 | //Time stamp of the last beacon received from the BSS to which STA is connected. |
| 163 | tANI_U64 lastBeaconTimeStamp; |
| 164 | //RX Beacon count for the current BSS to which STA is connected. |
| 165 | tANI_U32 currentBssBeaconCnt; |
| 166 | tANI_U8 lastBeaconDtimCount; |
| 167 | tANI_U8 lastBeaconDtimPeriod; |
| 168 | |
| 169 | tANI_U32 bcnLen; |
| 170 | tANI_U8 *beacon; //Used to store last beacon / probe response before assoc. |
| 171 | |
| 172 | tANI_U32 assocReqLen; |
| 173 | tANI_U8 *assocReq; //Used to store association request frame sent out while associating. |
| 174 | |
| 175 | tANI_U32 assocRspLen; |
| 176 | tANI_U8 *assocRsp; //Used to store association response received while associating |
| 177 | tAniSirDph dph; |
| 178 | void * *parsedAssocReq; //Used to store parsed assoc req from various requesting station |
| 179 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 180 | tANI_U32 RICDataLen; //Used to store the Ric data received in the assoc response |
| 181 | tANI_U8 *ricData; |
| 182 | #endif |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 183 | #ifdef FEATURE_WLAN_ESE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 184 | tANI_U32 tspecLen; //Used to store the TSPEC IEs received in the assoc response |
| 185 | tANI_U8 *tspecIes; |
| 186 | #endif |
| 187 | tANI_U32 encryptType; |
| 188 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 189 | tANI_BOOLEAN bTkipCntrMeasActive; // Used to keep record of TKIP counter measures start/stop |
| 190 | |
| 191 | tANI_U8 gLimProtectionControl; //used for 11n protection |
| 192 | |
| 193 | tANI_U8 gHTNonGFDevicesPresent; |
| 194 | |
| 195 | //protection related config cache |
| 196 | tCfgProtection cfgProtection; |
| 197 | |
| 198 | // Number of legacy STAs associated |
| 199 | tLimProtStaParams gLim11bParams; |
| 200 | |
| 201 | // Number of 11A STAs associated |
| 202 | tLimProtStaParams gLim11aParams; |
| 203 | |
| 204 | // Number of non-ht non-legacy STAs associated |
| 205 | tLimProtStaParams gLim11gParams; |
| 206 | |
| 207 | //Number of nonGf STA associated |
| 208 | tLimProtStaParams gLimNonGfParams; |
| 209 | |
| 210 | //Number of HT 20 STAs associated |
| 211 | tLimProtStaParams gLimHt20Params; |
| 212 | |
| 213 | //Number of Lsig Txop not supported STAs associated |
| 214 | tLimProtStaParams gLimLsigTxopParams; |
| 215 | |
| 216 | // Number of STAs that do not support short preamble |
| 217 | tLimNoShortParams gLimNoShortParams; |
| 218 | |
| 219 | // Number of STAs that do not support short slot time |
| 220 | tLimNoShortSlotParams gLimNoShortSlotParams; |
| 221 | |
| 222 | |
| 223 | // OLBC parameters |
| 224 | tLimProtStaParams gLimOlbcParams; |
| 225 | |
| 226 | // OLBC parameters |
| 227 | tLimProtStaParams gLimOverlap11gParams; |
| 228 | |
| 229 | tLimProtStaParams gLimOverlap11aParams; |
| 230 | tLimProtStaParams gLimOverlapHt20Params; |
| 231 | tLimProtStaParams gLimOverlapNonGfParams; |
| 232 | |
| 233 | //cache for each overlap |
| 234 | tCacheParams protStaCache[LIM_PROT_STA_CACHE_SIZE]; |
| 235 | |
| 236 | tANI_U8 privacy; |
| 237 | tAniAuthType authType; |
| 238 | tSirKeyMaterial WEPKeyMaterial[NUM_WEP_KEYS]; |
| 239 | |
| 240 | tDot11fIERSN gStartBssRSNIe; |
| 241 | tDot11fIEWPA gStartBssWPAIe; |
| 242 | tSirAPWPSIEs APWPSIEs; |
| 243 | tANI_U8 apUapsdEnable; |
| 244 | tSirWPSPBCSession *pAPWPSPBCSession; |
| 245 | tANI_U32 DefProbeRspIeBitmap[8]; |
| 246 | tANI_U32 proxyProbeRspEn; |
| 247 | tDot11fProbeResponse probeRespFrame; |
| 248 | tANI_U8 ssidHidden; |
| 249 | tANI_BOOLEAN fwdWPSPBCProbeReq; |
| 250 | tANI_U8 wps_state; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 251 | |
| 252 | tANI_U8 limQosEnabled:1; //11E |
| 253 | tANI_U8 limWmeEnabled:1; //WME |
| 254 | tANI_U8 limWsmEnabled:1; //WSM |
| 255 | tANI_U8 limHcfEnabled:1; |
| 256 | tANI_U8 lim11dEnabled:1; |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 257 | #ifdef WLAN_FEATURE_11W |
| 258 | tANI_U8 limRmfEnabled:1; //11W |
| 259 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 260 | tANI_U32 lim11hEnable; |
| 261 | |
| 262 | tPowerdBm maxTxPower; //MIN (Regulatory and local power constraint) |
| 263 | tVOS_CON_MODE pePersona; |
| 264 | #if defined WLAN_FEATURE_VOWIFI |
| 265 | tPowerdBm txMgmtPower; |
| 266 | #endif |
| 267 | |
| 268 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 269 | tAniBool is11Rconnection; |
| 270 | #endif |
| 271 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 272 | #ifdef FEATURE_WLAN_ESE |
| 273 | tAniBool isESEconnection; |
| 274 | tEsePEContext eseContext; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 275 | #endif |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 276 | #if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 277 | tAniBool isFastTransitionEnabled; |
| 278 | #endif |
Jeff Johnson | 43971f5 | 2012-07-17 12:26:56 -0700 | [diff] [blame] | 279 | #ifdef FEATURE_WLAN_LFR |
| 280 | tAniBool isFastRoamIniFeatureEnabled; |
| 281 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 282 | tSirNoAParam p2pNoA; |
| 283 | tSirP2PNoaAttr p2pGoPsUpdate; |
Madan Mohan Koyyalamudi | 666d33a | 2012-11-29 11:32:59 -0800 | [diff] [blame] | 284 | tANI_U32 defaultAuthFailureTimeout; |
Viral Modi | d86bde2 | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 285 | tSirP2PNoaStart p2pGoPsNoaStartInd; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 286 | |
| 287 | /* EDCA QoS parameters |
| 288 | * gLimEdcaParams - These EDCA parameters are used locally on AP or STA. |
| 289 | * If STA, then these are values taken from the Assoc Rsp when associating, |
| 290 | * or Beacons/Probe Response after association. If AP, then these are |
| 291 | * values originally set locally on AP. |
| 292 | * |
| 293 | * gLimEdcaParamsBC - These EDCA parameters are use by AP to broadcast |
| 294 | * to other STATIONs in the BSS. |
| 295 | * |
| 296 | * gLimEdcaParamsActive: These EDCA parameters are what's actively being |
| 297 | * used on station. Specific AC values may be downgraded depending on |
| 298 | * admission control for that particular AC. |
| 299 | */ |
| 300 | tSirMacEdcaParamRecord gLimEdcaParams[MAX_NUM_AC]; //used locally |
| 301 | tSirMacEdcaParamRecord gLimEdcaParamsBC[MAX_NUM_AC]; //used for broadcast |
| 302 | tSirMacEdcaParamRecord gLimEdcaParamsActive[MAX_NUM_AC]; |
| 303 | |
| 304 | tANI_U8 gLimEdcaParamSetCount; |
| 305 | |
| 306 | tBeaconParams beaconParams; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 307 | #ifdef WLAN_FEATURE_11AC |
| 308 | tANI_U8 vhtCapability; |
| 309 | tANI_U8 vhtTxChannelWidthSet; |
Mohit Khanna | 4a70d26 | 2012-09-11 16:30:12 -0700 | [diff] [blame] | 310 | tLimOperatingModeInfo gLimOperatingMode; |
Madan Mohan Koyyalamudi | c6226de | 2012-09-18 16:33:31 -0700 | [diff] [blame] | 311 | tLimWiderBWChannelSwitchInfo gLimWiderBWChannelSwitch; |
| 312 | tANI_U8 vhtCapabilityPresentInBeacon; |
| 313 | tANI_U8 apCenterChan; |
| 314 | tANI_U8 apChanWidth; |
Shailender Karmuchi | 08f87c2 | 2013-01-17 12:51:24 -0800 | [diff] [blame] | 315 | tANI_U8 txBFIniFeatureEnabled; |
Abhishek Singh | 6d5d29c | 2014-07-03 14:25:22 +0530 | [diff] [blame] | 316 | tANI_U8 txMuBformee; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 317 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 318 | tANI_U8 spectrumMgtEnabled; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 319 | /* *********************11H related*****************************/ |
| 320 | //tANI_U32 gLim11hEnable; |
| 321 | tLimSpecMgmtInfo gLimSpecMgmt; |
| 322 | // CB Primary/Secondary Channel Switch Info |
| 323 | tLimChannelSwitchInfo gLimChannelSwitch; |
| 324 | /* *********************End 11H related*****************************/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 325 | |
| 326 | /*Flag to Track Status/Indicate HBFailure on this session */ |
| 327 | tANI_BOOLEAN LimHBFailureStatus; |
| 328 | tANI_U32 gLimPhyMode; |
Kiran Kumar Lokere | 2ac471f | 2013-05-30 16:08:48 -0700 | [diff] [blame] | 329 | tANI_U8 amsduSupportedInBA; |
Gopichand Nakkala | b2d2c31 | 2013-01-04 11:41:02 -0800 | [diff] [blame] | 330 | tANI_U8 txLdpcIniFeatureEnabled; |
Gopichand Nakkala | 777e603 | 2012-12-31 16:39:21 -0800 | [diff] [blame] | 331 | /** |
| 332 | * Following is the place holder for free peer index pool. |
| 333 | * A non-zero value indicates that peer index is available |
| 334 | * for assignment. |
| 335 | */ |
| 336 | tANI_U8 *gpLimPeerIdxpool; |
| 337 | tANI_U8 freePeerIdxHead; |
| 338 | tANI_U8 freePeerIdxTail; |
| 339 | tANI_U16 gLimNumOfCurrentSTAs; |
Gopichand Nakkala | 2a0a157 | 2013-02-10 21:39:16 -0800 | [diff] [blame] | 340 | #ifdef FEATURE_WLAN_TDLS |
| 341 | tANI_U32 peerAIDBitmap[2]; |
Atul Mittal | bceb4a1 | 2014-11-27 18:50:19 +0530 | [diff] [blame] | 342 | tANI_BOOLEAN tdlsChanSwitProhibited; |
Gopichand Nakkala | 2a0a157 | 2013-02-10 21:39:16 -0800 | [diff] [blame] | 343 | #endif |
Gopichand Nakkala | be8653b | 2013-04-10 08:16:05 +0530 | [diff] [blame] | 344 | tANI_BOOLEAN fWaitForProbeRsp; |
| 345 | tANI_BOOLEAN fIgnoreCapsChange; |
Madan Mohan Koyyalamudi | 58c8779 | 2013-08-30 02:51:14 +0530 | [diff] [blame] | 346 | tANI_BOOLEAN fDeauthReceived; |
krunal soni | 8d13b09 | 2013-07-19 13:23:29 -0700 | [diff] [blame] | 347 | #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM |
| 348 | tANI_S8 rssi; |
| 349 | #endif |
krunal soni | 5afa96c | 2013-09-06 22:19:02 -0700 | [diff] [blame] | 350 | tANI_U8 isAmsduSupportInAMPDU; |
krunal soni | e9002db | 2013-11-25 14:24:17 -0800 | [diff] [blame] | 351 | tANI_U8 isCoalesingInIBSSAllowed; |
Agarwal Ashish | 87039eb | 2014-01-15 14:13:15 +0530 | [diff] [blame] | 352 | tANI_BOOLEAN isCiscoVendorAP; |
Sandeep Puligilla | 11d49a6 | 2014-01-30 12:05:16 +0530 | [diff] [blame] | 353 | /* To hold OBSS Scan IE Parameters */ |
| 354 | tSirOBSSHT40Param obssHT40ScanParam; |
Rajesh Babu Prathipati | 043149f | 2014-06-06 13:33:45 +0530 | [diff] [blame] | 355 | /* flag to indicate country code in beacon */ |
| 356 | tANI_U8 countryInfoPresent; |
Kumar Anand | 82c009f | 2014-05-29 00:29:42 -0700 | [diff] [blame] | 357 | /* DSCP to UP mapping for HS 2.0 */ |
| 358 | tSirQosMapSet QosMapSet; |
Abhishek Singh | 28266f0 | 2014-11-05 17:22:19 +0530 | [diff] [blame] | 359 | tANI_U8 isKeyInstalled; |
Masti, Narayanraddi | 67ea591 | 2015-01-08 12:34:05 +0530 | [diff] [blame] | 360 | tANI_BOOLEAN is11Gonly; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 361 | }tPESession, *tpPESession; |
| 362 | |
| 363 | #define LIM_MAX_ACTIVE_SESSIONS 4 |
| 364 | |
| 365 | |
| 366 | /*------------------------------------------------------------------------- |
| 367 | Function declarations and documenation |
| 368 | ------------------------------------------------------------------------*/ |
| 369 | |
| 370 | |
| 371 | /*-------------------------------------------------------------------------- |
| 372 | |
| 373 | \brief peCreateSession() - creates a new PE session given the BSSID |
| 374 | |
| 375 | This function returns the session context and the session ID if the session |
| 376 | corresponding to the passed BSSID is found in the PE session table. |
| 377 | |
| 378 | \param pMac - pointer to global adapter context |
| 379 | \param bssid - BSSID of the new session |
| 380 | \param sessionId -session ID is returned here, if session is created. |
| 381 | |
| 382 | \return tpPESession - pointer to the session context or NULL if session can not be created. |
| 383 | |
| 384 | \sa |
| 385 | |
| 386 | --------------------------------------------------------------------------*/ |
| 387 | tpPESession peCreateSession(tpAniSirGlobal pMac, tANI_U8 *bssid , tANI_U8* sessionId, tANI_U16 numSta); |
| 388 | |
| 389 | |
| 390 | /*-------------------------------------------------------------------------- |
| 391 | \brief peFindSessionByBssid() - looks up the PE session given the BSSID. |
| 392 | |
| 393 | This function returns the session context and the session ID if the session |
| 394 | corresponding to the given BSSID is found in the PE session table. |
| 395 | |
| 396 | \param pMac - pointer to global adapter context |
| 397 | \param bssid - BSSID of the session |
| 398 | \param sessionId -session ID is returned here, if session is found. |
| 399 | |
| 400 | \return tpPESession - pointer to the session context or NULL if session is not found. |
| 401 | |
| 402 | \sa |
| 403 | --------------------------------------------------------------------------*/ |
| 404 | tpPESession peFindSessionByBssid(tpAniSirGlobal pMac, tANI_U8* bssid, tANI_U8* sessionId); |
| 405 | |
| 406 | |
| 407 | |
| 408 | /*-------------------------------------------------------------------------- |
Leela Venkata Kiran Kumar Reddy Chirala | 3ca1790 | 2013-02-27 19:50:05 -0800 | [diff] [blame] | 409 | \brief peFindSessionByBssIdx() - looks up the PE session given the bssIdx. |
| 410 | |
| 411 | This function returns the session context if the session |
| 412 | corresponding to the given bssIdx is found in the PE session table. |
| 413 | \param pMac - pointer to global adapter context |
| 414 | \param bssIdx - bss index of the session |
| 415 | \return tpPESession - pointer to the session context or NULL if session is not found. |
| 416 | \sa |
| 417 | --------------------------------------------------------------------------*/ |
| 418 | tpPESession peFindSessionByBssIdx(tpAniSirGlobal pMac, tANI_U8 bssIdx); |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | /*-------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 424 | \brief peFindSessionByPeerSta() - looks up the PE session given the Peer Station Address. |
| 425 | |
| 426 | This function returns the session context and the session ID if the session |
| 427 | corresponding to the given destination address is found in the PE session table. |
| 428 | |
| 429 | \param pMac - pointer to global adapter context |
| 430 | \param sa - Peer STA Address of the session |
| 431 | \param sessionId -session ID is returned here, if session is found. |
| 432 | |
| 433 | \return tpPESession - pointer to the session context or NULL if session is not found. |
| 434 | |
| 435 | \sa |
| 436 | --------------------------------------------------------------------------*/ |
| 437 | tpPESession peFindSessionByPeerSta(tpAniSirGlobal pMac, tANI_U8* sa, tANI_U8* sessionId); |
| 438 | |
| 439 | /*-------------------------------------------------------------------------- |
| 440 | \brief peFindSessionBySessionId() - looks up the PE session given the session ID. |
| 441 | |
| 442 | This function returns the session context if the session |
| 443 | corresponding to the given session ID is found in the PE session table. |
| 444 | |
| 445 | \param pMac - pointer to global adapter context |
| 446 | \param sessionId -session ID for which session context needs to be looked up. |
| 447 | |
| 448 | \return tpPESession - pointer to the session context or NULL if session is not found. |
| 449 | |
| 450 | \sa |
| 451 | --------------------------------------------------------------------------*/ |
| 452 | tpPESession peFindSessionBySessionId(tpAniSirGlobal pMac , tANI_U8 sessionId); |
| 453 | |
| 454 | /*-------------------------------------------------------------------------- |
| 455 | \brief peFindSessionByBssid() - looks up the PE session given staid. |
| 456 | |
| 457 | This function returns the session context and the session ID if the session |
| 458 | corresponding to the given StaId is found in the PE session table. |
| 459 | |
| 460 | \param pMac - pointer to global adapter context |
| 461 | \param staid - StaId of the session |
| 462 | \param sessionId - session ID is returned here, if session is found. |
| 463 | |
| 464 | \return tpPESession - pointer to the session context or NULL if session is not found. |
| 465 | |
| 466 | --------------------------------------------------------------------------*/ |
| 467 | tpPESession peFindSessionByStaId(tpAniSirGlobal pMac, tANI_U8 staid, tANI_U8* sessionId); |
| 468 | |
| 469 | |
| 470 | |
| 471 | |
| 472 | |
| 473 | /*-------------------------------------------------------------------------- |
| 474 | \brief peDeleteSession() - deletes the PE session given the session ID. |
| 475 | |
| 476 | |
| 477 | \param pMac - pointer to global adapter context |
| 478 | \param sessionId -session ID of the session which needs to be deleted. |
| 479 | |
| 480 | \sa |
| 481 | --------------------------------------------------------------------------*/ |
| 482 | void peDeleteSession(tpAniSirGlobal pMac, tpPESession psessionEntry); |
| 483 | |
| 484 | |
| 485 | /*-------------------------------------------------------------------------- |
| 486 | \brief peDeleteSession() - Returns the SME session ID and Transaction ID . |
| 487 | |
| 488 | |
| 489 | \param pMac - pointer to global adapter context |
| 490 | \param sessionId -session ID of the session which needs to be deleted. |
| 491 | |
| 492 | \sa |
| 493 | --------------------------------------------------------------------------*/ |
| 494 | |
| 495 | |
| 496 | #endif //#if !defined( __LIM_SESSION_H ) |
| 497 | |
| 498 | |
| 499 | |
| 500 | |
| 501 | |