Skip to content

Commit a663a87

Browse files
committed
fix(bt/ble): Update esp32 libbtdm_app.a (3a27e2e)
- Optimize check Access Address when receive connection request PDU
1 parent 74c36f7 commit a663a87

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

components/bt/controller/esp32/Kconfig.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ config BTDM_CTRL_SCAN_BACKOFF_UPPERLIMITMAX
459459

460460
config BTDM_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
461461
bool "Enable enhanced Access Address check in CONNECT_IND"
462+
depends on (BTDM_CTRL_MODE_BLE_ONLY || BTDM_CTRL_MODE_BTDM)
462463
default n
463464
help
464465
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.

components/bt/controller/esp32/bt.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ extern uint32_t _bt_controller_data_end;
252252
extern void config_bt_funcs_reset(void);
253253
extern void config_ble_funcs_reset(void);
254254
extern void config_btdm_funcs_reset(void);
255+
extern void btdm_aa_check_enhance_enable(void);
255256

256257
#ifdef CONFIG_BT_BLUEDROID_ENABLED
257258
extern void bt_stack_enableSecCtrlVsCmd(bool en);
@@ -1849,6 +1850,10 @@ static void patch_apply(void)
18491850
#ifndef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
18501851
config_ble_funcs_reset();
18511852
#endif
1853+
1854+
#if BTDM_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS_ENABLED
1855+
btdm_aa_check_enhance_enable();
1856+
#endif
18521857
}
18531858

18541859
esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)

components/bt/controller/lib_esp32

0 commit comments

Comments
 (0)