aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2012-02-20 22:46:27 +0000
committerHauke Mehrtens <hauke@openwrt.org>2012-02-20 22:46:27 +0000
commit220528a6118207e751248b58b95b17682aef7660 (patch)
treef363b3152b4f4210e7de79bb6863e4066561797c /package
parent2afb2015885e7f4b4e1d028f986f8fb98510d815 (diff)
downloadmaster-187ad058-220528a6118207e751248b58b95b17682aef7660.tar.gz
master-187ad058-220528a6118207e751248b58b95b17682aef7660.tar.bz2
master-187ad058-220528a6118207e751248b58b95b17682aef7660.zip
mac80211: fix memory leak on bcm5354
The ucode triggers the gpio pins used for the buttons and causes diag to handle them and send them to userspace. This only happened with a more recent firmware. This patch was tested on an Asus wl-520GU and should also work on the other bcm5354 based asus devices. I do not know if it works on the dir320. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30665 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/805-fix_gpio_bcm5354.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/805-fix_gpio_bcm5354.patch b/package/mac80211/patches/805-fix_gpio_bcm5354.patch
new file mode 100644
index 0000000000..a3cf0d0987
--- /dev/null
+++ b/package/mac80211/patches/805-fix_gpio_bcm5354.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/b43/main.c
++++ b/drivers/net/wireless/b43/main.c
+@@ -2687,6 +2687,8 @@ static int b43_gpio_init(struct b43_wlde
+ mask |= 0x0060;
+ set |= 0x0060;
+ }
++ if (dev->dev->chip_id == 0x5354)
++ set &= 0xff02;
+ if (0 /* FIXME: conditional unknown */ ) {
+ b43_write16(dev, B43_MMIO_GPIO_MASK,
+ b43_read16(dev, B43_MMIO_GPIO_MASK)