ramips: add support for D-Link DIR-853 A3
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index ee847e947beb90cfdc199a96d7b8daa186b21376..4349a3592db532f872086137209dcab9d4407b98 100644 (file)
@@ -10,6 +10,11 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+       dlink,dir-853-a3)
+               [ "$PHYNBR" = "0" ] && \
+                       macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \
+                               > /sys${DEVPATH}/macaddress
+               ;;
        dlink,dir-853-r1)
                [ "$PHYNBR" = "0" ] && \
                        base_mac=$(mtd_get_mac_binary factory 0x4)