Bluetooth: Split triggering of discovery commands into separate function
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Dec 2014 10:36:36 +0000 (11:36 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Dec 2014 10:52:29 +0000 (12:52 +0200)
commit8019044dcb5944c0f578a1e59cecbd09d7b7c7f3
treec5deaac5141acf76c2f46135c954b02696f4c7b0
parent11e6e25d052478235a0c3f94d2f2faddeb58eb96
Bluetooth: Split triggering of discovery commands into separate function

The actual process of compiling the correct HCI commands for triggering
discovery is something that should be generic. So instead of mixing it
into the Start Discover operation handling, split it out into its own
function utilizing HCI request handling and just providing status in
case of errors or invalid parameters.

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