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

feat: add support for recovering failed adapters after reboot #40

Merged
merged 7 commits into from
Apr 17, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Apr 17, 2024

Currently we need to be able to map the mac address to the hci interface to be able to recover an adapter. If the user hits the kernel/driver bug where the adapter fails to init, the mac address will be 00:00:00:00:00:00 so recovery never works in this case. We will now try to recover all adapters that have a mac of 00:00:00:00:00:00 when finding the adapter if the adapter cannot be found.

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 65.21%. Comparing base (bba8b51) to head (a069217).
Report is 3 commits behind head on main.

Files Patch % Lines
src/habluetooth/manager.py 86.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
+ Coverage   61.96%   65.21%   +3.24%     
==========================================
  Files          12       12              
  Lines        1036     1055      +19     
  Branches      176      181       +5     
==========================================
+ Hits          642      688      +46     
+ Misses        367      339      -28     
- Partials       27       28       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 04948c3 into main Apr 17, 2024
16 of 17 checks passed
@bdraco bdraco deleted the re_init_failed_adapters branch April 17, 2024 23:13
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.

1 participant