projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c2e47
)
mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces
author
Pali Rohár
<pali@kernel.org>
Fri, 26 Jun 2020 15:29:38 +0000
(17:29 +0200)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 15 Jul 2020 09:12:02 +0000
(12:12 +0300)
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.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20200626152938.12737-1-pali@kernel.org
drivers/net/wireless/marvell/mwifiex/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 4e4f59c17ded35be34377c5f8b776be44943fbef..867b5cf385a8230fad5e174bef51ef04421b18d2 100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@
-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),