support more commands in controller.py

This commit is contained in:
Gilles Boccon-Gibod
2023-01-06 21:51:47 -08:00
parent 17db5dd4ff
commit 7e854efbbb
2 changed files with 16 additions and 11 deletions

View File

@@ -2393,11 +2393,10 @@ class Device(CompositeEventEmitter):
# If supported, read which PHY we're connected with before
# notifying listeners of the new connection.
if self.host.supports_command(HCI_LE_READ_PHY_COMMAND):
async def read_phy():
result = await self.send_command(
HCI_LE_Read_PHY_Command(
connection_handle=connection_handle
),
HCI_LE_Read_PHY_Command(connection_handle=connection_handle),
check_result=True,
)
connection.phy = ConnectionPHY(