diff options
-rw-r--r-- | hcid/dbus-hci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index 106660a2..2bd32c23 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -2469,6 +2469,10 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote, *auth |= 0x01; if (!agent) { + if (!(type & 0x01)) { + *cap = 0x01; + return 0; + } error("No agent available for IO capability"); return -1; } |