Does anyone know why the ath10kcal_patch_mac function in target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata does not have an offset parameter?
The function (below) writes a patched MAC address at an offset of 6 bytes in the firmware.bin file. But the offset for the MAC address in my ath10k router's firmware-5.bin is 280 bytes. I notice there is an offset parameter in the ath9k_patch_fw_mac() routine but not for the ath10k - so I assume this is being used in a different way for these routers.
[ -z "$mac" ] && return macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc oflag=seek_bytes bs=6 seek=6 count=1