Procházet zdrojové kódy

qcacld-3.0: Remove DFS channels from scan list in case of MCC disallow

ACS in 5G channels for STA connected in 5G non DFS channel can result
SAP starting on DFS channel. Making MCC on DFS channel. This is
leading to FW panic if STA tries to roam during SAP is
detecting radar.

Avoid SAP starting on DFS channel if STA connected on 5G non DFS

Remove DFS channels from scan list before acs, if MCC is disllowed.
So, that DFS channel is not selectecd after acs.

Change-Id: I717309b81934852bfd93146b233db6f7fb03f252
CRs-Fixed: 2215332
Bala Venkatesh před 7 roky
rodič
revize
82914ad371
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      core/sap/src/sap_fsm.c

+ 9 - 0
core/sap/src/sap_fsm.c

@@ -3301,6 +3301,15 @@ static QDF_STATUS sap_get_channel_list(struct sap_context *sap_ctx,
 				WLAN_REG_CH_NUM(loop_count),
 				sap_ctx, &spect_info_obj))
 			continue;
+		/* Dont scan DFS channels in case of MCC disallowed
+		 * As it can result in SAP starting on DFS channel
+		 * resulting  MCC on DFS channel
+		 */
+		if (wlan_reg_is_dfs_ch(mac_ctx->pdev,
+		    WLAN_REG_CH_NUM(loop_count)) &&
+		    policy_mgr_disallow_mcc(mac_ctx->psoc,
+		    WLAN_REG_CH_NUM(loop_count)))
+			continue;
 
 		/*
 		 * If we have any 5Ghz channel in the channel list