Skip to content

Commit 63f7d7e

Browse files
committed
Merge branch 'bugfix/fix_ble_aa_check_v2' into 'master'
Optimize check Access Address when receive connection request PDU Closes BLERP-2036 See merge request espressif/esp-idf!40162
2 parents 3f9a895 + a663a87 commit 63f7d7e

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);
@@ -1851,6 +1852,10 @@ static void patch_apply(void)
18511852
#ifndef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
18521853
config_ble_funcs_reset();
18531854
#endif
1855+
1856+
#if BTDM_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS_ENABLED
1857+
btdm_aa_check_enhance_enable();
1858+
#endif
18541859
}
18551860

18561861
esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)

components/bt/controller/lib_esp32

0 commit comments

Comments
 (0)