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)
commit21a60d307ddc2180cfa542a995d943d1034cf5c5
treef105655f9b27dfb3a799d4035d0dc77adeec1160
parent50143a433b70e3145bcf8a4a4e54f0c11bdee32b
Bluetooth: Refactor discovery stopping into its own function

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