]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Bluetooth: Fix adv_work delay
authorAndre Guedes <andre.guedes@openbossa.org>
Mon, 2 Jan 2012 22:18:10 +0000 (19:18 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 3 Jan 2012 00:30:09 +0000 (22:30 -0200)
commitc1b9b4f45f014093231c568be9b5c2e392943696
tree115b437ffe603d6ceb606633289408b3b66534f4
parentb5b32b653dedb29eb95e57cbbaefc4abf7141cb2
Bluetooth: Fix adv_work delay

This patch fixes the adv_work delay. It should be set to ADV_
CLEAR_TIMEOUT instead of (jiffies + ADV_CLEAR_TIMEOUT) since
queue_delayed_work() receives the number of jiffies to wait
before queueing. It also removes the unnecessary cancel_delayed_
work_sync() call in case LE scan has been disabled.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c