From 4d80133a45dd1d405dd8a23afdfae82690d30fe6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 13 Jan 2009 12:32:15 +0100 Subject: Add more debug for authentication requirements --- src/dbus-hci.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 49154a61..5118ffc8 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1219,6 +1219,8 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, if (get_auth_requirements(local, remote, auth) < 0) return -1; + debug("initial authentication requirement is 0x%02x", *auth); + ba2str(remote, addr); device = adapter_find_device(adapter, addr); @@ -1249,7 +1251,7 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, debug("Allowing no bonding without agent"); /* No input, no output */ *cap = 0x03; - return 0; + goto done; } error("No agent available for IO capability"); @@ -1265,6 +1267,9 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, *cap = agent_get_io_capability(agent); +done: + debug("final authentication requirement is 0x%02x", *auth); + return 0; } -- cgit