summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2011-11-30 16:56:30 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-30 14:20:19 -0500
commitc72e8d335e2c6a309b6281f2abcf491f37b8b92b (patch)
treefa943d265701266f3c44020072747fb67a84e83c /net
parent0bac71af6e66dc798bf07d0c0dd14ee5503362f9 (diff)
downloadop-kernel-dev-c72e8d335e2c6a309b6281f2abcf491f37b8b92b.zip
op-kernel-dev-c72e8d335e2c6a309b6281f2abcf491f37b8b92b.tar.gz
mac80211: fill rate filter for internal scan requests
The rates bitmap for internal scan requests shoud be filled, otherwise there will be probe requests with zero rates supported. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Cc: stable@vger.kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index d999bf3..cae4435 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -757,6 +757,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
if (!local->int_scan_req)
return -ENOMEM;
+ for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
+ if (!local->hw.wiphy->bands[band])
+ continue;
+ local->int_scan_req->rates[band] = (u32) -1;
+ }
+
/* if low-level driver supports AP, we also support VLAN */
if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) {
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
OpenPOWER on IntegriCloud