From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andrey Voropaev <voropaev.andrey@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Authentication Rejected when pairing stereo headset
Date: Thu, 20 Dec 2012 11:19:43 +0200 [thread overview]
Message-ID: <20121220091943.GA5862@x220> (raw)
In-Reply-To: <CAFOXTde8iSouGKEVZKG-egvPUr4LAyLnFigVa6avhpqTjXNq8A@mail.gmail.com>
Hi Andrey,
First of all, please don't do top posting. It messes up the thread,
especially when mixed with inline quoting.
On Thu, Dec 20, 2012, Andrey Voropaev wrote:
> I've copied the output from hcidump -w to http://vandal.sdf-eu.org/hcidump.file
>
> So far, I'm not sure how to add -d switch to bluetoothd. It is started
> via dbus and this monster is not familiar to me. Can you please tell
> me, which file should I edit to add the switch?
Actually the hcidump helped a lot. It shows an issue on the kernel side:
< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 00:1A:7D:25:2C:A4 capability 0x04 oob 0x00 auth 0x03
Capability: Reserved (OOB data not present)
Authentication: Dedicated Bonding (MITM Protection)
> HCI Event: Command Complete (0x0e) plen 10
IO Capability Request Reply (0x01|0x002b) ncmd 1
status 0x12 bdaddr 00:1A:7D:25:2C:A4
Error: Invalid HCI Command Parameters
The IO capability value 0x04 that the kernel is responding with is
invalid and shouldn't be sent to the controller. This was already fixed
quite long time ago (about 1 year ago) by the following patch from
Hemant Gupta: "Bluetooth: Send correct response to IO Capability Request"
It adds the following code to the IO capability handling to avoid 0x04
from being sent:
/* Change the IO capability from KeyboardDisplay
* to DisplayYesNo as it is not supported by BT spec. */
cp.capability = (conn->io_capability == 0x04) ?
0x01 : conn->io_capability;
It seems however that your kernel is missing this patch and the right
way forward would be to include it.
Johan
next prev parent reply other threads:[~2012-12-20 9:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-20 7:41 Authentication Rejected when pairing stereo headset Andrey Voropaev
2012-12-20 8:04 ` Johan Hedberg
2012-12-20 9:02 ` Andrey Voropaev
2012-12-20 9:19 ` Johan Hedberg [this message]
2012-12-20 9:27 ` Andrey Voropaev
2012-12-20 9:37 ` Johan Hedberg
2012-12-20 10:22 ` Andrey Voropaev
2012-12-20 11:06 ` Andrey Voropaev
2012-12-20 9:38 ` Andrei Emeltchenko
2012-12-20 10:51 ` Andrey Voropaev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121220091943.GA5862@x220 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=voropaev.andrey@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).