mediatek: add support for ZyXEL NWA50AX Pro
[openwrt/staging/hauke.git] / target / linux / mediatek / filogic / base-files / etc / hotplug.d / ieee80211 / 11_fix_wifi_mac
index ab23b100444ce490aea722759d1f06db43f7fecc..3620e3a6fbc032fc5d442bba8a55fe5af750e094 100644 (file)
@@ -61,4 +61,9 @@ case "$board" in
                addr=$(mtd_get_mac_binary "Factory" 0x4)
                [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
                ;;
+       zyxel,nwa50ax-pro)
+               hw_mac_addr="$(mtd_get_mac_binary mrd 0x1fff8)"
+               [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
+               ;;
 esac