From dff80b644fb16f97962773c384de44b13fbdee56 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 27 Jun 2008 19:36:58 +0000 Subject: Fix authorization when experiemental is disabled. --- hcid/security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hcid/security.c') diff --git a/hcid/security.c b/hcid/security.c index 4047c9fa..0bfbcbec 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -289,8 +289,8 @@ static void link_key_request(int dev, bdaddr_t *sba, bdaddr_t *dba) bacpy(&req.bdaddr, dba); err = ioctl(dev, HCIGETAUTHINFO, (unsigned long) &req); - if (err < 0) - debug("HCIGETAUTHINFO failed (%d)", + if (err < 0 && errno != EINVAL) + debug("HCIGETAUTHINFO failed %s (%d)", strerror(errno), errno); else req.type = 0x00; -- cgit