From 7e8d8b1d6128f4c7166ee8dcb924608a005e3650 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 26 Aug 2019 15:27:56 +0200 Subject: [PATCH] hci: track random address set for Central-only configuration --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 3819bc4c3..932f55d3e 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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]; }