Skip to content

Commit 1200fd9

Browse files
Andries Kruithofcarlescufi
authored andcommitted
Bluetooth: host: fix conditional compile for broadcaster role
The call to bt_adv_reset_adv_pool is only required in the broadcaster role, and not in the observer role, regardless of the setting of CONFIG_BT_EXT_ADV As the code was this call was also made for the observer. Note: handling of the setting of CONFIG_BT_EXT_ADV is already handled in the bt_adv_reset_adv_pool function Signed-off-by: Andries Kruithof <[email protected]>
1 parent 5f5f794 commit 1200fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,9 +3796,9 @@ int bt_disable(void)
37963796

37973797
bt_monitor_send(BT_MONITOR_CLOSE_INDEX, NULL, 0);
37983798

3799-
#if defined(CONFIG_BT_EXT_ADV) || defined(CONFIG_BT_BROADCASTER)
3799+
#if defined(CONFIG_BT_BROADCASTER)
38003800
bt_adv_reset_adv_pool();
3801-
#endif /* CONFIG_BT_EXT_ADV || CONFIG_BT_BROADCASTER */
3801+
#endif /* CONFIG_BT_BROADCASTER */
38023802

38033803
#if defined(CONFIG_BT_PRIVACY)
38043804
k_work_cancel_delayable(&bt_dev.rpa_update);

0 commit comments

Comments
 (0)