ipq40xx: fix ASUS RT-AC58U switch port numbering
authorChristian Lamparter <chunkeey@gmail.com>
Thu, 31 Jan 2019 21:29:32 +0000 (22:29 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Tue, 5 Feb 2019 15:28:12 +0000 (16:28 +0100)
This patch fixes the ASUS' RT-AC58U port order by
unifying the configuration with the NBG6617.

Reported-by: Roberto Socrates (rtac58u-user on the forum)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ipq40xx/base-files/etc/board.d/02_network

index f9dd0f7d07ec7fd2786b64cf1f49a3af1ec18308..bcc5f4cec96e587f848c8cce26fe0ab4bdb80146 100755 (executable)
@@ -16,6 +16,11 @@ ipq40xx_setup_interfaces()
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;
        asus,rt-ac58u|\
+       zyxel,nbg6617)
+               ucidef_set_interfaces_lan_wan "eth0" "eth1"
+               ucidef_add_switch "switch0" \
+                       "0u@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        avm,fritzbox-4040|\
        linksys,ea6350v3)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
@@ -41,11 +46,6 @@ ipq40xx_setup_interfaces()
        openmesh,a62)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
-       zyxel,nbg6617)
-               ucidef_set_interfaces_lan_wan "eth0" "eth1"
-               ucidef_add_switch "switch0" \
-                       "0u@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
-               ;;
        *)
                echo "Unsupported hardware. Network interfaces not initialized"
                ;;