aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-12 08:45:19 +0200
committerMathias Kresin <dev@kresin.me>2017-04-13 08:18:57 +0200
commite20965811db65eab98adbd0b73c64f94325dfa23 (patch)
tree7c5396738a7f61bb662683df6c267e926834034b /target/linux/ar71xx/base-files
parentae0facdf1da51bf55942d9f59ee400bf77ee431f (diff)
downloadupstream-e20965811db65eab98adbd0b73c64f94325dfa23.tar.gz
upstream-e20965811db65eab98adbd0b73c64f94325dfa23.tar.bz2
upstream-e20965811db65eab98adbd0b73c64f94325dfa23.zip
ar71xx: fix ath9k default LED changes fallout
Since 192f0a3db859 ("ath9k: unset the default LED pin if used by platform leds") the default ath9k wireless LED is not set as soon as any pin of the ath ath9k gpio controller is used. All touched boards have leds defined which are using the gpio pins exposed by the ath9k driver but rely on a default set wireless led trigger. Add the wireless leds were missing and setup the wireless phy trigger in userspace. Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 44d06fc1e1..2f3e5efd57 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -743,6 +743,7 @@ tl-wr1043nd-v4)
ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
;;
tl-wr2543n)
+ ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
;;
tube2h)
@@ -847,6 +848,8 @@ wpn824n)
wzr-hp-ag300h)
ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
+ ucidef_set_led_wlan "wlan2g" "WLAN2G" "buffalo:amber:band2g" "phy0tpt"
+ ucidef_set_led_wlan "wlan5g" "WLAN5G" "buffalo:amber:band5g" "phy1tpt"
ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
;;
wzr-hp-g300nh)
@@ -854,6 +857,10 @@ wzr-hp-g300nh)
ucidef_set_led_netdev "router" "Router" "buffalo:green:router" "eth1"
ucidef_set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1"
;;
+wzr-hp-g300nh2|\
+wzr-hp-g450h)
+ ucidef_set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
+ ;;
xd3200)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt"
;;