Explorar el Código

qcacld-3.0: Do not call dfs_get_radars if concurrent sap exists

If concurrent sap exists, which means dfs_init_radar_filters has
been called before, there is no need to call it again.

Change-Id: Ibf1805b0dbd27fbdf36c37450bdb95626195fb81
CRs-Fixed: 2241282
bings hace 7 años
padre
commit
071a4c6d71
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      core/sap/src/sap_fsm.c

+ 10 - 1
core/sap/src/sap_fsm.c

@@ -592,7 +592,16 @@ void sap_dfs_set_current_channel(void *ctx)
 			ic_flagext, ic_ieee, vht_seg0, vht_seg1);
 
 	if (wlan_reg_is_dfs_ch(pdev, sap_ctx->channel)) {
-		tgt_dfs_get_radars(pdev);
+		if (policy_mgr_concurrent_beaconing_sessions_running(
+		    mac_ctx->psoc)) {
+			uint16_t con_ch;
+
+			con_ch = sme_get_concurrent_operation_channel(hal);
+			if (!con_ch || !wlan_reg_is_dfs_ch(pdev, con_ch))
+				tgt_dfs_get_radars(pdev);
+		} else {
+			tgt_dfs_get_radars(pdev);
+		}
 		tgt_dfs_set_phyerr_filter_offload(pdev);
 		if (sap_ctx->csr_roamProfile.disableDFSChSwitch)
 			tgt_dfs_control(pdev, DFS_SET_USENOL, &use_nol,