[OpenWrt-Devel] Negative offset for checksum in ath79's 10-ath9k-eeprom

Adrian Schmutzler mail at adrianschmutzler.de
Wed Sep 18 10:54:03 EDT 2019


Hi,

that's interesting.

> BTW there's another misuse in ath10k-caldata: All ath10k eeproms have
> checksum fields and should use ath10k_patch_mac_crc, ath10k_patch_mac
> exists only because ath10k firmware doesn't verify it.

So, let me repeat this to check whether I understood it:

From a technical perspective, it would be correct to change all ath10kcal_patch_mac to ath10kcal_patch_mac_crc (on all targets with ath10k exists). This would ensure the correct checksum in the firmware file.

From a practical perspective, it does not matter which function is used, because the checksum is not evaluated. So one could use either ath10kcal_patch_mac or ath10kcal_patch_mac_crc in all cases and would get the same result (in terms of functionality).

?

Best

Adrian


> 
> Regards,
> Chuanhong Guo
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190918/cea6a4fa/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list