summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 15:58:18 -0800
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 15:58:18 -0800
commitdda557a46b662cbe27cf00dc0567a7089546d4c7 (patch)
tree6c34b7dcf87c37487cdfa29773f3e7adf61e78a7
parent8493d6363e61f1ef68763aab8e65f75be7f67fac (diff)
Copy remote auth requirements if the kernel returns 0xff
-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) &&