feat(bt/bluedroid): Make the max number of bond device to be configurable

This commit is contained in:
chenjianhua
2023-12-19 11:38:01 +08:00
parent e4aa5667f1
commit bc98ff414f
3 changed files with 16 additions and 6 deletions
@@ -203,6 +203,12 @@
#define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE
#endif
#ifdef CONFIG_BT_SMP_MAX_BONDS
#define UC_BT_SMP_MAX_BONDS CONFIG_BT_SMP_MAX_BONDS
#else
#define UC_BT_SMP_MAX_BONDS 8
#endif
//Device Nane Maximum Length
#ifdef CONFIG_BT_MAX_DEVICE_NAME_LEN
#define UC_MAX_LOC_BD_NAME_LEN CONFIG_BT_MAX_DEVICE_NAME_LEN
@@ -894,13 +894,9 @@
#define BTM_DEFAULT_SCO_MODE 2
#endif
/* The number of security records for peer devices. 100 AS Default*/
/* The number of security records for peer devices. 15 AS Default*/
#ifndef BTM_SEC_MAX_DEVICE_RECORDS
#if SMP_INCLUDED == TRUE
#define BTM_SEC_MAX_DEVICE_RECORDS 15 // 100
#else
#define BTM_SEC_MAX_DEVICE_RECORDS 8
#endif /* SMP_INCLUDED == TRUE */
#define BTM_SEC_MAX_DEVICE_RECORDS UC_BT_SMP_MAX_BONDS
#endif
/* The number of security records for services. 32 AS Default*/