From 6e12d670f826f754063e0412a47f2e9d557ffc4d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 4 Feb 2009 16:09:30 -0800 Subject: Add check for invalid auth requirement --- src/dbus-hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit