2
0
forked from Ivasoft/openwrt

ar71xx: fix ath9k default LED changes fallout

Since 192f0a3db8 ("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>
This commit is contained in:
Mathias Kresin
2017-04-12 08:45:19 +02:00
parent ae0facdf1d
commit e20965811d
4 changed files with 22 additions and 13 deletions

View File

@@ -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"
;;