ath9k: improve ANI debugfs file
[openwrt.git] / package / kernel / mac80211 / patches / 551-ath9k_p2p_ifcomb.patch
1 From c997a1da25fe7c717ed099888b8eb35d4e139e70 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@openwrt.org>
3 Date: Sun, 8 Dec 2013 08:52:52 +0100
4 Subject: [PATCH] ath9k: support only one P2P interface
5
6 Preparation for adding P2P powersave and multi-channel support.
7
8 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
9 ---
10  drivers/net/wireless/ath/ath9k/init.c | 4 ++--
11   1 file changed, 2 insertions(+), 2 deletions(-)
12
13 --- a/drivers/net/wireless/ath/ath9k/init.c
14 +++ b/drivers/net/wireless/ath/ath9k/init.c
15 @@ -863,15 +863,15 @@ void ath9k_reload_chainmask_settings(str
16  
17  static const struct ieee80211_iface_limit if_limits[] = {
18         { .max = 2048,  .types = BIT(NL80211_IFTYPE_STATION) |
19 -                                BIT(NL80211_IFTYPE_P2P_CLIENT) |
20                                  BIT(NL80211_IFTYPE_WDS) },
21         { .max = 8,     .types =
22  #ifdef CPTCFG_MAC80211_MESH
23                                  BIT(NL80211_IFTYPE_MESH_POINT) |
24  #endif
25 -                                BIT(NL80211_IFTYPE_AP) |
26 -                                BIT(NL80211_IFTYPE_P2P_GO) },
27 +                                BIT(NL80211_IFTYPE_AP) },
28         { .max = 1,     .types = BIT(NL80211_IFTYPE_ADHOC) },
29 +       { .max = 1,     .types = BIT(NL80211_IFTYPE_P2P_CLIENT) |
30 +                                BIT(NL80211_IFTYPE_P2P_GO) },
31  };
32  
33  static const struct ieee80211_iface_limit if_dfs_limits[] = {