Browse Source

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 năm trước cách đây
mục cha
commit
9c3b2ea466
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;
 	}