From: Johan Hedberg Date: Mon, 7 Jul 2014 10:24:58 +0000 (+0300) Subject: Bluetooth: Update discovery state earlier in hci_discovery_set_state X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb3e0a336ae683332c1282d1e84b371b65aba1b4;p=pandora-kernel.git Bluetooth: Update discovery state earlier in hci_discovery_set_state In a subsequent patch the hci_update_background_scan() function will depend on being able to know the current discovery state. For this to be possible we need to set the new state early in the function. Since we also need to check what the old state was this patch introduces an extra variable for tracking it. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed