mirror of
https://github.com/espressif/esp-idf
synced 2025-03-31 11:50:11 -04:00
feat(bt/bluedroid): Make the max number of bond device to be configurable
This commit is contained in:
parent
7cbee80fb9
commit
ad7a2831b2
@ -1088,6 +1088,14 @@ config BT_SMP_ENABLE
|
|||||||
depends on BT_BLUEDROID_ENABLED
|
depends on BT_BLUEDROID_ENABLED
|
||||||
default BT_CLASSIC_ENABLED || BT_BLE_SMP_ENABLE
|
default BT_CLASSIC_ENABLED || BT_BLE_SMP_ENABLE
|
||||||
|
|
||||||
|
config BT_SMP_MAX_BONDS
|
||||||
|
int "BT/BLE maximum bond device count"
|
||||||
|
depends on BT_SMP_ENABLE
|
||||||
|
range 1 32
|
||||||
|
default 15
|
||||||
|
help
|
||||||
|
The number of security records for peer devices.
|
||||||
|
|
||||||
config BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
config BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
||||||
bool "Report adv data and scan response individually when BLE active scan"
|
bool "Report adv data and scan response individually when BLE active scan"
|
||||||
depends on BT_BLUEDROID_ENABLED && BT_BLE_ENABLED
|
depends on BT_BLUEDROID_ENABLED && BT_BLE_ENABLED
|
||||||
|
@ -210,6 +210,12 @@
|
|||||||
#define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE
|
#define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE
|
||||||
#endif
|
#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
|
//Device Nane Maximum Length
|
||||||
#ifdef CONFIG_BT_MAX_DEVICE_NAME_LEN
|
#ifdef CONFIG_BT_MAX_DEVICE_NAME_LEN
|
||||||
#define UC_MAX_LOC_BD_NAME_LEN CONFIG_BT_MAX_DEVICE_NAME_LEN
|
#define UC_MAX_LOC_BD_NAME_LEN CONFIG_BT_MAX_DEVICE_NAME_LEN
|
||||||
|
@ -886,13 +886,9 @@
|
|||||||
#define BTM_DEFAULT_SCO_MODE 2
|
#define BTM_DEFAULT_SCO_MODE 2
|
||||||
#endif
|
#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
|
#ifndef BTM_SEC_MAX_DEVICE_RECORDS
|
||||||
#if SMP_INCLUDED == TRUE
|
#define BTM_SEC_MAX_DEVICE_RECORDS UC_BT_SMP_MAX_BONDS
|
||||||
#define BTM_SEC_MAX_DEVICE_RECORDS 15 // 100
|
|
||||||
#else
|
|
||||||
#define BTM_SEC_MAX_DEVICE_RECORDS 8
|
|
||||||
#endif /* SMP_INCLUDED == TRUE */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The number of security records for services. 32 AS Default*/
|
/* The number of security records for services. 32 AS Default*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user