diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2017-02-07 14:45:19 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2017-02-07 18:00:16 +0100 |
commit | 86bd88669704ca02fbdb34cdcb7366bfc12b39a9 (patch) | |
tree | ae887fc0afd5eb1ef52b4cf23d898615e400e1f3 /package/kernel | |
parent | 083854f06f0c340bd63ad5c75a8afa7fc97d9b38 (diff) | |
download | mtk-20170518-86bd88669704ca02fbdb34cdcb7366bfc12b39a9.zip mtk-20170518-86bd88669704ca02fbdb34cdcb7366bfc12b39a9.tar.gz mtk-20170518-86bd88669704ca02fbdb34cdcb7366bfc12b39a9.tar.bz2 |
brcmfmac: improve Raspberry Pi 3 stability
- Really disable power management (wrong config flags).
- Disable internal roaming engine.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/patches/862-brcmfmac-Disable-power-management.patch | 4 | ||||
-rw-r--r-- | package/kernel/mac80211/patches/864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch | 23 |
2 files changed, 25 insertions, 2 deletions
diff --git a/package/kernel/mac80211/patches/862-brcmfmac-Disable-power-management.patch b/package/kernel/mac80211/patches/862-brcmfmac-Disable-power-management.patch index 83bc7fe..5a93fb4 100644 --- a/package/kernel/mac80211/patches/862-brcmfmac-Disable-power-management.patch +++ b/package/kernel/mac80211/patches/862-brcmfmac-Disable-power-management.patch @@ -18,8 +18,8 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org> * preference in cfg struct to apply this to * FW later while initializing the dongle */ -+#if defined(CONFIG_BCM2708) || defined(CONFIG_BCM2709) -+ pr_info("power management disabled\n"); ++#if defined(CONFIG_ARCH_BCM2708) || defined(CONFIG_ARCH_BCM2709) ++ brcmf_dbg(INFO, "power management disabled\n"); + enabled = false; +#endif cfg->pwr_save = enabled; diff --git a/package/kernel/mac80211/patches/864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch b/package/kernel/mac80211/patches/864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch new file mode 100644 index 0000000..5ae4c11 --- /dev/null +++ b/package/kernel/mac80211/patches/864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch @@ -0,0 +1,23 @@ +brcmfmac: do not use internal roaming engine by default + +Some evidence of curing disconnects with this disabled, so make it a default. +Can be overridden with module parameter roamoff=0 +See: http://projectable.me/optimize-my-pi-wi-fi/ + +Signed-off-by: Phil Elwell <phil@raspberrypi.org> +--- + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c +@@ -69,7 +69,11 @@ static int brcmf_fcmode; + module_param_named(fcmode, brcmf_fcmode, int, 0); + MODULE_PARM_DESC(fcmode, "Mode of firmware signalled flow control"); + ++#if defined(CONFIG_ARCH_BCM2708) || defined(CONFIG_ARCH_BCM2709) ++static int brcmf_roamoff = 1; ++#else + static int brcmf_roamoff; ++#endif + module_param_named(roamoff, brcmf_roamoff, int, S_IRUSR); + MODULE_PARM_DESC(roamoff, "Do not use internal roaming engine"); + |