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>
This commit is contained in:
Ying Zhang 2025-03-25 09:22:01 +01:00 committed by Benjamin Cabé
commit ce771c57e6

View file

@ -85,7 +85,8 @@ enum {
/* Flags which should not be cleared upon HCI_Reset */
#define BT_DEV_PERSISTENT_FLAGS (BIT(BT_DEV_ENABLE) | \
BIT(BT_DEV_PRESET_ID))
BIT(BT_DEV_PRESET_ID) | \
BIT(BT_DEV_DISABLE))
#if defined(CONFIG_BT_EXT_ADV_LEGACY_SUPPORT)
/* Check the feature bit for extended or legacy advertising commands */