Skip to content

Commit e6a3ee6

Browse files
Mat MartineauGustavo Padovan
authored andcommitted
Bluetooth: Do not retransmit data during a channel move
Do not retransmit previously-sent data when a "receiver ready" s-frame with the "final" flag is received during a move. The ERTM state machines will resynchronize at the end of a channel move, and the state machine needs to avoid state changes during a move. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent a549574 commit e6a3ee6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/bluetooth/l2cap_core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,8 +5591,8 @@ static int l2cap_rx_state_recv(struct l2cap_chan *chan,
55915591
if (control->final) {
55925592
clear_bit(CONN_REMOTE_BUSY, &chan->conn_state);
55935593

5594-
if (!test_and_clear_bit(CONN_REJ_ACT,
5595-
&chan->conn_state)) {
5594+
if (!test_and_clear_bit(CONN_REJ_ACT, &chan->conn_state) &&
5595+
!__chan_is_moving(chan)) {
55965596
control->final = 0;
55975597
l2cap_retransmit_all(chan, control);
55985598
}

0 commit comments

Comments
 (0)