]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix discovery state machine
authorAndre Guedes <andre.guedes@openbossa.org>
Mon, 13 Feb 2012 18:41:01 +0000 (15:41 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 15 Feb 2012 13:23:27 +0000 (15:23 +0200)
commit4bbdc5565e72f55c757840f17266d07102b22e18
tree7879f84c8c9161215664fd98d9b760c0a0efa1c0
parentb26ac45f10611887706c87d546a82ffd2138f9e2
Bluetooth: Fix discovery state machine

In case of Start Discovery command failure, we should set the discovery
state to DISCOVERY_STOPPED. Otherwise, we stuck at DISCOVERY_STARTING
state and subsequent Start Discovery commands will simply fail.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c