qcacld-3.0: Clear wlan_reg_freq_to_chan
Clear wlan_reg_freq_to_chan in csr_scan_filter_results. Change-Id: I4c6815171f51790a795af3635c924225cdf5ac35 CRs-Fixed: 2570951
This commit is contained in:
parent
86e54350b3
commit
e947f6524f
@ -2846,7 +2846,7 @@ QDF_STATUS csr_scan_filter_results(struct mac_context *mac_ctx)
|
|||||||
struct wlan_objmgr_pdev *pdev = NULL;
|
struct wlan_objmgr_pdev *pdev = NULL;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
uint32_t ch_freq;
|
uint32_t ch_freq;
|
||||||
uint8_t valid_ch_list[CFG_VALID_CHANNEL_LIST_LEN];
|
uint32_t valid_ch_freq_list[CFG_VALID_CHANNEL_LIST_LEN];
|
||||||
|
|
||||||
pdev = wlan_objmgr_get_pdev_by_id(mac_ctx->psoc,
|
pdev = wlan_objmgr_get_pdev_by_id(mac_ctx->psoc,
|
||||||
0, WLAN_LEGACY_MAC_ID);
|
0, WLAN_LEGACY_MAC_ID);
|
||||||
@ -2869,13 +2869,11 @@ QDF_STATUS csr_scan_filter_results(struct mac_context *mac_ctx)
|
|||||||
/* This is a temporary conversion till the scm handles freq */
|
/* This is a temporary conversion till the scm handles freq */
|
||||||
|
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
ch_freq =
|
ch_freq = mac_ctx->roam.valid_ch_freq_list[i];
|
||||||
wlan_reg_freq_to_chan(pdev,
|
valid_ch_freq_list[i] = ch_freq;
|
||||||
mac_ctx->roam.valid_ch_freq_list[i]);
|
|
||||||
valid_ch_list[i] = ch_freq;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ucfg_scan_filter_valid_channel(pdev, valid_ch_list, len);
|
ucfg_scan_filter_valid_channel(pdev, valid_ch_freq_list, len);
|
||||||
|
|
||||||
wlan_objmgr_pdev_release_ref(pdev, WLAN_LEGACY_MAC_ID);
|
wlan_objmgr_pdev_release_ref(pdev, WLAN_LEGACY_MAC_ID);
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user