diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-05-12 17:32:04 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-21 13:39:06 -0400 |
commit | 7fe9b298c98fdfecf3b0efb4c971b7696d091ae9 (patch) | |
tree | ac8ff604a418157f2e692972bcf7f3a3a9d26bf7 /net | |
parent | f8df39f1810b02f877c1ba1eed8e0710019e3b48 (diff) |
Bluetooth: Stop ack_timer if ERTM enters in Local Busy or SREJ_SENT
The ack_timer is implemation specific, disabling it in such situation
avoids some potencial errors in the ERTM protocol.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index c2fb26d9286c..40cf67c11d20 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -3665,6 +3665,8 @@ static int l2cap_push_rx_skb(struct sock *sk, struct sk_buff *skb, u16 control) | |||
3665 | 3665 | ||
3666 | pi->conn_state |= L2CAP_CONN_RNR_SENT; | 3666 | pi->conn_state |= L2CAP_CONN_RNR_SENT; |
3667 | 3667 | ||
3668 | del_timer(&pi->ack_timer); | ||
3669 | |||
3668 | queue_work(_busy_wq, &pi->busy_work); | 3670 | queue_work(_busy_wq, &pi->busy_work); |
3669 | 3671 | ||
3670 | return err; | 3672 | return err; |
@@ -3914,6 +3916,8 @@ static inline int l2cap_data_channel_iframe(struct sock *sk, u16 rx_control, str | |||
3914 | pi->conn_state |= L2CAP_CONN_SEND_PBIT; | 3916 | pi->conn_state |= L2CAP_CONN_SEND_PBIT; |
3915 | 3917 | ||
3916 | l2cap_send_srejframe(sk, tx_seq); | 3918 | l2cap_send_srejframe(sk, tx_seq); |
3919 | |||
3920 | del_timer(&pi->ack_timer); | ||
3917 | } | 3921 | } |
3918 | return 0; | 3922 | return 0; |
3919 | 3923 | ||