summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dbus-hci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 5238d36f..7ce60a9e 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1200,6 +1200,9 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote,
debug("initial authentication requirement is 0x%02x", *auth);
+ if (*auth == 0xff)
+ *auth = device_get_auth(device);
+
/* Check if the adapter is not pairable and if there isn't a bonding
* in progress */
if (!adapter_is_pairable(adapter) &&