ath79: add support for Ubiquiti LiteBeam AC Gen2
[openwrt/staging/mkresin.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 7090825c2f21ea517a9a55cbee50f387a9a5d06f..938213eadcf40894f5f607932f24afd87374f769 100755 (executable)
@@ -40,6 +40,7 @@ ath79_setup_interfaces()
        ubnt,bullet-m|\
        ubnt,bullet-m-xw|\
        ubnt,lap-120|\
+       ubnt,litebeam-ac-gen2|\
        ubnt,nanobeam-ac|\
        ubnt,nanostation-ac-loco|\
        ubnt,rocket-m|\
@@ -207,6 +208,7 @@ ath79_setup_interfaces()
                ;;
        tplink,archer-a7-v5|\
        tplink,archer-c6-v2|\
+       tplink,archer-c6-v2-us|\
        tplink,archer-c7-v4|\
        tplink,archer-c7-v5|\
        tplink,tl-wdr3600-v1|\
@@ -286,12 +288,7 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_binary "Board data" 2)
                label_mac=$lan_mac
                ;;
-       alfa-network,ap121f|\
-       ubnt,airrouter|\
-       ubnt,bullet-m|\
-       ubnt,nanostation-m|\
-       ubnt,rocket-m|\
-       ubnt,unifi)
+       alfa-network,ap121f)
                label_mac=$(mtd_get_mac_binary art 0x1002)
                ;;
        avm,fritz300e)
@@ -396,6 +393,16 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_text mac 0x18)
                label_mac=$wan_mac
                ;;
+       ubnt,airrouter|\
+       ubnt,bullet-m|\
+       ubnt,nanostation-m|\
+       ubnt,rocket-m|\
+       ubnt,unifi)
+               label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
+               ;;
+       ubnt,litebeam-ac-gen2)
+               label_mac=$(mtd_get_mac_binary art 0x5006)
+               ;;
        ubnt,routerstation|\
        ubnt,routerstation-pro)
                wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n ar7100_esa)