]> 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)
commit75ca6d02545a37fe3f323c87050ac1c08a6cadf0
tree2d8f994e2bbb89e796ac7777ad2eeea0428dc3e6
parent9af48a43016da0848eb5a8a7127a182c7efb9327
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