lantiq/xrx200: make WLAN button responsive on Fritzbox 7360 & 7362
authorDustin Gathmann <dzsoftware@posteo.org>
Sun, 19 Jul 2020 22:07:44 +0000 (00:07 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 23 Jul 2020 15:39:42 +0000 (17:39 +0200)
Pressing the 'WLAN' button should enable/disable wireless activity.
Currently, the button is mapped to the KEY_WLAN, which will not
have this effect.
This patch changes the mapping of the WLAN button, so a button
press will emit an action for the 'rfkill' key instead of 'wlan'.
Apparently, this is what stock OpenWRT expects.

This fix is analogous to the preceding patch for Fritzbox 3370.

Signed-off-by: Dustin Gathmann <dzsoftware@posteo.org>
(cherry picked from commit d5a148f5c8f6d6dee7041fd348bd0f52839d0f4e)

target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ736X.dtsi

index 8ed23deb44ca464ee016a30b3e2572fa539fc7b4..6e8103916f13f825c0232b25f45cdb978e7ccc2b 100644 (file)
@@ -40,7 +40,7 @@
                wifi {
                        label = "wifi";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <KEY_WLAN>;
+                       linux,code = <KEY_RFKILL>;
                };
        };