Commit 4d611e4d authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

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

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment