Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Gopichand Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame] | 22 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 23 | * |
| 24 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 25 | * |
| 26 | * |
| 27 | * Permission to use, copy, modify, and/or distribute this software for |
| 28 | * any purpose with or without fee is hereby granted, provided that the |
| 29 | * above copyright notice and this permission notice appear in all |
| 30 | * copies. |
| 31 | * |
| 32 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 33 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 34 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 35 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 36 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 37 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 38 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 39 | * PERFORMANCE OF THIS SOFTWARE. |
| 40 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 41 | /* |
| 42 | * Airgo Networks, Inc proprietary. All rights reserved. |
| 43 | * This file lim ProcessMessageQueue.cc contains the code |
| 44 | * for processing LIM message Queue. |
| 45 | * Author: Chandra Modumudi |
| 46 | * Date: 02/11/02 |
| 47 | * History:- |
| 48 | * Date Modified by Modification Information |
| 49 | * -------------------------------------------------------------------- |
| 50 | * |
| 51 | */ |
| 52 | #include "palTypes.h" |
| 53 | #include "wniApi.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 54 | #include "wlan_qct_wdi_ds.h" |
| 55 | #include "wlan_qct_pal_packet.h" |
| 56 | #include "wlan_qct_wda.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 57 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 58 | #include "wniCfgSta.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 59 | #include "cfgApi.h" |
| 60 | #include "sirCommon.h" |
| 61 | #include "utilsApi.h" |
| 62 | #include "limTypes.h" |
| 63 | #include "limUtils.h" |
| 64 | #include "limAssocUtils.h" |
| 65 | #include "limPropExtsUtils.h" |
| 66 | |
| 67 | #include "limAdmitControl.h" |
| 68 | #include "pmmApi.h" |
| 69 | #include "limIbssPeerMgmt.h" |
| 70 | #include "schApi.h" |
| 71 | #include "limSession.h" |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 72 | #include "limSendMessages.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 73 | |
| 74 | #if defined WLAN_FEATURE_VOWIFI |
| 75 | #include "rrmApi.h" |
| 76 | #endif |
| 77 | #if defined FEATURE_WLAN_CCX |
| 78 | #include "ccxApi.h" |
| 79 | #endif |
| 80 | |
| 81 | #if defined WLAN_FEATURE_VOWIFI_11R |
| 82 | #include "limFT.h" |
| 83 | #endif |
| 84 | |
| 85 | #ifdef WMM_APSD |
| 86 | #include "wmmApsd.h" |
| 87 | #endif |
| 88 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 89 | #include "vos_types.h" |
| 90 | #include "vos_packet.h" |
| 91 | #include "vos_memory.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 92 | |
| 93 | void limLogSessionStates(tpAniSirGlobal pMac); |
| 94 | |
| 95 | /** ------------------------------------------------------------- |
| 96 | \fn defMsgDecision |
| 97 | \brief The function decides whether to defer a message or not in limProcessMessage function |
| 98 | \param tpAniSirGlobal pMac |
| 99 | \param tSirMsgQ limMsg |
| 100 | \param tSirMacTspecIE *ppInfo |
| 101 | \return none |
| 102 | -------------------------------------------------------------*/ |
| 103 | |
| 104 | tANI_U8 static |
| 105 | defMsgDecision(tpAniSirGlobal pMac, tpSirMsgQ limMsg) |
| 106 | { |
| 107 | |
| 108 | |
| 109 | /* this function should not changed */ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 110 | if(pMac->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 111 | { |
| 112 | // Defer processsing this message |
| 113 | if (limDeferMsg(pMac, limMsg) != TX_SUCCESS) |
| 114 | { |
Madan Mohan Koyyalamudi | 5695b50 | 2012-09-24 14:21:12 -0700 | [diff] [blame] | 115 | PELOGW(limLog(pMac, LOGW, FL("Unable to Defer message(0x%X) %s limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 116 | limMsg->type, limMsgStr(limMsg->type), pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 117 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
| 118 | limLogSessionStates(pMac); |
| 119 | limHandleDeferMsgError(pMac, limMsg); |
| 120 | } |
| 121 | return true; |
| 122 | } |
| 123 | |
| 124 | //When defer is requested then defer all the messages except HAL responses. |
| 125 | if((!limIsSystemInScanState(pMac)) && (true != GET_LIM_PROCESS_DEFD_MESGS(pMac)) && |
| 126 | !pMac->lim.gLimSystemInScanLearnMode) |
| 127 | { |
| 128 | if((limMsg->type != WDA_ADD_BSS_RSP) && |
| 129 | (limMsg->type != WDA_DELETE_BSS_RSP) && |
| 130 | (limMsg->type != WDA_ADD_STA_RSP) && |
| 131 | (limMsg->type != WDA_ADD_STA_SELF_RSP) && |
| 132 | (limMsg->type != WDA_DEL_STA_SELF_RSP) && |
| 133 | (limMsg->type != WDA_DELETE_STA_RSP)&& |
| 134 | (limMsg->type != WDA_SET_BSSKEY_RSP)&& |
| 135 | (limMsg->type != WDA_SET_STAKEY_RSP)&& |
| 136 | (limMsg->type != WDA_SET_STA_BCASTKEY_RSP) && |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 137 | (limMsg->type != eWNI_SME_START_REQ) && |
| 138 | (limMsg->type != WDA_AGGR_QOS_RSP) && |
| 139 | (limMsg->type != WDA_REMOVE_BSSKEY_RSP) && |
| 140 | (limMsg->type != WDA_REMOVE_STAKEY_RSP) && |
| 141 | (limMsg->type != WDA_SET_MIMOPS_RSP)&& |
| 142 | (limMsg->type != WDA_ADDBA_RSP) && |
| 143 | (limMsg->type != WDA_ENTER_BMPS_RSP) && |
| 144 | (limMsg->type != WDA_EXIT_BMPS_RSP) && |
| 145 | (limMsg->type != WDA_ENTER_IMPS_RSP) && |
| 146 | (limMsg->type != WDA_EXIT_IMPS_RSP) && |
| 147 | (limMsg->type != WDA_ENTER_UAPSD_RSP) && |
| 148 | (limMsg->type != WDA_EXIT_UAPSD_RSP) && |
| 149 | (limMsg->type != WDA_WOWL_ENTER_RSP) && |
| 150 | (limMsg->type != WDA_WOWL_EXIT_RSP) && |
| 151 | (limMsg->type != WDA_SWITCH_CHANNEL_RSP) && |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 152 | (limMsg->type != WDA_P2P_NOA_ATTR_IND) && |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 153 | (limMsg->type != WDA_P2P_NOA_START_IND) && |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 154 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 155 | (limMsg->type != WDA_START_OEM_DATA_RSP) && |
| 156 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 157 | (limMsg->type != WDA_ADD_TS_RSP)) |
| 158 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 159 | PELOG1(limLog(pMac, LOG1, FL("Defer the current message %s , gLimProcessDefdMsgs is false and system is not in scan/learn mode"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 160 | limMsgStr(limMsg->type));) |
| 161 | |
| 162 | // Defer processsing this message |
| 163 | if (limDeferMsg(pMac, limMsg) != TX_SUCCESS) |
| 164 | { |
Madan Mohan Koyyalamudi | 5695b50 | 2012-09-24 14:21:12 -0700 | [diff] [blame] | 165 | PELOGW(limLog(pMac, LOGW, FL("Unable to Defer message(0x%X) %s limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 166 | limMsg->type, limMsgStr(limMsg->type), pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 167 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
| 168 | limLogSessionStates(pMac); |
| 169 | limHandleDeferMsgError(pMac, limMsg); |
| 170 | |
| 171 | } |
| 172 | return true; |
| 173 | } |
| 174 | } |
| 175 | return false; |
| 176 | } |
| 177 | |
| 178 | /* |
| 179 | * Beacon Handling Cases: |
| 180 | * during scanning, when no session is active: |
| 181 | * handled by limHandleFramesInScanState before __limHandleBeacon call is invoked. |
| 182 | * during scanning, when any session is active, but beacon/Pr does not belong to that session, psessionEntry will be null. |
| 183 | * handled by limHandleFramesInScanState before __limHandleBeacon call is invoked. |
| 184 | * during scanning, when any session is active, and beacon/Pr belongs to one of the session, psessionEntry will not be null. |
| 185 | * handled by limHandleFramesInScanState before __limHandleBeacon call is invoked. |
| 186 | * Not scanning, no session: |
| 187 | * there should not be any beacon coming, if coming, should be dropped. |
| 188 | * Not Scanning, |
| 189 | */ |
| 190 | static void |
| 191 | __limHandleBeacon(tpAniSirGlobal pMac, tpSirMsgQ pMsg, tpPESession psessionEntry) |
| 192 | { |
| 193 | /* checking for global SME state...*/ |
| 194 | tANI_U8 *pRxPacketInfo; |
| 195 | limGetBDfromRxPacket(pMac, pMsg->bodyptr, (tANI_U32 **)&pRxPacketInfo); |
| 196 | |
| 197 | //This function should not be called if beacon is received in scan state. |
| 198 | //So not doing any checks for the global state. |
| 199 | |
| 200 | if(psessionEntry == NULL) |
| 201 | { |
| 202 | schBeaconProcess(pMac, pRxPacketInfo, NULL); |
| 203 | } |
| 204 | else if( (psessionEntry->limSmeState == eLIM_SME_LINK_EST_STATE) || |
| 205 | (psessionEntry->limSmeState == eLIM_SME_NORMAL_STATE)) |
| 206 | { |
| 207 | schBeaconProcess(pMac, pRxPacketInfo, psessionEntry); |
| 208 | } |
| 209 | else |
| 210 | limProcessBeaconFrame(pMac, pRxPacketInfo, psessionEntry); |
| 211 | |
| 212 | return; |
| 213 | } |
| 214 | |
| 215 | |
| 216 | //Fucntion prototype |
| 217 | void limProcessNormalHddMsg(tpAniSirGlobal pMac, tSirMsgQ *pLimMsg, tANI_U8 fRspReqd); |
| 218 | |
| 219 | /** |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 220 | * limDeferMsg() |
| 221 | * |
| 222 | *FUNCTION: |
| 223 | * This function is called to defer the messages received |
| 224 | * during Learn mode |
| 225 | * |
| 226 | *LOGIC: |
| 227 | * NA |
| 228 | * |
| 229 | *ASSUMPTIONS: |
| 230 | * NA |
| 231 | * |
| 232 | *NOTE: |
| 233 | * NA |
| 234 | * |
| 235 | * @param pMac - Pointer to Global MAC structure |
| 236 | * @param pMsg of type tSirMsgQ - Pointer to the message structure |
| 237 | * @return None |
| 238 | */ |
| 239 | |
| 240 | tANI_U32 |
| 241 | limDeferMsg(tpAniSirGlobal pMac, tSirMsgQ *pMsg) |
| 242 | { |
| 243 | tANI_U32 retCode = TX_SUCCESS; |
Jeff Johnson | 8347b44 | 2013-03-07 08:15:44 -0800 | [diff] [blame] | 244 | |
| 245 | retCode = limWriteDeferredMsgQ(pMac, pMsg); |
| 246 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 247 | if (retCode == TX_SUCCESS) |
Jeff Johnson | 8347b44 | 2013-03-07 08:15:44 -0800 | [diff] [blame] | 248 | { |
| 249 | MTRACE(macTraceMsgRx(pMac, NO_SESSION, LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DEFERRED));) |
| 250 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 251 | else |
Jeff Johnson | 8347b44 | 2013-03-07 08:15:44 -0800 | [diff] [blame] | 252 | { |
| 253 | MTRACE(macTraceMsgRx(pMac, NO_SESSION, LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DROPPED));) |
| 254 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 255 | |
| 256 | return retCode; |
| 257 | } /*** end limDeferMsg() ***/ |
| 258 | |
| 259 | |
| 260 | |
| 261 | /** |
| 262 | * limHandleFramesInScanState() |
| 263 | * |
| 264 | *FUNCTION: |
| 265 | * This function is called to process 802.11 frames |
| 266 | * received by LIM in scan state. |
| 267 | * |
| 268 | *LOGIC: |
| 269 | * NA |
| 270 | * |
| 271 | *ASSUMPTIONS: |
| 272 | * NA |
| 273 | * |
| 274 | *NOTE: |
| 275 | * NA |
| 276 | * |
| 277 | * @param pMac - Pointer to Global MAC structure |
| 278 | * @param limMsg - Received message |
| 279 | * @param pRxPacketInfo - Pointer to Rx packet info structure |
| 280 | * @param deferMsg - Indicates whether the frame shall be deferred |
| 281 | * @return None |
| 282 | */ |
| 283 | |
| 284 | static void |
| 285 | limHandleFramesInScanState(tpAniSirGlobal pMac, tpSirMsgQ limMsg, tANI_U8 *pRxPacketInfo, tANI_U8 *deferMsg, tpPESession psessionEntry) |
| 286 | { |
| 287 | tSirMacFrameCtl fc; |
| 288 | tpSirMacMgmtHdr pHdr; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 289 | |
| 290 | *deferMsg = false; |
| 291 | pHdr = WDA_GET_RX_MAC_HEADER(pRxPacketInfo); |
| 292 | fc = pHdr->fc; |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 293 | limLog( pMac, LOG2, FL("ProtVersion %d, Type %d, Subtype %d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 294 | fc.protVer, fc.type, fc.subType ); |
| 295 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 296 | // defer all message in scan state except for Beacons and Probe Response |
| 297 | if ((fc.type == SIR_MAC_MGMT_FRAME) && (fc.subType == SIR_MAC_MGMT_BEACON)) |
| 298 | { |
| 299 | if (psessionEntry == NULL) |
| 300 | limProcessBeaconFrameNoSession(pMac, pRxPacketInfo); |
| 301 | else |
| 302 | limProcessBeaconFrame(pMac, pRxPacketInfo,psessionEntry); |
| 303 | } |
| 304 | else if ((fc.type == SIR_MAC_MGMT_FRAME) && (fc.subType == SIR_MAC_MGMT_PROBE_RSP)) |
| 305 | { |
| 306 | if (psessionEntry == NULL) |
| 307 | limProcessProbeRspFrameNoSession(pMac, pRxPacketInfo); |
| 308 | else |
| 309 | limProcessProbeRspFrame(pMac, pRxPacketInfo,psessionEntry); |
| 310 | } |
| 311 | else if ((fc.type == SIR_MAC_MGMT_FRAME) && (fc.subType == SIR_MAC_MGMT_PROBE_REQ)) |
| 312 | { |
| 313 | limProcessProbeReqFrame_multiple_BSS(pMac, pRxPacketInfo, psessionEntry); |
| 314 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 315 | else if ((fc.type == SIR_MAC_MGMT_FRAME) && (fc.subType == SIR_MAC_MGMT_ACTION)) |
| 316 | { |
| 317 | limProcessActionFrameNoSession( pMac, pRxPacketInfo); |
| 318 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 319 | else |
| 320 | { |
| 321 | *deferMsg = true; |
| 322 | return; |
| 323 | } |
| 324 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 325 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, (void *) limMsg->bodyptr); |
| 326 | return; |
| 327 | |
| 328 | } /*** end limHandleFramesInScanState() ***/ |
| 329 | |
| 330 | /** ------------------------------------------------------------ |
| 331 | \brief This function handles Unknown Unicast (A2 Index) |
| 332 | \ packets. |
| 333 | \param tpAniSirGlobal pMac Global Mac data structure |
| 334 | \param void *pRxPacketInfo Pointer to Buffer Descriptor |
| 335 | \return none |
| 336 | \ |
| 337 | \ -------------------------------------------------------------- */ |
| 338 | static void limHandleUnknownA2IndexFrames(tpAniSirGlobal pMac, void *pRxPacketInfo,tpPESession psessionEntry) |
| 339 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 340 | /* addr2 mismatch interrupt occurred this means previous |
| 341 | disassociation was not successful |
| 342 | In Volans pRxPacketInfo only contains pointer 48-bit address2 field */ |
| 343 | /*Send disassociation message again*/ |
| 344 | //Dinesh need one more arguement. |
| 345 | //limSendDisassocMgmtFrame(pMac, eSIR_MAC_CLASS3_FRAME_FROM_NON_ASSOC_STA_REASON,(tANI_U8 *) pRxPacketInfo); |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 346 | //TODO: verify this |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 347 | //This could be a public action frame. |
| 348 | if( psessionEntry->limSystemRole == eLIM_P2P_DEVICE_ROLE ) |
| 349 | limProcessActionFrameNoSession(pMac, (tANI_U8 *) pRxPacketInfo); |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 350 | |
| 351 | #ifdef FEATURE_WLAN_TDLS |
| 352 | { |
| 353 | tpSirMacDataHdr3a pMacHdr; |
| 354 | pMacHdr = WDA_GET_RX_MPDUHEADER3A(pRxPacketInfo); |
| 355 | |
| 356 | if (limIsGroupAddr(pMacHdr->addr2)) |
| 357 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 358 | PELOG2(limLog(pMac, LOG2, FL("Ignoring A2 Invalid Packet received for MC/BC:")); |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 359 | limPrintMacAddr(pMac, pMacHdr->addr2, LOG2);) |
| 360 | |
| 361 | return; |
| 362 | } |
| 363 | /* TDLS_hklee: move down here to reject Addr2 == Group (first checking above) |
| 364 | and also checking if SystemRole == STA */ |
| 365 | if (psessionEntry->limSystemRole == eLIM_STA_ROLE) |
| 366 | { |
| 367 | /* ADD handling of Public Action Frame */ |
| 368 | LIM_LOG_TDLS(VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR, \ |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 369 | ("limHandleUnknownA2IndexFrames: type=0x%x, subtype=0x%x"),pMacHdr->fc.type, pMacHdr->fc.subType)); |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 370 | switch (pMacHdr->fc.type) |
| 371 | { |
| 372 | case SIR_MAC_MGMT_FRAME: |
| 373 | { |
| 374 | switch (pMacHdr->fc.subType) |
| 375 | { |
| 376 | case SIR_MAC_MGMT_ACTION: |
| 377 | { |
| 378 | limProcessActionFrame(pMac, pRxPacketInfo, psessionEntry) ; |
| 379 | break ; |
| 380 | } |
| 381 | default: |
| 382 | { |
| 383 | break ; |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | default: |
| 388 | { |
| 389 | break ; |
| 390 | } |
| 391 | } |
| 392 | } |
| 393 | } |
| 394 | #endif |
| 395 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 396 | |
| 397 | return; |
| 398 | } |
| 399 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 400 | /** |
| 401 | * limCheckMgmtRegisteredFrames() |
| 402 | * |
| 403 | *FUNCTION: |
| 404 | * This function is called to process to check if received frame match with |
| 405 | * any of the registered frame from HDD. If yes pass this frame to SME. |
| 406 | * |
| 407 | *LOGIC: |
| 408 | * |
| 409 | *ASSUMPTIONS: |
| 410 | * |
| 411 | *NOTE: |
| 412 | * |
| 413 | * @param pMac Pointer to Global MAC structure |
| 414 | * @param *pBd Pointer to the received Buffer Descriptor+payload |
| 415 | * @param *psessionEntry Pointer to session on which packet is received |
| 416 | * @return None |
| 417 | */ |
| 418 | static tANI_BOOLEAN |
| 419 | limCheckMgmtRegisteredFrames(tpAniSirGlobal pMac, tANI_U8 *pBd, |
| 420 | tpPESession psessionEntry) |
| 421 | { |
| 422 | tSirMacFrameCtl fc; |
| 423 | tpSirMacMgmtHdr pHdr; |
| 424 | tANI_U8 *pBody; |
| 425 | tpLimMgmtFrameRegistration pLimMgmtRegistration = NULL, pNext = NULL; |
| 426 | tANI_U16 frameType; |
| 427 | tANI_U16 framelen; |
| 428 | tANI_U8 type,subType; |
| 429 | tANI_BOOLEAN match = VOS_FALSE; |
| 430 | VOS_STATUS vosStatus; |
| 431 | |
| 432 | pHdr = WDA_GET_RX_MAC_HEADER(pBd); |
| 433 | fc = pHdr->fc; |
| 434 | frameType = (fc.type << 2 ) | (fc.subType << 4); |
| 435 | pBody = WDA_GET_RX_MPDU_DATA(pBd); |
| 436 | framelen = WDA_GET_RX_PAYLOAD_LEN(pBd); |
| 437 | |
| 438 | vos_list_peek_front(&pMac->lim.gLimMgmtFrameRegistratinQueue, |
| 439 | (vos_list_node_t**)&pLimMgmtRegistration); |
| 440 | |
| 441 | while(pLimMgmtRegistration != NULL) |
| 442 | { |
| 443 | type = (pLimMgmtRegistration->frameType >> 2) & 0x03; |
| 444 | subType = (pLimMgmtRegistration->frameType >> 4) & 0x0f; |
| 445 | if ( (type == SIR_MAC_MGMT_FRAME) && (fc.type == SIR_MAC_MGMT_FRAME) |
| 446 | && (subType == SIR_MAC_MGMT_RESERVED15) ) |
| 447 | { |
| 448 | limLog( pMac, LOG3, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 449 | FL("rcvd frame match with SIR_MAC_MGMT_RESERVED15")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 450 | match = VOS_TRUE; |
| 451 | break; |
| 452 | } |
| 453 | |
| 454 | if (pLimMgmtRegistration->frameType == frameType) |
| 455 | { |
| 456 | if (pLimMgmtRegistration->matchLen > 0) |
| 457 | { |
| 458 | if (pLimMgmtRegistration->matchLen <= framelen) |
| 459 | { |
| 460 | if (palEqualMemory(pMac, pLimMgmtRegistration->matchData, |
| 461 | pBody, pLimMgmtRegistration->matchLen)) |
| 462 | { |
Madan Mohan Koyyalamudi | c537df2 | 2012-10-22 15:07:08 -0700 | [diff] [blame] | 463 | /* found match! */ |
| 464 | match = VOS_TRUE; |
| 465 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 466 | } |
Madan Mohan Koyyalamudi | c537df2 | 2012-10-22 15:07:08 -0700 | [diff] [blame] | 467 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 468 | } |
| 469 | else |
| 470 | { |
| 471 | /* found match! */ |
| 472 | match = VOS_TRUE; |
| 473 | break; |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | vosStatus = |
| 478 | vos_list_peek_next ( &pMac->lim.gLimMgmtFrameRegistratinQueue, |
| 479 | (vos_list_node_t*) pLimMgmtRegistration, |
| 480 | (vos_list_node_t**) &pNext ); |
| 481 | pLimMgmtRegistration = pNext; |
| 482 | pNext = NULL; |
| 483 | } |
| 484 | |
| 485 | if (match) |
| 486 | { |
| 487 | limLog( pMac, LOG1, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 488 | FL("rcvd frame match with registered frame params")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 489 | |
| 490 | /* Indicate this to SME */ |
| 491 | limSendSmeMgmtFrameInd( pMac, pHdr->fc.subType, (tANI_U8*)pHdr, |
| 492 | WDA_GET_RX_PAYLOAD_LEN(pBd) + sizeof(tSirMacMgmtHdr), |
| 493 | pLimMgmtRegistration->sessionId, |
Chilam NG | de0b411 | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 494 | WDA_GET_RX_CH(pBd), psessionEntry, 0); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 495 | |
| 496 | if ( (type == SIR_MAC_MGMT_FRAME) && (fc.type == SIR_MAC_MGMT_FRAME) |
| 497 | && (subType == SIR_MAC_MGMT_RESERVED15) ) |
| 498 | { |
| 499 | // These packets needs to be processed by PE/SME as well as HDD. |
| 500 | // If it returns TRUE here, the packet is forwarded to HDD only. |
| 501 | match = VOS_FALSE; |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | return match; |
| 506 | } /*** end limCheckMgmtRegisteredFrames() ***/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 507 | |
| 508 | |
| 509 | /** |
| 510 | * limHandle80211Frames() |
| 511 | * |
| 512 | *FUNCTION: |
| 513 | * This function is called to process 802.11 frames |
| 514 | * received by LIM. |
| 515 | * |
| 516 | *LOGIC: |
| 517 | * NA |
| 518 | * |
| 519 | *ASSUMPTIONS: |
| 520 | * NA |
| 521 | * |
| 522 | *NOTE: |
| 523 | * NA |
| 524 | * |
| 525 | * @param pMac - Pointer to Global MAC structure |
| 526 | * @param pMsg of type tSirMsgQ - Pointer to the message structure |
| 527 | * @return None |
| 528 | */ |
| 529 | |
| 530 | static void |
| 531 | limHandle80211Frames(tpAniSirGlobal pMac, tpSirMsgQ limMsg, tANI_U8 *pDeferMsg) |
| 532 | { |
| 533 | tANI_U8 *pRxPacketInfo = NULL; |
| 534 | tSirMacFrameCtl fc; |
| 535 | tpSirMacMgmtHdr pHdr=NULL; |
| 536 | tpPESession psessionEntry=NULL; |
| 537 | tANI_U8 sessionId; |
| 538 | tAniBool isFrmFt = FALSE; |
| 539 | tANI_U16 fcOffset = WLANHAL_RX_BD_HEADER_SIZE; |
| 540 | |
| 541 | *pDeferMsg= false; |
| 542 | limGetBDfromRxPacket(pMac, limMsg->bodyptr, (tANI_U32 **)&pRxPacketInfo); |
| 543 | |
| 544 | pHdr = WDA_GET_RX_MAC_HEADER(pRxPacketInfo); |
| 545 | isFrmFt = WDA_GET_RX_FT_DONE(pRxPacketInfo); |
| 546 | fcOffset = (v_U8_t)WDA_GET_RX_MPDU_HEADER_OFFSET(pRxPacketInfo); |
| 547 | fc = pHdr->fc; |
| 548 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 549 | limLog( pMac, LOG4, FL("ProtVersion %d, Type %d, Subtype %d rateIndex=%d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 550 | fc.protVer, fc.type, fc.subType, WDA_GET_RX_MAC_RATE_IDX(pRxPacketInfo)); |
| 551 | |
Varun Reddy Yeturu | 0861470 | 2013-04-15 21:58:13 -0700 | [diff] [blame^] | 552 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 553 | if ( WDA_GET_ROAMCANDIDATEIND(pRxPacketInfo)) |
| 554 | { |
| 555 | limLog( pMac, LOG2, FL("Notify SME with candidate ind")); |
| 556 | //send a session 0 for now - TBD |
| 557 | limSendSmeCandidateFoundInd(pMac, 0); |
| 558 | goto end; |
| 559 | } |
| 560 | if (WDA_GET_OFFLOADSCANLEARN(pRxPacketInfo)) |
| 561 | { |
| 562 | if (fc.subType == SIR_MAC_MGMT_BEACON) |
| 563 | { |
| 564 | limLog( pMac, LOG2, FL("Save this beacon in LFR cache")); |
| 565 | __limHandleBeacon(pMac, limMsg, NULL); |
| 566 | } |
| 567 | else if (fc.subType == SIR_MAC_MGMT_PROBE_RSP) |
| 568 | { |
| 569 | limLog( pMac, LOG2, FL("Save this probe rsp in LFR cache")); |
| 570 | limProcessProbeRspFrameNoSession(pMac, pRxPacketInfo); |
| 571 | } |
| 572 | else |
| 573 | { |
| 574 | limLog( pMac, LOGE, FL("Wrong frame Type %d, Subtype %d for LFR"), |
| 575 | fc.type, fc.subType); |
| 576 | } |
| 577 | goto end; |
| 578 | } |
| 579 | #endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 580 | #ifdef FEATURE_WLAN_CCX |
| 581 | if (fc.type == SIR_MAC_DATA_FRAME && isFrmFt) |
| 582 | { |
| 583 | #if 0 // CCX TBD Need to PORT |
| 584 | tpSirMacDot3Hdr pDataFrmHdr; |
| 585 | |
| 586 | pDataFrmHdr = (tpSirMacDot3Hdr)((tANI_U8 *)pBD+ WLANHAL_RX_BD_GET_MPDU_H_OFFSET(pBD)); |
| 587 | if((psessionEntry = peFindSessionByBssid(pMac,pDataFrmHdr->sa,&sessionId))== NULL) |
| 588 | { |
| 589 | limLog( pMac, LOGE, FL("Session not found for Frm type %d, subtype %d, SA: "), fc.type, fc.subType); |
| 590 | limPrintMacAddr(pMac, pDataFrmHdr->sa, LOGE); |
| 591 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pBD, limMsg->bodyptr); |
| 592 | return; |
| 593 | } |
| 594 | |
| 595 | if (!psessionEntry->isCCXconnection) |
| 596 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 597 | limLog( pMac, LOGE, FL("LIM received Type %d, Subtype %d in Non CCX connection"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 598 | fc.type, fc.subType); |
| 599 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pBD, limMsg->bodyptr); |
| 600 | return; |
| 601 | } |
| 602 | limLog( pMac, LOGE, FL("Processing IAPP Frm from SA:")); |
| 603 | limPrintMacAddr(pMac, pDataFrmHdr->sa, LOGE); |
| 604 | #else |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 605 | printk("%s: Need to port handling of IAPP frames to PRIMA for CCX", __func__); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 606 | #endif |
| 607 | |
| 608 | |
| 609 | } else |
| 610 | #endif |
| 611 | /* Added For BT-AMP Support */ |
| 612 | if((psessionEntry = peFindSessionByBssid(pMac,pHdr->bssId,&sessionId))== NULL) |
| 613 | { |
| 614 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 615 | if (fc.subType == SIR_MAC_MGMT_AUTH) |
| 616 | { |
| 617 | #ifdef WLAN_FEATURE_VOWIFI_11R_DEBUG |
Varun Reddy Yeturu | 9163b67 | 2013-02-11 14:05:06 -0800 | [diff] [blame] | 618 | limLog( pMac, LOG1, FL("ProtVersion %d, Type %d, Subtype %d rateIndex=%d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 619 | fc.protVer, fc.type, fc.subType, WDA_GET_RX_MAC_RATE_IDX(pRxPacketInfo)); |
Varun Reddy Yeturu | 9163b67 | 2013-02-11 14:05:06 -0800 | [diff] [blame] | 620 | limPrintMacAddr(pMac, pHdr->bssId, LOG1); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 621 | #endif |
| 622 | if (limProcessAuthFrameNoSession(pMac, pRxPacketInfo, limMsg->bodyptr) == eSIR_SUCCESS) |
| 623 | { |
| 624 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, limMsg->bodyptr); |
| 625 | return; |
| 626 | } |
| 627 | } |
| 628 | #endif |
| 629 | if((fc.subType != SIR_MAC_MGMT_PROBE_RSP )&& |
| 630 | (fc.subType != SIR_MAC_MGMT_BEACON)&& |
| 631 | (fc.subType != SIR_MAC_MGMT_PROBE_REQ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 632 | && (fc.subType != SIR_MAC_MGMT_ACTION ) //Public action frame can be received from non-associated stations. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 633 | ) |
| 634 | { |
| 635 | |
| 636 | if((psessionEntry = peFindSessionByPeerSta(pMac,pHdr->sa,&sessionId))== NULL) |
| 637 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 638 | limLog(pMac, LOG1, FL("session does not exist for given bssId")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 639 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, limMsg->bodyptr); |
| 640 | return; |
| 641 | } |
Gopichand Nakkala | 035315f | 2013-03-20 23:32:50 +0530 | [diff] [blame] | 642 | } |
| 643 | // For p2p resp frames search for valid session with DA as |
| 644 | // BSSID will be SA and session will be present with DA only |
| 645 | if(fc.subType == SIR_MAC_MGMT_ACTION ) |
| 646 | { |
| 647 | psessionEntry = peFindSessionByBssid(pMac,pHdr->da,&sessionId); |
| 648 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 649 | } |
| 650 | |
| 651 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 652 | /* Check if frame is registered by HDD */ |
| 653 | if(limCheckMgmtRegisteredFrames(pMac, pRxPacketInfo, psessionEntry)) |
| 654 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 655 | limLog( pMac, LOG1, FL("Received frame is passed to SME")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 656 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, limMsg->bodyptr); |
| 657 | return; |
| 658 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 659 | |
| 660 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 661 | |
| 662 | if (fc.protVer != SIR_MAC_PROTOCOL_VERSION) |
| 663 | { // Received Frame with non-zero Protocol Version |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 664 | limLog(pMac, LOGE, FL("Unexpected frame with protVersion %d received"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 665 | fc.protVer); |
| 666 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, (void *) limMsg->bodyptr); |
| 667 | #ifdef WLAN_DEBUG |
| 668 | pMac->lim.numProtErr++; |
| 669 | #endif |
| 670 | return; |
| 671 | } |
| 672 | |
| 673 | |
| 674 | if (limIsSystemInScanState(pMac)) |
| 675 | { |
| 676 | limHandleFramesInScanState(pMac, limMsg, pRxPacketInfo, pDeferMsg, psessionEntry); |
| 677 | return; |
| 678 | } |
| 679 | |
| 680 | /* Chance of crashing : to be done BT-AMP ........happens when broadcast probe req is received */ |
| 681 | |
| 682 | #if 0 |
| 683 | if (psessionEntry->limSystemRole == eLIM_UNKNOWN_ROLE) { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 684 | limLog( pMac, LOGW, FL( "gLimSystemRole is %d. Exiting..." ),psessionEntry->limSystemRole ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 685 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, (void *) limMsg->bodyptr); |
| 686 | |
| 687 | #ifdef WLAN_DEBUG |
| 688 | pMac->lim.numProtErr++; |
| 689 | #endif |
| 690 | return; |
| 691 | } |
| 692 | #endif //HACK to continue scanning |
| 693 | |
| 694 | |
| 695 | #ifdef WLAN_DEBUG |
| 696 | pMac->lim.numMAC[fc.type][fc.subType]++; |
| 697 | #endif |
| 698 | |
| 699 | switch (fc.type) |
| 700 | { |
| 701 | case SIR_MAC_MGMT_FRAME: |
| 702 | { |
| 703 | #if 0 //TBD-RAJESH fix this |
| 704 | if (limIsReassocInProgress( pMac,psessionEntry) && (fc.subType != SIR_MAC_MGMT_DISASSOC) && |
| 705 | (fc.subType != SIR_MAC_MGMT_DEAUTH) && (fc.subType != SIR_MAC_MGMT_REASSOC_RSP)) |
| 706 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 707 | limLog(pMac, LOGE, FL("Frame with Type - %d, Subtype - %d received in ReAssoc Wait state, dropping..."), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 708 | fc.type, fc.subType); |
| 709 | return; |
| 710 | } |
| 711 | #endif //HACK to continue scanning |
| 712 | // Received Management frame |
| 713 | switch (fc.subType) |
| 714 | { |
| 715 | case SIR_MAC_MGMT_ASSOC_REQ: |
| 716 | // Make sure the role supports Association |
| 717 | if ((psessionEntry->limSystemRole == eLIM_BT_AMP_AP_ROLE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 718 | || (psessionEntry->limSystemRole == eLIM_AP_ROLE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 719 | ) |
| 720 | limProcessAssocReqFrame(pMac, pRxPacketInfo, LIM_ASSOC, psessionEntry); |
| 721 | |
| 722 | else |
| 723 | { |
| 724 | // Unwanted messages - Log error |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 725 | limLog(pMac, LOGE, FL("unexpected message received %X"),limMsg->type); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 726 | limPrintMsgName(pMac, LOGE, limMsg->type); |
| 727 | } |
| 728 | break; |
| 729 | |
| 730 | case SIR_MAC_MGMT_ASSOC_RSP: |
| 731 | limProcessAssocRspFrame(pMac, pRxPacketInfo, LIM_ASSOC,psessionEntry); |
| 732 | break; |
| 733 | |
| 734 | case SIR_MAC_MGMT_REASSOC_REQ: |
| 735 | // Make sure the role supports Reassociation |
| 736 | if ((psessionEntry->limSystemRole == eLIM_BT_AMP_AP_ROLE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 737 | || (psessionEntry->limSystemRole == eLIM_AP_ROLE) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 738 | ){ |
| 739 | limProcessAssocReqFrame(pMac, pRxPacketInfo, LIM_REASSOC, psessionEntry); |
| 740 | } |
| 741 | else |
| 742 | { |
| 743 | // Unwanted messages - Log error |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 744 | limLog(pMac, LOGE, FL("unexpected message received %X"),limMsg->type); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 745 | limPrintMsgName(pMac, LOGE, limMsg->type); |
| 746 | } |
| 747 | break; |
| 748 | |
| 749 | case SIR_MAC_MGMT_REASSOC_RSP: |
| 750 | limProcessAssocRspFrame(pMac, pRxPacketInfo, LIM_REASSOC,psessionEntry); |
| 751 | break; |
| 752 | |
| 753 | case SIR_MAC_MGMT_PROBE_REQ: |
| 754 | limProcessProbeReqFrame_multiple_BSS(pMac, pRxPacketInfo,psessionEntry); |
| 755 | break; |
| 756 | |
| 757 | case SIR_MAC_MGMT_PROBE_RSP: |
| 758 | if(psessionEntry == NULL) |
| 759 | limProcessProbeRspFrameNoSession(pMac, pRxPacketInfo); |
| 760 | else |
| 761 | limProcessProbeRspFrame(pMac, pRxPacketInfo, psessionEntry); |
| 762 | break; |
| 763 | |
| 764 | case SIR_MAC_MGMT_BEACON: |
| 765 | __limHandleBeacon(pMac, limMsg,psessionEntry); |
| 766 | break; |
| 767 | |
| 768 | case SIR_MAC_MGMT_DISASSOC: |
| 769 | limProcessDisassocFrame(pMac, pRxPacketInfo,psessionEntry); |
| 770 | break; |
| 771 | |
| 772 | case SIR_MAC_MGMT_AUTH: |
| 773 | limProcessAuthFrame(pMac, pRxPacketInfo,psessionEntry); |
| 774 | break; |
| 775 | |
| 776 | case SIR_MAC_MGMT_DEAUTH: |
| 777 | limProcessDeauthFrame(pMac, pRxPacketInfo,psessionEntry); |
| 778 | break; |
| 779 | |
| 780 | case SIR_MAC_MGMT_ACTION: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 781 | if(psessionEntry == NULL) |
| 782 | limProcessActionFrameNoSession(pMac, pRxPacketInfo); |
| 783 | else |
| 784 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 785 | if (WDA_GET_RX_UNKNOWN_UCAST(pRxPacketInfo)) |
| 786 | limHandleUnknownA2IndexFrames(pMac, pRxPacketInfo,psessionEntry); |
| 787 | else |
| 788 | limProcessActionFrame(pMac, pRxPacketInfo,psessionEntry); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 789 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 790 | break; |
| 791 | default: |
| 792 | // Received Management frame of 'reserved' subtype |
| 793 | break; |
| 794 | } // switch (fc.subType) |
| 795 | |
| 796 | } |
| 797 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 798 | case SIR_MAC_DATA_FRAME: |
| 799 | { |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 800 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 801 | /* |
| 802 | * if we reach here, following cases are possible. |
| 803 | * Possible cases: a) if frame translation is disabled. |
| 804 | * b) Some frame with ADRR2 filter enabled may come |
| 805 | * here. |
| 806 | */ |
| 807 | tANI_U8 *dataOffset = WDA_GET_RX_MPDU_DATA(pRxPacketInfo); |
| 808 | tANI_U8 *rfc1042Hdr = (tANI_U8 *)(dataOffset + RFC1042_HDR_LENGTH) ; |
| 809 | tANI_U16 ethType = GET_BE16(rfc1042Hdr) ; |
| 810 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 811 | ("TDLS frame with 80211 Header")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 812 | if(ETH_TYPE_89_0d == ethType) |
| 813 | { |
| 814 | tANI_U8 payloadType = (rfc1042Hdr + ETH_TYPE_LEN)[0] ; |
| 815 | if(PAYLOAD_TYPE_TDLS == payloadType) |
| 816 | { |
| 817 | limProcessTdlsFrame(pMac, (tANI_U32*)pRxPacketInfo) ; |
| 818 | } |
| 819 | } |
| 820 | #endif |
| 821 | #ifdef FEATURE_WLAN_CCX |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 822 | /* We accept data frame (IAPP frame) only if Session is |
| 823 | * present and ccx connection is established on that |
| 824 | * session |
| 825 | */ |
| 826 | if (psessionEntry && psessionEntry->isCCXconnection) { |
| 827 | limProcessIappFrame(pMac, pRxPacketInfo, psessionEntry); |
| 828 | } |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 829 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 830 | } |
| 831 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 832 | default: |
| 833 | // Received frame of type 'reserved' |
| 834 | break; |
| 835 | |
| 836 | } // switch (fc.type) |
| 837 | |
Varun Reddy Yeturu | 0861470 | 2013-04-15 21:58:13 -0700 | [diff] [blame^] | 838 | #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD |
| 839 | end: |
| 840 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 841 | limPktFree(pMac, HAL_TXRX_FRM_802_11_MGMT, pRxPacketInfo, (void *) limMsg->bodyptr) ; |
| 842 | return; |
| 843 | } /*** end limHandle80211Frames() ***/ |
| 844 | |
| 845 | |
| 846 | /** |
| 847 | * limProcessAbortScanInd() |
| 848 | * |
| 849 | *FUNCTION: |
| 850 | * This function is called from HDD to abort the scan which is presently being run |
| 851 | * |
| 852 | * |
| 853 | *NOTE: |
| 854 | * |
| 855 | * @param pMac Pointer to Global MAC structure |
| 856 | * @param *pMsgBuf A pointer to the SME message buffer |
| 857 | * @return None |
| 858 | */ |
| 859 | void |
| 860 | limProcessAbortScanInd(tpAniSirGlobal pMac) |
| 861 | { |
| 862 | #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT |
| 863 | limDiagEventReport(pMac, WLAN_PE_DIAG_SCAN_ABORT_IND_EVENT, NULL, 0, 0); |
| 864 | #endif //FEATURE_WLAN_DIAG_SUPPORT |
| 865 | |
| 866 | /* Deactivate the gLimBackgroundScanTimer as part of the abort scan. |
| 867 | * SME should send WNI_CFG_BACKGROUND_SCAN_PERIOD indication |
| 868 | * to start the background scan again |
| 869 | */ |
Madan Mohan Koyyalamudi | 8b7f1e6 | 2012-10-05 14:56:51 -0700 | [diff] [blame] | 870 | PELOG2(limLog(pMac, LOG2, FL("Processing AbortScan Ind"));) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 871 | |
| 872 | limAbortBackgroundScan(pMac); |
| 873 | |
| 874 | /* Abort the scan if its running, else just return */ |
| 875 | if(limIsSystemInScanState(pMac)) |
| 876 | { |
| 877 | if( (eLIM_HAL_INIT_SCAN_WAIT_STATE == pMac->lim.gLimHalScanState ) || |
| 878 | (eLIM_HAL_START_SCAN_WAIT_STATE == pMac->lim.gLimHalScanState ) || |
| 879 | (eLIM_HAL_END_SCAN_WAIT_STATE == pMac->lim.gLimHalScanState ) || |
| 880 | (eLIM_HAL_FINISH_SCAN_WAIT_STATE == pMac->lim.gLimHalScanState) ) |
| 881 | { |
| 882 | //Simply signal we need to abort |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 883 | limLog( pMac, LOGW, FL(" waiting for HAL, simply signal abort gLimHalScanState = %d"), pMac->lim.gLimHalScanState ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 884 | pMac->lim.abortScan = 1; |
| 885 | } |
| 886 | else |
| 887 | { |
| 888 | //Force abort |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 889 | limLog( pMac, LOGW, FL(" Force aborting scan") ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 890 | pMac->lim.abortScan = 0; |
| 891 | limDeactivateAndChangeTimer(pMac, eLIM_MIN_CHANNEL_TIMER); |
| 892 | limDeactivateAndChangeTimer(pMac, eLIM_MAX_CHANNEL_TIMER); |
| 893 | //Set the resume channel to Any valid channel (invalid). |
| 894 | //This will instruct HAL to set it to any previous valid channel. |
| 895 | peSetResumeChannel(pMac, 0, 0); |
| 896 | limSendHalFinishScanReq(pMac, eLIM_HAL_FINISH_SCAN_WAIT_STATE); |
| 897 | } |
| 898 | } |
| 899 | return; |
| 900 | } |
| 901 | |
| 902 | /** |
| 903 | * limMessageProcessor |
| 904 | * |
| 905 | *FUNCTION: |
| 906 | * Wrapper function for limProcessMessages when handling messages received by LIM. |
| 907 | * Could either defer messages or process them. |
| 908 | * @param pMac Pointer to Global MAC structure |
| 909 | * @param limMsg Received LIM message |
| 910 | * @return None |
| 911 | */ |
| 912 | |
| 913 | void limMessageProcessor(tpAniSirGlobal pMac, tpSirMsgQ limMsg) |
| 914 | { |
| 915 | if (eLIM_MLM_OFFLINE_STATE == pMac->lim.gLimMlmState) |
| 916 | { |
| 917 | peFreeMsg(pMac, limMsg); |
| 918 | return; |
| 919 | } |
| 920 | |
| 921 | if (!defMsgDecision(pMac, limMsg)) |
| 922 | { |
| 923 | limProcessMessages(pMac, limMsg); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 924 | // process deferred message queue if allowed |
| 925 | { |
| 926 | if ( (! (pMac->lim.gLimAddtsSent)) |
| 927 | && |
| 928 | (! (limIsSystemInScanState(pMac))) |
| 929 | ) |
| 930 | { |
| 931 | if (true == GET_LIM_PROCESS_DEFD_MESGS(pMac)) |
| 932 | limProcessDeferredMessageQueue(pMac); |
| 933 | } |
| 934 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 935 | } |
| 936 | } |
| 937 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 938 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 939 | |
| 940 | void limOemDataRspHandleResumeLinkRsp(tpAniSirGlobal pMac, eHalStatus status, tANI_U32* mlmOemDataRsp) |
| 941 | { |
| 942 | if(status != eHAL_STATUS_SUCCESS) |
| 943 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 944 | limLog(pMac, LOGE, FL("OEM Data Rsp failed to get the response for resume link")); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 945 | } |
| 946 | |
| 947 | if(NULL != pMac->lim.gpLimMlmOemDataReq) |
| 948 | { |
| 949 | palFreeMemory(pMac->hHdd, pMac->lim.gpLimMlmOemDataReq); |
| 950 | pMac->lim.gpLimMlmOemDataReq = NULL; |
| 951 | } |
| 952 | |
| 953 | //"Failure" status doesn't mean that Oem Data Rsp did not happen |
| 954 | //and hence we need to respond to upper layers. Only Resume link is failed, but |
| 955 | //we got the oem data response already. |
| 956 | //Post the meessage to MLM |
| 957 | limPostSmeMessage(pMac, LIM_MLM_OEM_DATA_CNF, (tANI_U32*)(mlmOemDataRsp)); |
| 958 | |
| 959 | return; |
| 960 | } |
| 961 | |
| 962 | void limProcessOemDataRsp(tpAniSirGlobal pMac, tANI_U32* body) |
| 963 | { |
| 964 | eHalStatus status = eHAL_STATUS_SUCCESS; |
| 965 | tpLimMlmOemDataRsp mlmOemDataRsp = NULL; |
| 966 | tpStartOemDataRsp oemDataRsp = NULL; |
| 967 | |
| 968 | //Process all the messages for the lim queue |
| 969 | SET_LIM_PROCESS_DEFD_MESGS(pMac, true); |
| 970 | |
| 971 | oemDataRsp = (tpStartOemDataRsp)(body); |
| 972 | |
| 973 | status = palAllocateMemory(pMac->hHdd, (void**)(&mlmOemDataRsp), sizeof(tLimMlmOemDataRsp)); |
| 974 | if(status != eHAL_STATUS_SUCCESS) |
| 975 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 976 | limLog(pMac, LOGP, FL("could not allocate memory for mlmOemDataRsp")); |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 977 | return; |
| 978 | } |
| 979 | |
| 980 | //copy the memory into tLimMlmOemDataRsp and free the tStartOemDataRsp |
| 981 | //the structures tStartOemDataRsp and tLimMlmOemDataRsp have the same structure |
| 982 | palCopyMemory(pMac->hHdd, (void*)(mlmOemDataRsp), (void*)(oemDataRsp), sizeof(tLimMlmOemDataRsp)); |
| 983 | |
| 984 | //Now free the incoming memory |
| 985 | palFreeMemory(pMac->hHdd, (void*)(oemDataRsp)); |
| 986 | |
| 987 | limResumeLink(pMac, limOemDataRspHandleResumeLinkRsp, (tANI_U32*)mlmOemDataRsp); |
| 988 | |
| 989 | return; |
| 990 | } |
| 991 | |
| 992 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 993 | |
| 994 | |
| 995 | /** |
| 996 | * limProcessMessages |
| 997 | * |
| 998 | *FUNCTION: |
| 999 | * This function is called by limProcessMessageQueue function. This |
| 1000 | * function processes messages received by LIM. |
| 1001 | * |
| 1002 | *LOGIC: |
| 1003 | * Depending on the message type, corresponding function will be |
| 1004 | * called, for example limProcessSmeMessages() will be called to |
| 1005 | * process SME messages received from HDD/Upper layer software module. |
| 1006 | * |
| 1007 | *ASSUMPTIONS: |
| 1008 | * NA |
| 1009 | * |
| 1010 | *NOTE: |
| 1011 | * NA |
| 1012 | * |
| 1013 | * @param pMac Pointer to Global MAC structure |
| 1014 | * @param limMsg Received LIM message |
| 1015 | * @return None |
| 1016 | */ |
| 1017 | |
| 1018 | void |
| 1019 | limProcessMessages(tpAniSirGlobal pMac, tpSirMsgQ limMsg) |
| 1020 | { |
| 1021 | tANI_U8 deferMsg = false; |
| 1022 | tLinkStateParams *linkStateParams; |
| 1023 | #if defined WLAN_FEATURE_VOWIFI_11R |
| 1024 | tpPESession pSession; |
| 1025 | #endif |
| 1026 | #if defined(ANI_DVT_DEBUG) |
| 1027 | tSirMsgQ msgQ; |
| 1028 | #endif |
| 1029 | if(pMac->gDriverType == eDRIVER_TYPE_MFG) |
| 1030 | { |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1031 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1032 | limMsg->bodyptr = NULL; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1033 | return; |
| 1034 | } |
| 1035 | #ifdef WLAN_DEBUG |
| 1036 | pMac->lim.numTot++; |
| 1037 | #endif |
| 1038 | |
| 1039 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1040 | PELOG3(limLog(pMac, LOG3, FL("rcvd msgType = %s, sme state = %s, mlm state = %s"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1041 | limMsgStr(limMsg->type), limSmeStateStr(pMac->lim.gLimSmeState), |
| 1042 | limMlmStateStr(pMac->lim.gLimMlmState));) |
| 1043 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1044 | MTRACE(macTraceMsgRx(pMac, NO_SESSION, LIM_TRACE_MAKE_RXMSG(limMsg->type, LIM_MSG_PROCESSED));) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1045 | |
| 1046 | switch (limMsg->type) |
| 1047 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1048 | |
| 1049 | case SIR_LIM_UPDATE_BEACON: |
| 1050 | limUpdateBeacon(pMac); |
| 1051 | break; |
| 1052 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1053 | case SIR_CFG_PARAM_UPDATE_IND: |
| 1054 | /// CFG parameter updated |
| 1055 | if (limIsSystemInScanState(pMac)) |
| 1056 | { |
| 1057 | // System is in DFS (Learn) mode |
| 1058 | // Defer processsing this message |
| 1059 | if (limDeferMsg(pMac, limMsg) != TX_SUCCESS) |
| 1060 | { |
Leela Venkata Kiran Kumar Reddy Chirala | 240845a | 2013-03-22 19:21:10 -0700 | [diff] [blame] | 1061 | if(!(pMac->lim.deferredMsgCnt & 0xF)) |
| 1062 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1063 | PELOGE(limLog(pMac, LOGE, FL("Unable to Defer message(0x%X) limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1064 | limMsg->type, pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 1065 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
Leela Venkata Kiran Kumar Reddy Chirala | 240845a | 2013-03-22 19:21:10 -0700 | [diff] [blame] | 1066 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1067 | limLogSessionStates(pMac); |
| 1068 | limPrintMsgName(pMac, LOGE, limMsg->type); |
| 1069 | } |
| 1070 | } |
| 1071 | else |
| 1072 | { |
| 1073 | limHandleCFGparamUpdate(pMac, limMsg->bodyval); |
| 1074 | } |
| 1075 | |
| 1076 | break; |
| 1077 | |
| 1078 | case WDA_INIT_SCAN_RSP: |
| 1079 | limProcessInitScanRsp(pMac, limMsg->bodyptr); |
| 1080 | break; |
| 1081 | |
| 1082 | case WDA_START_SCAN_RSP: |
| 1083 | limProcessStartScanRsp(pMac, limMsg->bodyptr); |
| 1084 | break; |
| 1085 | |
| 1086 | case WDA_END_SCAN_RSP: |
| 1087 | limProcessEndScanRsp(pMac, limMsg->bodyptr); |
| 1088 | break; |
| 1089 | |
| 1090 | case WDA_FINISH_SCAN_RSP: |
| 1091 | limProcessFinishScanRsp(pMac, limMsg->bodyptr); |
| 1092 | break; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1093 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 1094 | case WDA_START_OEM_DATA_RSP: |
| 1095 | limProcessOemDataRsp(pMac, limMsg->bodyptr); |
| 1096 | break; |
| 1097 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1098 | |
| 1099 | case WDA_SWITCH_CHANNEL_RSP: |
| 1100 | limProcessSwitchChannelRsp(pMac, limMsg->bodyptr); |
| 1101 | break; |
| 1102 | |
| 1103 | #ifdef ANI_SIR_IBSS_PEER_CACHING |
| 1104 | case WDA_IBSS_STA_ADD: |
| 1105 | limIbssStaAdd(pMac, limMsg->bodyptr); |
| 1106 | break; |
| 1107 | #endif |
| 1108 | case SIR_BB_XPORT_MGMT_MSG: |
| 1109 | // These messages are from Peer MAC entity. |
| 1110 | #ifdef WLAN_DEBUG |
| 1111 | pMac->lim.numBbt++; |
| 1112 | #endif |
| 1113 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1114 | { |
| 1115 | v_U16_t pktLen = 0; |
| 1116 | vos_pkt_t *pVosPkt; |
| 1117 | VOS_STATUS vosStatus; |
| 1118 | tSirMsgQ limMsgNew; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1119 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 1120 | tANI_U32 *pBD = NULL ; |
| 1121 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1122 | |
| 1123 | /* The original limMsg which we were deferring have the |
| 1124 | * bodyPointer point to 'BD' instead of 'Vos pkt'. If we don't make a copy |
| 1125 | * of limMsg, then vos_pkt_peek_data will overwrite the limMsg->bodyPointer. |
| 1126 | * and next time when we try to process the msg, we will try to use 'BD' as |
| 1127 | * 'Vos Pkt' which will cause a crash |
| 1128 | */ |
| 1129 | palCopyMemory(pMac, (tANI_U8*)&limMsgNew, (tANI_U8*)limMsg, sizeof(tSirMsgQ)); |
| 1130 | pVosPkt = (vos_pkt_t *)limMsgNew.bodyptr; |
| 1131 | vos_pkt_get_packet_length(pVosPkt, &pktLen); |
| 1132 | |
| 1133 | vosStatus = WDA_DS_PeekRxPacketInfo( pVosPkt, (v_PVOID_t *)&limMsgNew.bodyptr, VOS_FALSE ); |
| 1134 | |
| 1135 | if( !VOS_IS_STATUS_SUCCESS(vosStatus) ) |
| 1136 | { |
| 1137 | vos_pkt_return_packet(pVosPkt); |
| 1138 | break; |
| 1139 | |
| 1140 | } |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1141 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 1142 | /* |
| 1143 | * TDLS frames comes as translated frames as well as |
| 1144 | * MAC 802.11 data frames.. |
| 1145 | */ |
| 1146 | limGetBDfromRxPacket(pMac, limMsgNew.bodyptr, &pBD); |
| 1147 | if(0 != WDA_GET_RX_FT_DONE(pBD)) |
| 1148 | { |
| 1149 | /* |
| 1150 | * TODO: check for scanning state and set deferMesg flag |
| 1151 | * accordingly.. |
| 1152 | */ |
| 1153 | deferMsg = false ; |
| 1154 | |
| 1155 | limProcessTdlsFrame(pMac, pBD) ; |
| 1156 | } |
| 1157 | else |
| 1158 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1159 | limHandle80211Frames(pMac, &limMsgNew, &deferMsg); |
| 1160 | |
| 1161 | if ( deferMsg == true ) |
| 1162 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1163 | PELOG1(limLog(pMac, LOG1, FL("Defer message type=%X "), limMsg->type);) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1164 | if (limDeferMsg(pMac, limMsg) != TX_SUCCESS) |
| 1165 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1166 | PELOGE(limLog(pMac, LOGE, FL("Unable to Defer message(0x%X) limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1167 | limMsg->type, pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 1168 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
| 1169 | limLogSessionStates(pMac); |
| 1170 | limPrintMsgName(pMac, LOGE, limMsg->type); |
| 1171 | vos_pkt_return_packet(pVosPkt); |
| 1172 | } |
| 1173 | } |
| 1174 | else |
| 1175 | { |
| 1176 | /* PE is not deferring this 802.11 frame so we need to call vos_pkt_return. |
| 1177 | * Asumption here is when Rx mgmt frame processing is done, |
| 1178 | * voss packet could be freed here. |
| 1179 | */ |
| 1180 | vos_pkt_return_packet(pVosPkt); |
| 1181 | } |
| 1182 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1183 | break; |
| 1184 | |
| 1185 | case eWNI_SME_SCAN_REQ: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1186 | case eWNI_SME_REMAIN_ON_CHANNEL_REQ: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1187 | case eWNI_SME_DISASSOC_REQ: |
| 1188 | case eWNI_SME_DEAUTH_REQ: |
| 1189 | case eWNI_SME_STA_STAT_REQ: |
| 1190 | case eWNI_SME_AGGR_STAT_REQ: |
| 1191 | case eWNI_SME_GLOBAL_STAT_REQ: |
| 1192 | case eWNI_SME_STAT_SUMM_REQ: |
| 1193 | case eWNI_SME_GET_SCANNED_CHANNEL_REQ: |
| 1194 | case eWNI_SME_GET_STATISTICS_REQ: |
Srinivas Girigowda | 2471d83 | 2013-01-25 13:33:11 -0800 | [diff] [blame] | 1195 | #if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_CCX || defined(FEATURE_WLAN_LFR) |
| 1196 | case eWNI_SME_GET_ROAM_RSSI_REQ: |
| 1197 | #endif |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1198 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 1199 | case eWNI_SME_OEM_DATA_REQ: |
| 1200 | #endif |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1201 | #ifdef FEATURE_WLAN_TDLS |
| 1202 | case eWNI_SME_TDLS_SEND_MGMT_REQ: |
| 1203 | case eWNI_SME_TDLS_ADD_STA_REQ: |
| 1204 | case eWNI_SME_TDLS_DEL_STA_REQ: |
| 1205 | #endif |
| 1206 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 1207 | case eWNI_SME_TDLS_DISCOVERY_START_REQ: |
| 1208 | case eWNI_SME_TDLS_LINK_START_REQ: |
| 1209 | case eWNI_SME_TDLS_TEARDOWN_REQ: |
| 1210 | #endif |
Gopichand Nakkala | 2b248b0 | 2013-03-07 17:05:07 +0530 | [diff] [blame] | 1211 | case eWNI_SME_RESET_AP_CAPS_CHANGED: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1212 | // These messages are from HDD |
| 1213 | limProcessNormalHddMsg(pMac, limMsg, true); //need to response to hdd |
| 1214 | break; |
| 1215 | |
| 1216 | case eWNI_SME_SCAN_ABORT_IND: |
| 1217 | vos_mem_free((v_VOID_t *)limMsg->bodyptr); |
| 1218 | limMsg->bodyptr = NULL; |
| 1219 | limProcessAbortScanInd(pMac); |
| 1220 | break; |
| 1221 | |
| 1222 | case eWNI_SME_START_REQ: |
| 1223 | case eWNI_SME_SYS_READY_IND: |
| 1224 | #ifndef WNI_ASKEY_NON_SUPPORT_FEATURE |
| 1225 | case eWNI_SME_JOIN_REQ: |
| 1226 | #endif |
| 1227 | case eWNI_SME_AUTH_REQ: |
| 1228 | case eWNI_SME_REASSOC_REQ: |
| 1229 | case eWNI_SME_START_BSS_REQ: |
| 1230 | case eWNI_SME_STOP_BSS_REQ: |
| 1231 | case eWNI_SME_SWITCH_CHL_REQ: |
| 1232 | case eWNI_SME_SWITCH_CHL_CB_PRIMARY_REQ: |
| 1233 | case eWNI_SME_SWITCH_CHL_CB_SECONDARY_REQ: |
| 1234 | case eWNI_SME_SETCONTEXT_REQ: |
| 1235 | case eWNI_SME_REMOVEKEY_REQ: |
| 1236 | #ifndef WNI_ASKEY_NON_SUPPORT_FEATURE |
| 1237 | case eWNI_SME_PROMISCUOUS_MODE_REQ: |
| 1238 | #endif |
| 1239 | case eWNI_SME_DISASSOC_CNF: |
| 1240 | case eWNI_SME_DEAUTH_CNF: |
| 1241 | case eWNI_SME_ASSOC_CNF: |
| 1242 | case eWNI_SME_REASSOC_CNF: |
| 1243 | case eWNI_SME_ADDTS_REQ: |
| 1244 | case eWNI_SME_DELTS_REQ: |
| 1245 | case eWNI_SME_DEL_BA_PEER_IND: |
| 1246 | case eWNI_SME_SET_TX_POWER_REQ: |
| 1247 | case eWNI_SME_GET_TX_POWER_REQ: |
| 1248 | case eWNI_SME_GET_NOISE_REQ: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1249 | case eWNI_SME_GET_ASSOC_STAS_REQ: |
| 1250 | case eWNI_SME_TKIP_CNTR_MEAS_REQ: |
| 1251 | case eWNI_SME_UPDATE_APWPSIE_REQ: |
| 1252 | case eWNI_SME_HIDE_SSID_REQ: |
| 1253 | case eWNI_SME_GET_WPSPBC_SESSION_REQ: |
| 1254 | case eWNI_SME_SET_APWPARSNIEs_REQ: |
Madan Mohan Koyyalamudi | 167b95e | 2012-11-27 15:53:38 -0800 | [diff] [blame] | 1255 | case eWNI_SME_CHNG_MCC_BEACON_INTERVAL: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1256 | #if defined WLAN_FEATURE_VOWIFI |
| 1257 | case eWNI_SME_NEIGHBOR_REPORT_REQ_IND: |
| 1258 | case eWNI_SME_BEACON_REPORT_RESP_XMIT_IND: |
| 1259 | #endif |
| 1260 | #if defined FEATURE_WLAN_CCX |
| 1261 | case eWNI_SME_CCX_ADJACENT_AP_REPORT: |
| 1262 | #endif |
| 1263 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1264 | case eWNI_SME_FT_UPDATE_KEY: |
| 1265 | case eWNI_SME_FT_PRE_AUTH_REQ: |
| 1266 | case eWNI_SME_FT_AGGR_QOS_REQ: |
| 1267 | #endif |
| 1268 | case eWNI_SME_ADD_STA_SELF_REQ: |
| 1269 | case eWNI_SME_DEL_STA_SELF_REQ: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1270 | case eWNI_SME_REGISTER_MGMT_FRAME_REQ: |
| 1271 | case eWNI_SME_UPDATE_NOA: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1272 | // These messages are from HDD |
| 1273 | limProcessNormalHddMsg(pMac, limMsg, false); //no need to response to hdd |
| 1274 | break; |
| 1275 | |
| 1276 | //Power Save Messages From HDD |
| 1277 | case eWNI_PMC_PWR_SAVE_CFG: |
| 1278 | case eWNI_PMC_ENTER_BMPS_REQ: |
| 1279 | case eWNI_PMC_EXIT_BMPS_REQ: |
| 1280 | case eWNI_PMC_ENTER_IMPS_REQ: |
| 1281 | case eWNI_PMC_EXIT_IMPS_REQ: |
| 1282 | case eWNI_PMC_ENTER_UAPSD_REQ: |
| 1283 | case eWNI_PMC_EXIT_UAPSD_REQ: |
| 1284 | case eWNI_PMC_ENTER_WOWL_REQ: |
| 1285 | case eWNI_PMC_EXIT_WOWL_REQ: |
| 1286 | case eWNI_PMC_WOWL_ADD_BCAST_PTRN: |
| 1287 | case eWNI_PMC_WOWL_DEL_BCAST_PTRN: |
| 1288 | pmmProcessMessage(pMac, limMsg); |
| 1289 | break; |
| 1290 | |
| 1291 | case eWNI_PMC_SMPS_STATE_IND : |
| 1292 | { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1293 | if(limMsg->bodyptr){ |
| 1294 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1295 | limMsg->bodyptr = NULL; |
| 1296 | } |
| 1297 | } |
| 1298 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1299 | case eWNI_SME_SEND_ACTION_FRAME_IND: |
| 1300 | limSendP2PActionFrame(pMac, limMsg); |
| 1301 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1302 | limMsg->bodyptr = NULL; |
| 1303 | break; |
| 1304 | case eWNI_SME_ABORT_REMAIN_ON_CHAN_IND: |
| 1305 | limAbortRemainOnChan(pMac); |
| 1306 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1307 | limMsg->bodyptr = NULL; |
| 1308 | break; |
| 1309 | |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1310 | case SIR_HAL_P2P_NOA_START_IND: |
| 1311 | { |
| 1312 | tpPESession psessionEntry = &pMac->lim.gpSession[0]; |
| 1313 | tANI_U8 i; |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1314 | tANI_U8 p2pGOExists = 0; |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1315 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1316 | limLog(pMac, LOG1, "LIM received NOA start %x", limMsg->type); |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1317 | |
| 1318 | /* Since insert NOA is done and NOA start msg received, we should deactivate the Insert NOA timer */ |
| 1319 | limDeactivateAndChangeTimer(pMac, eLIM_INSERT_SINGLESHOT_NOA_TIMER); |
| 1320 | |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1321 | for(i=0; i < pMac->lim.maxBssId; i++) |
| 1322 | { |
| 1323 | psessionEntry = &pMac->lim.gpSession[i]; |
| 1324 | if ( (psessionEntry != NULL) && (psessionEntry->valid) && |
| 1325 | (psessionEntry->pePersona == VOS_P2P_GO_MODE)) |
| 1326 | { //Save P2P NOA start attributes for P2P Go persona |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1327 | p2pGOExists = 1; |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1328 | palCopyMemory(pMac->hHdd, &psessionEntry->p2pGoPsNoaStartInd, limMsg->bodyptr, sizeof(tSirP2PNoaStart)); |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1329 | if (psessionEntry->p2pGoPsNoaStartInd.status != eHAL_STATUS_SUCCESS) |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1330 | { |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1331 | limLog(pMac, LOGW, FL("GO NOA start failure status %d reported by FW." |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1332 | " - still go ahead with deferred sme req. This is just info"), |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1333 | psessionEntry->p2pGoPsNoaStartInd.status); |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1334 | } |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1335 | break; |
| 1336 | } |
| 1337 | } |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1338 | |
| 1339 | if (p2pGOExists == 0) |
| 1340 | { |
| 1341 | limLog(pMac, LOGW, FL("By the time, we received NOA start, GO is already removed." |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1342 | " - still go ahead with deferred sme req. This is just info")); |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1343 | } |
| 1344 | |
| 1345 | /* We received the NOA start indication. Now we can send down the SME request which requires off-channel operation */ |
| 1346 | limProcessRegdDefdSmeReqAfterNOAStart(pMac); |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1347 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1348 | limMsg->bodyptr = NULL; |
Viral Modi | d871f22 | 2013-03-06 02:25:31 -0800 | [diff] [blame] | 1349 | } |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1350 | break; |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1351 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1352 | case SIR_HAL_P2P_NOA_ATTR_IND: |
| 1353 | { |
| 1354 | tpPESession psessionEntry = &pMac->lim.gpSession[0]; |
| 1355 | tANI_U8 i; |
| 1356 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1357 | limLog(pMac, LOGW, FL("Received message Noa_ATTR %x"), limMsg->type); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1358 | for(i=0; i < pMac->lim.maxBssId; i++) |
| 1359 | { |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1360 | psessionEntry = &pMac->lim.gpSession[i]; |
| 1361 | if ( (psessionEntry != NULL) && (psessionEntry->valid) && |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1362 | (psessionEntry->pePersona == VOS_P2P_GO_MODE)) |
| 1363 | { //Save P2P attributes for P2P Go persona |
| 1364 | |
| 1365 | palCopyMemory(pMac->hHdd,&psessionEntry->p2pGoPsUpdate, limMsg->bodyptr,sizeof(tSirP2PNoaAttr)); |
| 1366 | |
| 1367 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1368 | limLog(pMac, LOG2, FL(" &psessionEntry->bssId%02x:%02x:%02x:%02x:%02x:%02x ctWin=%d oppPsFlag=%d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1369 | psessionEntry->bssId[0], |
| 1370 | psessionEntry->bssId[1], |
| 1371 | psessionEntry->bssId[2], |
| 1372 | psessionEntry->bssId[3], |
| 1373 | psessionEntry->bssId[4], |
| 1374 | psessionEntry->bssId[5], |
| 1375 | psessionEntry->p2pGoPsUpdate.ctWin, |
| 1376 | psessionEntry->p2pGoPsUpdate.oppPsFlag); |
| 1377 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1378 | limLog(pMac, LOG2, FL(" uNoa1IntervalCnt=%d uNoa1Duration=%d uNoa1Interval=%d uNoa1StartTime=%d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1379 | psessionEntry->p2pGoPsUpdate.uNoa1IntervalCnt, |
| 1380 | psessionEntry->p2pGoPsUpdate.uNoa1Duration, |
| 1381 | psessionEntry->p2pGoPsUpdate.uNoa1Interval, |
| 1382 | psessionEntry->p2pGoPsUpdate.uNoa1StartTime); |
| 1383 | |
| 1384 | |
| 1385 | break; |
| 1386 | } |
| 1387 | } |
| 1388 | |
| 1389 | } |
| 1390 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1391 | limMsg->bodyptr = NULL; |
| 1392 | |
| 1393 | break; |
| 1394 | |
| 1395 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1396 | /* eWNI_SME_PRE_CHANNEL_SWITCH_FULL_POWER Message comes after the |
| 1397 | * device comes out of full power for the full power request sent |
| 1398 | * because of channel switch with switch count as 0, so call the same |
| 1399 | * function used in timeout case(i.e SIR_LIM_CHANNEL_SWITCH_TIMEOUT) |
| 1400 | * for switching the channel*/ |
| 1401 | case eWNI_SME_PRE_CHANNEL_SWITCH_FULL_POWER: |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1402 | if ( !tx_timer_running(&pMac->lim.limTimers.gLimChannelSwitchTimer) ) |
| 1403 | { |
| 1404 | limProcessChannelSwitchTimeout(pMac); |
| 1405 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1406 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1407 | limMsg->bodyptr = NULL; |
| 1408 | break; |
| 1409 | |
| 1410 | //Power Save Related Messages From HAL |
| 1411 | case WDA_ENTER_BMPS_RSP: |
| 1412 | case WDA_EXIT_BMPS_RSP: |
| 1413 | case WDA_EXIT_BMPS_IND: |
| 1414 | case WDA_ENTER_IMPS_RSP: |
| 1415 | case WDA_EXIT_IMPS_RSP: |
| 1416 | case WDA_ENTER_UAPSD_RSP: |
| 1417 | case WDA_EXIT_UAPSD_RSP: |
| 1418 | case WDA_WOWL_ENTER_RSP: |
| 1419 | case WDA_WOWL_EXIT_RSP: |
| 1420 | pmmProcessMessage(pMac, limMsg); |
| 1421 | break; |
| 1422 | |
| 1423 | case WDA_LOW_RSSI_IND: |
| 1424 | //limHandleLowRssiInd(pMac); |
| 1425 | break; |
| 1426 | |
| 1427 | case WDA_BMPS_STATUS_IND: |
| 1428 | limHandleBmpsStatusInd(pMac); |
| 1429 | break; |
| 1430 | |
| 1431 | case WDA_MISSED_BEACON_IND: |
Leela Venkata Kiran Kumar Reddy Chirala | 949300d | 2013-02-27 19:50:05 -0800 | [diff] [blame] | 1432 | limHandleMissedBeaconInd(pMac, limMsg); |
| 1433 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1434 | limMsg->bodyptr = NULL; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1435 | break; |
| 1436 | case WDA_MIC_FAILURE_IND: |
| 1437 | limMicFailureInd(pMac, limMsg); |
| 1438 | palFreeMemory(pMac->hHdd, (tANI_U8 *)limMsg->bodyptr); |
| 1439 | limMsg->bodyptr = NULL; |
| 1440 | break; |
| 1441 | |
| 1442 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1443 | |
| 1444 | case SIR_LIM_ADDTS_RSP_TIMEOUT: |
| 1445 | limProcessSmeReqMessages(pMac,limMsg); |
| 1446 | break; |
| 1447 | #ifdef FEATURE_WLAN_CCX |
| 1448 | case SIR_LIM_CCX_TSM_TIMEOUT: |
| 1449 | limProcessTsmTimeoutHandler(pMac,limMsg); |
| 1450 | break; |
| 1451 | case WDA_TSM_STATS_RSP: |
| 1452 | limProcessHalCcxTsmRsp(pMac, limMsg); |
| 1453 | break; |
| 1454 | #endif |
| 1455 | case WDA_ADD_TS_RSP: |
| 1456 | limProcessHalAddTsRsp(pMac, limMsg); |
| 1457 | break; |
| 1458 | |
| 1459 | case SIR_LIM_DEL_TS_IND: |
| 1460 | limProcessDelTsInd(pMac, limMsg); |
Madan Mohan Koyyalamudi | f244d8f | 2012-11-29 11:21:05 -0800 | [diff] [blame] | 1461 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1462 | case SIR_LIM_ADD_BA_IND: |
| 1463 | limProcessAddBaInd(pMac, limMsg); |
| 1464 | break; |
| 1465 | case SIR_LIM_DEL_BA_ALL_IND: |
| 1466 | limDelAllBASessions(pMac); // refer notes and change |
| 1467 | break; |
| 1468 | case SIR_LIM_DEL_BA_IND: |
| 1469 | limProcessMlmHalBADeleteInd( pMac, limMsg ); |
| 1470 | break; |
| 1471 | |
| 1472 | case SIR_LIM_BEACON_GEN_IND: { |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1473 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1474 | if( pMac->lim.gLimSystemRole != eLIM_AP_ROLE ) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1475 | schProcessPreBeaconInd(pMac, limMsg); |
| 1476 | |
| 1477 | } |
| 1478 | break; |
| 1479 | |
| 1480 | case SIR_LIM_DELETE_STA_CONTEXT_IND: |
| 1481 | limDeleteStaContext(pMac, limMsg); |
| 1482 | break; |
| 1483 | |
| 1484 | case SIR_LIM_MIN_CHANNEL_TIMEOUT: |
| 1485 | case SIR_LIM_MAX_CHANNEL_TIMEOUT: |
| 1486 | case SIR_LIM_PERIODIC_PROBE_REQ_TIMEOUT: |
| 1487 | case SIR_LIM_JOIN_FAIL_TIMEOUT: |
Madan Mohan Koyyalamudi | 9aff9ff | 2012-11-29 11:27:25 -0800 | [diff] [blame] | 1488 | case SIR_LIM_PERIODIC_JOIN_PROBE_REQ_TIMEOUT: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1489 | case SIR_LIM_AUTH_FAIL_TIMEOUT: |
| 1490 | case SIR_LIM_AUTH_RSP_TIMEOUT: |
| 1491 | case SIR_LIM_ASSOC_FAIL_TIMEOUT: |
| 1492 | case SIR_LIM_REASSOC_FAIL_TIMEOUT: |
| 1493 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1494 | case SIR_LIM_FT_PREAUTH_RSP_TIMEOUT: |
| 1495 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1496 | case SIR_LIM_REMAIN_CHN_TIMEOUT: |
Viral Modi | 9dc288a | 2012-12-10 13:09:21 -0800 | [diff] [blame] | 1497 | case SIR_LIM_INSERT_SINGLESHOT_NOA_TIMEOUT: |
Madan Mohan Koyyalamudi | 521ff19 | 2012-11-15 17:13:08 -0800 | [diff] [blame] | 1498 | case SIR_LIM_DISASSOC_ACK_TIMEOUT: |
| 1499 | case SIR_LIM_DEAUTH_ACK_TIMEOUT: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1500 | // These timeout messages are handled by MLM sub module |
| 1501 | |
| 1502 | limProcessMlmReqMessages(pMac, |
| 1503 | limMsg); |
| 1504 | |
| 1505 | break; |
| 1506 | |
| 1507 | case SIR_LIM_HEART_BEAT_TIMEOUT: |
| 1508 | /** check if heart beat failed, even if one Beacon |
| 1509 | * is rcvd within the Heart Beat interval continue |
| 1510 | * normal processing |
| 1511 | */ |
| 1512 | |
| 1513 | #if 0 |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1514 | PELOG1(limLog(pMac, LOG1, FL("Heartbeat timeout, SME %d, MLME %d, #bcn %d"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1515 | pMac->lim.gLimSmeState, pMac->lim.gLimMlmState, |
| 1516 | pMac->lim.gLimRxedBeaconCntDuringHB);) |
| 1517 | |
| 1518 | if(pMac->lim.gLimSystemRole == eLIM_STA_IN_IBSS_ROLE) |
| 1519 | limIbssHeartBeatHandle(pMac); //HeartBeat for peers. |
| 1520 | else |
| 1521 | /** |
| 1522 | * Heartbeat failure occurred on STA |
| 1523 | * This is handled by LMM sub module. |
| 1524 | */ |
| 1525 | limHandleHeartBeatFailure(pMac); |
| 1526 | |
| 1527 | break; |
| 1528 | #endif //TO SUPPORT BT-AMP |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1529 | if (limIsSystemInScanState(pMac)) |
| 1530 | { |
| 1531 | // System is in DFS (Learn) mode |
| 1532 | // Defer processsing this message |
| 1533 | if (limDeferMsg(pMac, limMsg) != TX_SUCCESS) |
| 1534 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1535 | PELOGE(limLog(pMac, LOGE, FL("Unable to Defer message(0x%X) limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1536 | limMsg->type, pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 1537 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
| 1538 | limLogSessionStates(pMac); |
| 1539 | } |
| 1540 | } |
| 1541 | else |
| 1542 | { |
Leela Venkata Kiran Kumar Reddy Chirala | 949300d | 2013-02-27 19:50:05 -0800 | [diff] [blame] | 1543 | if (NULL == limMsg->bodyptr) |
| 1544 | { |
| 1545 | limHandleHeartBeatTimeout(pMac); |
| 1546 | } |
| 1547 | else |
| 1548 | { |
| 1549 | limHandleHeartBeatTimeoutForSession(pMac, (tpPESession)limMsg->bodyptr); |
| 1550 | } |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1551 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1552 | break; |
Leela Venkata Kiran Kumar Reddy Chirala | 949300d | 2013-02-27 19:50:05 -0800 | [diff] [blame] | 1553 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1554 | case SIR_LIM_PROBE_HB_FAILURE_TIMEOUT: |
| 1555 | limHandleHeartBeatFailureTimeout(pMac); |
| 1556 | break; |
| 1557 | |
| 1558 | case SIR_LIM_CHANNEL_SCAN_TIMEOUT: |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1559 | /** |
| 1560 | * Background scan timeout occurred on STA. |
| 1561 | * This is handled by LMM sub module. |
| 1562 | */ |
| 1563 | limDeactivateAndChangeTimer(pMac, eLIM_BACKGROUND_SCAN_TIMER); |
| 1564 | |
| 1565 | //We will do background scan even in bcnps mode |
| 1566 | //if (pMac->sys.gSysEnableScanMode) |
| 1567 | pMac->lim.gLimReportBackgroundScanResults = FALSE; |
| 1568 | limTriggerBackgroundScan(pMac); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1569 | break; |
| 1570 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1571 | |
| 1572 | case SIR_LIM_HASH_MISS_THRES_TIMEOUT: |
| 1573 | |
| 1574 | /* |
| 1575 | ** clear the credit to the send disassociate frame bucket |
| 1576 | **/ |
| 1577 | |
| 1578 | pMac->lim.gLimDisassocFrameCredit = 0; |
| 1579 | break; |
| 1580 | |
| 1581 | case SIR_LIM_CNF_WAIT_TIMEOUT: |
| 1582 | |
| 1583 | /* |
| 1584 | ** Does not receive CNF or dummy packet |
| 1585 | **/ |
| 1586 | limHandleCnfWaitTimeout(pMac, (tANI_U16) limMsg->bodyval); |
| 1587 | |
| 1588 | break; |
| 1589 | |
| 1590 | case SIR_LIM_KEEPALIVE_TIMEOUT: |
| 1591 | limSendKeepAliveToPeer(pMac); |
| 1592 | |
| 1593 | break; |
| 1594 | |
| 1595 | case SIR_LIM_RETRY_INTERRUPT_MSG: |
| 1596 | // Message from ISR upon TFP's max retry limit interrupt |
| 1597 | |
| 1598 | break; |
| 1599 | |
| 1600 | case SIR_LIM_INV_KEY_INTERRUPT_MSG: |
| 1601 | // Message from ISR upon SP's Invalid session key interrupt |
| 1602 | |
| 1603 | break; |
| 1604 | |
| 1605 | case SIR_LIM_KEY_ID_INTERRUPT_MSG: |
| 1606 | // Message from ISR upon SP's Invalid key ID interrupt |
| 1607 | |
| 1608 | break; |
| 1609 | |
| 1610 | case SIR_LIM_REPLAY_THRES_INTERRUPT_MSG: |
| 1611 | // Message from ISR upon SP's Replay threshold interrupt |
| 1612 | |
| 1613 | break; |
| 1614 | |
| 1615 | case SIR_LIM_CHANNEL_SWITCH_TIMEOUT: |
| 1616 | limProcessChannelSwitchTimeout(pMac); |
| 1617 | break; |
| 1618 | |
| 1619 | case SIR_LIM_QUIET_TIMEOUT: |
| 1620 | limProcessQuietTimeout(pMac); |
| 1621 | break; |
| 1622 | |
| 1623 | case SIR_LIM_QUIET_BSS_TIMEOUT: |
| 1624 | limProcessQuietBssTimeout(pMac); |
| 1625 | break; |
| 1626 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1627 | case SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT: |
| 1628 | limHandleUpdateOlbcCache(pMac); |
| 1629 | break; |
| 1630 | #if 0 |
| 1631 | case SIR_LIM_WPS_OVERLAP_TIMEOUT: |
| 1632 | limProcessWPSOverlapTimeout(pMac); |
| 1633 | break; |
| 1634 | #endif |
| 1635 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1636 | |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1637 | #ifdef FEATURE_WLAN_TDLS_INTERNAL |
| 1638 | /* |
| 1639 | * Here discovery timer expires, now we can go ahead and collect all |
| 1640 | * the dicovery responses PE has process till now and send this |
| 1641 | * responses to SME.. |
| 1642 | */ |
| 1643 | case SIR_LIM_TDLS_DISCOVERY_RSP_WAIT: |
| 1644 | { |
| 1645 | //fetch the sessionEntry based on the sessionId |
| 1646 | tpPESession psessionEntry = peFindSessionBySessionId(pMac, |
| 1647 | pMac->lim.limTimers.gLimTdlsDisRspWaitTimer.sessionId) ; |
| 1648 | if(NULL == psessionEntry) |
| 1649 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1650 | limLog(pMac, LOGP,FL("Session Does not exist for given sessionID %d"), pMac->lim.limTimers.gLimTdlsDisRspWaitTimer.sessionId); |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1651 | return; |
| 1652 | } |
| 1653 | |
| 1654 | VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1655 | ("Discovery Rsp timer expires ")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1656 | #if 0 // TDLS_hklee: D13 no need to open Addr2 unknown data packet |
| 1657 | /* restore RXP filters */ |
| 1658 | limSetLinkState(pMac, eSIR_LINK_FINISH_TDLS_DISCOVERY_STATE, |
| 1659 | psessionEntry->bssId) ; |
| 1660 | #endif |
| 1661 | limSendSmeTdlsDisRsp(pMac, eSIR_SUCCESS, |
| 1662 | eWNI_SME_TDLS_DISCOVERY_START_RSP) ; |
| 1663 | break ; |
| 1664 | } |
| 1665 | |
| 1666 | /* |
| 1667 | * we initiated link setup and did not receive TDLS setup rsp |
| 1668 | * from TDLS peer STA, send failure RSP to SME. |
| 1669 | */ |
| 1670 | case SIR_LIM_TDLS_LINK_SETUP_RSP_TIMEOUT: |
| 1671 | { |
| 1672 | tANI_U8 *peerMac = (tANI_U8 *)limMsg->bodyval ; |
| 1673 | tLimTdlsLinkSetupPeer *setupPeer = NULL ; |
| 1674 | |
| 1675 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1676 | ("TDLS setup rsp timer expires ")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1677 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_INFO, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1678 | ("TDLS setup rsp timer expires for peer:")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1679 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_INFO, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1680 | ("%02X, %02X, %02X,%02X, %02X, %02X"), |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1681 | peerMac[0], |
| 1682 | peerMac[1], |
| 1683 | peerMac[2], |
| 1684 | peerMac[3], |
| 1685 | peerMac[4], |
| 1686 | peerMac[5]); |
| 1687 | |
| 1688 | limTdlsFindLinkPeer(pMac, peerMac, &setupPeer) ; |
| 1689 | if(NULL != setupPeer) |
| 1690 | { |
| 1691 | limTdlsDelLinkPeer( pMac, peerMac) ; |
| 1692 | } |
| 1693 | |
| 1694 | limSendSmeTdlsLinkStartRsp(pMac, eSIR_FAILURE, peerMac, |
| 1695 | eWNI_SME_TDLS_LINK_START_RSP) ; |
| 1696 | break ; |
| 1697 | } |
| 1698 | case SIR_LIM_TDLS_LINK_SETUP_CNF_TIMEOUT: |
| 1699 | { |
| 1700 | tANI_U8 *peerMac = (tANI_U8 *)limMsg->bodyval ; |
| 1701 | tLimTdlsLinkSetupPeer *setupPeer = NULL ; |
| 1702 | |
| 1703 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1704 | ("TDLS setup CNF timer expires ")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1705 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_INFO, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1706 | ("TDLS setup CNF timer expires for peer:")) ; |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1707 | VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_INFO, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1708 | ("%02X, %02X, %02X,%02X, %02X, %02X"), |
Mohit Khanna | c0b992f | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 1709 | peerMac[0], |
| 1710 | peerMac[1], |
| 1711 | peerMac[2], |
| 1712 | peerMac[3], |
| 1713 | peerMac[4], |
| 1714 | peerMac[5]); |
| 1715 | limTdlsFindLinkPeer(pMac, peerMac, &setupPeer) ; |
| 1716 | if(NULL != setupPeer) |
| 1717 | { |
| 1718 | limTdlsDelLinkPeer( pMac, peerMac) ; |
| 1719 | } |
| 1720 | break ; |
| 1721 | } |
| 1722 | #endif /* FEATURE_WLAN_TDLS TIMER */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1723 | case WDA_ADD_BSS_RSP: |
| 1724 | limProcessMlmAddBssRsp( pMac, limMsg ); |
| 1725 | break; |
| 1726 | |
| 1727 | case WDA_ADD_STA_RSP: |
| 1728 | |
| 1729 | //call a wrapper by paasing bodyptr, their get sessionID and and call proper function from there. |
| 1730 | limProcessAddStaRsp(pMac,limMsg); |
| 1731 | break; |
| 1732 | |
| 1733 | case WDA_DELETE_STA_RSP: |
| 1734 | limProcessMlmDelStaRsp(pMac, limMsg); |
| 1735 | break; |
| 1736 | |
| 1737 | case WDA_ADD_STA_SELF_RSP: |
| 1738 | limProcessAddStaSelfRsp(pMac, limMsg); |
| 1739 | break; |
| 1740 | case WDA_DEL_STA_SELF_RSP: |
| 1741 | limProcessDelStaSelfRsp(pMac, limMsg); |
| 1742 | break; |
| 1743 | |
| 1744 | case WDA_DELETE_BSS_RSP: |
| 1745 | limHandleDeleteBssRsp(pMac,limMsg); //wrapper routine to handle delete bss response |
| 1746 | break; |
| 1747 | |
| 1748 | case WDA_SET_BSSKEY_RSP: |
| 1749 | case WDA_SET_STA_BCASTKEY_RSP: |
| 1750 | limProcessMlmSetBssKeyRsp( pMac, limMsg ); |
| 1751 | break; |
| 1752 | case WDA_SET_STAKEY_RSP: |
| 1753 | limProcessMlmSetStaKeyRsp( pMac, limMsg ); |
| 1754 | break; |
| 1755 | case WDA_REMOVE_BSSKEY_RSP: |
| 1756 | case WDA_REMOVE_STAKEY_RSP: |
| 1757 | limProcessMlmRemoveKeyRsp( pMac, limMsg ); |
| 1758 | break; |
| 1759 | case WDA_ADDBA_RSP: |
| 1760 | limProcessMlmHalAddBARsp( pMac, limMsg ); |
| 1761 | break; |
| 1762 | |
| 1763 | case WDA_STA_STAT_RSP: |
| 1764 | case WDA_AGGR_STAT_RSP: |
| 1765 | case WDA_GLOBAL_STAT_RSP: |
| 1766 | case WDA_STAT_SUMM_RSP: |
| 1767 | limSendSmeStatsRsp ( pMac, limMsg->type, (void *)limMsg->bodyptr); |
| 1768 | break; |
| 1769 | |
| 1770 | case WDA_GET_STATISTICS_RSP: |
| 1771 | limSendSmePEStatisticsRsp ( pMac, limMsg->type, (void *)limMsg->bodyptr); |
| 1772 | break; |
Srinivas Girigowda | 2471d83 | 2013-01-25 13:33:11 -0800 | [diff] [blame] | 1773 | #if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_CCX || defined(FEATURE_WLAN_LFR) |
| 1774 | case WDA_GET_ROAM_RSSI_RSP: |
| 1775 | limSendSmePEGetRoamRssiRsp ( pMac, limMsg->type, (void *)limMsg->bodyptr); |
| 1776 | break; |
| 1777 | #endif |
| 1778 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1779 | |
| 1780 | case WDA_SET_MIMOPS_RSP: //limProcessSetMimoRsp(pMac, limMsg); |
| 1781 | case WDA_SET_TX_POWER_RSP: //limProcessSetTxPowerRsp(pMac, limMsg); |
| 1782 | case WDA_GET_TX_POWER_RSP: //limProcessGetTxPowerRsp(pMac, limMsg); |
| 1783 | case WDA_GET_NOISE_RSP: |
| 1784 | vos_mem_free((v_VOID_t*)limMsg->bodyptr); |
| 1785 | limMsg->bodyptr = NULL; |
| 1786 | //limProcessGetNoiseRsp(pMac, limMsg); |
| 1787 | break; |
| 1788 | |
| 1789 | case WDA_SET_MAX_TX_POWER_RSP: |
| 1790 | #if defined WLAN_FEATURE_VOWIFI |
| 1791 | rrmSetMaxTxPowerRsp( pMac, limMsg ); |
| 1792 | #endif |
| 1793 | if(limMsg->bodyptr != NULL) |
| 1794 | { |
| 1795 | vos_mem_free((v_VOID_t*)limMsg->bodyptr); |
| 1796 | limMsg->bodyptr = NULL; |
| 1797 | } |
| 1798 | break; |
| 1799 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1800 | case SIR_LIM_ADDR2_MISS_IND: |
| 1801 | { |
| 1802 | limLog(pMac, LOGE, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1803 | FL("Addr2 mismatch interrupt received %X"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1804 | limMsg->type); |
| 1805 | /*a message from HAL indicating addr2 mismatch interrupt occurred |
| 1806 | limMsg->bodyptr contains only pointer to 48-bit addr2 field*/ |
| 1807 | //Dinesh fix this. the third parameter should be sessionentry. |
| 1808 | //limHandleUnknownA2IndexFrames(pMac, (void *)limMsg->bodyptr); |
| 1809 | |
| 1810 | /*Free message body pointer*/ |
| 1811 | vos_mem_free((v_VOID_t *)(limMsg->bodyptr)); |
| 1812 | break; |
| 1813 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1814 | |
| 1815 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 1816 | case WDA_AGGR_QOS_RSP: |
| 1817 | limProcessFTAggrQoSRsp( pMac, limMsg ); |
| 1818 | break; |
| 1819 | #endif |
| 1820 | |
| 1821 | case WDA_SET_LINK_STATE_RSP: |
| 1822 | linkStateParams = (tLinkStateParams *)limMsg->bodyptr; |
| 1823 | #if defined WLAN_FEATURE_VOWIFI_11R |
| 1824 | pSession = linkStateParams->session; |
| 1825 | if(linkStateParams->ft) |
| 1826 | { |
| 1827 | limSendReassocReqWithFTIEsMgmtFrame(pMac, |
| 1828 | pSession->pLimMlmReassocReq, |
| 1829 | pSession); |
| 1830 | } |
| 1831 | #endif |
| 1832 | if( linkStateParams->callback ) |
| 1833 | { |
| 1834 | linkStateParams->callback( pMac, linkStateParams->callbackArg ); |
| 1835 | } |
| 1836 | vos_mem_free((v_VOID_t *)(limMsg->bodyptr)); |
| 1837 | break; |
| 1838 | |
| 1839 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
| 1840 | case WDA_PACKET_COALESCING_FILTER_MATCH_COUNT_RSP: |
| 1841 | pmmProcessMessage(pMac, limMsg); |
| 1842 | break; |
| 1843 | #endif // WLAN_FEATURE_PACKET_FILTERING |
| 1844 | |
| 1845 | #ifdef WLAN_FEATURE_GTK_OFFLOAD |
| 1846 | case WDA_GTK_OFFLOAD_GETINFO_RSP: |
| 1847 | pmmProcessMessage(pMac, limMsg); |
| 1848 | break; |
| 1849 | #endif // WLAN_FEATURE_GTK_OFFLOAD |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1850 | case eWNI_SME_SET_BCN_FILTER_REQ: |
| 1851 | { |
| 1852 | #ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE |
| 1853 | tpPESession psessionEntry; |
| 1854 | tANI_U8 sessionId = (tANI_U8)limMsg->bodyval ; |
| 1855 | psessionEntry = &pMac->lim.gpSession[sessionId]; |
| 1856 | if(psessionEntry != NULL && IS_ACTIVEMODE_OFFLOAD_FEATURE_ENABLE) |
| 1857 | { |
| 1858 | // sending beacon filtering information down to HAL |
| 1859 | if (limSendBeaconFilterInfo(pMac, psessionEntry) != eSIR_SUCCESS) |
| 1860 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1861 | limLog(pMac, LOGE, FL("Fail to send Beacon Filter Info ")); |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1862 | } |
| 1863 | } |
Dhanashri Atre | 612af85 | 2013-03-29 11:19:05 -0700 | [diff] [blame] | 1864 | vos_mem_free((v_VOID_t *)(limMsg->bodyptr)); |
| 1865 | limMsg->bodyptr = NULL; |
Yathish | d871319 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 1866 | #endif |
| 1867 | } |
| 1868 | break; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1869 | default: |
| 1870 | vos_mem_free((v_VOID_t*)limMsg->bodyptr); |
| 1871 | limMsg->bodyptr = NULL; |
| 1872 | // Unwanted messages |
| 1873 | // Log error |
| 1874 | limLog(pMac, LOGE, |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1875 | FL("Discarding unexpected message received %X"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1876 | limMsg->type); |
| 1877 | limPrintMsgName(pMac, LOGE, limMsg->type); |
| 1878 | break; |
| 1879 | |
| 1880 | } // switch (limMsg->type) |
| 1881 | |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1882 | PELOG2(limLog(pMac, LOG2, FL("Done Processing msgType = %d, sme state = %s, mlm state = %s"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1883 | limMsg->type, limSmeStateStr(pMac->lim.gLimSmeState), |
| 1884 | limMlmStateStr(pMac->lim.gLimMlmState));) |
| 1885 | |
| 1886 | } /*** end limProcessMessages() ***/ |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | /** |
| 1891 | * limProcessDeferredMessageQueue |
| 1892 | * |
| 1893 | *FUNCTION: |
| 1894 | * This function is called by LIM while exiting from Learn |
| 1895 | * mode. This function fetches messages posted to the LIM |
| 1896 | * deferred message queue limDeferredMsgQ. |
| 1897 | * |
| 1898 | *LOGIC: |
| 1899 | * |
| 1900 | *ASSUMPTIONS: |
| 1901 | * NA |
| 1902 | * |
| 1903 | *NOTE: |
| 1904 | * NA |
| 1905 | * |
| 1906 | * @param pMac - Pointer to Global MAC structure |
| 1907 | * @return None |
| 1908 | */ |
| 1909 | |
| 1910 | void |
| 1911 | limProcessDeferredMessageQueue(tpAniSirGlobal pMac) |
| 1912 | { |
| 1913 | tSirMsgQ limMsg = { 0, 0, 0 }; |
| 1914 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1915 | tSirMsgQ *readMsg; |
| 1916 | tANI_U16 size; |
| 1917 | |
| 1918 | /* |
| 1919 | ** check any deferred messages need to be processed |
| 1920 | **/ |
| 1921 | size = pMac->lim.gLimDeferredMsgQ.size; |
| 1922 | if (size > 0) |
| 1923 | { |
| 1924 | while ((readMsg = limReadDeferredMsgQ(pMac)) != NULL) |
| 1925 | { |
| 1926 | palCopyMemory( pMac->hHdd, (tANI_U8*) &limMsg, |
| 1927 | (tANI_U8*) readMsg, sizeof(tSirMsgQ)); |
| 1928 | size--; |
| 1929 | limProcessMessages(pMac, &limMsg); |
| 1930 | |
| 1931 | if((limIsSystemInScanState(pMac)) || (true != GET_LIM_PROCESS_DEFD_MESGS(pMac)) || |
| 1932 | (pMac->lim.gLimSystemInScanLearnMode)) |
| 1933 | break; |
| 1934 | } |
| 1935 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1936 | } /*** end limProcessDeferredMessageQueue() ***/ |
| 1937 | |
| 1938 | |
| 1939 | /* |
| 1940 | * limProcessNormalHddMsg |
| 1941 | * Function: this function checks the current lim state and decide whether the message passed shall be deffered. |
| 1942 | * @param pMac - Pointer to Global MAC structure |
| 1943 | * pLimMsg -- the message need to be processed |
| 1944 | * fRspReqd -- whether return result to hdd |
| 1945 | * @return None |
| 1946 | */ |
| 1947 | void limProcessNormalHddMsg(tpAniSirGlobal pMac, tSirMsgQ *pLimMsg, tANI_U8 fRspReqd) |
| 1948 | { |
| 1949 | tANI_BOOLEAN fDeferMsg = eANI_BOOLEAN_TRUE; |
| 1950 | |
| 1951 | /* Added For BT-AMP Support */ |
| 1952 | if ((pMac->lim.gLimSystemRole == eLIM_AP_ROLE) ||(pMac->lim.gLimSystemRole == eLIM_BT_AMP_AP_ROLE ) |
| 1953 | ||(pMac->lim.gLimSystemRole == eLIM_BT_AMP_STA_ROLE) |
| 1954 | ||(pMac->lim.gLimSystemRole == eLIM_UNKNOWN_ROLE)) |
| 1955 | { |
| 1956 | /** This check is required only for the AP and in 2 cases. |
| 1957 | * 1. If we are in learn mode and we receive any of these messages, |
| 1958 | * you have to come out of scan and process the message, hence dont |
| 1959 | * defer the message here. In handler, these message could be defered |
| 1960 | * till we actually come out of scan mode. |
| 1961 | * 2. If radar is detected, you might have to defer all of these |
| 1962 | * messages except Stop BSS request/ Switch channel request. This |
| 1963 | * decision is also made inside its handler. |
| 1964 | * |
| 1965 | * Please be careful while using the flag fDeferMsg. Possibly you |
| 1966 | * might end up in an infinite loop. |
| 1967 | **/ |
| 1968 | if (((pLimMsg->type == eWNI_SME_START_BSS_REQ) || |
| 1969 | (pLimMsg->type == eWNI_SME_STOP_BSS_REQ) || |
| 1970 | (pLimMsg->type == eWNI_SME_SWITCH_CHL_REQ) || |
| 1971 | (pLimMsg->type == eWNI_SME_SWITCH_CHL_CB_SECONDARY_REQ) || |
| 1972 | (pLimMsg->type == eWNI_SME_SWITCH_CHL_CB_PRIMARY_REQ))) |
| 1973 | { |
| 1974 | fDeferMsg = eANI_BOOLEAN_FALSE; |
| 1975 | } |
| 1976 | } |
| 1977 | |
| 1978 | /* limInsystemInscanState() refers the psessionEntry, how to get session Entry????*/ |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 1979 | if (((pMac->lim.gLimAddtsSent) || (limIsSystemInScanState(pMac)) /*|| |
| 1980 | (LIM_IS_RADAR_DETECTED(pMac))*/) && fDeferMsg) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1981 | { |
| 1982 | // System is in DFS (Learn) mode or awaiting addts response |
| 1983 | // or if radar is detected, Defer processsing this message |
| 1984 | if (limDeferMsg(pMac, pLimMsg) != TX_SUCCESS) |
| 1985 | { |
| 1986 | #ifdef WLAN_DEBUG |
| 1987 | pMac->lim.numSme++; |
| 1988 | #endif |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 1989 | PELOGE(limLog(pMac, LOGE, FL("Unable to Defer message(0x%X) limSmeState %d (prev sme state %d) sysRole %d mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1990 | pLimMsg->type, pMac->lim.gLimSmeState, pMac->lim.gLimPrevSmeState, |
| 1991 | pMac->lim.gLimSystemRole, pMac->lim.gLimMlmState, pMac->lim.gLimPrevMlmState);) |
| 1992 | limLogSessionStates(pMac); |
| 1993 | limPrintMsgName(pMac, LOGE, pLimMsg->type); |
| 1994 | // Release body |
| 1995 | palFreeMemory( pMac->hHdd, (tANI_U8 *) pLimMsg->bodyptr); |
| 1996 | } |
| 1997 | } |
| 1998 | else |
| 1999 | { |
| 2000 | if(fRspReqd) |
| 2001 | { |
| 2002 | // These messages are from HDD |
| 2003 | // Since these requests may also be generated |
| 2004 | // internally within LIM module, need to |
| 2005 | // distinquish and send response to host |
| 2006 | pMac->lim.gLimRspReqd = eANI_BOOLEAN_TRUE; |
| 2007 | } |
| 2008 | #ifdef WLAN_DEBUG |
| 2009 | pMac->lim.numSme++; |
| 2010 | #endif |
| 2011 | if(limProcessSmeReqMessages(pMac, pLimMsg)) |
| 2012 | { |
| 2013 | // Release body |
| 2014 | // limProcessSmeReqMessage consumed the buffer. We can free it. |
| 2015 | palFreeMemory( pMac->hHdd, (tANI_U8 *) pLimMsg->bodyptr); |
| 2016 | } |
| 2017 | } |
| 2018 | } |
| 2019 | |
| 2020 | void |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2021 | handleHTCapabilityandHTInfo(struct sAniSirGlobal *pMac, tpPESession psessionEntry) |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2022 | { |
| 2023 | tSirMacHTCapabilityInfo macHTCapabilityInfo; |
| 2024 | tSirMacHTParametersInfo macHTParametersInfo; |
| 2025 | tSirMacHTInfoField1 macHTInfoField1; |
| 2026 | tSirMacHTInfoField2 macHTInfoField2; |
| 2027 | tSirMacHTInfoField3 macHTInfoField3; |
| 2028 | tANI_U32 cfgValue; |
| 2029 | tANI_U8 *ptr; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2030 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2031 | if (wlan_cfgGetInt(pMac, WNI_CFG_HT_CAP_INFO, &cfgValue) != eSIR_SUCCESS) |
| 2032 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 2033 | limLog(pMac, LOGP, FL("Fail to retrieve WNI_CFG_HT_CAP_INFO value")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2034 | return ; |
| 2035 | } |
| 2036 | ptr = (tANI_U8 *) &macHTCapabilityInfo; |
| 2037 | *((tANI_U16 *)ptr) = (tANI_U16) (cfgValue & 0xffff); |
| 2038 | pMac->lim.gHTLsigTXOPProtection = (tANI_U8)macHTCapabilityInfo.lsigTXOPProtection; |
| 2039 | pMac->lim.gHTMIMOPSState = (tSirMacHTMIMOPowerSaveState) macHTCapabilityInfo.mimoPowerSave; |
| 2040 | pMac->lim.gHTGreenfield = (tANI_U8)macHTCapabilityInfo.greenField; |
| 2041 | pMac->lim.gHTMaxAmsduLength = (tANI_U8)macHTCapabilityInfo.maximalAMSDUsize; |
| 2042 | pMac->lim.gHTShortGI20Mhz = (tANI_U8)macHTCapabilityInfo.shortGI20MHz; |
| 2043 | pMac->lim.gHTShortGI40Mhz = (tANI_U8)macHTCapabilityInfo.shortGI40MHz; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2044 | pMac->lim.gHTPSMPSupport = (tANI_U8)macHTCapabilityInfo.psmp; |
| 2045 | pMac->lim.gHTDsssCckRate40MHzSupport = (tANI_U8)macHTCapabilityInfo.dsssCckMode40MHz; |
| 2046 | |
| 2047 | if (wlan_cfgGetInt(pMac, WNI_CFG_HT_AMPDU_PARAMS, &cfgValue) != eSIR_SUCCESS) |
| 2048 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 2049 | limLog(pMac, LOGP, FL("Fail to retrieve WNI_CFG_HT_PARAM_INFO value")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2050 | return ; |
| 2051 | } |
| 2052 | ptr = (tANI_U8 *) &macHTParametersInfo; |
| 2053 | *ptr = (tANI_U8) (cfgValue & 0xff); |
| 2054 | pMac->lim.gHTAMpduDensity = (tANI_U8)macHTParametersInfo.mpduDensity; |
| 2055 | pMac->lim.gHTMaxRxAMpduFactor = (tANI_U8)macHTParametersInfo.maxRxAMPDUFactor; |
| 2056 | |
| 2057 | // Get HT IE Info |
| 2058 | if (wlan_cfgGetInt(pMac, WNI_CFG_HT_INFO_FIELD1, &cfgValue) != eSIR_SUCCESS) |
| 2059 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 2060 | limLog(pMac, LOGP, FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD1 value")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2061 | return ; |
| 2062 | } |
| 2063 | ptr = (tANI_U8 *) &macHTInfoField1; |
| 2064 | *((tANI_U8 *)ptr) = (tANI_U8) (cfgValue & 0xff); |
| 2065 | pMac->lim.gHTServiceIntervalGranularity = (tANI_U8)macHTInfoField1.serviceIntervalGranularity; |
| 2066 | pMac->lim.gHTControlledAccessOnly = (tANI_U8)macHTInfoField1.controlledAccessOnly; |
| 2067 | pMac->lim.gHTRifsMode = (tANI_U8)macHTInfoField1.rifsMode; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2068 | |
| 2069 | if (wlan_cfgGetInt(pMac, WNI_CFG_HT_INFO_FIELD2, &cfgValue) != eSIR_SUCCESS) |
| 2070 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 2071 | limLog(pMac, LOGP, FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD2 value")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2072 | return ; |
| 2073 | } |
| 2074 | ptr = (tANI_U8 *) &macHTInfoField2; |
| 2075 | *((tANI_U16 *)ptr) = (tANI_U16) (cfgValue & 0xffff); |
| 2076 | pMac->lim.gHTOperMode = (tSirMacHTOperatingMode) macHTInfoField2.opMode; |
| 2077 | |
| 2078 | if (wlan_cfgGetInt(pMac, WNI_CFG_HT_INFO_FIELD3, &cfgValue) != eSIR_SUCCESS) |
| 2079 | { |
Kiran Kumar Lokere | 6cd2d78 | 2013-04-01 13:24:23 -0700 | [diff] [blame] | 2080 | limLog(pMac, LOGP, FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD3 value")); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2081 | return ; |
| 2082 | } |
| 2083 | ptr = (tANI_U8 *) &macHTInfoField3; |
| 2084 | *((tANI_U16 *)ptr) = (tANI_U16) (cfgValue & 0xffff); |
| 2085 | pMac->lim.gHTPCOActive = (tANI_U8)macHTInfoField3.pcoActive; |
| 2086 | pMac->lim.gHTPCOPhase = (tANI_U8)macHTInfoField3.pcoPhase; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2087 | pMac->lim.gHTSecondaryBeacon = (tANI_U8)macHTInfoField3.secondaryBeacon; |
| 2088 | pMac->lim.gHTDualCTSProtection = (tANI_U8)macHTInfoField3.dualCTSProtection; |
| 2089 | pMac->lim.gHTSTBCBasicMCS = (tANI_U8)macHTInfoField3.basicSTBCMCS; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 2090 | |
| 2091 | /* The lim globals for channelwidth and secondary chnl have been removed and should not be used during no session; |
| 2092 | * instead direct cfg is read and used when no session for transmission of mgmt frames (same as old); |
| 2093 | * For now, we might come here during init and join with sessionEntry = NULL; in that case just fill the globals which exist |
| 2094 | * Sessionized entries values will be filled in join or add bss req. The ones which are missed in join are filled below |
| 2095 | */ |
| 2096 | if (psessionEntry != NULL) |
| 2097 | { |
| 2098 | psessionEntry->htCapability = IS_DOT11_MODE_HT(psessionEntry->dot11mode); |
| 2099 | psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport = (tANI_U8)macHTInfoField3.lsigTXOPProtectionFullSupport; |
| 2100 | } |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2101 | } |
| 2102 | |
| 2103 | void limLogSessionStates(tpAniSirGlobal pMac) |
| 2104 | { |
| 2105 | #ifdef WLAN_DEBUG |
| 2106 | int i; |
| 2107 | |
| 2108 | for(i = 0; i < pMac->lim.maxBssId; i++) |
| 2109 | { |
| 2110 | if(pMac->lim.gpSession[i].valid) |
| 2111 | { |
Madan Mohan Koyyalamudi | 5695b50 | 2012-09-24 14:21:12 -0700 | [diff] [blame] | 2112 | PELOG1(limLog(pMac, LOG1, FL("Session[%d] sysRole(%d) limSmeState %d (prev sme state %d) mlm state %d (prev mlm state %d)"), |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 2113 | i, pMac->lim.gpSession[i].limSystemRole, pMac->lim.gpSession[i].limSmeState, |
| 2114 | pMac->lim.gpSession[i].limPrevSmeState, pMac->lim.gpSession[i].limMlmState, |
| 2115 | pMac->lim.gpSession[i].limPrevMlmState);) |
| 2116 | } |
| 2117 | } |
| 2118 | #endif //ifdef WLAN_DEBUG |
| 2119 | } |