]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: openwrt-one: make the front button usable as WPS button
authorFelix Fietkau <nbd@nbd.name>
Wed, 24 Jun 2026 13:51:36 +0000 (15:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 24 Jun 2026 13:52:19 +0000 (15:52 +0200)
It's the most common use for such a button, and the behavior can
be changed in user space if needed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mediatek/dts/mt7981b-openwrt-one.dts

index d0b94af5cb8f61d077319411738b072dbe7e60d4..a3c532a1413b592fd92f84cbb1a26e41ea94aca3 100644 (file)
@@ -50,7 +50,7 @@
 
                user {
                        label = "user";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_WPS_BUTTON>;
                        gpios = <&pio 0 GPIO_ACTIVE_LOW>;
                };