[PATCH 1/4] mac80211: fill rate filter for internal scan requests
From: Simon Wunderlich <hidden>
Date: 2011-11-28 17:56:25
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
From: Simon Wunderlich <hidden>
Date: 2011-11-28 17:56:25
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
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 <redacted> Signed-off-by: Mathias Kretschmer <redacted> --- net/mac80211/main.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index dddedfa..3e15f75 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c@@ -779,6 +779,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);
--
1.7.7.3