Johan Hedberg 23a48093b5 Bluetooth: Fix setting STOPPING state for discovery
If any of the HCI commands from the hci_stop_discovery function were
successfully sent we need to set the discovery state to STOPPING. The
Stop Discovery code was already handling this, but the code in
clean_up_hci_state was not. This patch updates the hci_stop_discovery to
return a bool to indicate whether it queued any commands and the
clean_up_hci_state() function respectively to look at the return value
and call hci_discovery_set_state() if necessary.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-07-08 15:09:46 +02:00
..
2014-05-23 16:28:53 -04:00
2014-05-30 17:48:58 -07:00
2014-06-04 22:46:38 -07:00
2013-09-23 16:52:45 -04:00
2014-06-04 22:46:38 -07:00
2013-11-21 13:09:42 -05:00
2014-04-16 15:15:05 -04:00