Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2013 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 5 | */ |
| 6 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 7 | * This file limAssocUtils.h contains the utility definitions |
| 8 | * LIM uses while processing Re/Association messages. |
| 9 | * Author: Chandra Modumudi |
| 10 | * Date: 02/13/02 |
| 11 | * History:- |
| 12 | * Date Modified by Modification Information |
| 13 | * -------------------------------------------------------------------- |
| 14 | * 05/26/10 js WPA handling in (Re)Assoc frames |
Jeff Johnson | 3c3e178 | 2013-02-27 10:48:42 -0800 | [diff] [blame] | 15 | * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 16 | */ |
| 17 | #ifndef __LIM_ASSOC_UTILS_H |
| 18 | #define __LIM_ASSOC_UTILS_H |
| 19 | |
| 20 | #include "sirApi.h" |
| 21 | #include "sirDebug.h" |
| 22 | #include "cfgApi.h" |
| 23 | |
| 24 | #include "limTypes.h" |
| 25 | |
| 26 | |
| 27 | tANI_U8 limCmpSSid(tpAniSirGlobal, tSirMacSSid *,tpPESession); |
| 28 | tANI_U8 limCompareCapabilities(tpAniSirGlobal, |
| 29 | tSirAssocReq *, |
| 30 | tSirMacCapabilityInfo *,tpPESession); |
| 31 | tANI_U8 limCheckRxBasicRates(tpAniSirGlobal, tSirMacRateSet,tpPESession); |
Chet Lanctot | 4b9abd7 | 2013-06-27 11:14:56 -0700 | [diff] [blame] | 32 | tANI_U8 limCheckRxRSNIeMatch(tpAniSirGlobal, tDot11fIERSN, tpPESession, tANI_U8, tANI_BOOLEAN *); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 33 | tANI_U8 limCheckRxWPAIeMatch(tpAniSirGlobal, tDot11fIEWPA, tpPESession, tANI_U8); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 34 | tANI_U8 limCheckMCSSet(tpAniSirGlobal pMac, tANI_U8* supportedMCSSet); |
| 35 | void limPostDummyToTmRing(tpAniSirGlobal, tpDphHashNode); |
| 36 | void limPostPacketToTdRing(tpAniSirGlobal, |
| 37 | tpDphHashNode, |
| 38 | tANI_U8); |
| 39 | tSirRetStatus limCleanupRxPath(tpAniSirGlobal, tpDphHashNode,tpPESession); |
| 40 | void limRejectAssociation(tpAniSirGlobal , tSirMacAddr, tANI_U8, |
| 41 | tANI_U8 , tAniAuthType, |
| 42 | tANI_U16, tANI_U8, tSirResultCodes, tpPESession); |
| 43 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 44 | #ifdef WLAN_FEATURE_11AC |
Leela Venkata Kiran Kumar Reddy Chirala | 85c9fb1 | 2013-09-05 20:47:36 -0700 | [diff] [blame] | 45 | tSirRetStatus limPopulatePeerRateSet(tpAniSirGlobal pMac, |
| 46 | tpSirSupportedRates pRates, |
| 47 | tANI_U8* pSupportedMCSSet, |
| 48 | tANI_U8 basicOnly, |
| 49 | tpPESession psessionEntry, |
| 50 | tDot11fIEVHTCaps *pVHTCaps); |
| 51 | #else |
| 52 | tSirRetStatus limPopulatePeerRateSet(tpAniSirGlobal pMac, |
| 53 | tpSirSupportedRates pRates, |
| 54 | tANI_U8* pSupportedMCSSet, |
| 55 | tANI_U8 basicOnly, |
| 56 | tpPESession psessionEntry); |
| 57 | #endif |
| 58 | |
| 59 | #ifdef WLAN_FEATURE_11AC |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 60 | tSirRetStatus limPopulateOwnRateSet(tpAniSirGlobal pMac, |
| 61 | tpSirSupportedRates pRates, |
| 62 | tANI_U8* pSupportedMCSSet, |
| 63 | tANI_U8 basicOnly, |
| 64 | tpPESession psessionEntry, |
| 65 | tDot11fIEVHTCaps *pVHTCaps); |
| 66 | |
| 67 | #else |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 68 | tSirRetStatus limPopulateOwnRateSet(tpAniSirGlobal pMac, |
| 69 | tpSirSupportedRates pRates, |
| 70 | tANI_U8* pSupportedMCSSet, |
| 71 | tANI_U8 basicOnly, |
| 72 | tpPESession psessionEntry); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 73 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 74 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 75 | #ifdef WLAN_FEATURE_11AC |
| 76 | tSirRetStatus |
| 77 | limPopulateMatchingRateSet(tpAniSirGlobal pMac, |
| 78 | tpDphHashNode pStaDs, |
| 79 | tSirMacRateSet *pOperRateSet, |
| 80 | tSirMacRateSet *pExtRateSet, |
| 81 | tANI_U8* pSupportedMCSSet, |
| 82 | tSirMacPropRateSet *pAniLegRateSet, |
| 83 | tpPESession psessionEntry, |
| 84 | tDot11fIEVHTCaps *pVHTCaps); |
| 85 | #else |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 86 | tSirRetStatus limPopulateMatchingRateSet(tpAniSirGlobal, |
| 87 | tpDphHashNode, |
| 88 | tSirMacRateSet *, |
| 89 | tSirMacRateSet *, |
| 90 | tANI_U8* pSupportedMCSSet, |
| 91 | tSirMacPropRateSet *, tpPESession); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 92 | |
| 93 | |
| 94 | #endif |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 95 | tSirRetStatus limAddSta(tpAniSirGlobal, tpDphHashNode, tANI_U8, tpPESession); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 96 | tSirRetStatus limDelBss(tpAniSirGlobal, tpDphHashNode, tANI_U16, tpPESession); |
| 97 | tSirRetStatus limDelSta(tpAniSirGlobal, tpDphHashNode, tANI_BOOLEAN, tpPESession); |
| 98 | #ifdef WLAN_FEATURE_VOWIFI_11R |
Jeff Johnson | 3c3e178 | 2013-02-27 10:48:42 -0800 | [diff] [blame] | 99 | tSirRetStatus limAddFTStaSelf(tpAniSirGlobal pMac, tANI_U16 assocId, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 100 | tpPESession psessionEntry); |
| 101 | #endif /* WLAN_FEATURE_VOWIFI_11R */ |
| 102 | tSirRetStatus limAddStaSelf(tpAniSirGlobal, tANI_U16, tANI_U8, tpPESession); |
| 103 | tStaRateMode limGetStaRateMode(tANI_U8 dot11Mode); |
| 104 | |
| 105 | |
| 106 | void limTeardownInfraBss(tpAniSirGlobal,tpPESession); |
| 107 | void limRestorePreReassocState(tpAniSirGlobal, |
| 108 | tSirResultCodes, |
| 109 | tANI_U16,tpPESession); |
Madan Mohan Koyyalamudi | 85d140a | 2012-10-18 20:23:01 -0700 | [diff] [blame] | 110 | void limPostReassocFailure(tpAniSirGlobal, |
| 111 | tSirResultCodes, |
| 112 | tANI_U16,tpPESession); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 113 | eAniBoolean limIsReassocInProgress(tpAniSirGlobal,tpPESession); |
| 114 | void |
| 115 | limSendDelStaCnf(tpAniSirGlobal pMac, tSirMacAddr staDsAddr, |
| 116 | tANI_U16 staDsAssocId, tLimMlmStaContext mlmStaContext, tSirResultCodes statusCode,tpPESession psessionEntry); |
| 117 | |
| 118 | void limHandleCnfWaitTimeout(tpAniSirGlobal pMac, tANI_U16 staId); |
| 119 | void limDeleteDphHashEntry(tpAniSirGlobal, tSirMacAddr, tANI_U16,tpPESession); |
| 120 | void limCheckAndAnnounceJoinSuccess(tpAniSirGlobal, |
| 121 | tSirProbeRespBeacon *, |
| 122 | tpSirMacMgmtHdr,tpPESession); |
| 123 | void limUpdateReAssocGlobals(tpAniSirGlobal pMac, |
| 124 | tpSirAssocRsp pAssocRsp,tpPESession psessionEntry); |
| 125 | |
| 126 | void limUpdateAssocStaDatas(tpAniSirGlobal pMac, |
| 127 | tpDphHashNode pStaDs,tpSirAssocRsp pAssocRsp,tpPESession psessionEntry); |
| 128 | void |
| 129 | limFillSupportedRatesInfo( |
| 130 | tpAniSirGlobal pMac, |
| 131 | tpDphHashNode pSta, |
| 132 | tpSirSupportedRates pRates, |
| 133 | tpPESession psessionEntry); |
| 134 | |
Jeff Johnson | 62c2798 | 2013-02-27 17:53:55 -0800 | [diff] [blame] | 135 | tSirRetStatus limStaSendAddBss(tpAniSirGlobal pMac, tpSirAssocRsp pAssocRsp, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 136 | tpSchBeaconStruct pBeaconStruct, tpSirBssDescription bssDescription, tANI_U8 updateEntry, tpPESession psessionEntry); |
| 137 | tSirRetStatus limStaSendAddBssPreAssoc( tpAniSirGlobal pMac, tANI_U8 updateEntry, tpPESession psessionEntry); |
| 138 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 139 | void limPrepareAndSendDelStaCnf(tpAniSirGlobal pMac, tpDphHashNode pStaDs, tSirResultCodes statusCode,tpPESession); |
| 140 | tSirRetStatus limExtractApCapabilities(tpAniSirGlobal pMac, tANI_U8 * pIE, tANI_U16 ieLen, tpSirProbeRespBeacon beaconStruct); |
| 141 | void limInitPreAuthTimerTable(tpAniSirGlobal pMac, tpLimPreAuthTable pPreAuthTimerTable); |
| 142 | tpLimPreAuthNode limAcquireFreePreAuthNode(tpAniSirGlobal pMac, tpLimPreAuthTable pPreAuthTimerTable); |
| 143 | tpLimPreAuthNode limGetPreAuthNodeFromIndex(tpAniSirGlobal pMac, tpLimPreAuthTable pAuthTable, tANI_U32 authNodeIdx); |
| 144 | |
| 145 | /* Util API to check if the channels supported by STA is within range */ |
| 146 | tSirRetStatus limIsDot11hSupportedChannelsValid(tpAniSirGlobal pMac, tSirAssocReq *assoc); |
| 147 | |
| 148 | /* Util API to check if the txpower supported by STA is within range */ |
| 149 | tSirRetStatus limIsDot11hPowerCapabilitiesInRange(tpAniSirGlobal pMac, tSirAssocReq *assoc,tpPESession); |
| 150 | |
| 151 | /* API to re-add the same BSS during re-association */ |
| 152 | void limHandleAddBssInReAssocContext(tpAniSirGlobal pMac, tpDphHashNode pStaDs, tpPESession psessionEntry); |
| 153 | |
| 154 | /* API to fill in RX Highest Supported data Rate */ |
| 155 | void limFillRxHighestSupportedRate(tpAniSirGlobal pMac, tANI_U16 *rxHighestRate, tANI_U8* pSupportedMCSSet); |
Madan Mohan Koyyalamudi | 61bc566 | 2012-11-02 14:33:10 -0700 | [diff] [blame] | 156 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR) |
| 157 | void limSendRetryReassocReqFrame(tpAniSirGlobal pMac, tLimMlmReassocReq *pMlmReassocReq, tpPESession psessionEntry); |
| 158 | #endif |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 159 | #ifdef WLAN_FEATURE_11W |
| 160 | void limSendSmeUnprotectedMgmtFrameInd(tpAniSirGlobal pMac, tANI_U8 frameType, |
| 161 | tANI_U8 *frame, tANI_U32 frameLen, tANI_U16 sessionId, tpPESession psessionEntry); |
| 162 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 163 | |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 164 | #if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD) |
| 165 | void limSendSmeTsmIEInd( tpAniSirGlobal pMac, tpPESession psessionEntry, |
| 166 | tANI_U8 tid, tANI_U8 state, tANI_U16 measInterval); |
| 167 | #endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */ |
| 168 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 169 | |
| 170 | #endif /* __LIM_ASSOC_UTILS_H */ |
| 171 | |