[source] ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 1 08:58:48 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/b313f0d18921ca9681860ee32787b97440c136f4

commit b313f0d18921ca9681860ee32787b97440c136f4
Author: Qian Zheng <sotux82 at gmail.com>
AuthorDate: Thu Jan 12 09:39:55 2017 +0800

    ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
    
    Signed-off-by: Qian Zheng <sotux82 at gmail.com>
---
 target/linux/ar71xx/base-files/etc/board.d/02_network | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index b998daa..001994c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -416,10 +416,13 @@ ar71xx_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"0 at eth0" "2:lan" "3:wan"
 		;;
-	wndr3700)
+	wndr3700|\
+	wndr3700v2|\
+	wndr3800|\
+	wndr3800ch)
 		ucidef_set_interfaces_lan_wan "eth0" "eth1"
 		ucidef_add_switch "switch0" \
-			"0:lan" "1:lan" "2:lan" "3:lan" "5 at eth0"
+			"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5 at eth0"
 
 		ucidef_add_switch_attr "switch0" "blinkrate" 2
 		ucidef_add_switch_port_attr "switch0" 1 led 6



More information about the lede-commits mailing list