0ae012cbebf061a0b62c8d90a4ed01ce7372c889
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch
1 brcmfmac: do not use internal roaming engine by default
2
3 Some evidence of curing disconnects with this disabled, so make it a default.
4 Can be overridden with module parameter roamoff=0
5 See: http://projectable.me/optimize-my-pi-wi-fi/
6
7 Signed-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 @@ -71,7 +71,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, S_IRUSR);
22 MODULE_PARM_DESC(roamoff, "Do not use internal roaming engine");
23