diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-12-02 15:44:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-02 15:44:03 -0500 |
commit | d7a4858c0fde8383f7aa494eda0fba6bef3f2fec (patch) | |
tree | 2cbf6915ea069ada4e3e1bca0b91b12e06500681 /net/mac80211/main.c | |
parent | ba5736a5e9ac20c378ae4179e8a0ed3cc4b44351 (diff) | |
parent | 9995ffe5f5fdddcc73e4465cc3f8b38714df8108 (diff) |
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) | |||
738 | if (!local->int_scan_req) | 738 | if (!local->int_scan_req) |
739 | return -ENOMEM; | 739 | return -ENOMEM; |
740 | 740 | ||
741 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | ||
742 | if (!local->hw.wiphy->bands[band]) | ||
743 | continue; | ||
744 | local->int_scan_req->rates[band] = (u32) -1; | ||
745 | } | ||
746 | |||
741 | /* if low-level driver supports AP, we also support VLAN */ | 747 | /* if low-level driver supports AP, we also support VLAN */ |
742 | if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) { | 748 | if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) { |
743 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN); | 749 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN); |