0b9f552f95ae7d70f6b0fb427d66b492bf47ab98
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / mwl / 900-mwifiex-increase-the-global-limit-up-to-4-SSID.patch
1 From ef8098cd6cb8b5989afef2e8461fe6ba9570a854 Mon Sep 17 00:00:00 2001
2 From: Josef Schlehofer <pepe.schlehofer@gmail.com>
3 Date: Wed, 24 Nov 2021 12:47:40 +0100
4 Subject: [PATCH] mwifiex: increase the global limit up to 4 SSID
5
6 Firmware for SDIO (88W8997), which is used in Turris MOX SDIO addon [1],
7 allows up to 4 SSID. Unfortunately, driver (even in mainline kernel)
8 has a global limit for all Marvell cards up to 3 SSID.
9
10 Pali Rohár tested this patch and verified that the SDIO Wi-Fi addon works
11 with the 4 SSID. So, let's increase the global limit from 3 to 4.
12
13 Ideally, this patch should be done differently before sending
14 it to Linux kernel. It means that limit definition should be moved to
15 the card-specific structure.
16
17 [1] https://docs.turris.cz/hw/mox/addons/#wi-fi-sdio
18 ---
19 drivers/net/wireless/marvell/mwifiex/decl.h | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22 diff --git a/drivers/net/wireless/marvell/mwifiex/decl.h b/drivers/net/wireless/marvell/mwifiex/decl.h
23 index cdc9972..f9bcbf5 100644
24 --- a/drivers/net/wireless/marvell/mwifiex/decl.h
25 +++ b/drivers/net/wireless/marvell/mwifiex/decl.h
26 @@ -30,7 +30,7 @@
27 #include <net/cfg80211.h>
28
29 #define MWIFIEX_BSS_COEX_COUNT 2
30 -#define MWIFIEX_MAX_BSS_NUM (3)
31 +#define MWIFIEX_MAX_BSS_NUM (4)
32
33 #define MWIFIEX_DMA_ALIGN_SZ 64
34 #define MWIFIEX_RX_HEADROOM 64
35 @@ -112,7 +112,7 @@
36 #define MWIFIEX_RATE_INDEX_OFDM0 4
37
38 #define MWIFIEX_MAX_STA_NUM 3
39 -#define MWIFIEX_MAX_UAP_NUM 3
40 +#define MWIFIEX_MAX_UAP_NUM 4
41 #define MWIFIEX_MAX_P2P_NUM 3
42
43 #define MWIFIEX_A_BAND_START_FREQ 5000
44 --
45 2.30.2
46