linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] Change page scan interval in fast connectable mode
@ 2012-01-24 12:43 Dmitriy Paliy
  0 siblings, 0 replies; only message in thread
From: Dmitriy Paliy @ 2012-01-24 12:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Dmitriy Paliy

Page scan interval in fast connectable mode is changed from 22.5 msec to
160 msec to perform less aggressive page scanning. This is done
accordingly to controller vendor recommendation.

Primary concern is that current parameters 22.5 interval, 11.25 window, and
interleaved scanning occupy whole radio bandwidth. Changing interval to 160
msec should be sufficient for both speeding up connection establishment and
leaving space for other activities, like inquiry scan, e.g.
---
 plugins/hciops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/hciops.c b/plugins/hciops.c
index d42e7de..bc38c9b 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -3141,7 +3141,7 @@ static int hciops_fast_connectable(int index, gboolean enable)
 
 	if (enable) {
 		type = PAGE_SCAN_TYPE_INTERLACED;
-		cp.interval = 0x0024;	/* 22.5 msec page scan interval */
+		cp.interval = 0x0100;	/* 160 msec page scan interval */
 	} else {
 		type = PAGE_SCAN_TYPE_STANDARD;	/* default */
 		cp.interval = 0x0800;	/* default 1.28 sec page scan */
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-24 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 12:43 [PATCH BlueZ] Change page scan interval in fast connectable mode Dmitriy Paliy

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).