blob: fe79c40c11cb88feb07568fb4cc0c6992322d9f9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001brcmfmac: do not use internal roaming engine by default
2
3Some evidence of curing disconnects with this disabled, so make it a default.
4Can be overridden with module parameter roamoff=0
5See: http://projectable.me/optimize-my-pi-wi-fi/
6
7Signed-off-by: Phil Elwell <phil@raspberrypi.org>
8---
9
10--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
11+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
12@@ -59,7 +59,11 @@ static int brcmf_fcmode;
13 module_param_named(fcmode, brcmf_fcmode, int, 0);
14 MODULE_PARM_DESC(fcmode, "Mode of firmware signalled flow control");
15
16+#if defined(CONFIG_ARCH_BCM2835)
17+static int brcmf_roamoff = 1;
18+#else
19 static int brcmf_roamoff;
20+#endif
21 module_param_named(roamoff, brcmf_roamoff, int, 0400);
22 MODULE_PARM_DESC(roamoff, "Do not use internal roaming engine");
23