diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index dde6a89630..b01e8b17bc 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -552,6 +552,16 @@ config BT_NIMBLE_MAX_CONN_REATTEMPT help Defines maximum number of connection reattempts. +config BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION + bool "Enable stack handling of repeat pairing" + default n + depends on BT_NIMBLE_ENABLED + help + Use this option to let stack internally handle the request for repeat pairing. + Enabling this option will delete the pairing of the device and stack will NOT post any event + to application. If this option is disabled, application will get BLE_GAP_EVENT_REPEAT_PAIRING + event. + menuconfig BT_NIMBLE_50_FEATURE_SUPPORT bool "Enable BLE 5 feature" depends on BT_NIMBLE_ENABLED && (SOC_BLE_50_SUPPORTED || !BT_CONTROLLER_ENABLED) diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index b06d5c175a..08e51dab57 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit b06d5c175a42d2249a399da19472bb25763b98fc +Subproject commit 08e51dab57535c87c5880dd79b0f36a89887a4c9 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 420cf27f9e..4e512e6f90 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -2021,4 +2021,12 @@ #endif #endif +#ifndef MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION +#ifdef CONFIG_BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION +#define MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION (CONFIG_BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION) +#else +#define MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION (0) +#endif +#endif + #endif