qcacmn: Add 4.9 ghz frequency for scan command

Add 4.9 ghz frequency check also in scan command. This change
is needed so that scan entry is formed and association happens in 4.9ghz.

Change-Id: I2fbf719ea6a5e747e07a5973a2da3d2ca2d11b7b
This commit is contained in:
Nandha Kishore Easwaran
2021-07-22 18:19:32 +05:30
committed by Madan Koyyalamudi
vanhempi 45988d32cc
commit b82dd5554f
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa

Näytä tiedosto

@@ -1553,6 +1553,7 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
WLAN_REG_IS_24GHZ_CH_FREQ(c_freq)) || WLAN_REG_IS_24GHZ_CH_FREQ(c_freq)) ||
(req->scan_req.scan_f_5ghz && (req->scan_req.scan_f_5ghz &&
(WLAN_REG_IS_5GHZ_CH_FREQ(c_freq) || (WLAN_REG_IS_5GHZ_CH_FREQ(c_freq) ||
WLAN_REG_IS_49GHZ_FREQ(c_freq) ||
WLAN_REG_IS_6GHZ_CHAN_FREQ(c_freq)))) { WLAN_REG_IS_6GHZ_CHAN_FREQ(c_freq)))) {
req->scan_req.chan_list.chan[num_chan].freq = req->scan_req.chan_list.chan[num_chan].freq =
c_freq; c_freq;

Näytä tiedosto

@@ -1119,6 +1119,8 @@ ucfg_scan_init_chanlist_params(struct scan_start_request *req,
(req->scan_req.scan_f_5ghz && (req->scan_req.scan_f_5ghz &&
(WLAN_REG_IS_5GHZ_CH_FREQ( (WLAN_REG_IS_5GHZ_CH_FREQ(
reg_chan_list[idx].center_freq) || reg_chan_list[idx].center_freq) ||
WLAN_REG_IS_49GHZ_FREQ(
reg_chan_list[idx].center_freq) ||
WLAN_REG_IS_6GHZ_CHAN_FREQ( WLAN_REG_IS_6GHZ_CHAN_FREQ(
reg_chan_list[idx].center_freq))))) reg_chan_list[idx].center_freq)))))
scan_freqs[num_chans++] = scan_freqs[num_chans++] =