fix(nimble): Added option to stack to handle repeat pairing internally

This commit is contained in:
Rahul Tank
2025-04-28 13:04:23 +05:30
parent 386a3905b5
commit 3e99f2f26c
3 changed files with 19 additions and 1 deletions

View File

@ -559,6 +559,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)

View File

@ -2024,4 +2024,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