aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorWeijie Gao <hackpascal@gmail.com>2017-02-18 22:32:49 +0800
committerJohn Crispin <john@phrozen.org>2017-02-20 09:27:43 +0100
commit3ee793f6011f2364306b843de9d655a02502174d (patch)
treebf14ad0254b1d79a3dee00ac58a87a8305e7af8d /target/linux
parent6e4549138d6514f4fdd1aee20dec5b6ccd25c991 (diff)
downloadupstream-3ee793f6011f2364306b843de9d655a02502174d.tar.gz
upstream-3ee793f6011f2364306b843de9d655a02502174d.tar.bz2
upstream-3ee793f6011f2364306b843de9d655a02502174d.zip
ar71xx: fix vlan settings for some boards
For AR71XX devices, GMAC1 always connects port 0 of the built-in switch, as the CPU port. This patch sets correct vlan for some devices with wrong settings: a) mark port 0 as CPU port, tagged b) reverse port order, marking these ports untagged Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network2
1 files changed, 1 insertions, 1 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 95faea0702..e08d7dd0b0 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -305,7 +305,7 @@ ar71xx_setup_interfaces()
wpn824n)
ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
ucidef_add_switch "switch0" \
- "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4@eth1"
+ "0@eth1" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
;;
dir-825-b1|\
nbg460n_550n_550nh|\