diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 0df815dd384..1eee5416ef4 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -1365,6 +1365,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 d7063a5c80e..225857c34b3 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit d7063a5c80e342c04df0890867387c6daa2739d3 +Subproject commit 225857c34b3a8f5e89e834a5190398d74c9cfdfe 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 dce3abb43fa..950a2d79fbe 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -2476,5 +2476,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