Commit 1b499cb7 authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kalle Valo

mwifiex: disable channel filtering feature in firmware

As 2.4Ghz channels are overlapping, sometimes AP responds to
probe request even if it's operating on neighbouring channel.
Currently firmware drops those scan entries, as current channel
doesn't match with APs channel.

This patch enables MWIFIEX_DISABLE_CHAN_FILT flag in scan
command to disable the feature so that better scan results
will be received in 2.4Ghz band.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent d286af9b
...@@ -498,11 +498,13 @@ mwifiex_scan_create_channel_list(struct mwifiex_private *priv, ...@@ -498,11 +498,13 @@ mwifiex_scan_create_channel_list(struct mwifiex_private *priv,
&= ~MWIFIEX_PASSIVE_SCAN; &= ~MWIFIEX_PASSIVE_SCAN;
scan_chan_list[chan_idx].chan_number = scan_chan_list[chan_idx].chan_number =
(u32) ch->hw_value; (u32) ch->hw_value;
scan_chan_list[chan_idx].chan_scan_mode_bitmap
|= MWIFIEX_DISABLE_CHAN_FILT;
if (filtered_scan) { if (filtered_scan) {
scan_chan_list[chan_idx].max_scan_time = scan_chan_list[chan_idx].max_scan_time =
cpu_to_le16(adapter->specific_scan_time); cpu_to_le16(adapter->specific_scan_time);
scan_chan_list[chan_idx].chan_scan_mode_bitmap
|= MWIFIEX_DISABLE_CHAN_FILT;
} }
chan_idx++; chan_idx++;
} }
...@@ -1060,7 +1062,6 @@ mwifiex_config_scan(struct mwifiex_private *priv, ...@@ -1060,7 +1062,6 @@ mwifiex_config_scan(struct mwifiex_private *priv,
scan_chan_list[chan_idx].chan_scan_mode_bitmap scan_chan_list[chan_idx].chan_scan_mode_bitmap
&= ~MWIFIEX_PASSIVE_SCAN; &= ~MWIFIEX_PASSIVE_SCAN;
if (*filtered_scan)
scan_chan_list[chan_idx].chan_scan_mode_bitmap scan_chan_list[chan_idx].chan_scan_mode_bitmap
|= MWIFIEX_DISABLE_CHAN_FILT; |= MWIFIEX_DISABLE_CHAN_FILT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment