diff options
-rw-r--r-- | net/bluetooth/l2cap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 5a5203f03642..eb5cb29115a7 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -3503,7 +3503,8 @@ static inline int l2cap_data_channel_iframe(struct sock *sk, u16 rx_control, str | |||
3503 | 3503 | ||
3504 | BT_DBG("sk %p rx_control 0x%4.4x len %d", sk, rx_control, skb->len); | 3504 | BT_DBG("sk %p rx_control 0x%4.4x len %d", sk, rx_control, skb->len); |
3505 | 3505 | ||
3506 | if (L2CAP_CTRL_FINAL & rx_control) { | 3506 | if (L2CAP_CTRL_FINAL & rx_control && |
3507 | l2cap_pi(sk)->conn_state & L2CAP_CONN_WAIT_F) { | ||
3507 | del_timer(&pi->monitor_timer); | 3508 | del_timer(&pi->monitor_timer); |
3508 | if (pi->unacked_frames > 0) | 3509 | if (pi->unacked_frames > 0) |
3509 | __mod_retrans_timer(); | 3510 | __mod_retrans_timer(); |
@@ -3727,7 +3728,8 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str | |||
3727 | { | 3728 | { |
3728 | BT_DBG("sk %p rx_control 0x%4.4x len %d", sk, rx_control, skb->len); | 3729 | BT_DBG("sk %p rx_control 0x%4.4x len %d", sk, rx_control, skb->len); |
3729 | 3730 | ||
3730 | if (L2CAP_CTRL_FINAL & rx_control) { | 3731 | if (L2CAP_CTRL_FINAL & rx_control && |
3732 | l2cap_pi(sk)->conn_state & L2CAP_CONN_WAIT_F) { | ||
3731 | del_timer(&l2cap_pi(sk)->monitor_timer); | 3733 | del_timer(&l2cap_pi(sk)->monitor_timer); |
3732 | if (l2cap_pi(sk)->unacked_frames > 0) | 3734 | if (l2cap_pi(sk)->unacked_frames > 0) |
3733 | __mod_retrans_timer(); | 3735 | __mod_retrans_timer(); |