Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d611e4d authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Only set ack_timer if we didn't send and ack

parent 0bee1d60
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3928,11 +3928,12 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u32 rx_cont
			l2cap_retransmit_frames(chan);
	}

	__set_ack_timer(chan);

	chan->num_acked = (chan->num_acked + 1) % num_to_ack;
	if (chan->num_acked == num_to_ack - 1)
		l2cap_send_ack(chan);
	else
		__set_ack_timer(chan);

	return 0;