Skip to contentSkip to conversation

Orion5x: replace KEY_WLAN with KEY_WPS_BUTTON

PATCH New Christian Lamparter 1 participant 1 message Mar 8, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Orion5x: replace KEY_WLAN with KEY_WPS_BUTTON

"Input: add KEY_WPS_BUTTON definition" introduced
a generic keycode for WPS input events.

---
(untested, don't have the HW - keep the CC.)

KEY_WLAN is _reversed_ for WLAN rfkill. ;-)
---

arch/arm/mach-orion5x/wrt350n-v2-setup.c +1 -1
index cb0feca..f9f222e 100644
@@ -77,7 +77,7 @@ static struct gpio_keys_button wrt350n_v2_buttons[] = {
 		.desc		= "Reset Button",
 		.active_low	= 1,
 	}, {
-		.code		= KEY_WLAN,
+		.code		= KEY_WPS_BUTTON,
 		.gpio		= 2,
 		.desc		= "WPS Button",
 		.active_low	= 1,