From: Gustavo Padovan <padovan@profusion.mobi>
To: Andre Guedes <andre.guedes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 3/3] Bluetooth: Periodic Inquiry and Discovery
Date: Mon, 7 Nov 2011 17:38:04 -0200 [thread overview]
Message-ID: <20111107193804.GD3707@joana> (raw)
In-Reply-To: <1320427013-5684-3-git-send-email-andre.guedes@openbossa.org>
Hi Andre,
* Andre Guedes <andre.guedes@openbossa.org> [2011-11-04 14:16:53 -0300]:
> By using periodic inquiry command we're not able to detect correctly
> when the controller has started inquiry.
>
> Today we have this workaround in inquiry result event handler
> to set the HCI_INQUIRY flag when it sees the first inquiry result
> event. This workaround isn't enough because the device may be
> performing an inquiry but the HCI_INQUIRY flag is not set. For
> instance, if there is no device in range, no inquiry result event
> is generated, consequently, the HCI_INQUIRY flags isn't set when
> it should so.
>
> We rely on HCI_INQUIRY flag to implement the discovery procedure
> properly. So, as we aren't able to clear/set the HCI_INQUIRY flag
> in a reliable manner, periodic inquiry events shouldn't change
> the HCI_INQUIRY flag.
>
> Thus, due to that issue and in order to keep compatibility with
> userspace, periodic inquiry events shouldn't send mgmt discovering
> events.
>
> In future, we might track if periodic inquiry is enabled or not.
> By tracking this state we'll be able to do some improvements in
> Discovery such as failing MGMT_OP_START_DISCOVERY command in case
> periodic inquiry is on. We can also send no mgmt_device_found
> event if periodic inquiry is on.
>
> Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
> ---
> net/bluetooth/hci_event.c | 43 +++++++++++--------------------------------
> 1 files changed, 11 insertions(+), 32 deletions(-)
The three patches were applied, thanks.
Gustavo
next prev parent reply other threads:[~2011-11-07 19:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 17:16 [PATCH 1/3] Bluetooth: Create hci_do_inquiry() Andre Guedes
2011-11-04 17:16 ` [PATCH 2/3] Bluetooth: Create hci_cancel_inquiry() Andre Guedes
2011-11-04 17:16 ` [PATCH 3/3] Bluetooth: Periodic Inquiry and Discovery Andre Guedes
2011-11-07 19:38 ` Gustavo Padovan [this message]
2011-11-04 18:20 ` [PATCH 1/3] Bluetooth: Create hci_do_inquiry() Anderson Lizardo
2011-11-04 18:33 ` Andre Guedes
2011-11-04 18:51 ` Andre Guedes
2011-11-07 9:03 ` Andrei Emeltchenko
2011-11-07 13:58 ` Andre Guedes
2011-11-07 14:09 ` Andrei Emeltchenko
2011-11-07 14:27 ` Andre Guedes
2011-11-07 13:59 ` Andre Guedes
2011-11-07 23:53 ` Marcel Holtmann
2011-11-08 14:47 ` Gustavo Padovan
2011-11-08 17:40 ` Andre Guedes
2011-11-07 14:45 ` Andre Guedes
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=20111107193804.GD3707@joana \
--to=padovan@profusion.mobi \
--cc=andre.guedes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.