aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-05-10 22:37:03 +0000
committerLuka Perkov <luka@openwrt.org>2016-06-19 19:33:50 +0200
commit638a058c1276325b92902f5d634abc527e8feb34 (patch)
treeec47a720092c4c36f4882ee61f8814c647e40afd /target/linux/ramips/base-files
parentac17992f9c78e9978ef14dd3a5381db94b971459 (diff)
downloadmaster-187ad058-638a058c1276325b92902f5d634abc527e8feb34.tar.gz
master-187ad058-638a058c1276325b92902f5d634abc527e8feb34.tar.bz2
master-187ad058-638a058c1276325b92902f5d634abc527e8feb34.zip
ramips: Don't use a VLAN for the single ethernet port of the A5-V11.
This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time. Add this router to the VLAN-less config that is used by other single-port routers. Also fix MAC address detection code since this router has no WAN port. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49350 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network7
1 files changed, 2 insertions, 5 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 c54d46c2db..36b7b76008 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -35,6 +35,7 @@ ramips_setup_interfaces()
case $board in
3g150b|\
3g300m|\
+ a5-v11|\
all0256n|\
all5002|\
all5003|\
@@ -93,10 +94,6 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;
- a5-v11)
- ucidef_add_switch "switch0" \
- "0:lan" "6t@eth0"
- ;;
ar670w|\
ar725w|\
rt-n15|\
@@ -242,7 +239,6 @@ ramips_setup_macs()
local wan_mac=""
case $board in
- a5-v11|\
bc2|\
broadway|\
d105|\
@@ -286,6 +282,7 @@ ramips_setup_macs()
[ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+ a5-v11|\
ht-tm02)
lan_mac=$(cat /sys/class/net/eth0/address)
;;