ramips: add support for D-Link DAP-X1860 A1
[openwrt/staging/dedeckeh.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 69ecaefd27c2b8ba375ed722451a1d0fcf8594ec..161bd942db858d14940aa0d0e965eba4efd5a2cf 100644 (file)
@@ -22,6 +22,13 @@ case "$board" in
                hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
                macaddr_add $hw_mac_addr "$PHYNBR" > /sys${DEVPATH}/macaddress
                ;;
+       dlink,dap-x1860-a1)
+               hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
+               [ "$PHYNBR" = "0" ] && \
+                       macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_add $hw_mac_addr 4 > /sys${DEVPATH}/macaddress
+               ;;
        dlink,dir-853-a3)
                [ "$PHYNBR" = "0" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \