From: Johan Hedberg Date: Tue, 8 Jul 2014 13:05:06 +0000 (+0300) Subject: Bluetooth: Fix setting STOPPING state for discovery X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a48093b53999f8539144db1d9567964a84655c;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed