summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 16:09:30 -0800
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 16:09:30 -0800
commit6e12d670f826f754063e0412a47f2e9d557ffc4d (patch)
treecd455555d2f38be527d83fcc7b6241652957e3d2 /src
parentdda557a46b662cbe27cf00dc0567a7089546d4c7 (diff)
Add check for invalid auth requirement
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 7ce60a9e..7c3667f8 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1256,7 +1256,8 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote,
}
/* If remote requires MITM then also require it */
- if (device_get_auth(device) & 0x01)
+ if (device_get_auth(device) != 0xff &&
+ (device_get_auth(device) & 0x01))
*auth |= 0x01;
}