summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-09-09 21:12:49 +0200
committerMathias Kresin <dev@kresin.me>2016-10-15 09:01:45 +0200
commit51bca43f39f0d53ef4b5facd5484347655255b12 (patch)
treea866ee4467fbb63aeb083f034d7f7ed902a65644 /target
parentbbdf2ac305b797545ee0f663b7815c116e276b63 (diff)
downloadmtk-20170518-51bca43f39f0d53ef4b5facd5484347655255b12.zip
mtk-20170518-51bca43f39f0d53ef4b5facd5484347655255b12.tar.gz
mtk-20170518-51bca43f39f0d53ef4b5facd5484347655255b12.tar.bz2
ramips: fix edimax 6200nl switch config
With 3a9752bbd2bc00e407b5dcad21789720f40abf0e and later changes to ramips_set_preinit_iface() the default vlan config applied during preinit was changed. These changes were made without updating the default network config to ensure that vlan interfaces used for lan/wan are still configured. Fix the issue by using the default all LAN portmap and disabling not connected switch ports using portdisable device tree parameter. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ramips/dts/3G-6200NL.dts2
2 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index b884373..0400e58 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -58,7 +58,6 @@ ramips_setup_interfaces()
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"
;;
- 3g-6200nl|\
mlw221|\
mr-102n)
ucidef_set_interface_lan "eth0.2"
diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts
index 5ae43b8..7ef7618 100644
--- a/target/linux/ramips/dts/3G-6200NL.dts
+++ b/target/linux/ramips/dts/3G-6200NL.dts
@@ -81,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portdisable = <0x37>;
};
&wmac {