aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:21 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:21 +0000
commit3836b3acb2e83948e09f7b95bda7a04eb3185833 (patch)
tree058d6b501df2dada33c68a24c9472121a9b6e714 /target/linux/ar71xx/files/arch
parent989a87e748c97f794d405356ffaea9ac8e8ab241 (diff)
downloadmaster-187ad058-3836b3acb2e83948e09f7b95bda7a04eb3185833.tar.gz
master-187ad058-3836b3acb2e83948e09f7b95bda7a04eb3185833.tar.bz2
master-187ad058-3836b3acb2e83948e09f7b95bda7a04eb3185833.zip
wr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL
This patch changes the code of the Wi-Fi On/Off button on the TP-Link WR1043ND v2 from KEY_WLAN to KEY_RFKILL (and renames a few constants to match). The reason for this change is, that the KEY_WIFI button code is not recognized by the hotplug subsystem. This means that the userspace is not notified about the button being pressed which effectively renders it useless. Signed-off-by: Josef Gajdusek <atx@atx.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42922 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
index 3e79ee1c31..abdbde08d2 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
@@ -43,7 +43,7 @@
#define TL_WR1043_V2_GPIO_LED_SYSTEM 19
#define TL_WR1043_V2_GPIO_BTN_RESET 16
-#define TL_WR1043_V2_GPIO_BTN_WLAN 17
+#define TL_WR1043_V2_GPIO_BTN_RFKILL 17
#define TL_WR1043_V2_GPIO_USB_POWER 21
@@ -94,11 +94,11 @@ static struct gpio_keys_button tl_wr1043_v2_gpio_keys[] __initdata = {
.active_low = 1,
},
{
- .desc = "WLAN button",
+ .desc = "RFKILL button",
.type = EV_KEY,
- .code = KEY_WLAN,
+ .code = KEY_RFKILL,
.debounce_interval = TL_WR1043_V2_KEYS_DEBOUNCE_INTERVAL,
- .gpio = TL_WR1043_V2_GPIO_BTN_WLAN,
+ .gpio = TL_WR1043_V2_GPIO_BTN_RFKILL,
.active_low = 1,
},
};