ramips: fix switch port numbering for RT-AC65P/RT-AC85P
authorGabor Varga <vargagab@gmail.com>
Mon, 9 Dec 2019 22:03:58 +0000 (23:03 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Dec 2019 22:00:32 +0000 (23:00 +0100)
The switch LAN port numbers are in reversed order with original config.
With this patch they are fixed.

Port order checked on both devices.

Signed-off-by: Gabor Varga <vargagab@gmail.com>
[merged definitions into appropriate block, extended commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/mt7621/base-files/etc/board.d/02_network

index bb6e41e06fb42256065866312b038b0172b1fc59..53a8868382faacccbcba2aa596e6346b5774cb1f 100755 (executable)
@@ -55,7 +55,9 @@ ramips_setup_interfaces()
        asiarf,ap7621-nv1)
                ucidef_add_switch "switch0" "0:wan" "2:lan" "3:lan" "6@eth0"
                ;;
+       asus,rt-ac65p|\
        asus,rt-ac57u|\
+       asus,rt-ac85p|\
        mikrotik,rb750gr3|\
        ubiquiti,edgerouterx|\
        ubiquiti,edgerouterx-sfp|\
@@ -63,8 +65,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
-       asus,rt-ac65p|\
-       asus,rt-ac85p|\
        dlink,dir-860l-b1|\
        elecom,wrc-1167ghbk2-s|\
        elecom,wrc-1900gst|\