diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-05 13:23:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-05 13:23:14 -0500 |
commit | 321f3b8708e853695a4ff4a1a95b6fa0965b06e5 (patch) | |
tree | 0fd46721f5620710b079109b31a458573c1b3902 /net/mac80211/main.c | |
parent | de398fb8b92eba3447298053a483727bdd5fe37e (diff) | |
parent | cbec0627ef1adf7afa448e8bbae3146ce910212a (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | 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 d999bf3b84e1..cae443563ec9 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); |