ar71xx: wndr4300: use KEY_RFKILL code for the Wireless button
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-wndr4300.c
index 6f26429ed79fa9e3cbe47f6aa38aad0c0f3ae953..f546b7171ed377009fe1801d9d26a6b3073d7856 100644 (file)
@@ -116,7 +116,7 @@ static struct gpio_keys_button wndr4300_gpio_keys[] __initdata = {
        {
                .desc           = "Wireless button",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RFKILL,
                .debounce_interval = WNDR4300_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = WNDR4300_GPIO_BTN_WIRELESS,
                .active_low     = 1,