From 57c255383575997efba9aaeb97d43e73b77de5be Mon Sep 17 00:00:00 2001 From: Yu Ouyang Date: Fri, 7 Sep 2018 17:14:01 +0800 Subject: [PATCH] qcacld-3.0: Fix commnd eSmeCommandRoam stuck issue qcacld-2.0 to qcacld-3.0 propagation. 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: I126c0b682dbee12e6da903040e058ca370228c5f CRs-Fixed: 2311077 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 0f77e45d6bf3..cdbf6723985a 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -2574,7 +2574,8 @@ static void __lim_process_sme_deauth_req(tpAniSirGlobal mac_ctx, return; } /* end switch (mac_ctx->lim.gLimSystemRole) */ - if (sme_deauth_req.reasonCode == eLIM_LINK_MONITORING_DEAUTH) { + if (sme_deauth_req.reasonCode == eLIM_LINK_MONITORING_DEAUTH && + session_entry->limSystemRole == eLIM_STA_ROLE) { /* Deauthentication is triggered by Link Monitoring */ pe_debug("** Lost link with AP **"); deauth_trigger = eLIM_LINK_MONITORING_DEAUTH;