fix(bt): Update bt lib for ESP32(dc1cd581)

- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
This commit is contained in:
chenjianhua
2025-03-11 20:53:26 +08:00
committed by Shen Weilong
parent e07233bc81
commit d5664c20ad
4 changed files with 49 additions and 14 deletions

View File

@@ -55,7 +55,7 @@ extern "C" {
*
* @note Please do not modify this value
*/
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20241024
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20250318
/**
* @brief Bluetooth Controller mode
@@ -247,6 +247,7 @@ the advertising packet will be discarded until the memory is restored. */
.pcm_polar = CONFIG_BTDM_CTRL_PCM_POLAR_EFF, \
.pcm_fsyncshp = CONFIG_BTDM_CTRL_PCM_FSYNCSHP_EFF, \
.hli = BTDM_CTRL_HLI, \
.enc_key_sz_min = CONFIG_BTDM_CTRL_BR_EDR_MIN_ENC_KEY_SZ_DFT_EFF, \
.dup_list_refresh_period = SCAN_DUPL_CACHE_REFRESH_PERIOD, \
.ble_scan_backoff = BTDM_CTRL_SCAN_BACKOFF_UPPERLIMITMAX, \
.ble_llcp_disc_flag = BTDM_BLE_LLCP_DISC_FLAG, \
@@ -326,6 +327,9 @@ typedef struct {
- 1 - Mono Mode 1
- 2 - Mono Mode 2 */
bool hli; /*!< True if using high-level (level 4) interrupt (default); false otherwise. Configurable in menuconfig */
uint8_t enc_key_sz_min; /*!< Minimum size of the encryption key
- Range: 7 - 16
- Default: 7 */
uint16_t dup_list_refresh_period; /*!< Scan duplicate filtering list refresh period in seconds. Configurable in menuconfig
- Range: 0 - 100 seconds
- Default: 0 second */