Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions subsys/bluetooth/host/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4650,6 +4650,10 @@ int bt_disable(void)
bt_periodic_sync_disable();
#endif /* CONFIG_BT_PER_ADV_SYNC */

if (IS_ENABLED(CONFIG_BT_ISO)) {
bt_iso_reset();
}

#if defined(CONFIG_BT_CONN)
if (IS_ENABLED(CONFIG_BT_SMP)) {
bt_pub_key_hci_disrupted();
Expand Down Expand Up @@ -4704,10 +4708,6 @@ int bt_disable(void)
/* If random address was set up - clear it */
bt_addr_le_copy(&bt_dev.random_addr, BT_ADDR_LE_ANY);

if (IS_ENABLED(CONFIG_BT_ISO)) {
bt_iso_reset();
}

bt_monitor_send(BT_MONITOR_CLOSE_INDEX, NULL, 0);

/* Clear BT_DEV_ENABLE here to prevent early bt_enable() calls, before disable is
Expand Down