Kaynağa Gözat

qcacld-3.0: Ignore unsafe channel

Driver reports unsafe channel to the upper layer although
channel is unsafe.

Ignore the channels which are unsafe after examination
of whether channel is safe or not by the use of
policy_mgr_is_safe_channel() and report safe channel
to upper layer

Change-Id: Idfe741d19b8641814888938eab37a1daa83b7dd9
CRs-Fixed: 3197317
Aravind Kishore Sukla 2 yıl önce
ebeveyn
işleme
9c3b2ea466
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 3 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -3057,6 +3057,9 @@ void wlan_hdd_handle_zero_acs_list(struct hdd_context *hdd_ctx,
 		    !wlan_reg_is_6ghz_psc_chan_freq(org_freq_list[i]))
 			continue;
 
+		if (!policy_mgr_is_safe_channel(hdd_ctx->psoc,
+						org_freq_list[i]))
+			continue;
 		acs_chan_default = org_freq_list[i];
 		break;
 	}