Ver Fonte

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
Nandha Kishore Easwaran há 4 anos atrás
pai
commit
b82dd5554f

+ 1 - 0
os_if/linux/scan/src/wlan_cfg80211_scan.c

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

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

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