summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Ouyang <yuo@codeaurora.org>2018-08-09 18:49:39 +0800
committerYu Ouyang <yuo@codeaurora.org>2018-08-10 16:46:16 +0800
commite023f10102be5b61cf7195ae71f08087fd4b01a0 (patch)
tree0da376a13a8fa6ffde4c537bc3c8737a6aa8be88
parent8c91fc67bccea86dc609e5eb692381854247a67a (diff)
qcacld-2.0: Fix commnd eSmeCommandRoam stuck issue
AP and P2P GO mode, user issue DEAUTHENTICATE command with reason 6, driver will change deauth reason code to eSIR_MAC_UNSPEC_FAILURE_REASON. It should be only for station or p2p client mode. Otherwise, 'eSmeCommandRoam' will be stuck in 'smeCmdActiveList'. It will trigger recover. Change-Id: I226b9c3ec4af83b9fc2acd578a759796008ecbb6 CRs-Fixed: 2289975
-rw-r--r--CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
index 2f3ee4672122..89a05c1ab321 100644
--- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
@@ -3408,7 +3408,8 @@ __limProcessSmeDeauthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf)
return;
} // end switch (pMac->lim.gLimSystemRole)
- if (smeDeauthReq.reasonCode == eLIM_LINK_MONITORING_DEAUTH)
+ if (smeDeauthReq.reasonCode == eLIM_LINK_MONITORING_DEAUTH &&
+ psessionEntry->limSystemRole == eLIM_STA_ROLE)
{
/// Deauthentication is triggered by Link Monitoring
PELOG1(limLog(pMac, LOG1, FL("**** Lost link with AP ****"));)