summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 6e4b897e..43d89313 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -80,7 +80,7 @@ void bonding_request_free(struct bonding_request_info *bonding)
ba2str(&bonding->bdaddr, address);
- device = adapter_get_device(connection, bonding->adapter, address);
+ device = adapter_find_device(bonding->adapter, address);
if (device && device->agent) {
agent_destroy(device->agent, FALSE);
device->agent = NULL;