-
Notifications
You must be signed in to change notification settings - Fork 178
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
fix(app): tighten filter logic that identifies Realtek U2E adapters #5707
Conversation
Codecov Report
@@ Coverage Diff @@
## release_3.18.0 #5707 +/- ##
=================================================
Coverage ? 78.61%
=================================================
Files ? 182
Lines ? 17974
Branches ? 0
=================================================
Hits ? 14131
Misses ? 3843
Partials ? 0
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me and i'll test. As a sidenote, I think the only really long-term-viable way we can do this without continual little weird updates is to use [a library with more usb stack introspection capability which may be this one but may not be since I just found it recently and you probably saw it already, so that we can filter on
- manufacturer is realtek, by vid
- device supports a the correct usb device class which I think is CDC/ECM per usb spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested - working as intended
overview
As was pointed out in the PR that added USB device collection to the app, our filter for determining if a given device was a Realtek U2E adapter consisted of asking "Does this device report that its manufacturer is the string 'Realtek'?" This proved to be insufficient pretty quickly, because Realtek makes devices that are not U2E adapters.
This PR tightens the filter to check:
RTL8150
0x8150
, actual:0x8050
)changelog
review requests
Run the smoke test from #5656, especially if you, like @nusrat813, have Realtek devices on your machine that are not U2E adapters.
risk assessment
Low! Change is well contained and well (unit) tested
I've also analyzed the limited analytics data we have collected since the 3.17.1 release, and I've found that: