Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 88fd228

Browse files
committedMar 25, 2025·
bluetooth: host: fix hang issue caused by consecutive bt disable commands
- add BT_DEV_DISABLE flag to BT_DEV_PERSISTENT_FLAGS to protect consecutive bt disable from running Signed-off-by: Ying Zhang <ying.zhang_2@nxp.com>
1 parent 9bce73a commit 88fd228

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎subsys/bluetooth/host/hci_core.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ enum {
8585

8686
/* Flags which should not be cleared upon HCI_Reset */
8787
#define BT_DEV_PERSISTENT_FLAGS (BIT(BT_DEV_ENABLE) | \
88-
BIT(BT_DEV_PRESET_ID))
88+
BIT(BT_DEV_PRESET_ID) | \
89+
BIT(BT_DEV_DISABLE))
8990

9091
#if defined(CONFIG_BT_EXT_ADV_LEGACY_SUPPORT)
9192
/* Check the feature bit for extended or legacy advertising commands */

0 commit comments

Comments
 (0)
Please sign in to comment.