Merge branch 'feat/add_support_multi_scan' into 'master'

fix(nimble): Added change to stop adv before starting new adv

Closes BLERP-2984

See merge request espressif/esp-idf!51125
This commit is contained in:
Rahul Tank
2026-08-12 11:25:10 +05:30
3 changed files with 16 additions and 1 deletions

View File

@@ -1365,6 +1365,14 @@ menu "Extra Features"
instead of DRAM (.iram.text/.text in internal RAM). Suitable for low-speed instead of DRAM (.iram.text/.text in internal RAM). Suitable for low-speed
GAP/GATT operations to reduce RAM usage. 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 endmenu
menu "NimBLE Mesh" menu "NimBLE Mesh"

View File

@@ -2476,5 +2476,12 @@
#endif #endif
#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 #endif