Bluetooth: Refactor discovery stopping into its own function
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 10 Jun 2014 11:05:58 +0000 (14:05 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 Jun 2014 11:32:20 +0000 (13:32 +0200)
We'll need to reuse the same logic for stopping discovery also when
cleaning up HCI state when powering off. This patch refactors the code
out to its own function that can later (in a subsequent patch) be used
also for the power off case.

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

Simple merge