hci: track random address set for Central-only configuration

This commit is contained in:
Matthias Ringwald 2019-08-26 15:27:56 +02:00
parent 520482d5e5
commit 7e8d8b1d61

View File

@ -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];
}