diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-13 16:22:45 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-13 16:22:45 +0100 |
commit | 42e279efa41a0db453d9bc5405f3d713bd9937f2 (patch) | |
tree | 205bf0e408f09983d550eb570b74954f5883cf36 | |
parent | 9aef4ddd369b9d3662c6e6335b8990c58b470fb3 (diff) |
Only handle the special case of no bonding and no MITM
-rw-r--r-- | src/dbus-hci.c | 4 |
1 files 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) |