aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r--net/bluetooth/l2cap.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index e9ac9fb11917..f3869857ee9f 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3499,8 +3499,17 @@ static inline void l2cap_data_channel_rrframe(struct sock *sk, u16 rx_control)
3499 l2cap_drop_acked_frames(sk); 3499 l2cap_drop_acked_frames(sk);
3500 3500
3501 if (rx_control & L2CAP_CTRL_POLL) { 3501 if (rx_control & L2CAP_CTRL_POLL) {
3502 l2cap_send_i_or_rr_or_rnr(sk); 3502 if (pi->conn_state & L2CAP_CONN_SREJ_SENT) {
3503 pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; 3503 if ((pi->conn_state & L2CAP_CONN_REMOTE_BUSY) &&
3504 (pi->unacked_frames > 0))
3505 __mod_retrans_timer();
3506
3507 pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;
3508 l2cap_send_srejtail(sk);
3509 } else {
3510 l2cap_send_i_or_rr_or_rnr(sk);
3511 pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;
3512 }
3504 3513
3505 } else if (rx_control & L2CAP_CTRL_FINAL) { 3514 } else if (rx_control & L2CAP_CTRL_FINAL) {
3506 pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; 3515 pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;