From 42e279efa41a0db453d9bc5405f3d713bd9937f2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 13 Jan 2009 16:22:45 +0100 Subject: Only handle the special case of no bonding and no MITM --- src/dbus-hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbus-hci.c b/src/dbus-hci.c index bd976c83..5c5f1c6d 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1255,7 +1255,7 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, } /* No agent available, and no bonding case */ - if (*auth < 0x02) { + if (*auth == 0x00) { debug("Allowing no bonding without agent"); /* No input, no output */ *cap = 0x03; @@ -1266,7 +1266,7 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, return -1; } - if (device && *auth < 0x02) { + if (device && *auth == 0x00) { /* If remote requests dedicated bonding follow that lead */ if (device_get_auth(device) == 0x02 || device_get_auth(device) == 0x03) -- cgit