1 --- a/net/mac80211/main.c
2 +++ b/net/mac80211/main.c
3 @@ -1396,24 +1396,6 @@ int ieee80211_register_hw(struct ieee802
5 rate_control_add_debugfs(local);
8 - wiphy_lock(hw->wiphy);
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};
15 - result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL,
16 - NL80211_IFTYPE_STATION, ¶ms);
18 - wiphy_warn(local->hw.wiphy,
19 - "Failed to add default virtual iface\n");
22 - wiphy_unlock(hw->wiphy);
26 local->ifa_notifier.notifier_call = ieee80211_ifa_changed;
27 result = register_inetaddr_notifier(&local->ifa_notifier);