ath79: add support for D-Link DAP-2660 A1
[openwrt/staging/hauke.git] / target / linux / ath79 / generic / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index b592da00e3299d3e5102500c7be922e96c955d35..f382e255f1a522cf66d23b68405969881f6f1bce 100644 (file)
@@ -22,6 +22,10 @@ case "$board" in
        dlink,dch-g020-a1)
                mtd_get_mac_text "mp" 0x13 > /sys${DEVPATH}/macaddress
                ;;
+       dlink,dap-2660-a1)
+               [ "$PHYNBR" -eq 1 ] && \
+                       mtd_get_mac_ascii bdcfg "wlanmac" > /sys${DEVPATH}/macaddress
+               ;;
        iodata,wn-ac1600dgr)
                # There is no eeprom data for 5 GHz wlan in "art" partition
                # which would allow to patch the macaddress