ath79: fix leds and network for TP-Link TL-WR841 v9/v11
authorJohann Neuhauser <johann@it-neuhauser.de>
Thu, 16 Aug 2018 08:30:17 +0000 (10:30 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 16 Aug 2018 19:20:57 +0000 (21:20 +0200)
Adding tl-wr841-v11 and the rename of tl-wr841n-v9 to tl-wr841-v9 in 01_leds
and 02_network script files are missing in commits cc35c91 and 8db6522.

Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
[merged with identical case in 02_network]
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/base-files/etc/board.d/02_network

index 2c83b138f40eab8f4e14a871a96db51036a1713f..73f350cae27a475c670525d34f3e797ee9eb641a 100755 (executable)
@@ -80,7 +80,8 @@ tplink,tl-wr741nd-v4)
        ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
        ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
        ;;
-tplink,tl-wr841n-v9)
+tplink,tl-wr841-v9|\
+tplink,tl-wr841-v11)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
        ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
        ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
index 202c9bb8eb225de0f3721a8539b8d7cd3cf8efb0..653f813e01ffaa8ed2ea9a5b8925d8f4e1208c77 100755 (executable)
@@ -125,16 +125,13 @@ ath79_setup_interfaces()
                        "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
                ;;
        tplink,tl-wr740nd-v4|\
-       tplink,tl-wr741nd-v4)
+       tplink,tl-wr741nd-v4|\
+       tplink,tl-wr841-v9|\
+       tplink,tl-wr841-v11)
                ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
-       tplink,tl-wr841n-v9)
-               ucidef_set_interface_wan "eth0"
-               ucidef_add_switch "switch0" \
-               "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
-               ;;
        tplink,tl-wr941-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;