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
Dieser Commit ist enthalten in:
Venkateswara Swamy Bandaru
2021-07-08 22:14:45 +05:30
committet von Madan Koyyalamudi
Ursprung 1d0ef56609
Commit 238ae4b7f7

Datei anzeigen

@@ -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)))