diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-12-02 21:44:03 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-02 21:44:03 +0100 |
commit | d7a4858c0fde8383f7aa494eda0fba6bef3f2fec (patch) | |
tree | 2cbf6915ea069ada4e3e1bca0b91b12e06500681 /net/mac80211/main.c | |
parent | ath9k_hw: add default chainmask for AR9462 (diff) | |
parent | iwlwifi: change the default behavior of watchdog timer (diff) | |
download | linux-d7a4858c0fde8383f7aa494eda0fba6bef3f2fec.tar.xz linux-d7a4858c0fde8383f7aa494eda0fba6bef3f2fec.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/libertas/cfg.c
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 944bed35d923..24cc50b963a9 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -738,6 +738,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); |