Parcourir la source

qcacld-3.0: Allow DFS channel if band restriction restore

Currently if SAP start on DFS channel and band restrict to 2 GHz, it
will move to 2 GHz channel and when band restore it can not move back
to original DFS channel, it may lead to concurrency fail in some 4 SAP
scenario.

Because wlan_reg_is_enable_in_secondary_list_for_freq() only check
channel ENABLE state and ignore DFS state, replace it to
!wlan_reg_is_disable_in_secondary_list_for_freq() so that original
DFS channel can be selected.

Change-Id: Ie39564c51a4a54e76a5df6e639961f82f30d9e16
CRs-Fixed: 3586421
Will Huang il y a 1 an
Parent
commit
4428d4840a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/sap/src/sap_module.c

+ 1 - 1
core/sap/src/sap_module.c

@@ -3909,7 +3909,7 @@ qdf_freq_t wlansap_get_chan_band_restrict(struct sap_context *sap_ctx,
 		*csa_reason = CSA_REASON_BAND_RESTRICTED;
 	} else if (sap_band == REG_BAND_2G && (band & BIT(REG_BAND_5G))) {
 		if (sap_ctx->chan_freq_before_switch_band) {
-			if (wlan_reg_is_enable_in_secondary_list_for_freq(
+			if (!wlan_reg_is_disable_in_secondary_list_for_freq(
 			    mac->pdev,
 			    sap_ctx->chan_freq_before_switch_band)) {
 				restart_freq =