aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/011-allow-ap-vlan-modes.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-16 03:10:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-16 03:10:56 +0000
commit77a96c54371bb0f47d2e0d187b53b1b7dc63e885 (patch)
treef75dc7eaabf7bd7baacc8cc8440484d88d3666e2 /package/mac80211/patches/011-allow-ap-vlan-modes.patch
parent6fe9aab05af416e345d4a741f278dcb394490302 (diff)
downloadmaster-187ad058-77a96c54371bb0f47d2e0d187b53b1b7dc63e885.tar.gz
master-187ad058-77a96c54371bb0f47d2e0d187b53b1b7dc63e885.tar.bz2
master-187ad058-77a96c54371bb0f47d2e0d187b53b1b7dc63e885.zip
fix up hostapd for mac80211
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/011-allow-ap-vlan-modes.patch')
-rw-r--r--package/mac80211/patches/011-allow-ap-vlan-modes.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/mac80211/patches/011-allow-ap-vlan-modes.patch b/package/mac80211/patches/011-allow-ap-vlan-modes.patch
new file mode 100644
index 0000000000..d0edfe835c
--- /dev/null
+++ b/package/mac80211/patches/011-allow-ap-vlan-modes.patch
@@ -0,0 +1,37 @@
+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 <johannes@sipsolutions.net>
+
+---
+ net/mac80211/cfg.c | 4 ++++
+ net/mac80211/ieee80211_ioctl.c | 3 +++
+ 2 files changed, 7 insertions(+)
+
+--- everything.orig/net/mac80211/cfg.c 2007-10-30 15:33:43.227379286 +0100
++++ everything/net/mac80211/cfg.c 2007-11-07 13:19:27.981515569 +0100
+@@ -25,6 +25,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;
+ }
+--- everything.orig/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:25.851524684 +0100
++++ everything/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:27.981515569 +0100
+@@ -284,6 +284,9 @@ static int ieee80211_ioctl_siwmode(struc
+ case IW_MODE_MONITOR:
+ type = IEEE80211_IF_TYPE_MNTR;
+ break;
++ case IW_MODE_MASTER:
++ type = IEEE80211_IF_TYPE_AP;
++ break;
+ default:
+ return -EINVAL;
+ }