}
bool acl_refresh_remote_address(const tBTM_SEC_DEV_REC* p_sec_rec,
- const RawAddress& bda, tBT_TRANSPORT transport,
- uint8_t rra_type, const RawAddress& rpa) {
- tACL_CONN* p_acl = internal_.btm_bda_to_acl(bda, transport);
+ const RawAddress& bda, uint8_t rra_type,
+ const RawAddress& rpa) {
+ tACL_CONN* p_acl = internal_.btm_bda_to_acl(bda, BT_TRANSPORT_LE);
if (p_acl == nullptr) {
+ LOG_WARN("%s Unable to refresh remote address", __func__);
return false;
}
void btm_ble_refresh_peer_resolvable_private_addr(const RawAddress& pseudo_bda,
const RawAddress& rpa,
uint8_t rra_type) {
- /* update security record here, in adv event or connection complete process */
tBTM_SEC_DEV_REC* p_sec_rec = btm_find_dev(pseudo_bda);
if (p_sec_rec != NULL) {
p_sec_rec->ble.cur_rand_addr = rpa;
p_sec_rec->ble.active_addr_type);
/* connection refresh remote address */
- if (!acl_refresh_remote_address(p_sec_rec, p_sec_rec->bd_addr,
- BT_TRANSPORT_LE, rra_type, rpa)) {
+ if (!acl_refresh_remote_address(p_sec_rec, p_sec_rec->bd_addr, rra_type,
+ rpa)) {
// Try looking up the pseudo random address
if (!acl_refresh_remote_address(p_sec_rec, p_sec_rec->ble.pseudo_addr,
- BT_TRANSPORT_LE, rra_type, rpa)) {
- BTM_TRACE_ERROR("%s Unknown device to refresh remote device", __func__);
+ rra_type, rpa)) {
+ LOG_ERROR("%s Unknown device to refresh remote device", __func__);
}
}
}
bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x);
bool acl_refresh_remote_address(const tBTM_SEC_DEV_REC* p_dev_rec,
- const RawAddress& remote_bda,
- tBT_TRANSPORT transport, uint8_t rra_type,
+ const RawAddress& remote_bda, uint8_t rra_type,
const RawAddress& rpa);
void btm_establish_continue_from_address(const RawAddress& remote_bda,