Bluetooth: Fix notifying discovery state when powering off
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 28 Jan 2015 17:56:02 +0000 (19:56 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 28 Jan 2015 20:26:23 +0000 (21:26 +0100)
commit8f502f847a67d00412382aeda0a2fa412b04e2a7
tree9ae35c5ca512ece676d74b10a2f7e8013e40aae4
parent39c5d970d4d1302d3407e0471c55520dd5537069
Bluetooth: Fix notifying discovery state when powering off

The discovery state should be set to stopped when the HCI device is
powered off. This patch adds the appropriate call to the
hci_discovery_set_state() function from hci_dev_do_close() which is
responsible for the power-off procedure.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c