mac80211: Update to version 5.15.58-1
[openwrt/staging/dedeckeh.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 --- a/drivers/net/wireless/marvell/mwifiex/decl.h
23 +++ b/drivers/net/wireless/marvell/mwifiex/decl.h
24 @@ -30,7 +30,7 @@
25 #include <net/cfg80211.h>
26
27 #define MWIFIEX_BSS_COEX_COUNT 2
28 -#define MWIFIEX_MAX_BSS_NUM (3)
29 +#define MWIFIEX_MAX_BSS_NUM (4)
30
31 #define MWIFIEX_DMA_ALIGN_SZ 64
32 #define MWIFIEX_RX_HEADROOM 64
33 @@ -112,7 +112,7 @@
34 #define MWIFIEX_RATE_INDEX_OFDM0 4
35
36 #define MWIFIEX_MAX_STA_NUM 3
37 -#define MWIFIEX_MAX_UAP_NUM 3
38 +#define MWIFIEX_MAX_UAP_NUM 4
39 #define MWIFIEX_MAX_P2P_NUM 3
40
41 #define MWIFIEX_A_BAND_START_FREQ 5000