ar71xx: fix switch port numbering on RB750r2 and RB750UPr2
authorJoão Chaínho <joaochainho@gmail.com>
Thu, 31 Aug 2017 15:45:39 +0000 (16:45 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 15:29:22 +0000 (16:29 +0100)
This patch fixes the switch port numbering on Mikrotik RB750r2 (hEX lite) and RB750UPr2 (hEX PoE lite).
Tested on a RB750UPr2. Maybe this patch is applicable to other devices (e.g. RB951Ui-2nD, RB952Ui-5ac2nD) but I have no way to test them.

Signed-off-by: João Chaínho <joaochainho@gmail.com>
(cherry picked from commit 61027e343025b5f47e7e79db71576e6bd5e97c1d)

target/linux/ar71xx/base-files/etc/board.d/02_network

index cb707f6169f48a9390b622cb26e8fab8de94e4bb..6d8a5c3d0a86a627663dee6e2905e03d5dec99fb 100755 (executable)
@@ -142,6 +142,12 @@ ar71xx_setup_interfaces()
        wrtnode2q)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
+       rb-750-r2|\
+       rb-750up-r2)
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        all0258n|\
        all0315n|\
        dlan-hotspot|\