ramips: Add support for D-Link DIR-3040 A1
[openwrt/staging/stintel.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 962e1f7019776d7760806c6615d05be77ef3c80a..0ec46bb0eab8b76fb59cb86a9cd9f8f30f048f72 100644 (file)
@@ -60,6 +60,11 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_add $hw_mac_addr 4 > /sys${DEVPATH}/macaddress
                ;;
+       dlink,dir-3040-a1)
+               lan_mac_addr="$(mtd_get_mac_binary factory 0xe000)"
+               [ "$PHYNBR" = "0" ] && \
+                       macaddr_add $lan_mac_addr 2 > /sys${DEVPATH}/macaddress
+               ;;
        dlink,dir-853-a3)
                [ "$PHYNBR" = "0" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \