mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
hci: track random address set for Central-only configuration
This commit is contained in:
parent
520482d5e5
commit
7e8d8b1d61
@ -3957,11 +3957,11 @@ int hci_send_cmd_packet(uint8_t *packet, int size){
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_BLE
|
||||
#ifdef ENABLE_LE_PERIPHERAL
|
||||
if (IS_COMMAND(packet, hci_le_set_random_address)){
|
||||
hci_stack->le_random_address_set = 1;
|
||||
reverse_bd_addr(&packet[3], hci_stack->le_random_address);
|
||||
}
|
||||
#ifdef ENABLE_LE_PERIPHERAL
|
||||
if (IS_COMMAND(packet, hci_le_set_advertise_enable)){
|
||||
hci_stack->le_advertisements_active = packet[3];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user