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>
Sun, 19 Jul 2020 22:58:30 +0000 (00:58 +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>
target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index 1553d2f7f44924c9f3c737dece3ad3673689b0c2..f12485b3e1b44146da1a001a3242392940dc6a24 100644 (file)
@@ -40,7 +40,7 @@
                wifi {
                        label = "wifi";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <KEY_WLAN>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 
index 70dff97ec1b4d861c036b67004cc5868f7d57446..bd89e59511de0577f015af096254ff033dd6f049 100644 (file)
@@ -40,7 +40,7 @@
                wifi {
                        label = "wifi";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <KEY_WLAN>;
+                       linux,code = <KEY_RFKILL>;
                };
        };