ath9k: Fix interface limits
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 24 Aug 2014 15:46:12 +0000 (21:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:49:39 +0000 (14:49 -0400)
There is no reason why managed/p2p interfaces have to
be limited to one. IBSS is the only type that needs
a restriction.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/init.c

index 5887499a383849a72a05c7e4f2b73687198232e1..ca10a8b3a381405c0c059f4c0a2c3c38b8b5cf7e 100644 (file)
@@ -679,9 +679,11 @@ static const struct ieee80211_iface_limit wds_limits[] = {
 #ifdef CONFIG_ATH9K_CHANNEL_CONTEXT
 
 static const struct ieee80211_iface_limit if_limits_multi[] = {
-       { .max = 1,     .types = BIT(NL80211_IFTYPE_STATION) },
-       { .max = 1,     .types = BIT(NL80211_IFTYPE_P2P_CLIENT) |
+       { .max = 2,     .types = BIT(NL80211_IFTYPE_STATION) |
+                                BIT(NL80211_IFTYPE_AP) |
+                                BIT(NL80211_IFTYPE_P2P_CLIENT) |
                                 BIT(NL80211_IFTYPE_P2P_GO) },
+       { .max = 1,     .types = BIT(NL80211_IFTYPE_ADHOC) },
 };
 
 static const struct ieee80211_iface_combination if_comb_multi[] = {