summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-15 23:27:22 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-15 23:27:22 +0100
commit3bf56894a1ca387afbe963ef67cb1e13286ea61e (patch)
tree217e3b72ba59e84b0cea846f52e185c3c7833c19 /src
parent4bf138ac2a5e9ff0cf186ec6cc51bf8f80fc949e (diff)
Add another debug for auth requirements from kernel
Diffstat (limited to 'src')
-rw-r--r--src/dbus-hci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 61d99dc1..d4dc1537 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -323,6 +323,8 @@ int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
return 0;
}
+ debug("confirm authentication requirement is 0x%02x", type);
+
ba2str(dba, addr);
device = adapter_get_device(connection, adapter, addr);
@@ -346,12 +348,12 @@ int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
hci_close_dev(dd);
- return device_request_authentication(device, AUTH_TYPE_AUTO,
- 0, NULL);
+ return device_request_authentication(device,
+ AUTH_TYPE_AUTO, 0, NULL);
}
return device_request_authentication(device, AUTH_TYPE_CONFIRM,
- passkey, confirm_cb);
+ passkey, confirm_cb);
}
int hcid_dbus_user_passkey(bdaddr_t *sba, bdaddr_t *dba)