Ver código fonte

qcacmn: Fix API used for getting band

Replace util_scan_scm_chan_to_band with util_scan_scm_freq_to_band
to work for 6G channels.

Change-Id: I5f8843599cbea194a57cc7fc3b20163a7205f4e7
CRs-Fixed: 2987153
Venkateswara Swamy Bandaru 4 anos atrás
pai
commit
238ae4b7f7
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 2 - 2
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -1044,12 +1044,12 @@ is_chan_enabled_for_scan(struct regulatory_channel *reg_chan,
 	if (reg_chan->nol_chan)
 		return false;
 	/* 2 GHz channel */
-	if ((util_scan_scm_chan_to_band(reg_chan->chan_num) ==
+	if ((util_scan_scm_freq_to_band(reg_chan->center_freq) ==
 			WLAN_BAND_2_4_GHZ) &&
 			((reg_chan->center_freq < low_2g) ||
 			(reg_chan->center_freq > high_2g)))
 		return false;
-	else if ((util_scan_scm_chan_to_band(reg_chan->chan_num) ==
+	else if ((util_scan_scm_freq_to_band(reg_chan->center_freq) ==
 				WLAN_BAND_5_GHZ) &&
 		 ((reg_chan->center_freq < low_5g) ||
 		  (reg_chan->center_freq > high_5g)))