[openwrt/openwrt] lantiq/xrx200: make WLAN button responsive on Fritzbox 3370

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 23 11:42:27 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/284cd7d18e4305f20304289144a887b984eb34a4

commit 284cd7d18e4305f20304289144a887b984eb34a4
Author: Dustin Gathmann <dzsoftware at posteo.org>
AuthorDate: Thu May 21 00:13:43 2020 +0200

    lantiq/xrx200: make WLAN button responsive on Fritzbox 3370
    
    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 at posteo.org>
    (cherry picked from commit a53bf63756ef2a266ae5f3b3507eeb7382b4cdc9)
---
 target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
index e86e544945..f3ce0adfff 100644
--- a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
+++ b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
@@ -46,7 +46,7 @@
 		wifi {
 			label = "wlan";
 			gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-			linux,code = <KEY_WLAN>;
+			linux,code = <KEY_RFKILL>;
 		};
 	};
 



More information about the lede-commits mailing list