From: Andre Guedes <andre.guedes@openbossa.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Enable duplicates filter in background scan
Date: Tue, 11 Mar 2014 14:10:27 -0300 [thread overview]
Message-ID: <531F4383.9040702@openbossa.org> (raw)
In-Reply-To: <A8F8858B-001A-44CB-B295-E31E4ACC4FE8@holtmann.org>
Hi Marcel,
On 03/11/2014 01:28 PM, Marcel Holtmann wrote:
> Hi Andre,
>
>> To avoid flooding the host with useless advertising reports during
>> background scan, we enable the duplicates filter from controller.
>>
>> However, enabling duplicates filter requires a small change in
>> background scan routine in order to fix the following scenario:
>> 1) Background scan is running.
>> 2) A device disconnects and starts advertising.
>> 3) Before host gets the disconnect event, the advertising is reported
>> to host. Since there is no pending LE connection at that time,
>> nothing happens.
>> 4) Host gets the disconnection event and adds a pending connection.
>> 5) No advertising is reported (since controller is filtering) and the
>> connection is never established.
>>
>> So, to address this scenario, we should always restart background scan
>> to unsure we don't miss any advertising report (due to duplicates
>> filter).
>
> don’t we need a timer that restarts the background scan in a regular interval?
We don't need that timer since the background scan is now restarted
every time hci_update_background_scan() is called.
Regards,
Andre
next prev parent reply other threads:[~2014-03-11 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-10 21:26 [PATCH] Bluetooth: Enable duplicates filter in background scan Andre Guedes
2014-03-11 16:28 ` Marcel Holtmann
2014-03-11 17:10 ` Andre Guedes [this message]
2014-03-11 20:00 ` Marcel Holtmann
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=531F4383.9040702@openbossa.org \
--to=andre.guedes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
/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