aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-09-22 00:43:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-27 14:34:02 -0400
commitd06b7b9e1fd5f2512840a687bd13b50caa42f82b (patch)
treeaddd4f7b5ab6696505fcd9113ce3c48dcda0fc73 /drivers/net/wireless/mwifiex/scan.c
parent177c3732feda607adcd07aefd8ecfd79c9f0bd53 (diff)
mwifiex: fix 5GHz association issue
Sometimes association in 5GHz doesn't work. Dmesg log shows "Can not find requested SSID xyz" error message. Currently while preparing scan channel list for firmware Null entries are created for disabled channels. The routine which retrieves this list ignores channels after Null entry. Hence sometimes driver doesn't scan the channel of requested AP and association fails. The issue is fixed by avoiding those NULL entries. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 8d8588db1cd9..ecebff681bbb 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -532,7 +532,7 @@ mwifiex_scan_create_channel_list(struct mwifiex_private *priv,
532 532
533 sband = priv->wdev->wiphy->bands[band]; 533 sband = priv->wdev->wiphy->bands[band];
534 534
535 for (i = 0; (i < sband->n_channels) ; i++, chan_idx++) { 535 for (i = 0; (i < sband->n_channels) ; i++) {
536 ch = &sband->channels[i]; 536 ch = &sband->channels[i];
537 if (ch->flags & IEEE80211_CHAN_DISABLED) 537 if (ch->flags & IEEE80211_CHAN_DISABLED)
538 continue; 538 continue;
@@ -563,6 +563,7 @@ mwifiex_scan_create_channel_list(struct mwifiex_private *priv,
563 scan_chan_list[chan_idx].chan_scan_mode_bitmap 563 scan_chan_list[chan_idx].chan_scan_mode_bitmap
564 |= MWIFIEX_DISABLE_CHAN_FILT; 564 |= MWIFIEX_DISABLE_CHAN_FILT;
565 } 565 }
566 chan_idx++;
566 } 567 }
567 568
568 } 569 }