249c3036be9569996b5ec281f77543f703c6de13
[oweals/openwrt.git] /
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 @@ -70,7 +70,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