aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-05-17 14:59:01 -0300
committerJaikumar Ganesh <jaikumar@google.com>2011-07-11 11:59:20 -0700
commitbd69b5ae05398e0849b0dd755ce42ba60da6d9d9 (patch)
treece03649812f194bb3318e73ab9a5d827ac1fda6d /include/net/bluetooth
parent4a6aa524c95b91ae13ae6857fb21938695ea94fa (diff)
downloadkernel_samsung_espresso10-bd69b5ae05398e0849b0dd755ce42ba60da6d9d9.zip
kernel_samsung_espresso10-bd69b5ae05398e0849b0dd755ce42ba60da6d9d9.tar.gz
kernel_samsung_espresso10-bd69b5ae05398e0849b0dd755ce42ba60da6d9d9.tar.bz2
Bluetooth: Make timer functions generic
We now plan to use l2cap_set_timer and l2cap_clear_timer in ERTM timers. Change-Id: Ie62b01e003f8885ae89c73e2e64195c21cbadddd Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index b3d953b..7aaf7f7 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -439,6 +439,8 @@ struct l2cap_pinfo {
#define L2CAP_CONN_RNR_SENT 0x0200
#define L2CAP_CONN_SAR_RETRY 0x0400
+#define __set_chan_timer(c, t) l2cap_set_timer(c, &c->chan_timer, (t))
+#define __clear_chan_timer(c) l2cap_clear_timer(c, &c->chan_timer)
#define __mod_retrans_timer() mod_timer(&chan->retrans_timer, \
jiffies + msecs_to_jiffies(L2CAP_DEFAULT_RETRANS_TO));
#define __mod_monitor_timer() mod_timer(&chan->monitor_timer, \