diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-02-20 22:46:27 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2012-02-20 22:46:27 +0000 |
commit | 67d0f8af26d9beee2396702fa66a0bf2bce4c446 (patch) | |
tree | e9b3cc2833e846c05f5f13e4eebfdceafed015d7 /package/mac80211 | |
parent | 8ce7505b9124d242bcca4e8b1b2fc18aac4fa448 (diff) | |
download | upstream-67d0f8af26d9beee2396702fa66a0bf2bce4c446.tar.gz upstream-67d0f8af26d9beee2396702fa66a0bf2bce4c446.tar.bz2 upstream-67d0f8af26d9beee2396702fa66a0bf2bce4c446.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.
SVN-Revision: 30665
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/805-fix_gpio_bcm5354.patch | 11 |
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) |