wr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL
authorJohn Crispin <blogic@openwrt.org>
Tue, 14 Oct 2014 19:01:21 +0000 (19:01 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Oct 2014 19:01:21 +0000 (19:01 +0000)
commit3836b3acb2e83948e09f7b95bda7a04eb3185833
tree058d6b501df2dada33c68a24c9472121a9b6e714
parent989a87e748c97f794d405356ffaea9ac8e8ab241
wr1043nd-v2: Change .code of the wi-fi button to KEY_RFKILL

This patch changes the code of the Wi-Fi On/Off button on the TP-Link WR1043ND v2
from KEY_WLAN to KEY_RFKILL (and renames a few constants to match). The reason
for this change is, that the KEY_WIFI button code is not recognized by the
hotplug subsystem. This means that the userspace is not notified about the
button being pressed which effectively renders it useless.

Signed-off-by: Josef Gajdusek <atx@atx.name>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42922 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c