Bluetooth: Clear ack_timer when sending ack
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 11 Jan 2012 09:59:47 +0000 (10:59 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:26 +0000 (17:01 +0200)
commitb17e73bb4269f47e1ea2d64a834f1cfc8644fabb
treebb2a6d051d7df87a5e6fd5cc80378af8cbf41ddc
parent0ef3ef0f676e3c7aaab4a936635f503770fd38b2
Bluetooth: Clear ack_timer when sending ack

ack_timer should be cleared when sending ACK to avoid acking I-frames
twice.

This commit introduces helper function (only send ack, not clearing
timer) which is used by l2cap_send_ack and l2cap_ack_timeout. This is
to avoid clearing ack timer in timer function.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c