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

driver: Implement driver for Intel Ax210 #365

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bumble/drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import platform
from typing import Dict, Iterable, Optional, Type, TYPE_CHECKING

from . import rtk
from . import rtk, intel
from .common import Driver

if TYPE_CHECKING:
Expand All @@ -45,7 +45,7 @@ async def get_driver_for_host(host: Host) -> Optional[Driver]:
found.
If a "driver" HCI metadata entry is present, only that driver class will be probed.
"""
driver_classes: Dict[str, Type[Driver]] = {"rtk": rtk.Driver}
driver_classes: Dict[str, Type[Driver]] = {"rtk": rtk.Driver, "intel": intel.Driver}
probe_list: Iterable[str]
if driver_name := host.hci_metadata.get("driver"):
# Only probe a single driver
Expand All @@ -63,6 +63,10 @@ async def get_driver_for_host(host: Host) -> Optional[Driver]:
else:
logger.debug(f"Skipping unknown driver class: {driver_name}")

if driver := await intel.Driver.for_host(host):
logger.debug("Instantiated Intel driver")
return driver

return None


Expand Down
Loading
Loading