Skip to content

Commit

Permalink
Support non-directed address generation offload
Browse files Browse the repository at this point in the history
  • Loading branch information
zxzxwu committed Dec 24, 2023
1 parent 6139ca8 commit 3efc95d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bumble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,16 @@ async def refresh_resolving_list(self) -> None:
if self.address_resolution_offload:
await self.send_command(HCI_LE_Clear_Resolving_List_Command())

# Add an empty entry for non-directed address generation.
await self.send_command(
HCI_LE_Add_Device_To_Resolving_List_Command(
peer_identity_address_type=Address.ANY.address_type,
peer_identity_address=Address.ANY,
peer_irk=bytes(16),
local_irk=self.irk,
)
)

for irk, address in resolving_keys:
await self.send_command(
HCI_LE_Add_Device_To_Resolving_List_Command(
Expand Down

0 comments on commit 3efc95d

Please sign in to comment.