0028-ar71xx-fix-TP-LINK-TL-WDR3600-4300-RFKILL-switch-positions.patch 940 B

12345678910111213141516171819202122
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sun, 15 Mar 2015 21:03:25 +0100
  3. Subject: ar71xx: fix TP-LINK TL-WDR3600/4300 RFKILL switch positions
  4. While the switch positions aren't explicitly labeled as on and off, we've heard
  5. complaints about them being wrong. This patch changes the handling to match the
  6. stock firmware.
  7. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  8. 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
  9. index 99ae80d..3afc714 100644
  10. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
  11. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
  12. @@ -103,6 +103,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
  13. .code = KEY_RFKILL,
  14. .debounce_interval = WDR4300_KEYS_DEBOUNCE_INTERVAL,
  15. .gpio = WDR4300_GPIO_BTN_RFKILL,
  16. + .active_low = 1,
  17. },
  18. };