From dda557a46b662cbe27cf00dc0567a7089546d4c7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 4 Feb 2009 15:58:18 -0800 Subject: Copy remote auth requirements if the kernel returns 0xff --- src/dbus-hci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dbus-hci.c') 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) && -- cgit