Author: blogic
Date: 2014-10-14 21:01:21 +0200 (Tue, 14 Oct 2014)
New Revision: 42922

Modified:
   trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
Log:
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?\194?\160button 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 <[email protected]>

Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
===================================================================
--- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c       
2014-10-14 19:01:16 UTC (rev 42921)
+++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c       
2014-10-14 19:01:21 UTC (rev 42922)
@@ -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 @@
                .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,
        },
 };
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to