From 9aef4ddd369b9d3662c6e6335b8990c58b470fb3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 13 Jan 2009 15:29:58 +0100 Subject: Follow MITM requirements from remote device --- src/dbus-hci.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit