DWR-118-A1.dts vs wiki information

On page https://openwrt.org/toh/d-link/d-link_dwr-118#buttons we have:
|Reset |reset |12|
|WPS |wps |13|

In dts file it's swaped (reset 13, wps 12): https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/dts/DWR-118-A1.dts

		wps {
			label = "wps";
			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WPS_BUTTON>;

		reset {
			label = "reset";
			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;

On my DWR-118 the wps button is well detected (although wps does not work), so I guess dts file is right?
Hope it helps.


Thank You for info.

I changed numbers of buttons GPIO.

(although wps does not work)

WPS isn't supported by default in OpenWRT.


WPS isn't supported by default in OpenWRT.

I followed some tutos to set it up but nothing. That's not a problem I managed another way.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.