فهرست منبع

qcacld-3.0: Add sanity to optimize log prints

In reg_is_6ghz_psc_chan_freq, logging all channels except
6 GHz band channels.

Added 6 GHz band check in wma_update_channel_list to avoid
redundant log prints in reg_is_6ghz_psc_chan_freq

Change-Id: I1a4a43707e8dc44d0c6f4f6d6ac9f86324a4d2fd
CRs-Fixed: 3277118
Vinod Kumar Myadam 2 سال پیش
والد
کامیت
e28e829e00
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      core/wma/src/wma_scan_roam.c

+ 2 - 2
core/wma/src/wma_scan_roam.c

@@ -215,8 +215,8 @@ QDF_STATUS wma_update_channel_list(WMA_HANDLE handle,
 		else if (chan_list->chanParam[i].quarter_rate)
 			chan_p->quarter_rate = 1;
 
-		if (wlan_reg_is_6ghz_psc_chan_freq(
-			    chan_p->mhz))
+		if (WLAN_REG_IS_6GHZ_CHAN_FREQ(chan_p->mhz) &&
+		    wlan_reg_is_6ghz_psc_chan_freq(chan_p->mhz))
 			chan_p->psc_channel = 1;
 
 		/*TODO: Set WMI_SET_CHANNEL_MIN_POWER */