From 5786c7a02fcbe5eecf98374500a50e74d3968613 Mon Sep 17 00:00:00 2001 From: mb Date: Sat, 16 Feb 2008 19:21:08 +0000 Subject: [PATCH] mac80211: allow AP and VLAN modes git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10471 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../002-mac80211-allow-ap-vlan-modes.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/mac80211/patches/002-mac80211-allow-ap-vlan-modes.patch diff --git a/package/mac80211/patches/002-mac80211-allow-ap-vlan-modes.patch b/package/mac80211/patches/002-mac80211-allow-ap-vlan-modes.patch new file mode 100644 index 000000000..eb40dae1f --- /dev/null +++ b/package/mac80211/patches/002-mac80211-allow-ap-vlan-modes.patch @@ -0,0 +1,25 @@ +Subject: mac80211: allow AP and VLAN modes + +This adds AP/VLAN modes to the list of modes that a mac80211 +interface can be created in/switched into. + +Signed-off-by: Johannes Berg +--- + net/mac80211/cfg.c | 4 ++++ + 1 file changed, 4 insertions(+) + +Index: mac80211/net/mac80211/cfg.c +=================================================================== +--- mac80211.orig/net/mac80211/cfg.c 2008-02-16 20:16:09.000000000 +0100 ++++ mac80211/net/mac80211/cfg.c 2008-02-16 20:16:39.000000000 +0100 +@@ -27,6 +27,10 @@ nl80211_type_to_mac80211_type(enum nl802 + return IEEE80211_IF_TYPE_STA; + case NL80211_IFTYPE_MONITOR: + return IEEE80211_IF_TYPE_MNTR; ++ case NL80211_IFTYPE_AP: ++ return IEEE80211_IF_TYPE_AP; ++ case NL80211_IFTYPE_AP_VLAN: ++ return IEEE80211_IF_TYPE_VLAN; + default: + return IEEE80211_IF_TYPE_INVALID; + } -- 2.20.1