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

Commit 23e9fde2 authored by Suraj Sumangala's avatar Suraj Sumangala Committed by Gustavo Padovan
Browse files

Bluetooth: Increment unacked_frames count only the first transmit



This patch lets 'l2cap_pinfo.unacked_frames' be incremented only
the first time a frame is transmitted.

Previously it was being incremented for retransmitted packets
too resulting the value to cross the transmit window size.

Signed-off-by: default avatarSuraj Sumangala <suraj@atheros.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 88d377b6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1116,7 +1116,9 @@ int l2cap_ertm_send(struct sock *sk)
		bt_cb(skb)->tx_seq = pi->next_tx_seq;
		pi->next_tx_seq = (pi->next_tx_seq + 1) % 64;

		if (bt_cb(skb)->retries == 1)
			pi->unacked_frames++;

		pi->frames_sent++;

		if (skb_queue_is_last(TX_QUEUE(sk), skb))