diff options
-rw-r--r-- | net/bluetooth/l2cap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 9ef01c32b3a2..ba49f9a3579e 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -3379,6 +3379,8 @@ static inline void l2cap_send_i_or_rr_or_rnr(struct sock *sk) | |||
3379 | if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY && pi->unacked_frames > 0) | 3379 | if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY && pi->unacked_frames > 0) |
3380 | __mod_retrans_timer(); | 3380 | __mod_retrans_timer(); |
3381 | 3381 | ||
3382 | pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; | ||
3383 | |||
3382 | spin_lock_bh(&pi->send_lock); | 3384 | spin_lock_bh(&pi->send_lock); |
3383 | l2cap_ertm_send(sk); | 3385 | l2cap_ertm_send(sk); |
3384 | spin_unlock_bh(&pi->send_lock); | 3386 | spin_unlock_bh(&pi->send_lock); |
@@ -3936,7 +3938,6 @@ static inline void l2cap_data_channel_rrframe(struct sock *sk, u16 rx_control) | |||
3936 | l2cap_send_srejtail(sk); | 3938 | l2cap_send_srejtail(sk); |
3937 | } else { | 3939 | } else { |
3938 | l2cap_send_i_or_rr_or_rnr(sk); | 3940 | l2cap_send_i_or_rr_or_rnr(sk); |
3939 | pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; | ||
3940 | } | 3941 | } |
3941 | 3942 | ||
3942 | } else if (rx_control & L2CAP_CTRL_FINAL) { | 3943 | } else if (rx_control & L2CAP_CTRL_FINAL) { |