* [PATCH] Change LE scan interval and window to recommended values
@ 2010-12-22 19:11 Bruna Moreira
2010-12-22 22:42 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Bruna Moreira @ 2010-12-22 19:11 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bruna Moreira
Replace default scan interval and scan window values with recommended
ones for general discovery procedure, according to the Core
specification.
---
plugins/hciops.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/hciops.c b/plugins/hciops.c
index 43e3d93..be143e9 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -2583,8 +2583,10 @@ static int hciops_start_scanning(int index)
memset(&cp, 0, sizeof(cp));
cp.type = 0x01; /* Active scanning */
- cp.interval = htobs(0x0010);
- cp.window = htobs(0x0010);
+ /* The recommended value for scan interval and window is 11.25 msec.
+ * It is calculated by: time = n * 0.625 msec */
+ cp.interval = htobs(0x0012);
+ cp.window = htobs(0x0012);
cp.own_bdaddr_type = 0; /* Public address */
cp.filter = 0; /* Accept all adv packets */
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Change LE scan interval and window to recommended values
2010-12-22 19:11 [PATCH] Change LE scan interval and window to recommended values Bruna Moreira
@ 2010-12-22 22:42 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-12-22 22:42 UTC (permalink / raw)
To: Bruna Moreira; +Cc: linux-bluetooth
Hi Bruna,
On Wed, Dec 22, 2010, Bruna Moreira wrote:
> Replace default scan interval and scan window values with recommended
> ones for general discovery procedure, according to the Core
> specification.
> ---
> plugins/hciops.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
Pushed upstream. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-22 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 19:11 [PATCH] Change LE scan interval and window to recommended values Bruna Moreira
2010-12-22 22:42 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox