mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
fix intel driver probe
This commit is contained in:
@@ -53,8 +53,12 @@ class Driver(common.Driver):
|
|||||||
self.host = host
|
self.host = host
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def for_host(cls, host, force=False): # type: ignore
|
async def for_host(cls, host): # type: ignore
|
||||||
return cls(host)
|
# Only instantiate this driver if explicitly selected
|
||||||
|
if host.hci_metadata.get("driver") == "intel":
|
||||||
|
return cls(host)
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
async def init_controller(self):
|
async def init_controller(self):
|
||||||
self.host.ready = True
|
self.host.ready = True
|
||||||
|
|||||||
Reference in New Issue
Block a user