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
This commit is contained in:
Yu Ouyang 2018-09-07 17:14:01 +08:00 • committed by nshrivas
commit 57c2553835

View file

@ -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;