提交 930fa4ae 编写于 作者: S Szymon Janc 提交者: Johan Hedberg

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: NSzymon Janc <szymon.janc@tieto.com>
Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
上级 8ed7a0ae
...@@ -1455,7 +1455,9 @@ static int l2cap_ertm_send(struct l2cap_chan *chan) ...@@ -1455,7 +1455,9 @@ static int l2cap_ertm_send(struct l2cap_chan *chan)
if (bt_cb(skb)->retries == 1) { if (bt_cb(skb)->retries == 1) {
chan->unacked_frames++; chan->unacked_frames++;
nsent++;
if (!nsent++)
__clear_ack_timer(chan);
} }
chan->frames_sent++; chan->frames_sent++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册