lantiq/xrx200: make WLAN button responsive on Fritzbox 3370
authorDustin Gathmann <dzsoftware@posteo.org>
Wed, 20 May 2020 22:13:43 +0000 (00:13 +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.
However, on the Fritzbox 3370 this doesn't have an effect.
This patch changes the mapping of the physical WLAN button, so a button
press will emit an action for the 'rfkill' key instead of 'wlan'.
Apparently, this is what stock OpenWRT expects, and also what is
implemented for most other devices.

Signed-off-by: Dustin Gathmann <dzsoftware@posteo.org>
target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi

index bac27c364960f4b4b58d7c513fee0d6d7fb608db..4c4ae1a01f55b5ae73a9d6a7585509c758d7da6f 100644 (file)
@@ -45,7 +45,7 @@
                wifi {
                        label = "wlan";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <KEY_WLAN>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 
index bac27c364960f4b4b58d7c513fee0d6d7fb608db..4c4ae1a01f55b5ae73a9d6a7585509c758d7da6f 100644 (file)
@@ -45,7 +45,7 @@
                wifi {
                        label = "wlan";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <KEY_WLAN>;
+                       linux,code = <KEY_RFKILL>;
                };
        };