brcmfmac: Add Raspberry Pi 3 support
authorJohn Crispin <john@openwrt.org>
Wed, 16 Mar 2016 09:26:42 +0000 (09:26 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 16 Mar 2016 09:26:42 +0000 (09:26 +0000)
- Enable SDIO support on brcmfmac.
- Disable power managment for brcm2708 target.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 49023

package/kernel/mac80211/Makefile
package/kernel/mac80211/patches/863-brcmfmac-Disable-power-management.patch [new file with mode: 0644]
target/linux/brcm2708/bcm2710/profiles/RaspberryPi3.mk

index e65cf2afe60f4b5550f15b9f8f6d8d10c4d362be..13a07ae292bd97785c6e475191e9d0fd3928fdb7 100644 (file)
@@ -673,6 +673,7 @@ define KernelPackage/brcmfmac/config
 
        config BRCMFMAC_SDIO
                bool "Enable SDIO bus interface support"
+               default y if TARGET_brcm2708
                default n
                help
                  Enable support for cards attached to an SDIO bus.
diff --git a/package/kernel/mac80211/patches/863-brcmfmac-Disable-power-management.patch b/package/kernel/mac80211/patches/863-brcmfmac-Disable-power-management.patch
new file mode 100644 (file)
index 0000000..1615202
--- /dev/null
@@ -0,0 +1,27 @@
+From 66ae1b1750720a33e29792a177b1e696f4f005fb Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.org>
+Date: Wed, 9 Mar 2016 17:25:59 +0000
+Subject: [PATCH] brcmfmac: Disable power management
+
+Disable wireless power saving in the brcmfmac WLAN driver. This is a
+temporary measure until the connectivity loss resulting from power
+saving is resolved.
+
+Signed-off-by: Phil Elwell <phil@raspberrypi.org>
+---
+ drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+@@ -2651,6 +2651,10 @@ brcmf_cfg80211_set_power_mgmt(struct wip
+        * 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");
++      enabled = false;
++#endif
+       cfg->pwr_save = enabled;
+       if (!check_vif_up(ifp->vif)) {
index 251a8b57fb31b0138296b82ed799596500e8a76b..a20e225e616608a46a65f180dc674610701b63de 100644 (file)
@@ -7,6 +7,7 @@
 
 define Profile/RaspberryPi_3
   NAME:=Raspberry Pi 3 Model B
+  PACKAGES:=kmod-brcmfmac wpad-mini
 endef
 define Profile/RaspberryPi_3/Description
   Raspberry Pi 3 Model B