ath79: add support for D-Link DIR-859 A3
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 487467cd598d9b965db5b443a658deff217d072a..4f535f8a648e6c3e51cf6f22f358754355b8a6ec 100644 (file)
@@ -291,6 +291,7 @@ ath79_setup_interfaces()
        dlink,dir-842-c2|\
        dlink,dir-842-c3|\
        dlink,dir-859-a1|\
+       dlink,dir-859-a3|\
        dlink,dir-869-a1|\
        engenius,epg5000|\
        engenius,esr1200|\
@@ -661,6 +662,10 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_text "devdata" 0xc9)
                wan_mac=$(mtd_get_mac_text "devdata" 0x79)
                ;;
+       dlink,dir-859-a3)
+               lan_mac=$(get_mac_label)
+               wan_mac=$(macaddr_add "$lan_mac" 3)
+               ;;
        qihoo,c301|\
        wd,mynet-n600|\
        wd,mynet-n750)