mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 22:49:43 +02:00
5cc2f798b4
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
12 lines
362 B
Diff
12 lines
362 B
Diff
--- 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)
|