<p dir="ltr">Please Back port to Barrier Breaker I can confirm it occurs on WDR4300 on Barrier Breaker as well.<br>
On and Off states are swapped</p>
<div class="gmail_quote">On Mar 14, 2015 9:39 PM, "Daniel Petre" <<a href="mailto:daniel.petre@gmail.com">daniel.petre@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14/03/15 15:31, Matthias Schiffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While the switch positions aren't explicitly labeled as on and off, we've heard<br>
complaints about them being wrong.<br>
</blockquote>
<br>
Hello, if this is about the wireless off/on switch i can confirm that with trunk on my tp-link wdr3600 v1.1 when it's on the "On" position the wifi is disabled and enabled when in the "Off" position.<br>
<br>
This patch changes the handling to match the<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
stock firmware.<br>
<br>
Signed-off-by: Matthias Schiffer <<a href="mailto:mschiffer@universe-factory.net" target="_blank">mschiffer@universe-factory.<u></u>net</a>><br>
---<br>
  target/linux/ar71xx/files/<u></u>arch/mips/ath79/mach-tl-<u></u>wdr4300.c | 1 +<br>
  1 file changed, 1 insertion(+)<br>
<br>
diff --git a/target/linux/ar71xx/files/<u></u>arch/mips/ath79/mach-tl-<u></u>wdr4300.c b/target/linux/ar71xx/files/<u></u>arch/mips/ath79/mach-tl-<u></u>wdr4300.c<br>
index 99ae80d..3afc714 100644<br>
--- a/target/linux/ar71xx/files/<u></u>arch/mips/ath79/mach-tl-<u></u>wdr4300.c<br>
+++ b/target/linux/ar71xx/files/<u></u>arch/mips/ath79/mach-tl-<u></u>wdr4300.c<br>
@@ -103,6 +103,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {<br>
                .code           = KEY_RFKILL,<br>
                .debounce_interval = WDR4300_KEYS_DEBOUNCE_<u></u>INTERVAL,<br>
                .gpio           = WDR4300_GPIO_BTN_RFKILL,<br>
+               .active_low     = 1,<br>
        },<br>
  };<br>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.<u></u>org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-<u></u>bin/mailman/listinfo/openwrt-<u></u>devel</a><br>
</blockquote></div>