From: Johan Hedberg Date: Tue, 10 Jun 2014 11:05:57 +0000 (+0300) Subject: Bluetooth: Fix indicating discovery state when canceling inquiry X-Git-Tag: omap-for-v3.16/fixes-rc4~53^2~21^2^2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50143a433b70e3145bcf8a4a4e54f0c11bdee32b;p=pandora-kernel.git Bluetooth: Fix indicating discovery state when canceling inquiry When inquiry is canceled through the HCI_Cancel_Inquiry command there is no Inquiry Complete event generated. Instead, all we get is the command complete for the HCI_Inquiry_Cancel command. This means that we must call the hci_discovery_set_state() function from the respective command complete handler in order to ensure that user space knows the correct discovery state. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann Cc: stable@vger.kernel.org --- Reading git-diff-tree failed