[OpenWrt-Devel] [PATCH 06/11] ar71xx: make WLAN button RFKILL on wnr2000-v4

Michael J. Bazzinotti bazz at cs.umb.edu
Mon Apr 20 19:24:17 EDT 2015


From: "Michael J. Bazzinotti" <mbazzinotti at gmail.com>

Users will now be provided with the inherent wifi toggle functionality
of /etc/rc.button/rfkill

Signed-off-by: Michael J. Bazzinotti <mbazzinotti at gmail.com>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
index cc478e6..9c10b95 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
@@ -115,7 +115,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = {
 	{
 		.desc		= "WLAN button",
 		.type		= EV_KEY,
-		.code		= KEY_WLAN,
+		.code		= KEY_RFKILL,
 		.debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL,
 		.gpio		= WNR2000V4_GPIO_BTN_WLAN,
 		.active_low	= 1,
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list