8000 nrf52840 IEEE802.15.4 driver drop corrupted packets by tyler-potyondy · Pull Request #3985 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nrf52840 IEEE802.15.4 driver drop corrupted packets #3985

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

Merged
merged 2 commits into from
May 10, 2024

Conversation

tyler-potyondy
Copy link
Contributor

Pull Request Overview

The current nrf52840 15.4 radio driver checks the crc to detect packet corruption and passes corrupted packets up the network stack. This creates issues if the length field was corrupted and can lead to an indexing error.

This PR drops corrupted packets or packets that possess a length field longer than the max 15.4 packet length.

Testing Strategy

N/A

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@github-actions github-actions bot added nrf Change pertains to the nRF5x family of MCUs. WG-Network In the purview of the Network working group. labels May 10, 2024
lschuermann
lschuermann previously approved these changes May 10, 2024
bradjc
bradjc previously approved these changes May 10, 2024
Copy link
Contributor
@bradjc bradjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is important, but, having an argument in the recv client that is always true doesn't make sense.

Also this is only for nrf52.

I'm concerned about the person in the future who isn't going to understand how these interfaces work.

@tyler-potyondy tyler-potyondy dismissed stale reviews from bradjc and lschuermann via d76ff50 May 10, 2024 16:27
Co-authored-by: Brad Campbell <bradjc5@gmail.com>
@bradjc bradjc added this pull request to the merge queue May 10, 2024
Merged via the queue into tock:master with commit d92494d May 10, 2024
12 checks passed
@bradjc bradjc mentioned this pull request May 20, 2024
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf Change pertains to the nRF5x family of MCUs. WG-Network In the purview of the Network working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0