summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorQian Zheng <sotux82@gmail.com>2017-01-12 09:39:55 +0800
committerJo-Philipp Wich <jo@mein.io>2017-02-01 17:58:39 +0100
commitb313f0d18921ca9681860ee32787b97440c136f4 (patch)
treed30a90b7f9a52a4bb2b4194ca142c35d00ea9ef5 /target/linux
parent581285c6dc617ddb4fb1b666d2b69ed3261b8b60 (diff)
downloadmtk-20170518-b313f0d18921ca9681860ee32787b97440c136f4.zip
mtk-20170518-b313f0d18921ca9681860ee32787b97440c136f4.tar.gz
mtk-20170518-b313f0d18921ca9681860ee32787b97440c136f4.tar.bz2
ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
Signed-off-by: Qian Zheng <sotux82@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network7
1 files 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@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@eth0"
+ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0"
ucidef_add_switch_attr "switch0" "blinkrate" 2
ucidef_add_switch_port_attr "switch0" 1 led 6