mac80211: brcmfmac: backport fixes for 4.7 and 4.8
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / patches / 863-brcmfmac-Disable-power-management.patch
1 From 66ae1b1750720a33e29792a177b1e696f4f005fb Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 9 Mar 2016 17:25:59 +0000
4 Subject: [PATCH] brcmfmac: Disable power management
5
6 Disable wireless power saving in the brcmfmac WLAN driver. This is a
7 temporary measure until the connectivity loss resulting from power
8 saving is resolved.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
11 ---
12 drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
16 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
17 @@ -2667,6 +2667,10 @@ brcmf_cfg80211_set_power_mgmt(struct wip
18 * preference in cfg struct to apply this to
19 * FW later while initializing the dongle
20 */
21 +#if defined(CONFIG_BCM2708) || defined(CONFIG_BCM2709)
22 + pr_info("power management disabled\n");
23 + enabled = false;
24 +#endif
25 cfg->pwr_save = enabled;
26 if (!check_vif_up(ifp->vif)) {
27