ath79: add support for WD My Net Wi-Fi Range Extender
[openwrt/staging/stintel.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index 14f6c59822f3ff267269cade13126961c5dd1b2d..3a3c5974bd04ebb5dbb502a878e371f0c6464867 100755 (executable)
@@ -23,7 +23,8 @@ ath79_setup_interfaces()
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-mesh|\
-       ubnt,unifi)
+       ubnt,unifi|\
+       wd,mynet-wifi-rangeextender)
                ucidef_set_interface_lan "eth0"
                ;;
        buffalo,wzr-hp-g450h)
@@ -207,6 +208,9 @@ ath79_setup_macs()
                wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n ar7100_esa)
                lan_mac=$(macaddr_add "$wan_mac" 1)
                ;;
+       wd,mynet-wifi-rangeextender)
+               lan_mac=$(nvram get et0macaddr)
+               ;;
        esac
 
        [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac