ath79: remap D-Link DIR-859 A1 WPS button to WPS
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 21:42:07 +0000 (22:42 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 21:42:07 +0000 (22:42 +0100)
The WPS button was mapped to the restart/reset. This patch
changes it to emit the KEY_WPS_BUTTON keycode so pressing
the WPS button does initiate WPS.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts

index 9fe5cb0af9b434d3f250ea3e2dc308f3f60802e3..8502bed4c528f4de319f6161a92aaaf7bac38f13 100644 (file)
@@ -50,7 +50,7 @@
                compatible = "gpio-keys";
 
                wps {
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        debounce-interval = <60>;
                };