From 048a93f6f7453071a7d22e3ef84055f63c304947 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 20 Mar 2008 17:34:29 +0000 Subject: Fix parameter passing to adapter_get_device --- hcid/dbus-hci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hcid/dbus-hci.c') 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; } -- cgit