فهرست منبع

qcacld-3.0: Don't scan 6 GHz channels if fcc constraint set

If fcc constraint is set host disables all 6 GHz channels
except for the STA, P2P client connect 6 GHz channels,
but host shouldn't scan any 6 GHz channels.
Add changes to filter out 6 GHz channels from scan list.

Change-Id: Iffd64eb3a915158c77c781e6cb8813bc5204d840
CRs-Fixed: 3481012
Asutosh Mohapatra 2 سال پیش
والد
کامیت
d826a41922
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      core/sme/src/csr/csr_api_roam.c

+ 6 - 0
core/sme/src/csr/csr_api_roam.c

@@ -1044,6 +1044,12 @@ QDF_STATUS csr_update_channel_list(struct mac_context *mac)
 				REG_CURRENT_PWR_MODE);
 		if ((CHANNEL_STATE_ENABLE == channel_state) ||
 		    mac->scan.fEnableDFSChnlScan) {
+			if (wlan_reg_is_6ghz_chan_freq(channel_freq) &&
+			    !wlan_reg_is_6ghz_band_set(mac->pdev)) {
+				sme_debug("skip 6ghz frequency %d",
+					  channel_freq);
+				continue;
+			}
 			if ((roam_policy->dfs_mode ==
 				STA_ROAM_POLICY_DFS_DISABLED) &&
 				(channel_state == CHANNEL_STATE_DFS)) {