ramips: assign correct key-code to wps buttons openwrt-18.06
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 21:37:51 +0000 (22:37 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 22:40:39 +0000 (23:40 +0100)
The two ASUS WL-330N and WL-330N3G had the
reset keycode assigned to the WPS button. This patch
changes all three devices to use KEY_WPS_BUTTON in
the hopes that this fixes unwanted restarts/
unexpected behavior from the users point of view.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [dropped RG21S]
(cherry picked from commit ad65d9d7b264d6d17293c59469e770905d2f785a)

target/linux/ramips/dts/WL-330N.dts
target/linux/ramips/dts/WL-330N3G.dts

index 0eb7b7ff78c7a1bdd545723cfb9383f8fd8e3975..1f0a5b0e37004ad6be99b4e4736f1813ed4d9972 100644 (file)
@@ -38,7 +38,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 3801a9d9efc6d0463189b7d0a7b739e12ae92f63..8f6b88e67e2f33575080efd4dcc477a3c9caea12 100644 (file)
@@ -43,7 +43,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };