diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-04 16:09:30 -0800 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-04 16:09:30 -0800 |
commit | 6e12d670f826f754063e0412a47f2e9d557ffc4d (patch) | |
tree | cd455555d2f38be527d83fcc7b6241652957e3d2 | |
parent | dda557a46b662cbe27cf00dc0567a7089546d4c7 (diff) |
Add check for invalid auth requirement
-rw-r--r-- | src/dbus-hci.c | 3 |
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; } |