004-allow-ap-vlan-modes.patch 782 B

12345678910111213141516171819202122232425
  1. Subject: mac80211: allow AP and VLAN modes
  2. This patch allows switching interfaces into AP/VLAN modes using
  3. cfg80211 (nl80211). Don't allow doing it with wext because then
  4. people will just attempt to do it manually (without hostapd) and
  5. complain that it doesn't work.
  6. Signed-off-by: Johannes Berg <[email protected]>
  7. ---
  8. net/mac80211/cfg.c | 4 ++++
  9. 1 file changed, 4 insertions(+)
  10. --- a/net/mac80211/cfg.c
  11. +++ b/net/mac80211/cfg.c
  12. @@ -35,6 +35,10 @@ nl80211_type_to_mac80211_type(enum nl802
  13. case NL80211_IFTYPE_MESH_POINT:
  14. return IEEE80211_IF_TYPE_MESH_POINT;
  15. #endif
  16. + case NL80211_IFTYPE_AP:
  17. + return IEEE80211_IF_TYPE_AP;
  18. + case NL80211_IFTYPE_AP_VLAN:
  19. + return IEEE80211_IF_TYPE_VLAN;
  20. case NL80211_IFTYPE_WDS:
  21. return IEEE80211_IF_TYPE_WDS;
  22. default: