From: Andre Guedes Date: Mon, 2 Jan 2012 22:18:10 +0000 (-0300) Subject: Bluetooth: Fix adv_work delay X-Git-Tag: v3.3-rc1~82^2~13^2~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1b9b4f45f014093231c568be9b5c2e392943696;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed