ramips: fix port display for D-Link DIR-810L
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 9 Jun 2020 10:01:43 +0000 (12:01 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 11 Jun 2020 08:21:17 +0000 (10:21 +0200)
The port order displayed in LuCI is currently inverted for this
devices:

LuCI - Device
LAN1 - LAN4
LAN2 - LAN3
LAN3 - LAN2
LAN4 - LAN1

Fix it.

Strangely, the owner of a TRENDnet TEW-810DR reports that the
initial port order is correct, while both devices share the
same board and look similar from the outside. Since I cannot
investigate this without having any of the devices, this does
only touch the DIR-810L for now.

While at it, also merge in the case for zbtlink,zbt-we2026, as
the display port specified for WAN there won't have any effect
anyway.

Reported-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/mt7620/base-files/etc/board.d/02_network

index 46ed857cdc05516bc046f75d1c08993d282504cd..c70e4ff8e44076b11c9b6bd302d2b102d93ed045 100755 (executable)
@@ -12,7 +12,6 @@ ramips_setup_interfaces()
        aigale,ai-br100|\
        alfa-network,ac1200rm|\
        asus,rt-n12p|\
-       dlink,dir-810l|\
        dlink,dwr-116-a1|\
        dlink,dwr-921-c1|\
        dlink,dwr-922-e2|\
@@ -109,6 +108,11 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "6@eth0"
                ;;
+       dlink,dir-810l|\
+       zbtlink,zbt-we2026)
+               ucidef_add_switch "switch0" \
+                       "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
+               ;;
        dlink,dwr-118-a1)
                ucidef_add_switch "switch0" \
                        "1:lan:2" "2:lan:3" "3:lan:1" "4:lan:0" "5:wan" "6@eth0"
@@ -214,10 +218,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "6t@eth0"
                ;;
-       zbtlink,zbt-we2026)
-               ucidef_add_switch "switch0" \
-                       "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0"
-               ;;
        zyxel,keenetic-viva)
                ucidef_add_switch "switch1" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0"