qcacld-3.0: Remove usage of wlan_reg_get_channel_state

Use wlan_reg_get_channel_state_for_freq to get channel state
instead of wlan_reg_get_channel_state.

Change-Id: I0ab0465458801747cc97bf03b3aee4ec255beb57
CRs-Fixed: 2859852
这个提交包含在:
sheenam monga
2021-01-21 15:24:02 +05:30
提交者 snandini
父节点 527f04dd09
当前提交 1c7977d211
修改 6 个文件,包含 38 行新增39 行删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -530,7 +530,8 @@ void tdls_extract_peer_state_param(struct tdls_peer_update_state *peer_param,
num = 0;
for (i = 0; i < peer->supported_channels_len; i++) {
chan_id = peer->supported_channels[i];
ch_state = wlan_reg_get_channel_state(pdev, chan_id);
ch_freq = wlan_reg_legacy_chan_to_freq(pdev, chan_id);
ch_state = wlan_reg_get_channel_state_for_freq(pdev, ch_freq);
if (CHANNEL_STATE_INVALID != ch_state &&
CHANNEL_STATE_DFS != ch_state &&