ath79: add support for Sitecom WLR-7100
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index fe74bddbf1c988ad92700a427eb4ece7e7e6cf2f..8e746d3970ae67abf6ebf7ad478a3eabfa2893ff 100755 (executable)
@@ -173,6 +173,7 @@ ath79_setup_interfaces()
        iodata,wn-ac1600dgr2|\
        iodata,wn-ag300dgr|\
        pcs,cr5000|\
+       sitecom,wlr-7100|\
        wd,mynet-n750)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
@@ -409,6 +410,11 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_binary factory 0x0)
                lan_mac=$(macaddr_setbit_la "$wan_mac")
                ;;
+       sitecom,wlr-7100)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+               label_mac=$lan_mac
+               ;;
        tplink,archer-a7-v5|\
        tplink,archer-c7-v4|\
        tplink,archer-c7-v5|\