130-disable_auto_vif.patch 807 B

123456789101112131415161718192021222324252627
  1. --- a/net/mac80211/main.c
  2. +++ b/net/mac80211/main.c
  3. @@ -1595,24 +1595,6 @@ int ieee80211_register_hw(struct ieee802
  4. ieee80211_check_wbrf_support(local);
  5. - rtnl_lock();
  6. - wiphy_lock(hw->wiphy);
  7. -
  8. - /* add one default STA interface if supported */
  9. - if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) &&
  10. - !ieee80211_hw_check(hw, NO_AUTO_VIF)) {
  11. - struct vif_params params = {0};
  12. -
  13. - result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL,
  14. - NL80211_IFTYPE_STATION, &params);
  15. - if (result)
  16. - wiphy_warn(local->hw.wiphy,
  17. - "Failed to add default virtual iface\n");
  18. - }
  19. -
  20. - wiphy_unlock(hw->wiphy);
  21. - rtnl_unlock();
  22. -
  23. #ifdef CONFIG_INET
  24. local->ifa_notifier.notifier_call = ieee80211_ifa_changed;
  25. result = register_inetaddr_notifier(&local->ifa_notifier);