diff --git a/src/device.c b/src/device.c
index 3e57191..8bfcb30 100644
--- a/src/device.c
+++ b/src/device.c
if (auth->agent == NULL)
return;
- btd_adapter_pincode_reply(device->adapter, device_get_address(device),
+ btd_adapter_pincode_reply(device->adapter, &device->bdaddr,
pin, pin ? strlen(pin) : 0);
agent_unref(device->authr->agent);
if (auth->agent == NULL)
return;
- btd_adapter_confirm_reply(device->adapter, device_get_address(device),
- device_get_addr_type(device),
- err ? FALSE : TRUE);
+ btd_adapter_confirm_reply(device->adapter, &device->bdaddr,
+ device->bdaddr_type,
+ err ? FALSE : TRUE);
agent_unref(device->authr->agent);
device->authr->agent = NULL;
if (err)
passkey = INVALID_PASSKEY;
- btd_adapter_passkey_reply(device->adapter, device_get_address(device),
- device_get_addr_type(device), passkey);
+ btd_adapter_passkey_reply(device->adapter, &device->bdaddr,
+ device->bdaddr_type, passkey);
agent_unref(device->authr->agent);
device->authr->agent = NULL;