Bluetooth: Fix keeping the command timer running
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Mon, 11 Apr 2011 21:46:55 +0000 (18:46 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 18 Apr 2011 23:11:46 +0000 (20:11 -0300)
commitb79f44c16a4e2181b1d6423afe746745d5e949ff
treee8e90fb0519bd74395adf5205693b5afec920266
parent7a74aeb022b34a8fa8ef00545e66cf0568b5ddf6
Bluetooth: Fix keeping the command timer running

In the teardown path the reset command is sent to the controller,
this event causes the command timer to be reactivated.

So the timer is removed in two situations, when the adapter isn't
marked as UP and when we know that some command has been sent.

Reported-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c