]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18cb47791a5343717707ee3493ef16c8d9383789
treee8e90fb0519bd74395adf5205693b5afec920266
parent21cfa4d8756b071cb85acea540773aeb8c245923
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