Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277754
b: refs/heads/master
c: e0f9309
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo F. Padovan committed Nov 9, 2011
1 parent c246c00 commit acfd714
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 56e5cb86eb377970825486a5861f5926d65e64c1
refs/heads/master: e0f9309f371096b82ad35aa2c27d7f848f37e696
6 changes: 3 additions & 3 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,12 @@ static int hci_dev_do_close(struct hci_dev *hdev)
tasklet_kill(&hdev->tx_task);

if (hdev->discov_timeout > 0) {
cancel_delayed_work_sync(&hdev->discov_off);
cancel_delayed_work(&hdev->discov_off);
hdev->discov_timeout = 0;
}

if (test_and_clear_bit(HCI_AUTO_OFF, &hdev->flags))
cancel_delayed_work_sync(&hdev->power_off);
cancel_delayed_work(&hdev->power_off);

hci_dev_lock_bh(hdev);
inquiry_cache_flush(hdev);
Expand Down Expand Up @@ -828,7 +828,7 @@ int hci_get_dev_list(void __user *arg)
read_lock_bh(&hci_dev_list_lock);
list_for_each_entry(hdev, &hci_dev_list, list) {
if (test_and_clear_bit(HCI_AUTO_OFF, &hdev->flags))
cancel_delayed_work_sync(&hdev->power_off);
cancel_delayed_work(&hdev->power_off);

if (!test_bit(HCI_MGMT, &hdev->flags))
set_bit(HCI_PAIRABLE, &hdev->flags);
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int read_index_list(struct sock *sk)
i = 0;
list_for_each_entry(d, &hci_dev_list, list) {
if (test_and_clear_bit(HCI_AUTO_OFF, &d->flags))
cancel_delayed_work_sync(&d->power_off);
cancel_delayed_work(&d->power_off);

if (test_bit(HCI_SETUP, &d->flags))
continue;
Expand Down Expand Up @@ -398,7 +398,7 @@ static int set_discoverable(struct sock *sk, u16 index, unsigned char *data,
if (cp->val)
scan |= SCAN_INQUIRY;
else
cancel_delayed_work_sync(&hdev->discov_off);
cancel_delayed_work(&hdev->discov_off);

err = hci_send_cmd(hdev, HCI_OP_WRITE_SCAN_ENABLE, 1, &scan);
if (err < 0)
Expand Down

0 comments on commit acfd714

Please sign in to comment.