feat(nimble): Add support for static passkey

This commit is contained in:
Rahul Tank
2025-12-22 21:14:19 +05:30
parent 847840150b
commit c6815bdb9a
7 changed files with 39 additions and 2 deletions
+6 -1
View File
@@ -1250,7 +1250,12 @@ menu "Extra Features"
help
Enable connection subrate change feature
config BT_NIMBLE_STATIC_PASSKEY
bool "Enable support for Static Passkey"
default n
depends on BT_NIMBLE_ENABLED && BT_NIMBLE_SECURITY_ENABLE
help
Enable support for user defined static passkey for SMP
endmenu
menu "NimBLE Mesh"
@@ -2230,4 +2230,12 @@
#endif
#endif
#ifndef MYNEWT_VAL_STATIC_PASSKEY
#ifdef CONFIG_BT_NIMBLE_STATIC_PASSKEY
#define MYNEWT_VAL_STATIC_PASSKEY CONFIG_BT_NIMBLE_STATIC_PASSKEY
#else
#define CONFIG_BT_NIMBLE_STATIC_PASSKEY (0)
#endif
#endif
#endif