mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32
This commit is contained in:
committed by
Rahul Tank
parent
9e83a31d76
commit
66b301dbcd
@@ -5896,6 +5896,8 @@ ble_gap_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
memcpy(bhc_peer_addr.val, peer_addr->val, BLE_DEV_ADDR_LEN);
|
||||
|
||||
#if MYNEWT_VAL(BLE_HOST_BASED_PRIVACY)
|
||||
if (ble_host_rpa_enabled())
|
||||
{
|
||||
struct ble_hs_resolv_entry *rl = NULL;
|
||||
rl = ble_hs_resolv_list_find(bhc_peer_addr.val);
|
||||
|
||||
@@ -5903,6 +5905,7 @@ ble_gap_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
memcpy(bhc_peer_addr.val, rl->rl_peer_rpa, BLE_DEV_ADDR_LEN);
|
||||
bhc_peer_addr.type = rl->rl_addr_type;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
memset(&bhc_peer_addr, 0, sizeof bhc_peer_addr);
|
||||
|
||||
Reference in New Issue
Block a user