aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-27 23:20:23 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-10-02 14:51:57 +0200
commited5933beb632cd29869b81c04d7fa937a27d1a2f (patch)
treec8def678c7b9d08af8b2ce09391393d63dc6b01e /target/linux/ramips/mt76x8/base-files
parentc846dd91f0a6f99b529ed6e1ec4ab149466dc0d2 (diff)
downloadupstream-ed5933beb632cd29869b81c04d7fa937a27d1a2f.tar.gz
upstream-ed5933beb632cd29869b81c04d7fa937a27d1a2f.tar.bz2
upstream-ed5933beb632cd29869b81c04d7fa937a27d1a2f.zip
ramips: remove option to set WiFi LED via aliases
In ramips, it's not common to use an alias for specifying the WiFi LED; actually only one device uses this mechanism (TL-WR841N v14). Particularly since the WiFi LEDs are typically distinguished between 2.4G and 5G etc. it is also not very useful for this target. Thus, this patch removes the setup lines for this mechanism and converts the TL-WR841N v14 to the normal setup. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt76x8/base-files')
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/board.d/01_leds9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
index 3108688da3..befb4a78e8 100755
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
@@ -11,9 +11,6 @@ board=$(board_name)
board_config_update
-led_wlan="$(get_dt_led wlan)"
-[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
-
case $board in
alfa-network,awusfree1)
set_wifi_led "blue:wlan"
@@ -56,7 +53,6 @@ tama,w06)
;;
tplink,archer-c20-v4|\
tplink,archer-c20-v5|\
-tplink,tl-wr841n-v14|\
tplink,tl-wr850n-v2)
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
@@ -90,6 +86,11 @@ tplink,tl-wr841n-v13)
ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
;;
+tplink,tl-wr841n-v14)
+ ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
+ ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
+ ucidef_set_led_wlan "wifi_led" "wifi" "green:wlan" "phy0tpt"
+ ;;
tplink,tl-wr902ac-v3)
ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10"