linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Change page scan interval in fast connectable mode
@ 2012-06-28 10:44 Johan Hedberg
  2012-07-16 13:51 ` Gustavo Padovan
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Hedberg @ 2012-06-28 10:44 UTC (permalink / raw)
  To: linux-bluetooth

From: Johan Hedberg <johan.hedberg@intel.com>

This patch is based on a user space (hciops) patch which never made it
upstream but does make sense to include in the mgmt part of the kernel.

(User space) commit message from 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.
"

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
---
 net/bluetooth/mgmt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index e83368f..5657ecc 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2607,8 +2607,8 @@ static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,
 	if (cp->val) {
 		type = PAGE_SCAN_TYPE_INTERLACED;
 
-		/* 22.5 msec page scan interval */
-		acp.interval = __constant_cpu_to_le16(0x0024);
+		/* 160 msec page scan interval */
+		acp.interval = __constant_cpu_to_le16(0x0100);
 	} else {
 		type = PAGE_SCAN_TYPE_STANDARD;	/* default */
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Bluetooth: Change page scan interval in fast connectable mode
  2012-06-28 10:44 [PATCH] Bluetooth: Change page scan interval in fast connectable mode Johan Hedberg
@ 2012-07-16 13:51 ` Gustavo Padovan
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Padovan @ 2012-07-16 13:51 UTC (permalink / raw)
  To: Johan Hedberg; +Cc: linux-bluetooth

Hi Johan,

* Johan Hedberg <johan.hedberg@gmail.com> [2012-06-28 13:44:30 +0300]:

> From: Johan Hedberg <johan.hedberg@intel.com>
> 
> This patch is based on a user space (hciops) patch which never made it
> upstream but does make sense to include in the mgmt part of the kernel.
> 
> (User space) commit message from 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.
> "
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
> ---
>  net/bluetooth/mgmt.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Patch has been applied to bluetooth-next. Thanks.

	Gustavo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-16 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-28 10:44 [PATCH] Bluetooth: Change page scan interval in fast connectable mode Johan Hedberg
2012-07-16 13:51 ` Gustavo Padovan

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