Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make firmware header optional #6

Open
sbertrand-witekio opened this issue Oct 11, 2022 · 0 comments
Open

Make firmware header optional #6

sbertrand-witekio opened this issue Oct 11, 2022 · 0 comments
Labels
Driver Update Driver update to match firmware features enhancement New feature or request

Comments

@sbertrand-witekio
Copy link
Collaborator

With new firmware 429 and newer, header could be optional since CRC and pll_init_size are not used.

stehla@2e60df7#diff-2bb8fb9bfa2989b7871467dfd31e24f8728c7b5456b8140327ed45ed6a90286eR3084

	if (fw_hdr->magic != FW_MAGIC) {
		fw_data = (u8 *)fw_hdr;
		fw_size = ap1302->fw->size;
	} else {
		fw_data = (u8 *)&fw_hdr[1];
		fw_size = ap1302->fw->size - sizeof(*fw_hdr);
	}
@sbertrand-witekio sbertrand-witekio added enhancement New feature or request Driver Update Driver update to match firmware features labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Driver Update Driver update to match firmware features enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant