ath79: add support for Ubiquiti UniFi AC-Pro
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index d978c3441e3b178c10dbda511a8eb0e864103716..3282d8ad901fa7adbbc13a5450947fed623efc43 100755 (executable)
@@ -15,7 +15,7 @@ ath79_setup_interfaces()
        "avm,fritz300e"|\
        "tplink,tl-mr10u"|\
        "tplink,tl-wr703n"|\
-       "ubnt,ubnt-unifiac-lite"|\
+       "ubnt,unifiac-lite"|\
        "ubnt,unifi")
                ucidef_set_interface_lan "eth0"
                ;;
@@ -40,6 +40,12 @@ ath79_setup_interfaces()
                "0@eth1" "1:lan" "2:lan" "3:lan:3" "4:lan:4"
                ;;
 
+       "tplink,tl-archer-c7-v2")
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0.2"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
+               ;;
+
        "tplink,tl-mr3020-v1")
                ucidef_set_interface_lan "eth0.1"
                ucidef_add_switch "switch0" "0@eth0" "1:lan"
@@ -92,6 +98,10 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:lan:1" "5:lan:2" "4:wan"
                ;;
+       "ubnt,unifiac-pro")
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan" "3:wan"
+               ;;
        *)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;