I have a number of EnGenius EAP1300 APs, and I'm working on getting them supported a bit better in OpenWRT.
The mac addresses for the wifi interfaces are not getting populated correctly at boot.
I have tried adding entries for the EAP1300 /etc/hotplug.d/firmware/11-ath10k-caldata and confirmed by adding some debugging code that the board and both radios are being matched, and the caldata seems to be patched appropriately. However, the mac addresses still come up based on the data in the 0:ART mtd partition.
What should I do next to troubleshoot this? It seems like the driver is loading the data directly from the 0:ART partition, which comes up as read-only, so I can't patch it there.
What you mean dts doesnt controlling mac address? Mac address info was program in to art partition, the dts file was informed where art partition and where off set mac address is.
sometimes manufactures don't bother to set this per-device
Indeed, this one did not. I found the OEM startup script which sets it with iwpriv wifiX setHwaddr XX:XX:XX:XX:XX:XX...
I did figure out how to update the caldata with the correct mac address myself from u-boot via serial. Apparently the vendor doesn't bother to set any of the flash partitions read-only, so I could just modify it before flashing openwrt.
stored somewhere on flash
Yeah, it's in u-boot env as uppercase ascii...
Can also be fetch from u-boot env
So, I'd then mark the partition as u-boot, in the dts?