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

don't user a parser for a usb source #530

Merged
merged 1 commit into from
Aug 12, 2024
Merged

don't user a parser for a usb source #530

merged 1 commit into from
Aug 12, 2024

Conversation

barbibulle
Copy link
Collaborator

The USB HCI source doesn't need a parser, since the USB transfers always contain a single HCI packet.
Not using a parser makes the implementation more robust against poorly behaved USB dongles that sometimes return transfer data with bogus/malformed data: with a parser, the parser may be stuck in a bad state. Without a parser we can just throw away malformed USB transfers and continue (the next transfers may contain valid data)

@barbibulle barbibulle requested a review from zxzxwu August 12, 2024 04:00
@barbibulle barbibulle merged commit c0b17d9 into main Aug 12, 2024
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants