Преглед на файлове

qcacld-3.0: set ACS start and end frequency for one channel case

If there is only one channel left after trimming ACS channel list, the
start and end channel frequency in ACS config are not set, which may
result in unexpected behaviors, e.g. the function is_mcc_preferred()
always returns false in such case.
To avoid that, set both frequencies to the one being selected.

Change-Id: If7c4106d2547feb866f1d5139fcb07c921f1d046
CRs-Fixed: 3069590
Yu Wang преди 3 години
родител
ревизия
c4eaf26603
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 4 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -3342,6 +3342,10 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
 				sap_config->acs_cfg.master_ch_list_count);
 		/* if it is only one channel, send ACS event to upper layer */
 		if (sap_config->acs_cfg.ch_list_count == 1) {
+			sap_config->acs_cfg.start_ch_freq =
+				sap_config->acs_cfg.freq_list[0];
+			sap_config->acs_cfg.end_ch_freq =
+				sap_config->acs_cfg.freq_list[0];
 			sap_config->acs_cfg.pri_ch_freq =
 					      sap_config->acs_cfg.freq_list[0];
 			if (sap_config->acs_cfg.pri_ch_freq <=