Skip to content

Commit

Permalink
Bluetooth: Host: Fix RPA timer not running
Browse files Browse the repository at this point in the history
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: zephyrproject-rtos#18150

Signed-off-by: Joakim Andersson <[email protected]>
  • Loading branch information
joerchan authored and Steven Wang committed Sep 2, 2019
1 parent e09f97d commit dc1b298
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subsys/bluetooth/host/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit dc1b298

Please sign in to comment.