diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-05-17 13:59:01 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-13 13:55:33 -0400 |
commit | c9b66675373e6edb2dc291562ce1fa05f7980102 (patch) | |
tree | 7457636a1be926938bf95dbcdedfc4e17575618b /include/net/bluetooth | |
parent | 71ba0e569bb43ab99a07ccbb514f8b0f732140c3 (diff) |
Bluetooth: Make timer functions generic
We now plan to use l2cap_set_timer and l2cap_clear_timer in ERTM timers.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index b3d953b5f399..7aaf7f78ddb1 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -439,6 +439,8 @@ struct l2cap_pinfo { | |||
439 | #define L2CAP_CONN_RNR_SENT 0x0200 | 439 | #define L2CAP_CONN_RNR_SENT 0x0200 |
440 | #define L2CAP_CONN_SAR_RETRY 0x0400 | 440 | #define L2CAP_CONN_SAR_RETRY 0x0400 |
441 | 441 | ||
442 | #define __set_chan_timer(c, t) l2cap_set_timer(c, &c->chan_timer, (t)) | ||
443 | #define __clear_chan_timer(c) l2cap_clear_timer(c, &c->chan_timer) | ||
442 | #define __mod_retrans_timer() mod_timer(&chan->retrans_timer, \ | 444 | #define __mod_retrans_timer() mod_timer(&chan->retrans_timer, \ |
443 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_RETRANS_TO)); | 445 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_RETRANS_TO)); |
444 | #define __mod_monitor_timer() mod_timer(&chan->monitor_timer, \ | 446 | #define __mod_monitor_timer() mod_timer(&chan->monitor_timer, \ |