Skip to content

Commit ce771c5

Browse files
zhaynxpkartben
authored andcommitted
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 <[email protected]>
1 parent 327f8df commit ce771c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/hci_core.h

Lines changed: 2 additions & 1 deletion
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)