Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f874f646 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Change default adapter based on system state

The default adapter on the system is the lowest numbered, present
adapter. This will usually be hci0 which is the first Bluetooth adapter
that starts up with the system. However, that adapter can sometimes
rename itself as hci1 if the adapter is lost and probed very quickly
(before userspace can close the socket).

This change gets around this by setting the default adapter to always be
either the a) desired hci adapter or b) the lowest numbered available
adapter.

This is still not a good solution for multiple adapters (which should
actually use full hardware path rather than hci index) but is useable
in the interim.

Bug: 244457509
Tag: #floss
Test: Disable internal BT and plug in external BT

Change-Id: Id4c01eafc23b0dc8f57c6ff970b98473c81c5ca2
parent b04e6a92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment