ath79: add support for AVM FRITZ!WLAN Repeater 1750E
[openwrt/staging/stintel.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 168399d5669877943f277080ed5d07455e9e95de..96800d771f11f589928f3206a2e142bc826de721 100755 (executable)
@@ -13,7 +13,9 @@ ath79_setup_interfaces()
        adtran,bsap1840|\
        alfa-network,ap121f|\
        aruba,ap-105|\
+       avm,fritz1750e|\
        avm,fritz300e|\
+       comfast,cf-wr752ac-v1|\
        devolo,dvl1200i|\
        devolo,dvl1750c|\
        devolo,dvl1750i|\
@@ -21,7 +23,6 @@ ath79_setup_interfaces()
        dlink,dir-505|\
        engenius,ecb1750|\
        glinet,gl-ar300m-lite|\
-       mikrotik,routerboard-wap-g-5hact2hnd|\
        netgear,ex6400|\
        netgear,ex7300|\
        ocedo,koala|\
@@ -41,11 +42,13 @@ ath79_setup_interfaces()
        tplink,re450-v1|\
        tplink,re450-v2|\
        tplink,tl-wr902ac-v1|\
-       ubnt,bullet-m|\
+       ubnt,bullet-m-ar7240|\
+       ubnt,bullet-m-ar7241|\
        ubnt,bullet-m-xw|\
        ubnt,lap-120|\
        ubnt,litebeam-ac-gen2|\
        ubnt,nanobeam-ac|\
+       ubnt,nanobridge-m|\
        ubnt,nanostation-ac-loco|\
        ubnt,nanostation-loco-m|\
        ubnt,nanostation-loco-m-xw|\
@@ -82,6 +85,7 @@ ath79_setup_interfaces()
        tplink,archer-c25-v1|\
        tplink,archer-c60-v1|\
        tplink,archer-c60-v2|\
+       tplink,archer-c60-v3|\
        tplink,tl-wdr3500-v1|\
        tplink,tl-wr842n-v1|\
        tplink,tl-wr842n-v3|\
@@ -183,8 +187,6 @@ ath79_setup_interfaces()
                ;;
        nec,wg1200cr|\
        ubnt,nanostation-ac|\
-       ubnt,unifiac-mesh-pro|\
-       ubnt,unifiac-pro|\
        yuncore,a782|\
        yuncore,xd4200)
                ucidef_add_switch "switch0" \
@@ -237,7 +239,8 @@ ath79_setup_interfaces()
        tplink,archer-c7-v5|\
        tplink,tl-wdr3600-v1|\
        tplink,tl-wdr4300-v1|\
-       tplink,tl-wdr4300-v1-il)
+       tplink,tl-wdr4300-v1-il|\
+       tplink,tl-wdr4310-v1)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
                ;;
@@ -252,6 +255,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "1:wan"
                ;;
+       tplink,archer-d7-v1|\
+       tplink,archer-d7b-v1)
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "3:lan:3" "4:lan:2" "5:lan:1" "6@eth0" "2:wan:4" "1:wan:5"
+               ;;
        tplink,tl-mr6400-v1)
                ucidef_set_interfaces_lan_wan "eth0.1 eth1" "usb0"
                ucidef_add_switch "switch0" \
@@ -300,6 +308,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "5:lan" "1:wan"
                ;;
+       ubnt,unifiac-mesh-pro|\
+       ubnt,unifiac-pro)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:1" "3:lan:2"
+               ;;
        zbtlink,zbt-wd323|\
        xiaomi,mi-router-4q)
                ucidef_set_interface_wan "eth1"
@@ -325,6 +338,9 @@ ath79_setup_macs()
        alfa-network,ap121f)
                label_mac=$(mtd_get_mac_binary art 0x1002)
                ;;
+       avm,fritz1750e)
+               label_mac=$(fritz_tffs -n macwlan -i $(find_mtd_part "tffs (1)"))
+               ;;
        avm,fritz300e)
                lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                label_mac=$(fritz_tffs -n macwlan -i $(find_mtd_part "tffs (1)"))
@@ -441,7 +457,9 @@ ath79_setup_macs()
                label_mac=$wan_mac
                ;;
        ubnt,airrouter|\
-       ubnt,bullet-m|\
+       ubnt,bullet-m-ar7240|\
+       ubnt,bullet-m-ar7241|\
+       ubnt,nanobridge-m|\
        ubnt,nanostation-loco-m|\
        ubnt,nanostation-m|\
        ubnt,picostation-m|\