Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299037
b: refs/heads/master
c: 76ec9de
h: refs/heads/master
i:
  299035: 95ad7fe
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Mar 28, 2012
1 parent 1ea2f70 commit 28fcc3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 531563850b29726bf37a81e877277902881ab77e
refs/heads/master: 76ec9de843c3cff41b3b15b752e1d08d91f0ad18
11 changes: 8 additions & 3 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2523,13 +2523,18 @@ static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,

if (cp->val) {
type = PAGE_SCAN_TYPE_INTERLACED;
acp.interval = 0x0024; /* 22.5 msec page scan interval */

/* 22.5 msec page scan interval */
acp.interval = __constant_cpu_to_le16(0x0024);
} else {
type = PAGE_SCAN_TYPE_STANDARD; /* default */
acp.interval = 0x0800; /* default 1.28 sec page scan */

/* default 1.28 sec page scan */
acp.interval = __constant_cpu_to_le16(0x0800);
}

acp.window = 0x0012; /* default 11.25 msec page scan window */
/* default 11.25 msec page scan window */
acp.window = __constant_cpu_to_le16(0x0012);

err = hci_send_cmd(hdev, HCI_OP_WRITE_PAGE_SCAN_ACTIVITY, sizeof(acp),
&acp);
Expand Down

0 comments on commit 28fcc3f

Please sign in to comment.