ramips: assign correct key-code to wps buttons

The two ASUS WL-330N and WL-330N3G had the reset keycode
assigned to the WPS button. This patch changes both devices
to use KEY_WPS_BUTTON in the hopes that this fixes unwanted
restarts/ unexpected behavior from the users point of view.

[dropped RG21S]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit ad65d9d7b2)
openwrt-18.06
Christian Lamparter 2019-11-16 22:37:51 +01:00
parent ab6addc95d
commit f65330d27d
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View File

@ -43,7 +43,7 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };