]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix removing of RFCOMM DLC timer with DEFER_SETUP
authorJohan Hedberg <johan.hedberg@nokia.com>
Thu, 26 Mar 2009 14:41:56 +0000 (16:41 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 19 Apr 2009 16:56:45 +0000 (18:56 +0200)
commite8b7c4b0eaabe43b5755a6961cc4843c3467e108
tree663f35194914f7aa2dbb30fb65ed3f4b13ed8da9
parent276f93c69599d254b1cce3cd288348cc68e5785a
Bluetooth: Fix removing of RFCOMM DLC timer with DEFER_SETUP

There is a missing call to rfcomm_dlc_clear_timer in the case that
DEFER_SETUP is used and so the connection gets disconnected after the
timeout even if it was successfully accepted previously.

This patch adds a call to rfcomm_dlc_clear_timer to rfcomm_dlc_accept
which will get called when the user accepts the connection by calling
read() on the socket.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c