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

Commit 930fa4ae authored by Szymon Janc's avatar Szymon Janc Committed by Johan Hedberg
Browse files

Bluetooth: Fix double acking I-Frames when sending pending I-Frames



Pending I-Frame(s) are considered as acknowledgement. To void double
acking (via I-Frame and later via RR) clear ack timer when sending
first pending I-Frame.

Signed-off-by: default avatarSzymon Janc <szymon.janc@tieto.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 8ed7a0ae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1455,7 +1455,9 @@ static int l2cap_ertm_send(struct l2cap_chan *chan)

		if (bt_cb(skb)->retries == 1) {
			chan->unacked_frames++;
			nsent++;

			if (!nsent++)
				__clear_ack_timer(chan);
		}

		chan->frames_sent++;