summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-26 16:20:27 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-26 16:20:27 +0200
commit45ef24f213950cdc994e7553e466e181138f2d3b (patch)
tree08e1dd2486d361fae0d4f773d9f5a7798a8147a7 /src
parent978342ab9d2a5175ff9a8e5469abdea75ed1442a (diff)
Reject pairing if not "no bonding" and no agent is present
Diffstat (limited to 'src')
-rw-r--r--src/dbus-hci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 65b28da0..3a25abfc 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1829,7 +1829,8 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote,
agent = adapter->agent;
if (!agent) {
- if (!(*auth & 0x01)) {
+ if (device_get_auth(device) == 0x00 ||
+ device_get_auth(device) == 0x01) {
/* No input, no output */
*cap = 0x03;
return 0;