ath79: fix port order on TL-WR841ND-v7
authorPaul Wassi <p.wassi@gmx.at>
Sat, 5 Jan 2019 22:54:01 +0000 (23:54 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 14 Feb 2019 15:56:14 +0000 (16:56 +0100)
The switch ports are seen one to one on the case.
Also remove unneeded secondary port numbers in this
case statement.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
target/linux/ath79/base-files/etc/board.d/02_network

index 5b57986d5f32e6f7f2701abc0398311f29568ea1..a63939670e71f69dc7eade4b4298ce3ba9d641cc 100755 (executable)
@@ -131,10 +131,11 @@ ath79_setup_interfaces()
                ucidef_add_switch_port_attr "switch0" 5 led 2
                ;;
        netgear,wnr612-v2|\
-       on,n150r)
+       on,n150r|\
+       tplink,tl-wr841-v7)
                ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
-               "0@eth1" "1:lan" "2:lan" "3:lan:3" "4:lan:4"
+               "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
                ;;
        phicomm,k2t)
                ucidef_add_switch "switch0" \
@@ -153,7 +154,6 @@ ath79_setup_interfaces()
        buffalo,whr-g301n|\
        tplink,tl-mr3220-v1|\
        tplink,tl-mr3420-v1|\
-       tplink,tl-wr841-v7|\
        tplink,tl-wr841-v9|\
        tplink,tl-wr841-v11|\
        ubnt,airrouter)