ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index d60406e..26b3752 100755 (executable)
@@ -16,6 +16,7 @@ ath79_setup_interfaces()
        "tplink,tl-mr10u"|\
        "tplink,tl-wr703n"|\
        "ubnt,unifiac-lite"|\
+       "ubnt,unifiac-mesh"|\
        "ubnt,unifi")
                ucidef_set_interface_lan "eth0"
                ;;
@@ -50,6 +51,13 @@ ath79_setup_interfaces()
                ucidef_set_interface_lan "eth0.1"
                ucidef_add_switch "switch0" "0@eth0" "1:lan"
                ;;
+       "tplink,tl-mr3220-v1"|\
+       "tplink,tl-mr3420-v1"|\
+       "tplink,tl-wr841-v7")
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        "tplink,tl-wdr3600"|\
        "tplink,tl-wdr4300")
                ucidef_add_switch "switch0" \
@@ -62,6 +70,13 @@ ath79_setup_interfaces()
                        "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
                ;;
 
+       "tplink,tl-wr741nd-v4"|\
+       "tplink,tl-wr740nd-v4")
+               ucidef_set_interfaces_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
+
        "tplink,tl-wr1043nd-v1")
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"