浏览代码

ath10k: advertise more conservative intf combinations

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>
Michal Kazior 12 年之前
父节点
当前提交
d531cb85d5
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      drivers/net/wireless/ath/ath10k/mac.c

+ 9 - 3
drivers/net/wireless/ath/ath10k/mac.c

@@ -3114,9 +3114,15 @@ static const struct ieee80211_iface_limit ath10k_if_limits[] = {
 	.max	= 8,
 	.max	= 8,
 	.types	= BIT(NL80211_IFTYPE_STATION)
 	.types	= BIT(NL80211_IFTYPE_STATION)
 		| BIT(NL80211_IFTYPE_P2P_CLIENT)
 		| 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 = {
 static const struct ieee80211_iface_combination ath10k_if_comb = {