aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2019-11-16 22:37:51 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-11-16 22:37:51 +0100
commitad65d9d7b264d6d17293c59469e770905d2f785a (patch)
treeb15d76bb214a7fdd48c57d1e68b56fa4b8ce8ca9 /target
parentccf2aa9d4bf6b79669fc7121fa3bfe4c1e2b05c3 (diff)
downloadupstream-ad65d9d7b264d6d17293c59469e770905d2f785a.tar.gz
upstream-ad65d9d7b264d6d17293c59469e770905d2f785a.tar.bz2
upstream-ad65d9d7b264d6d17293c59469e770905d2f785a.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7621_edimax_rg21s.dts2
-rw-r--r--target/linux/ramips/dts/rt3050_asus_wl-330n.dts2
-rw-r--r--target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts
index b6bb448fd8..6ed08413c1 100644
--- a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts
+++ b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts
@@ -39,7 +39,7 @@
wps {
label = "wps";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
index ee0cd0ad1f..48a6e3a4cf 100644
--- a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
+++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
@@ -43,7 +43,7 @@
wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
index 235c90fc4d..8453147b6b 100644
--- a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
+++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
@@ -48,7 +48,7 @@
wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};