-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/cc2538: Enable CRC checking of received packets #5654
Conversation
@aeneby I think you should be using |
You're right -
Hmm, this might be a bad idea, since the length byte is not guaranteed to be correct (in case of interference, for example). We actually do a check for this condition in the |
I guess we could change the order of - or even combine - the checks, but the end result will be the the same. |
Your are right that the length byte may not be the same as transmitted in case of interference. But it will always indicate the length of the received frame (and hence the offset of the RSSI and LQI bytes). Suppose that by the time |
I see what you mean. I guess the only case we have to watch for is when
True, this is something we need to consider. We shouldn't really be flushing the FIFO on failed CRC, but rather checking if there's another packet arrived and advancing the FIFO pointer to it or something. But perhaps that's outside the scope of this PR - there are likely other places we need to do this too. |
Thanks for making the tweaks @aeneby. Looks good on |
didn't Murdock look at this one? |
@kYc0o sorry, my bad. |
Cheers! |
Uhmm... well, let's put more attention for the next ones and to explicitly say "ACK" when the PR is ready to be merged. |
Drop packets which have invalid CRC.