mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
fix(ble): fixed the connect issue when rx error aa on ESP32-H2
(cherry picked from commit 093b65e27c76d2c5c6997d1ba5d8c0ca47e5229f) Co-authored-by: zwl <zhaoweiliang@espressif.com>
This commit is contained in:
parent
8cee3e3f9a
commit
e81b4628b6
@ -690,3 +690,11 @@ config BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF
|
|||||||
default 18 if BT_LE_DFT_TX_POWER_LEVEL_P18
|
default 18 if BT_LE_DFT_TX_POWER_LEVEL_P18
|
||||||
default 20 if BT_LE_DFT_TX_POWER_LEVEL_P20
|
default 20 if BT_LE_DFT_TX_POWER_LEVEL_P20
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
config BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
|
||||||
|
bool "Enable enhanced Access Address check in CONNECT_IND"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
|
||||||
|
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
|
||||||
|
If disabled, only basic checks are applied, improving compatibility.
|
||||||
|
@ -148,6 +148,12 @@ extern "C" {
|
|||||||
|
|
||||||
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
|
#define DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
|
||||||
|
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (CONFIG_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS)
|
||||||
|
#else
|
||||||
|
#define DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
|
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
|
||||||
#define HCI_UART_EN CONFIG_BT_LE_HCI_INTERFACE_USE_UART
|
#define HCI_UART_EN CONFIG_BT_LE_HCI_INTERFACE_USE_UART
|
||||||
#else
|
#else
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 90f1ef76ab9021b123e3037e9df782549f386e30
|
Subproject commit faf7470485f08b1657f2b8ec3ae7c762cff116e6
|
@ -161,7 +161,7 @@ esp_err_t esp_ble_tx_power_set_enhanced(esp_ble_enhanced_power_type_t power_type
|
|||||||
*/
|
*/
|
||||||
esp_power_level_t esp_ble_tx_power_get_enhanced(esp_ble_enhanced_power_type_t power_type, uint16_t handle);
|
esp_power_level_t esp_ble_tx_power_get_enhanced(esp_ble_enhanced_power_type_t power_type, uint16_t handle);
|
||||||
|
|
||||||
#define CONFIG_VERSION 0x20240422
|
#define CONFIG_VERSION 0x20241121
|
||||||
#define CONFIG_MAGIC 0x5A5AA5A5
|
#define CONFIG_MAGIC 0x5A5AA5A5
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -215,6 +215,8 @@ typedef struct {
|
|||||||
uint8_t ignore_wl_for_direct_adv; /*!< Ignore the white list for directed advertising */
|
uint8_t ignore_wl_for_direct_adv; /*!< Ignore the white list for directed advertising */
|
||||||
uint8_t enable_pcl; /*!< Enable power control */
|
uint8_t enable_pcl; /*!< Enable power control */
|
||||||
uint8_t csa2_select; /*!< Select CSA#2*/
|
uint8_t csa2_select; /*!< Select CSA#2*/
|
||||||
|
uint8_t enable_csr; /*!< Enable CSR */
|
||||||
|
uint8_t ble_aa_check; /*!< True if adds a verification step for the Access Address within the CONNECT_IND PDU; false otherwise. Configurable in menuconfig */
|
||||||
uint32_t config_magic; /*!< Configuration magic value */
|
uint32_t config_magic; /*!< Configuration magic value */
|
||||||
} esp_bt_controller_config_t;
|
} esp_bt_controller_config_t;
|
||||||
|
|
||||||
@ -263,6 +265,8 @@ typedef struct {
|
|||||||
.ignore_wl_for_direct_adv = 0, \
|
.ignore_wl_for_direct_adv = 0, \
|
||||||
.enable_pcl = 0, \
|
.enable_pcl = 0, \
|
||||||
.csa2_select = DEFAULT_BT_LE_50_FEATURE_SUPPORT, \
|
.csa2_select = DEFAULT_BT_LE_50_FEATURE_SUPPORT, \
|
||||||
|
.enable_csr = 0, \
|
||||||
|
.ble_aa_check = DEFAULT_BT_LE_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS, \
|
||||||
.config_magic = CONFIG_MAGIC, \
|
.config_magic = CONFIG_MAGIC, \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user