From cd050e431ddbecf708483fe58e288b671010f2d6 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 13 Jan 2009 15:25:57 +0200 Subject: Fix no-bonding connections in non-bondable mode --- src/dbus-hci.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 290bbfd6..9ddd65ec 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1228,8 +1228,15 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, /* Check if the adapter is not pairable and if there isn't a bonding in * progress */ if (!adapter_is_pairable(adapter) && - !(device && device_is_bonding(device, NULL))) + !(device && device_is_bonding(device, NULL))) { + if (*auth < 0x02) { + debug("Allowing no bonding in non-bondable mode"); + /* No input, no output */ + *cap = 0x03; + goto done; + } return -EPERM; + } /* For CreatePairedDevice use dedicated bonding */ if (device) { -- cgit