diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-13 15:29:58 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-13 15:29:58 +0100 |
commit | 9aef4ddd369b9d3662c6e6335b8990c58b470fb3 (patch) | |
tree | 4851d1774303c094c7cd1695ffa72e9d3777dd6e | |
parent | cdd935446174aa12d1835d480df49ecfd2f2ab56 (diff) |
Follow MITM requirements from remote device
-rw-r--r-- | src/dbus-hci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 9ddd65ec..bd976c83 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1271,6 +1271,10 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, if (device_get_auth(device) == 0x02 || device_get_auth(device) == 0x03) *auth = 0x02; + + /* If remote requires MITM then also require it */ + if (device_get_auth(device) & 0x01) + *auth |= 0x01; } *cap = agent_get_io_capability(agent); |