Skip to contentSkip to conversation

mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces

PATCH In review Pali Rohár 2 participants 2 messages Jun 26, 2020 – Jul 15, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces

This macro is already used in mwifiex driver for specifying upper limit and is defined to value 3. So use it also in struct ieee80211_iface_limit.

---
 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/marvell/mwifiex/cfg80211.c +2 -1
index 4e4f59c17ded..867b5cf385a8 100644
@@ -27,7 +27,8 @@ module_param(reg_alpha2, charp, 0);
 
 static const struct ieee80211_iface_limit mwifiex_ap_sta_limits[] = {
 	{
-		.max = 3, .types = BIT(NL80211_IFTYPE_STATION) |
+		.max = MWIFIEX_MAX_BSS_NUM,
+		.types = BIT(NL80211_IFTYPE_STATION) |
 				   BIT(NL80211_IFTYPE_P2P_GO) |
 				   BIT(NL80211_IFTYPE_P2P_CLIENT) |
 				   BIT(NL80211_IFTYPE_AP),
Signature · 1 line
2.20.1
#1 lore raw
Quoted 4 lines · Pali Rohár

This macro is already used in mwifiex driver for specifying upper limit and is defined to value 3. So use it also in struct ieee80211_iface_limit.

Patch applied to wireless-drivers-next.git, thanks.

0ef0ace3e8e7 mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces

Signature · 3 lines
https://patchwork.kernel.org/patch/11627789/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches