bt_linkkey_file_found = false;
}
}
- if (!btif_in_fetch_bonded_ble_device(name.c_str(), add, p_bonded_devices) &&
- !bt_linkkey_file_found) {
+ if (!btif_in_fetch_bonded_ble_device(name, add, p_bonded_devices) && !bt_linkkey_file_found) {
BTIF_TRACE_DEBUG("Remote device:%s, no link key or ble key found",
name.c_str());
}
if (!btif_config_get_int(name, HEARING_AID_PSM, &value)) continue;
uint16_t psm = value;
- if (btif_in_fetch_bonded_device(name.c_str()) != BT_STATUS_SUCCESS) {
+ if (btif_in_fetch_bonded_device(name) != BT_STATUS_SUCCESS) {
RawAddress bd_addr;
RawAddress::FromString(name, bd_addr);
btif_storage_remove_hearing_aid(bd_addr);