ath10k: advertise more conservative intf combinations
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 31 Jul 2013 08:55:13 +0000 (10:55 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 2 Aug 2013 06:37:28 +0000 (09:37 +0300)
Apparently the available firmware has a limit of
handling 7 APs, 3 GOs or 8 STAs. This is based on
empirical tests and it is still possible some
combinations may crash the firmware.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index 6b9f85009288d3289371e30a3b0629fe1c3f8c5a..47c11632e15de144c1c621e3e19c0fd75d467c8a 100644 (file)
@@ -3114,9 +3114,15 @@ static const struct ieee80211_iface_limit ath10k_if_limits[] = {
        .max    = 8,
        .types  = BIT(NL80211_IFTYPE_STATION)
                | BIT(NL80211_IFTYPE_P2P_CLIENT)
-               | BIT(NL80211_IFTYPE_P2P_GO)
-               | BIT(NL80211_IFTYPE_AP)
-       }
+       },
+       {
+       .max    = 3,
+       .types  = BIT(NL80211_IFTYPE_P2P_GO)
+       },
+       {
+       .max    = 7,
+       .types  = BIT(NL80211_IFTYPE_AP)
+       },
 };
 
 static const struct ieee80211_iface_combination ath10k_if_comb = {