summaryrefslogtreecommitdiff
path: root/package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-11-09 22:42:36 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-11-09 22:42:36 +0000
commitce1ab6d41cfb17da90dc507b2c90e472f95f4c30 (patch)
treebf49074fd6bf34942bc0708693a94a0a492c206c /package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch
parentdc1b6a3961328a6fb3a23226832ed3e5c411ab23 (diff)
downloadmtk-20170518-ce1ab6d41cfb17da90dc507b2c90e472f95f4c30.zip
mtk-20170518-ce1ab6d41cfb17da90dc507b2c90e472f95f4c30.tar.gz
mtk-20170518-ce1ab6d41cfb17da90dc507b2c90e472f95f4c30.tar.bz2
Build b43, b43legacy and ath9k for kernels >= 2.6.27 from mac80211. Include b43legacy by default in the Generic bcm47xx profile (#4179)
SVN-Revision: 13164
Diffstat (limited to 'package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch')
-rw-r--r--package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch b/package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch
new file mode 100644
index 0000000..a8080b2
--- /dev/null
+++ b/package/mac80211/patches-brcm/004-allow-ap-vlan-modes.patch
@@ -0,0 +1,25 @@
+Subject: mac80211: allow AP and VLAN modes
+
+This patch allows switching interfaces into AP/VLAN modes using
+cfg80211 (nl80211). Don't allow doing it with wext because then
+people will just attempt to do it manually (without hostapd) and
+complain that it doesn't work.
+
+Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
+---
+ net/mac80211/cfg.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- everything.orig/net/mac80211/cfg.c 2008-08-06 21:38:13.000000000 +0200
++++ everything/net/mac80211/cfg.c 2008-08-06 21:38:24.000000000 +0200
+@@ -33,6 +33,10 @@ nl80211_type_to_mac80211_type(enum nl802
+ case NL80211_IFTYPE_MESH_POINT:
+ return IEEE80211_IF_TYPE_MESH_POINT;
+ #endif
++ case NL80211_IFTYPE_AP:
++ return IEEE80211_IF_TYPE_AP;
++ case NL80211_IFTYPE_AP_VLAN:
++ return IEEE80211_IF_TYPE_VLAN;
+ case NL80211_IFTYPE_WDS:
+ return IEEE80211_IF_TYPE_WDS;
+ default: