ramips: remove option to set WiFi LED via aliases
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Sep 2020 21:20:23 +0000 (23:20 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 2 Oct 2020 12:51:57 +0000 (14:51 +0200)
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>
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
target/linux/ramips/rt288x/base-files/etc/board.d/01_leds
target/linux/ramips/rt305x/base-files/etc/board.d/01_leds
target/linux/ramips/rt3883/base-files/etc/board.d/01_leds

index 530b8c5681e347dcf743925ab225408af08508eb..a1a83bf2377434e61526d2f92c51ddcbe64cb02a 100644 (file)
@@ -13,8 +13,6 @@
                led-boot = &led_wlan;
                led-failsafe = &led_wlan;
                led-upgrade = &led_wlan;
-
-               led-wlan = &led_wlan;
        };
 
        chosen {
index 519d643a8c1f50180ad24e996790f80d00c248c2..acd3bfdb0a958ec298475d9229bd4231209b950b 100755 (executable)
@@ -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
 aigale,ai-br100)
        ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth0.2"
index 052b4ed5bb237fc270e4907de97b1b1799a3861c..8cd50583540b7ae441b467f41708b9eaa3f0b9ef 100755 (executable)
@@ -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
 d-team,newifi-d2)
        ucidef_set_led_netdev "internet" "internet" "amber:internet" "wan"
index 3108688da379df2ae0717454b4aa3d57551504a9..befb4a78e8f9a034cbc6bce43926978b0a8201f3 100755 (executable)
@@ -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"
index 2a3cf53c99f82b15f2401ca7f5c4a493d3efce6d..a3dbd52d4cd428730a8c28c79ab6a5f17fd3d6f1 100755 (executable)
@@ -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
 airlink101,ar670w|\
 airlink101,ar725w)
index 3f6b70341c567750a0f1aaaca907f3df24e16361..449f003df16f49af36f614b35a96d142dbf334d8 100755 (executable)
@@ -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
 7links,px-4885-4m|\
 7links,px-4885-8m|\
index d06d47336bac1a5762040f9ebdcbf41a26aefbe8..5ac38f0f5080a06bf1db03276585b94951604d40 100755 (executable)
@@ -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
 belkin,f9k1109v1)
        ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0"