diff options
| -rw-r--r-- | CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c | 4 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessDeauthFrame.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c b/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c index 5db1fd513647..dffe56913b17 100644 --- a/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c +++ b/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c @@ -401,7 +401,9 @@ limTearDownLinkWithAp(tpAniSirGlobal pMac, tANI_U8 sessionId, tSirMacReasonCodes mlmDeauthInd.reasonCode = (tANI_U8) pStaDs->mlmStaContext.disassocReason; mlmDeauthInd.deauthTrigger = pStaDs->mlmStaContext.cleanupTrigger; - limPostSmeMessage(pMac, LIM_MLM_DEAUTH_IND, (tANI_U32 *) &mlmDeauthInd); + if (GET_LIM_SYSTEM_ROLE(psessionEntry) == eLIM_STA_ROLE) + limPostSmeMessage(pMac, LIM_MLM_DEAUTH_IND, + (tANI_U32 *) &mlmDeauthInd); limSendSmeDeauthInd(pMac, pStaDs, psessionEntry); limReInitScanResults(pMac); diff --git a/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c b/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c index 4cd0b527e96c..c0ec1e6973fc 100644 --- a/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2014, 2016 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -546,7 +546,8 @@ limProcessDeauthFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tpPESession p lim_update_lost_link_info(pMac, psessionEntry, frame_rssi); /// Deauthentication from peer MAC entity - limPostSmeMessage(pMac, LIM_MLM_DEAUTH_IND, (tANI_U32 *) &mlmDeauthInd); + if (GET_LIM_SYSTEM_ROLE(psessionEntry) == eLIM_STA_ROLE) + limPostSmeMessage(pMac, LIM_MLM_DEAUTH_IND, (tANI_U32 *) &mlmDeauthInd); // send eWNI_SME_DEAUTH_IND to SME limSendSmeDeauthInd(pMac, pStaDs, psessionEntry); |
