|
@@ -757,6 +757,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|
if (!local->int_scan_req)
|
|
if (!local->int_scan_req)
|
|
return -ENOMEM;
|
|
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 low-level driver supports AP, we also support VLAN */
|
|
if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) {
|
|
if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) {
|
|
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
|
|
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
|