mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'bugfix_fix_ble_ANON_ADV_addr_err_v4.3' into 'release/v4.3'
Fixed ANON_ADV address error(backport v4.3) See merge request espressif/esp-idf!13790
This commit is contained in:
@ -2106,9 +2106,12 @@ static void btu_ble_ext_adv_report_evt(UINT8 *p, UINT16 evt_len)
|
|||||||
|
|
||||||
STREAM_TO_UINT8(addr_type, p);
|
STREAM_TO_UINT8(addr_type, p);
|
||||||
STREAM_TO_BDADDR(bda, p);
|
STREAM_TO_BDADDR(bda, p);
|
||||||
|
// If it is an anonymous adv, skip address resolution
|
||||||
|
if(addr_type != 0xFF) {
|
||||||
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
|
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
|
||||||
btm_identity_addr_to_random_pseudo(bda, &addr_type, FALSE);
|
btm_identity_addr_to_random_pseudo(bda, &addr_type, FALSE);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
ext_adv_report.addr_type = addr_type;
|
ext_adv_report.addr_type = addr_type;
|
||||||
memcpy(ext_adv_report.addr, bda, 6);
|
memcpy(ext_adv_report.addr, bda, 6);
|
||||||
STREAM_TO_UINT8(ext_adv_report.primary_phy, p);
|
STREAM_TO_UINT8(ext_adv_report.primary_phy, p);
|
||||||
|
Reference in New Issue
Block a user