diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-27 19:36:58 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-27 19:36:58 +0000 |
commit | dff80b644fb16f97962773c384de44b13fbdee56 (patch) | |
tree | 76e733cb464b603d892e7e6e0f6c0fe28c4531f6 /hcid/security.c | |
parent | 36dedff329b5ced8979a2161075e6a9d38c58785 (diff) |
Fix authorization when experiemental is disabled.
Diffstat (limited to 'hcid/security.c')
-rw-r--r-- | hcid/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |