aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2018-06-11 00:37:38 +0200
committerMathias Kresin <dev@kresin.me>2018-06-16 10:16:38 +0200
commitbe799e8c2a1b56c39743b90242d36a1396bb79f7 (patch)
treee057505d932e677e22350daaccd6344c0b43c355 /target
parent3b8e53f6af715a5b5820a5d21b92d908b148ac60 (diff)
downloadupstream-be799e8c2a1b56c39743b90242d36a1396bb79f7.tar.gz
upstream-be799e8c2a1b56c39743b90242d36a1396bb79f7.tar.bz2
upstream-be799e8c2a1b56c39743b90242d36a1396bb79f7.zip
ramips: use phytpt trigger for mt76 wireless
With this change, the LED trigger is independent from the (wireless) netdev name. The (wireless) netdev name can be easiliy changed in OpenWrt and would require an update of the netdev trigger settings each time it is done. This change is (for now) applied only to MT7628 devices from TP-Link, as we only had the possibility to test this change against two of those devices, namely a TL-WR841 v13 and a Archer C50 v3. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index ae5ac77b5e..73e3f22418 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -384,12 +384,12 @@ tiny-ac)
set_usb_led "$boardname:green:usb"
;;
tl-wr840n-v4)
- set_wifi_led "$boardname:green:wlan"
+ ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
;;
tl-wr841n-v13)
- set_wifi_led "$boardname:green:wlan"
+ ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
@@ -415,13 +415,13 @@ tplink,c50-v3)
;;
tplink,tl-mr3420-v5)
set_usb_led "$boardname:green:usb"
- set_wifi_led "$boardname:green:wlan"
+ ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
;;
tplink,tl-wr902ac-v3)
set_usb_led "$boardname:green:usb"
- ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan" "wlan0"
+ ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
;;
u25awf-h1)