Pārlūkot izejas kodu

qcacmn: List 2G frequency list in scan_config command

scan_config command for 2G pdev was not listing 2GHz frequencies.
Fix frequency range check condition in is_chan_enabled_for_scan() to
include 2G frequency in the scan channel list.

Change-Id: I9883583505ab318328999c5cf2dd33e687a784b2
CRs-Fixed: 2350530
Shashikala Prabhu 6 gadi atpakaļ
vecāks
revīzija
58b8be02d1
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

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

@@ -1727,8 +1727,10 @@ is_chan_enabled_for_scan(struct regulatory_channel *reg_chan,
 			((reg_chan->center_freq < low_2g) ||
 			(reg_chan->center_freq > high_2g)))
 		return false;
-	else if ((reg_chan->center_freq < low_5g) ||
-			(reg_chan->center_freq > high_5g))
+	else if ((util_scan_scm_chan_to_band(reg_chan->chan_num) ==
+				WLAN_BAND_5_GHZ) &&
+		 ((reg_chan->center_freq < low_5g) ||
+		  (reg_chan->center_freq > high_5g)))
 		return false;
 
 	return true;