Skip to content

Commit 7cf5dac

Browse files
committed
Merge branch 'bugfix/provide_user_option_delete_pair' into 'master'
fix(nimble): Added option to stack to handle repeat pairing internally See merge request espressif/esp-idf!38793
2 parents e9366e9 + 3e99f2f commit 7cf5dac

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

components/bt/host/nimble/Kconfig.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,16 @@ config BT_NIMBLE_MAX_CONN_REATTEMPT
559559
help
560560
Defines maximum number of connection reattempts.
561561

562+
config BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION
563+
bool "Enable stack handling of repeat pairing"
564+
default n
565+
depends on BT_NIMBLE_ENABLED
566+
help
567+
Use this option to let stack internally handle the request for repeat pairing.
568+
Enabling this option will delete the pairing of the device and stack will NOT post any event
569+
to application. If this option is disabled, application will get BLE_GAP_EVENT_REPEAT_PAIRING
570+
event.
571+
562572
menuconfig BT_NIMBLE_50_FEATURE_SUPPORT
563573
bool "Enable BLE 5 feature"
564574
depends on BT_NIMBLE_ENABLED && (SOC_BLE_50_SUPPORTED || !BT_CONTROLLER_ENABLED)

components/bt/host/nimble/nimble

components/bt/host/nimble/port/include/esp_nimble_cfg.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,4 +2024,12 @@
20242024
#endif
20252025
#endif
20262026

2027+
#ifndef MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION
2028+
#ifdef CONFIG_BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION
2029+
#define MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION (CONFIG_BT_NIMBLE_HANDLE_REPEAT_PAIRING_DELETION)
2030+
#else
2031+
#define MYNEWT_VAL_BLE_HANDLE_REPEAT_PAIRING_DELETION (0)
2032+
#endif
2033+
#endif
2034+
20272035
#endif

0 commit comments

Comments
 (0)