Pārlūkot izejas kodu

qcacld-3.0: Retain BW during CSA due to gDisableDFSChSwitch

If "gDisableDFSChSwitch" ini is set, SAP do not change the
channel even if radar is detected. Instead, the SAP is
expected to do a CSA to the same channel. However, during
this CSA, the bandwidth is downgraded to 20 MHz.

To fix this, retain the current SAP operating channel width
in CSA similar to the channel.

Change-Id: I7fa65765ce5f5d249ec65904749af589679dfe3e
CRs-Fixed: 3538115
Surya Prakash Sivaraj 1 gadu atpakaļ
vecāks
revīzija
27ea06d358
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      core/sap/src/sap_fsm.c

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

@@ -4611,8 +4611,13 @@ qdf_freq_t sap_indicate_radar(struct sap_context *sap_ctx)
 	if (sap_ctx->fsm_state == SAP_STARTED)
 		mac->sap.SapDfsInfo.csaIERequired = true;
 
-	if (mac->mlme_cfg->dfs_cfg.dfs_disable_channel_switch)
+	if (mac->mlme_cfg->dfs_cfg.dfs_disable_channel_switch) {
+		mac->sap.SapDfsInfo.new_chanWidth =
+					sap_ctx->ch_params.ch_width;
+		sap_debug("DFS channel switch disabled, CSA to same ch %d wd %d",
+			  sap_ctx->chan_freq, sap_ctx->ch_params.ch_width);
 		return sap_ctx->chan_freq;
+	}
 
 	/* set the Radar Found flag in SapDfsInfo */
 	sap_ctx->sap_radar_found_status = true;