mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-16 07:20:52 +00:00
hci: fix privacy updates
This commit is contained in:
parent
26bb3782a7
commit
1fa7a4bba7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user