Răsfoiți Sursa

qcacld-3.0: Fix nan disable issue on NAN+SAP concurrency

Fix the issue of NAN getting disabled in NAN+SAP concurrency
when SAP and NAN operate in different bands and host processes
LTE coex event for unsafe channel update.

Change-Id: I4f2d63a5283bd75712aa3bd9a3b3f278a28b0951
CRs-fixed: 2486595
Manikandan Mohan 6 ani în urmă
părinte
comite
a4a2459a2f
1 a modificat fișierele cu 9 adăugiri și 1 ștergeri
  1. 9 1
      cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

+ 9 - 1
cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

@@ -1407,6 +1407,8 @@ bool policy_mgr_nan_sap_scc_on_unsafe_ch_chk(struct wlan_objmgr_psoc *psoc,
 	}
 	nan_ch_5g = wlan_nan_get_disc_5g_ch(psoc);
 
+	policy_mgr_debug("SAP Ch: %d NAN Ch: %d %d", sap_ch,
+			 nan_ch_2g, nan_ch_5g);
 	if (WLAN_REG_IS_SAME_BAND_CHANNELS(nan_ch_2g, sap_ch)) {
 		if (policy_mgr_is_force_scc(pm_ctx->psoc) &&
 		    policy_mgr_is_nan_sap_unsafe_ch_scc_allowed(pm_ctx,
@@ -1417,8 +1419,14 @@ bool policy_mgr_nan_sap_scc_on_unsafe_ch_chk(struct wlan_objmgr_psoc *psoc,
 		    policy_mgr_is_nan_sap_unsafe_ch_scc_allowed(pm_ctx,
 								nan_ch_5g))
 			return true;
+	} else {
+		/*
+		 * NAN + SAP in different bands. Continue to check for
+		 * SAP in unsafe channel
+		 */
+		return false;
 	}
-	policy_mgr_debug("NAN+SAP unsafe ch SCC not allowed. Disabling NAN");
+	policy_mgr_info("NAN+SAP unsafe ch SCC not allowed. Disabling NAN");
 	/* change context to worker since this is executed in sched thread ctx*/
 	qdf_create_work(0, &pm_ctx->nan_sap_conc_work,
 			policy_mgr_nan_disable_work, psoc);