diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-20 17:34:29 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-20 17:34:29 +0000 |
commit | 048a93f6f7453071a7d22e3ef84055f63c304947 (patch) | |
tree | 5b68df0595baa4cc7a7b935263cbc30070222fbb /hcid | |
parent | d888f2cf3cb2423684a4db1e5f45fe188240408d (diff) |
Fix parameter passing to adapter_get_device
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-hci.c | 5 |
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; } |