Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291089
b: refs/heads/master
c: 17b02e6
h: refs/heads/master
i:
  291087: 2f28307
v: v3
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Mar 1, 2012
1 parent a19be7d commit 31d52ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: ba13ccd9b911e043c0f11e60cbb72bd4de194205
refs/heads/master: 17b02e625662906f370a3eb5e7495cf06ed7d4a4
5 changes: 2 additions & 3 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static const u16 mgmt_events[] = {
#define INQUIRY_LEN_BREDR 0x08 /* TGAP(100) */
#define INQUIRY_LEN_BREDR_LE 0x04 /* TGAP(100)/2 */

#define SERVICE_CACHE_TIMEOUT (5 * 1000)
#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000)

#define hdev_is_powered(hdev) (test_bit(HCI_UP, &hdev->flags) && \
!test_bit(HCI_AUTO_OFF, &hdev->dev_flags))
Expand Down Expand Up @@ -1298,8 +1298,7 @@ static bool enable_service_cache(struct hci_dev *hdev)
return false;

if (!test_and_set_bit(HCI_SERVICE_CACHE, &hdev->dev_flags)) {
schedule_delayed_work(&hdev->service_cache,
msecs_to_jiffies(SERVICE_CACHE_TIMEOUT));
schedule_delayed_work(&hdev->service_cache, CACHE_TIMEOUT);
return true;
}

Expand Down
5 changes: 2 additions & 3 deletions trunk/net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/scatterlist.h>
#include <crypto/b128ops.h>

#define SMP_TIMEOUT 30000 /* 30 seconds */
#define SMP_TIMEOUT msecs_to_jiffies(30000)

static inline void swap128(u8 src[16], u8 dst[16])
{
Expand Down Expand Up @@ -186,8 +186,7 @@ static void smp_send_cmd(struct l2cap_conn *conn, u8 code, u16 len, void *data)
hci_send_acl(conn->hchan, skb, 0);

cancel_delayed_work_sync(&conn->security_timer);
schedule_delayed_work(&conn->security_timer,
msecs_to_jiffies(SMP_TIMEOUT));
schedule_delayed_work(&conn->security_timer, SMP_TIMEOUT);
}

static __u8 authreq_to_seclevel(__u8 authreq)
Expand Down

0 comments on commit 31d52ec

Please sign in to comment.