ramips: assign correct key-code to wps buttons

The ASUS WL-330N(3G) and the Edimax RG21S 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>
This commit is contained in:
Christian Lamparter 2019-11-16 22:37:51 +01:00
parent ccf2aa9d4b
commit ad65d9d7b2
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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