mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
bluedroid: add config for robust caching and RPA timeout
This commit is contained in:
@ -200,6 +200,13 @@ config BT_GATTS_SEND_SERVICE_CHANGE_MODE
|
|||||||
default 1 if BT_GATTS_SEND_SERVICE_CHANGE_MANUAL
|
default 1 if BT_GATTS_SEND_SERVICE_CHANGE_MANUAL
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
config BT_GATTS_ROBUST_CACHING_ENABLED
|
||||||
|
bool "Enable Robust Caching on Server Side"
|
||||||
|
depends on BT_GATTS_ENABLE
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This option enable gatt robust caching feature on server
|
||||||
|
|
||||||
config BT_GATTC_ENABLE
|
config BT_GATTC_ENABLE
|
||||||
bool "Include GATT client module(GATTC)"
|
bool "Include GATT client module(GATTC)"
|
||||||
depends on BT_BLE_ENABLED
|
depends on BT_BLE_ENABLED
|
||||||
@ -1085,6 +1092,15 @@ config BT_BLE_RPA_SUPPORTED
|
|||||||
For BLE other chips, devices support network privacy mode and device privacy mode, users can switch the
|
For BLE other chips, devices support network privacy mode and device privacy mode, users can switch the
|
||||||
two modes according to their own needs. So this option is enabled by default.
|
two modes according to their own needs. So this option is enabled by default.
|
||||||
|
|
||||||
|
config BT_BLE_RPA_TIMEOUT
|
||||||
|
int "timeout of resolvable private address"
|
||||||
|
depends on BT_BLUEDROID_ENABLED
|
||||||
|
range 1 3600
|
||||||
|
default 900
|
||||||
|
help
|
||||||
|
This set RPA timeout of Controller and Host.
|
||||||
|
Default is 900 s (15 minutes). Range is 1 s to 1 hour (3600 s).
|
||||||
|
|
||||||
config BT_BLE_50_FEATURES_SUPPORTED
|
config BT_BLE_50_FEATURES_SUPPORTED
|
||||||
bool "Enable BLE 5.0 features"
|
bool "Enable BLE 5.0 features"
|
||||||
depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
|
depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
|
||||||
|
@ -301,12 +301,24 @@
|
|||||||
#define UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE 0
|
#define UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_GATTS_ROBUST_CACHING_ENABLED
|
||||||
|
#define UC_BT_GATTS_ROBUST_CACHING_ENABLED CONFIG_BT_GATTS_ROBUST_CACHING_ENABLED
|
||||||
|
#else
|
||||||
|
#define UC_BT_GATTS_ROBUST_CACHING_ENABLED 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
#ifdef CONFIG_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
||||||
#define UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN CONFIG_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
#define UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN CONFIG_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
||||||
#else
|
#else
|
||||||
#define UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN FALSE
|
#define UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_BLE_RPA_TIMEOUT
|
||||||
|
#define UC_BT_BLE_RPA_TIMEOUT CONFIG_BT_BLE_RPA_TIMEOUT
|
||||||
|
#else
|
||||||
|
#define UC_BT_BLE_RPA_TIMEOUT 900
|
||||||
|
#endif
|
||||||
|
|
||||||
//SCO VOICE OVER HCI
|
//SCO VOICE OVER HCI
|
||||||
#ifdef CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI
|
#ifdef CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI
|
||||||
#define UC_BT_HFP_AUDIO_DATA_PATH_HCI CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI
|
#define UC_BT_HFP_AUDIO_DATA_PATH_HCI CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI
|
||||||
|
@ -496,10 +496,18 @@
|
|||||||
#define GATTS_SEND_SERVICE_CHANGE_MODE UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE
|
#define GATTS_SEND_SERVICE_CHANGE_MODE UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef UC_BT_GATTS_ROBUST_CACHING_ENABLED
|
||||||
|
#define GATTS_ROBUST_CACHING_ENABLED UC_BT_GATTS_ROBUST_CACHING_ENABLED
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
#ifdef UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
||||||
#define BTM_BLE_ACTIVE_SCAN_REPORT_ADV_SCAN_RSP_INDIVIDUALLY UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
#define BTM_BLE_ACTIVE_SCAN_REPORT_ADV_SCAN_RSP_INDIVIDUALLY UC_BT_BLE_ACT_SCAN_REP_ADV_SCAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef UC_BT_BLE_RPA_TIMEOUT
|
||||||
|
#define BTM_BLE_PRIVATE_ADDR_INT UC_BT_BLE_RPA_TIMEOUT
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This feature is used to eanble interleaved scan*/
|
/* This feature is used to eanble interleaved scan*/
|
||||||
#ifndef BTA_HOST_INTERLEAVE_SEARCH
|
#ifndef BTA_HOST_INTERLEAVE_SEARCH
|
||||||
#define BTA_HOST_INTERLEAVE_SEARCH FALSE
|
#define BTA_HOST_INTERLEAVE_SEARCH FALSE
|
||||||
|
@ -145,8 +145,6 @@ typedef struct {
|
|||||||
|
|
||||||
#define BTM_BLE_ISVALID_PARAM(x, min, max) (((x) >= (min) && (x) <= (max)) || ((x) == BTM_BLE_CONN_PARAM_UNDEF))
|
#define BTM_BLE_ISVALID_PARAM(x, min, max) (((x) >= (min) && (x) <= (max)) || ((x) == BTM_BLE_CONN_PARAM_UNDEF))
|
||||||
|
|
||||||
#define BTM_BLE_PRIVATE_ADDR_INT 900 /* 15 minutes minimum for random address refreshing */
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT16 discoverable_mode;
|
UINT16 discoverable_mode;
|
||||||
UINT16 connectable_mode;
|
UINT16 connectable_mode;
|
||||||
|
Reference in New Issue
Block a user