提交 4d611e4d 编写于 作者: G Gustavo F. Padovan

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

Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 0bee1d60
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册