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>
master
Chuanhong Guo 5 years ago committed by Petr Štetiar
parent 9b7abd9fe2
commit f84715d463
  1. 6
      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"

Loading…
Cancel
Save