[source] lantiq: fix WBMR-300HPD switch port assignment

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 28 12:26:49 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=eb28a0cde631c96388ada781fb02933ecdb0e69d

commit eb28a0cde631c96388ada781fb02933ecdb0e69d
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Jul 28 20:52:55 2016 +0200

    lantiq: fix WBMR-300HPD switch port assignment
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index c271e62..d6f6601 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -149,15 +149,16 @@ VGV7510KW22)
 	ucidef_add_switch "switch0" \
 		"2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "6t at eth0"
 	;;
-*)
-	ucidef_set_interface_lan 'eth0'
-	;;
 
 WBMR300)
 	lan_mac=$(mtd_get_mac_ascii ubootconfig ethaddr)
 	wan_mac="$lan_mac"
 	ucidef_add_switch "switch0" \
-		"2:lan:1" "3:lan:2" "5:lan:3" "4:wan:1" "6t at eth0"
+		"2:lan:2" "3:lan:3" "5:lan:4" "4:wan:1" "6t at eth0"
+	;;
+
+*)
+	ucidef_set_interface_lan 'eth0'
 	;;
 
 esac



More information about the lede-commits mailing list