summaryrefslogtreecommitdiff
path: root/lib/gcd.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-08 16:05:06 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-08 15:09:46 +0200
commit23a48093b53999f8539144db1d9567964a84655c (patch)
tree2e440c55e8d1f962d1371ca53141a3b5c14025de /lib/gcd.c
parent34722277045f84d0ee618865d02030a44b1ed257 (diff)
downloadlwn-23a48093b53999f8539144db1d9567964a84655c.tar.gz
lwn-23a48093b53999f8539144db1d9567964a84655c.zip
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>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions