diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2019-05-20 21:26:03 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-06-05 10:12:31 +0200 |
commit | f84715d463e63bd8c6fa873a9183b418ff24eeb5 (patch) | |
tree | 284df4200ec45b8c5601e8fbb1ebcf93ebe69d01 /target/linux/ath79/base-files | |
parent | 9b7abd9fe29b15d56bb44871b76f8b3396cf313b (diff) | |
download | upstream-f84715d463e63bd8c6fa873a9183b418ff24eeb5.tar.gz upstream-f84715d463e63bd8c6fa873a9183b418ff24eeb5.tar.bz2 upstream-f84715d463e63bd8c6fa873a9183b418ff24eeb5.zip |
ath79: rework LED configurations for tplink,archer-d50-v1
The original one has the following problem:
1. Port mask of lan led includes wan port.
2. By using netdev trigger with vlan port, the link led
is always on.
This commits fixes the above problems by correcting port
mask for lan led and use swconfig trigger for wan leds.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 69e26a4773..2250c83b4d 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -137,9 +137,9 @@ tplink,cpe210-v3) ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100" ;; tplink,archer-d50-v1) - ucidef_set_led_switch "lan" "LAN" "tp-link:white:lan" "switch0" "0x1E" - ucidef_set_led_netdev "wan_data" "WAN Data" "tp-link:white:internet" "eth1.2" "tx rx" - ucidef_set_led_netdev "wan_link" "WAN Link" "tp-link:white:wan" "eth1.2" "link" + ucidef_set_led_switch "lan" "LAN" "tp-link:white:lan" "switch0" "0x1c" + ucidef_set_led_switch "wan_data" "WAN Data" "tp-link:white:internet" "switch0" "0x02" "" "tx rx" + ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link" ;; tplink,re450-v2) ucidef_set_led_netdev "lan_data" "LAN Data" "tp-link:green:lan_data" "eth0" "tx rx" |