aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-15 19:39:47 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-15 19:39:47 +0000
commit645862c1c8d5d1e928f405135d75399996f90a43 (patch)
tree8c12599604e4fc9863c742f073f42b22bc9e399e
parentdb328d1e26a481ae8b64fdf49c917d7cbb990ac2 (diff)
downloadmaster-187ad058-645862c1c8d5d1e928f405135d75399996f90a43.tar.gz
master-187ad058-645862c1c8d5d1e928f405135d75399996f90a43.tar.bz2
master-187ad058-645862c1c8d5d1e928f405135d75399996f90a43.zip
ar71xx: fix TP-LINK TL-WDR3600/4300 RFKILL switch positions
While the switch positions aren't explicitly labeled as on and off, we've heard complaints about them being wrong. This patch changes the handling to match the stock firmware. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44795 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
index 99ae80df9b..3afc714620 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
@@ -103,6 +103,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
.code = KEY_RFKILL,
.debounce_interval = WDR4300_KEYS_DEBOUNCE_INTERVAL,
.gpio = WDR4300_GPIO_BTN_RFKILL,
+ .active_low = 1,
},
};