summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-13 12:32:15 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-13 12:32:15 +0100
commit4d80133a45dd1d405dd8a23afdfae82690d30fe6 (patch)
tree24757f39e7c6fe87de2528f037c56583f72686d0 /src/dbus-hci.c
parent211eb019b129e94c75fffd7438611f0a2ad59e4c (diff)
Add more debug for authentication requirements
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c7
1 files changed, 6 insertions, 1 deletions
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;
}