Skip to content

Commit

Permalink
hci: fix privacy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mringwal committed Feb 6, 2024
1 parent 26bb378 commit 1fa7a4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -6351,7 +6351,11 @@ static bool hci_run_general_gap_le(void){
hci_stack->le_advertisements_todo &= ~LE_ADVERTISEMENT_TASKS_PRIVACY_NOTIFY;
// GAP Privacy, notify clients upon upcoming random address change
hci_stack->le_advertisements_state |= LE_ADVERTISEMENT_STATE_PRIVACY_PENDING;
// notify might cause hci_run to get executed, check if we still can send
gap_privacy_clients_notify(hci_stack->le_random_address);
if (!hci_can_send_command_packet_now()) {
return true;
}
}

// - wait until privacy update completed
Expand Down

0 comments on commit 1fa7a4b

Please sign in to comment.