Jelajahi Sumber

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
Yu Ouyang 6 tahun lalu
induk
melakukan
57c2553835
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 2 - 1
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;