aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-11 15:00:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-02-11 15:00:51 +0000
commit97c3a186fbbb6fc9a26d61629991df77052dcab2 (patch)
treea258406a9d659c0d652f7eb986d2c6280cc65cff /package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch
parent1d5fef0379b0948e567a4c6b05ec84fa1375b8e1 (diff)
downloadupstream-97c3a186fbbb6fc9a26d61629991df77052dcab2.tar.gz
upstream-97c3a186fbbb6fc9a26d61629991df77052dcab2.tar.bz2
upstream-97c3a186fbbb6fc9a26d61629991df77052dcab2.zip
ath9k: add p2p client mode support powersave patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39571 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch')
-rw-r--r--package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch b/package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch
new file mode 100644
index 0000000000..ffffe0cbe8
--- /dev/null
+++ b/package/kernel/mac80211/patches/551-ath9k_p2p_ifcomb.patch
@@ -0,0 +1,33 @@
+From c997a1da25fe7c717ed099888b8eb35d4e139e70 Mon Sep 17 00:00:00 2001
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sun, 8 Dec 2013 08:52:52 +0100
+Subject: [PATCH] ath9k: support only one P2P interface
+
+Preparation for adding P2P powersave and multi-channel support.
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+ drivers/net/wireless/ath/ath9k/init.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -863,15 +863,15 @@ void ath9k_reload_chainmask_settings(str
+
+ static const struct ieee80211_iface_limit if_limits[] = {
+ { .max = 2048, .types = BIT(NL80211_IFTYPE_STATION) |
+- BIT(NL80211_IFTYPE_P2P_CLIENT) |
+ BIT(NL80211_IFTYPE_WDS) },
+ { .max = 8, .types =
+ #ifdef CPTCFG_MAC80211_MESH
+ BIT(NL80211_IFTYPE_MESH_POINT) |
+ #endif
+- BIT(NL80211_IFTYPE_AP) |
+- BIT(NL80211_IFTYPE_P2P_GO) },
++ BIT(NL80211_IFTYPE_AP) },
+ { .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) },
++ { .max = 1, .types = BIT(NL80211_IFTYPE_P2P_CLIENT) |
++ BIT(NL80211_IFTYPE_P2P_GO) },
+ };
+
+ static const struct ieee80211_iface_limit if_dfs_limits[] = {