mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Fix iwpriv wlan0 getChannelList issue
Currently, iwpriv wlan0 getChannelList does not show the right channel list, because it gives wrong parameter to the API wlan_reg_get_channel_state(). Change-Id: I03c8aa9583a827b94c8aa2fff0b94335f4a040de CRs-Fixed: 2176844
This commit is contained in:
parent
e03cf4c140
commit
99435e2e01
1 changed files with 6 additions and 5 deletions
|
|
@ -4975,12 +4975,13 @@ static int __iw_get_channel_list(struct net_device *dev,
|
|||
|
||||
for (i = band_start_channel; i <= band_end_channel; i++) {
|
||||
if ((CHANNEL_STATE_ENABLE ==
|
||||
wlan_reg_get_channel_state(hdd_ctx->hdd_pdev, i)) ||
|
||||
(is_dfs_mode_enabled &&
|
||||
CHANNEL_STATE_DFS ==
|
||||
wlan_reg_get_channel_state(hdd_ctx->hdd_pdev, i))) {
|
||||
wlan_reg_get_channel_state(hdd_ctx->hdd_pdev,
|
||||
WLAN_REG_CH_NUM(i))) ||
|
||||
(is_dfs_mode_enabled && CHANNEL_STATE_DFS ==
|
||||
wlan_reg_get_channel_state(hdd_ctx->hdd_pdev,
|
||||
WLAN_REG_CH_NUM(i)))) {
|
||||
channel_list->channels[num_channels] =
|
||||
WLAN_REG_CH_NUM(i);
|
||||
WLAN_REG_CH_NUM(i);
|
||||
num_channels++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue