From cbe9446dcf3fc78086b694418af5998d8ec7a28d Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Tue, 12 Mar 2024 09:54:20 -0700 Subject: [PATCH] fix intel driver probe --- bumble/drivers/intel.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bumble/drivers/intel.py b/bumble/drivers/intel.py index 1ef61050..c65d5281 100644 --- a/bumble/drivers/intel.py +++ b/bumble/drivers/intel.py @@ -53,8 +53,12 @@ class Driver(common.Driver): self.host = host @classmethod - async def for_host(cls, host, force=False): # type: ignore - return cls(host) + async def for_host(cls, host): # type: ignore + # Only instantiate this driver if explicitly selected + if host.hci_metadata.get("driver") == "intel": + return cls(host) + + return None async def init_controller(self): self.host.ready = True