[source] ar71xx: fix tl-wr841n-v7 switch port mapping

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 26 02:38:40 PST 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/810eb8d0ea6e9abe9ec0dbe41f421e85a6795c95

commit 810eb8d0ea6e9abe9ec0dbe41f421e85a6795c95
Author: Qian Zheng <sotux82 at gmail.com>
AuthorDate: Thu Jan 12 09:26:20 2017 +0800

    ar71xx: fix tl-wr841n-v7 switch port mapping
    
    Signed-off-by: Qian Zheng <sotux82 at gmail.com>
    [Jo-Philipp Wich: fix alphabetical order]
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 target/linux/ar71xx/base-files/etc/board.d/02_network | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 09986c0..f30088f 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -45,7 +45,6 @@ ar71xx_setup_interfaces()
 	tl-wr741nd|\
 	tl-wr741nd-v4|\
 	tl-wr841n-v11|\
-	tl-wr841n-v7|\
 	tl-wr841n-v9|\
 	tl-wr842n-v3|\
 	whr-g301n|\
@@ -399,6 +398,11 @@ ar71xx_setup_interfaces()
 		ucidef_set_interface_raw "eth" "eth0"
 		ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
 		;;
+	tl-wr841n-v7)
+		ucidef_set_interfaces_lan_wan "eth0" "eth1"
+		ucidef_add_switch "switch0" \
+			"0 at eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
+		;;
 	tl-wr842n-v2)
 		ucidef_set_interfaces_lan_wan "eth1" "eth0"
 		ucidef_add_switch "switch0" \



More information about the lede-commits mailing list