This patch adds code to cancel the sniff timer.
Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
}
timer:
+#ifdef TIZEN_BT
+ if (hdev->idle_timeout > 0) {
+ /* Sniff timer cancel */
+ cancel_delayed_work(&conn->idle_work);
+ queue_delayed_work(hdev->workqueue, &conn->idle_work,
+ msecs_to_jiffies(hdev->idle_timeout));
+ }
+#else
if (hdev->idle_timeout > 0)
queue_delayed_work(hdev->workqueue, &conn->idle_work,
msecs_to_jiffies(hdev->idle_timeout));
+#endif
}
/* Drop all connection on the device */