]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60be9c85aac07eb58f404ae9a57f062aad557ce2
tree2d8f994e2bbb89e796ac7777ad2eeea0428dc3e6
parentb2badaccfd03e5e2bcf1e3ee99c560fc55897cd5
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