diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 6a9779d393f..251982bc02c 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -1262,6 +1262,14 @@ menu "Extra Features" instead of DRAM (.iram.text/.text in internal RAM). Suitable for low-speed GAP/GATT operations to reduce RAM usage. + config BT_NIMBLE_GAP_ALLOW_ADV_RESTART + bool "Allow restarting ongoing advertising" + default n + help + If enabled, stop ongoing advertising before starting it again with + new parameters,if any. If disabled, starting advertising while it is already + active returns BLE_HS_EALREADY. + endmenu menu "NimBLE Mesh" diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 44dcef6d6ee..68522b8d815 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 44dcef6d6ee2bc587727cc124b71dab5975ebd6a +Subproject commit 68522b8d81544db6b80b2cb72ab59507ba605a83 diff --git a/components/bt/host/nimble/port/include/esp_nimble_cfg.h b/components/bt/host/nimble/port/include/esp_nimble_cfg.h index 70004a98427..a48b578f707 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -2304,4 +2304,12 @@ #endif #endif +#ifndef MYNEWT_VAL_BLE_GAP_ALLOW_ADV_RESTART +#ifdef CONFIG_BT_NIMBLE_GAP_ALLOW_ADV_RESTART +#define MYNEWT_VAL_BLE_GAP_ALLOW_ADV_RESTART CONFIG_BT_NIMBLE_GAP_ALLOW_ADV_RESTART +#else +#define MYNEWT_VAL_BLE_GAP_ALLOW_ADV_RESTART (0) +#endif +#endif + #endif