diff options
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); |