2023-09-13 09:56:20 +00:00
|
|
|
--- a/net/mac80211/main.c
|
|
|
|
+++ b/net/mac80211/main.c
|
2024-09-24 13:06:20 +00:00
|
|
|
@@ -1581,24 +1581,6 @@ int ieee80211_register_hw(struct ieee802
|
2024-06-19 11:51:47 +00:00
|
|
|
|
|
|
|
ieee80211_check_wbrf_support(local);
|
2023-09-13 09:56:20 +00:00
|
|
|
|
|
|
|
- rtnl_lock();
|
|
|
|
- wiphy_lock(hw->wiphy);
|
|
|
|
-
|
|
|
|
- /* add one default STA interface if supported */
|
|
|
|
- if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) &&
|
|
|
|
- !ieee80211_hw_check(hw, NO_AUTO_VIF)) {
|
|
|
|
- struct vif_params params = {0};
|
|
|
|
-
|
|
|
|
- result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL,
|
|
|
|
- NL80211_IFTYPE_STATION, ¶ms);
|
|
|
|
- if (result)
|
|
|
|
- wiphy_warn(local->hw.wiphy,
|
|
|
|
- "Failed to add default virtual iface\n");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- wiphy_unlock(hw->wiphy);
|
|
|
|
- rtnl_unlock();
|
|
|
|
-
|
|
|
|
#ifdef CONFIG_INET
|
|
|
|
local->ifa_notifier.notifier_call = ieee80211_ifa_changed;
|
|
|
|
result = register_inetaddr_notifier(&local->ifa_notifier);
|