Bluetooth: Add discovery type validity helper
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 06:11:24 +0000 (08:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:30 +0000 (17:50 +0100)
commit591752afbcc8179979296698cae698541d2e5431
tree2d8f994e2bbb89e796ac7777ad2eeea0428dc3e6
parent7c1fbed23981faff2840ddc8909e7c78d80ade30
Bluetooth: Add discovery type validity helper

As preparation for moving the discovery HCI commands behind
req_workqueue, add a helper and do the validity checks of the given
discovery type before proceeding further. This way we don't need to do
them again in hci_request.c.

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