From: Andrejs Hanins <andrejs.hanins@ubnt.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: LE ADV data is lost after first connection
Date: Tue, 6 Oct 2015 13:02:20 +0300 [thread overview]
Message-ID: <56139C2C.4020409@ubnt.com> (raw)
In-Reply-To: <CABBYNZ+HfSJVg3QTkjc7EQh-KRT3q1EZ75U6g4-N+B3zYf7CtQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1579 bytes --]
Hi,
On 10/06/2015 12:35 PM, Luiz Augusto von Dentz wrote:
> Hi Andrejs,
>
> On Tue, Oct 6, 2015 at 10:04 AM, Andrejs Hanins <andrejs.hanins@ubnt.com> wrote:
>> Hi,
>>
>> I'm on Bluez 5.35 + Kernel 4.1.6 using D-Bus LE Adv Manager to register my own advertisement structure (with service UUID). Everything works fine, I see my UUID is present in scan record (using Android Bluetooth LE Scanner or iOS Light Blue App). But scan record becomes empty (all zeros) after I connect/disconnect to the peripheral.
>>
>> This issue, however, only present on Atheros AR3012 Bluetooth chip (USB vendor:product is 0cf3:3004) and not present neither on Broadcom BCM20705 nor on CSR. Based on btmon traces I see that after peripheral is disconnected, LE adv is enabled again using HCI "LE Set Advertising Parameters" and "LE Set Advertise Enable" commands which obviously do not set the adv data again.
>>
>> My assumption is that BT chip is expected to keep LE adv data between re-connections, but Atheros AR3012 (at least the revisions we use) has a bug which erases Adv data after the connection is made.
>>
>> Can someone confirm that my assumption is correct and workaround/quirk is needed for AR3012 or maybe there is something else may be wrong here?
>>
>
> I guess it would be good if you attach the HCI logs, from the
> description it looks like the Atheros chip is misbehaving since LE Set
> Advertising Data Command is suppose to stay valid unless the
> controller is reset.
Attached. Frame 132 sets adv data followed by incoming connection.
>
>
[-- Attachment #2: AR3012.cap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 7523 bytes --]
prev parent reply other threads:[~2015-10-06 10:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 7:04 LE ADV data is lost after first connection Andrejs Hanins
2015-10-06 9:35 ` Luiz Augusto von Dentz
2015-10-06 10:02 ` Andrejs Hanins [this message]
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=56139C2C.4020409@ubnt.com \
--to=andrejs.hanins@ubnt.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@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).