[openwrt/openwrt] ar71xx: fix ZyXEL NBG6616 wifi switch

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 10 19:12:30 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0af656e978f1adac4061516d9d2e661e101ba64c

commit 0af656e978f1adac4061516d9d2e661e101ba64c
Author: Christoph Krapp <achterin at googlemail.com>
AuthorDate: Mon Aug 10 21:22:26 2020 +0200

    ar71xx: fix ZyXEL NBG6616 wifi switch
    
    The device uses a rf-kill switch instead of a button. Furthermore the
    GPIO is active high.
    
    Signed-off-by: Christoph Krapp <achterin at googlemail.com>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
index 1c08e53f15..b0fbb78d82 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
@@ -203,11 +203,11 @@ static struct gpio_keys_button nbg6616_gpio_keys[] __initdata = {
 	},
 	{
 		.desc		= "RFKILL button",
-		.type		= EV_KEY,
+		.type		= EV_SW,
 		.code		= KEY_RFKILL,
 		.debounce_interval = NBG6716_KEYS_DEBOUNCE_INTERVAL,
 		.gpio		= NBG6716_GPIO_BTN_RFKILL,
-		.active_low	= 1,
+		.active_low	= 0,
 	},
 	{
 		.desc		= "WPS button",



More information about the lede-commits mailing list