generic: replace simple AQR hack patch with upstream version
[openwrt/staging/jow.git] / package / kernel / mac80211 / patches / subsys / 130-disable_auto_vif.patch
1 --- a/net/mac80211/main.c
2 +++ b/net/mac80211/main.c
3 @@ -1396,24 +1396,6 @@ int ieee80211_register_hw(struct ieee802
4 debugfs_hw_add(local);
5 rate_control_add_debugfs(local);
6
7 - rtnl_lock();
8 - wiphy_lock(hw->wiphy);
9 -
10 - /* add one default STA interface if supported */
11 - if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) &&
12 - !ieee80211_hw_check(hw, NO_AUTO_VIF)) {
13 - struct vif_params params = {0};
14 -
15 - result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL,
16 - NL80211_IFTYPE_STATION, &params);
17 - if (result)
18 - wiphy_warn(local->hw.wiphy,
19 - "Failed to add default virtual iface\n");
20 - }
21 -
22 - wiphy_unlock(hw->wiphy);
23 - rtnl_unlock();
24 -
25 #ifdef CONFIG_INET
26 local->ifa_notifier.notifier_call = ieee80211_ifa_changed;
27 result = register_inetaddr_notifier(&local->ifa_notifier);