ramips: change wifi led trigger for Archer C50v3
authorDavid Bauer <mail@david-bauer.net>
Fri, 18 May 2018 21:37:49 +0000 (23:37 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 22 May 2018 18:34:14 +0000 (20:34 +0200)
This commit alters the TP-Link Archer C50v3 LED settings to use the phy
trigger instead of the netdev one. This way the WiFi status is displayed
even if the wifi interface name is altered.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/base-files/etc/board.d/01_leds

index b5de38876483caeb4ad6892a27353611f4fb2834..88e4c2b7feadd87440df7a3b2a774ac2d7f3c1c8 100755 (executable)
@@ -410,8 +410,8 @@ tplink,c20-v4)
 tplink,c50-v3)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
-       ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan1"
-       set_wifi_led "$boardname:green:wlan5g"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
+       ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
        ;;
 tplink,tl-mr3420-v5)
        set_usb_led "$boardname:green:usb"