ramips: add support for TP-Link TL-WR840N v5
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 9284b1812fb5b2251875ff8df54db98743cd8ba6..62b41233c40dffdb1ac143231d31e147b222c836 100755 (executable)
@@ -124,7 +124,7 @@ ramips_setup_interfaces()
                ;;
        mir3g)
                ucidef_add_switch "switch0" \
-                       "1:wan" "2:lan:2" "3:lan:1" "6@eth0"
+                       "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
                ;;
        psg1218b)
                ucidef_add_switch "switch0" \
@@ -171,6 +171,7 @@ ramips_setup_interfaces()
        rb750gr3|\
        rt-n14u|\
        tl-wr840n-v4|\
+       tl-wr840n-v5|\
        tl-wr841n-v13|\
        ubnt-erx|\
        ubnt-erx-sfp|\
@@ -184,6 +185,7 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
+       c20|\
        c50)
                ucidef_add_switch "switch0" \
                        "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0"
@@ -236,6 +238,7 @@ ramips_setup_interfaces()
        mzk-ex750np|\
        na930|\
        pbr-d1|\
+       u25awf-h1|\
        wli-tx4-ag300n|\
        wmdr-143n|\
        wmr-300|\
@@ -323,7 +326,8 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "3:lan" "4:wan" "6@eth0"
                ;;
-       wcr-150gn)
+       wcr-150gn|\
+       we1026-5g-16m)
                ucidef_add_switch "switch0" \
                        "0:lan" "6t@eth0"
                ;;
@@ -427,7 +431,7 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
        mir3g)
-               lan_mac=$(mtd_get_mac_binary Factory e006)
+               lan_mac=$(mtd_get_mac_binary Factory 0xe006)
                ;;
        miwifi-mini)
                wan_mac=$(cat /sys/class/net/eth0/address)