Browse Source

qcacld-3.0: Clear wlan_reg_freq_to_chan

Clear wlan_reg_freq_to_chan in csr_fill_bss_from_scan_entry.

Change-Id: I06b2eef0f1c965466c1ec67edd3ea48db07dddc7
CRs-Fixed: 2570933
hqu 5 năm trước cách đây
mục cha
commit
a07736a6da
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      core/sme/src/csr/csr_api_scan.c

+ 2 - 4
core/sme/src/csr/csr_api_scan.c

@@ -2362,11 +2362,9 @@ static QDF_STATUS csr_fill_bss_from_scan_entry(struct mac_context *mac_ctx,
 	enum channel_state ap_channel_state;
 
 	ap_channel_state =
-		wlan_reg_get_channel_state(
+		wlan_reg_get_channel_state_for_freq(
 				mac_ctx->pdev,
-				wlan_reg_freq_to_chan(
-					mac_ctx->pdev,
-					scan_entry->channel.chan_freq));
+				scan_entry->channel.chan_freq);
 	if (ap_channel_state == CHANNEL_STATE_DISABLE ||
 	    ap_channel_state == CHANNEL_STATE_INVALID) {
 		sme_err("BSS %pM channel %d invalid, not populating this BSSID",