aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2012-10-19 22:19:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-10-29 15:20:33 -0400
commitf3e1af3e18004aca12771dfb0b04e04497190c99 (patch)
tree1a1e43b3794db2043ff09e7a8be6ad443349a1a1 /drivers/net/wireless/mwifiex/scan.c
parentb0e70c2fb67bc376c3114a709ce0852e71d37ecb (diff)
mwifiex: disable channel filtering for SSID specific scan from user
If MWIFIEX_DISABLE_CHAN_FILT bit in scan mode bitmap is set, firmware will turn off the filtering of scan responses from adjacent channels. Currently the bit is set only for internal SSID specific scan performed during association. We will set it for user requested SSID specific scan as well. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 9c0ad0fe276a..13a80cb789af 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -941,6 +941,11 @@ mwifiex_config_scan(struct mwifiex_private *priv,
941 chan_idx)->chan_scan_mode_bitmap 941 chan_idx)->chan_scan_mode_bitmap
942 &= ~MWIFIEX_PASSIVE_SCAN; 942 &= ~MWIFIEX_PASSIVE_SCAN;
943 943
944 if (*filtered_scan)
945 (scan_chan_list +
946 chan_idx)->chan_scan_mode_bitmap
947 |= MWIFIEX_DISABLE_CHAN_FILT;
948
944 if (user_scan_in->chan_list[chan_idx].scan_time) { 949 if (user_scan_in->chan_list[chan_idx].scan_time) {
945 scan_dur = (u16) user_scan_in-> 950 scan_dur = (u16) user_scan_in->
946 chan_list[chan_idx].scan_time; 951 chan_list[chan_idx].scan_time;