]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Update discovery state earlier in hci_discovery_set_state
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Jul 2014 10:24:58 +0000 (13:24 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Jul 2014 10:36:39 +0000 (12:36 +0200)
commitbb3e0a336ae683332c1282d1e84b371b65aba1b4
tree8779c5bd3fe1f9bf78dc7257b37cdeab43e4df60
parent7e899c94939b928173d76d1e5a7c0675f44813f5
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 <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c