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 ac0ee5b2eb7b201866d8f0e91a1d5d03def1060b..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|\
@@ -80,6 +83,9 @@ ath79_setup_interfaces()
                ;;
        buffalo,wzr-hp-ag300h|\
        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|\
@@ -106,9 +112,7 @@ ath79_setup_interfaces()
        ubnt,routerstation)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
-       comfast,cf-e560ac|\
-       tplink,archer-c60-v1|\
-       tplink,archer-c60-v2)
+       comfast,cf-e560ac)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
@@ -146,7 +150,8 @@ ath79_setup_interfaces()
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
        elecom,wrc-1750ghbk2-i|\
-       elecom,wrc-300ghbk2-i)
+       elecom,wrc-300ghbk2-i|\
+       sitecom,wlr-8100)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
                ;;
@@ -182,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" \
@@ -236,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"
                ;;
@@ -251,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" \
@@ -299,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"
@@ -324,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)"))
@@ -414,7 +431,8 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_binary factory 0x0)
                lan_mac=$(macaddr_setbit_la "$wan_mac")
                ;;
-       sitecom,wlr-7100)
+       sitecom,wlr-7100|\
+       sitecom,wlr-8100)
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
                label_mac=$lan_mac
@@ -439,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|\