diff options
-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; } |