ath79: rework LED configurations for tplink,archer-d50-v1
authorChuanhong Guo <gch981213@gmail.com>
Mon, 20 May 2019 13:26:03 +0000 (21:26 +0800)
committerPetr Štetiar <ynezz@true.cz>
Wed, 5 Jun 2019 08:12:31 +0000 (10:12 +0200)
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>
target/linux/ath79/base-files/etc/board.d/01_leds

index 69e26a4773f271ca953283bb0f31f7b60299f16d..2250c83b4de128f30d3d3787bbe97ed1bd0772f4 100755 (executable)
@@ -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"