[OpenWrt-Devel] [PATCH] ramips: fix switch port numbering for RT-AC65P/RT-AC85P

vargagab at gmail.com vargagab at gmail.com
Mon Dec 9 17:03:58 EST 2019


From: Gabor Varga <vargagab at gmail.com>

The switch LAN port numbers are in reversed order with original config.
With this patch they are fixed.

Signed-off-by: Gabor Varga <vargagab at gmail.com>
---
 .../linux/ramips/mt7621/base-files/etc/board.d/02_network  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 420780a101..42cdb4d57f 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -37,6 +37,11 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6 at eth0"
 		;;
+	asus,rt-ac65p|\
+	asus,rt-ac85p)
+		ucidef_add_switch "switch0" \
+			"1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "0:wan" "6 at eth0"
+		;;
 	alfa-network,quad-e4g|\
 	netgear,r6220|\
 	netgear,r6260|\
@@ -64,8 +69,6 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6 at eth0"
 		;;
-	asus,rt-ac65p|\
-	asus,rt-ac85p|\
 	dlink,dir-860l-b1|\
 	elecom,wrc-1167ghbk2-s|\
 	elecom,wrc-1900gst|\
-- 
2.24.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list