From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andre Guedes <andre.guedes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] hcitool: fix interval and window parameters
Date: Thu, 24 Feb 2011 17:41:08 -0300 [thread overview]
Message-ID: <20110224204108.GB30774@jh-x301> (raw)
In-Reply-To: <1298573768-26751-1-git-send-email-andre.guedes@openbossa.org>
Hi André,
On Thu, Feb 24, 2011, Andre Guedes wrote:
> Set interval and window parameters properly if --discovery option
> is present in lescan command.
>
> According to the Bluetooth spec, during a general or limited discovery
> procedure the scan interval and the scan window should be set to
> 11.25 ms. If --discovery option isn't present, both parameters are set
> to the default value (10 ms) defined in LE Set Scan Parameters Command.
>
> According to that command description, the interval and window parameters
> should be set as follows:
>
> Time = N * 0.625 msec
>
> So, in order to set the time values to 11.25 and 10 ms, the parameters
> should be equal to 18 (0x0012) and 16 (0x0010), respectively.
> ---
> tools/hcitool.c | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
Pushed upstream. Thanks.
Johan
prev parent reply other threads:[~2011-02-24 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 18:56 [PATCH] hcitool: fix interval and window parameters Andre Guedes
2011-02-24 20:41 ` Johan Hedberg [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=20110224204108.GB30774@jh-x301 \
--to=johan.hedberg@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox