Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266341
b: refs/heads/master
c: a8f13c8
h: refs/heads/master
i:
  266339: e37164e
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo F. Padovan committed Sep 21, 2011
1 parent 72c42e9 commit 301149f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 51beabdf624df14d0805b001d3f939629b70d9db
refs/heads/master: a8f13c8cd2c732828e5da735c204447a55cdab03
7 changes: 3 additions & 4 deletions trunk/net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,16 +898,15 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev,
if (!cp)
return;

hci_dev_lock(hdev);

if (cp->enable == 0x01) {
del_timer(&hdev->adv_timer);

hci_dev_lock(hdev);
hci_adv_entries_clear(hdev);
hci_dev_unlock(hdev);
} else if (cp->enable == 0x00) {
mod_timer(&hdev->adv_timer, jiffies + ADV_CLEAR_TIMEOUT);
}

hci_dev_unlock(hdev);
}

static void hci_cc_le_ltk_reply(struct hci_dev *hdev, struct sk_buff *skb)
Expand Down

0 comments on commit 301149f

Please sign in to comment.