ipq806x: add support for NEC Aterm WG2600HP
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 7e31c3856112fb98cdccd1493c81ba52871840d2..afa425f07540a47a2b6b52b8e4e86616d35423cf 100644 (file)
@@ -15,6 +15,9 @@ case "$board" in
        linksys,ea8500)
                echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
                ;;
+       nec,wg2600hp)
+               echo $(macaddr_add $(mtd_get_mac_binary PRODUCTDATA 12) $((1 - $PHYNBR)) ) > /sys${DEVPATH}/macaddress
+               ;;
        netgear,d7800 |\
        netgear,r7500v2 |\
        netgear,r7800)