From d94da73a19f93cc3ece55633a07359ba97805ece Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Wed, 14 Aug 2019 16:04:22 +0200 Subject: [PATCH] Bluetooth: Host: Fix RPA timer not running The RPA timer should always be running, even with privacy supported by the controller. In order to select an IRK to generate the private the controller is instructed by provided an identity address. If we want to advertise privately without providing an identity address the host has to set the private address. Fixes: #18150 Signed-off-by: Joakim Andersson --- subsys/bluetooth/host/hci_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index e9d130b651b..483b646f1d5 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -874,8 +874,7 @@ static void hci_disconn_complete(struct net_buf *buf) advertise: if (atomic_test_bit(bt_dev.flags, BT_DEV_KEEP_ADVERTISING) && !atomic_test_bit(bt_dev.flags, BT_DEV_ADVERTISING)) { - if (IS_ENABLED(CONFIG_BT_PRIVACY) && - !BT_FEAT_LE_PRIVACY(bt_dev.le.features)) { + if (IS_ENABLED(CONFIG_BT_PRIVACY)) { le_set_private_addr(bt_dev.adv_id); }