@@ -37,14 +37,9 @@ ramips_setup_interfaces()
ucidef_set_interface_loopback
case $board in
- a5-v11)
- ucidef_set_interface_lan "eth0.1"
- ucidef_add_switch "switch0" "1" "1"
- ucidef_add_switch_vlan "switch0" "1" "0 6t"
- ;;
-
3g150b | \
3g300m | \
+ a5-v11 | \
linkits7688 | \
linkits7688d | \
microwrt | \
@@ -57,6 +52,7 @@ ramips_setup_interfaces()
dcs-930| \
dcs-930l-b1| \
ht-tm02| \
+ m2m| \
ncs601w | \
wnce2001)
ucidef_add_switch "switch0" "1" "0"
@@ -72,11 +68,6 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0.1"
;;
- m2m)
- ucidef_add_switch "switch0" "4"
- ucidef_set_interface_lan "eth0"
- ;;
-
wizard8800 | \
wl-330n | \
wmr300)
@@ -315,7 +306,6 @@ ramips_setup_macs()
lan_mac=$(macaddr_add "$lan_mac" -2)
;;
- a5-v11 |\
bc2 |\
broadway |\
d105 |\
@@ -336,6 +326,7 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+ a5-v11|\
ht-tm02)
lan_mac=$(cat /sys/class/net/eth0/address)
;;
The A5-V11 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. Also merge duplicate configuration for the "m2m". Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> ---