summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-03-20 17:34:29 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-03-20 17:34:29 +0000
commit048a93f6f7453071a7d22e3ef84055f63c304947 (patch)
tree5b68df0595baa4cc7a7b935263cbc30070222fbb
parentd888f2cf3cb2423684a4db1e5f45fe188240408d (diff)
Fix parameter passing to adapter_get_device
-rw-r--r--hcid/dbus-hci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index f8a10007..40b7a886 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -1009,9 +1009,10 @@ int hcid_dbus_request_pin(int dev, bdaddr_t *sba, struct hci_conn_info *ci)
if (!adapter->agent)
goto old_fallback;
- device = adapter_get_device(adapter, &ci->bdaddr);
+ ba2str(&ci->bdaddr, addr);
+
+ device = adapter_get_device(adapter, addr);
if (!device) {
- ba2str(&ci->bdaddr, addr);
device = device_create(connection, adapter, addr, NULL);
device->created = TRUE;
}