Bluetooth: Add hci_cmd_sync function
authorLoic Poulain <loic.poulain@intel.com>
Tue, 29 Sep 2015 13:05:44 +0000 (15:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 29 Sep 2015 13:16:11 +0000 (15:16 +0200)
commitfbef168fec837ae26c8725737cd4b49dc8a0f917
tree9438808c0c9d42566a84c082401f94cdbd629b6f
parenta913718812d5998b3af2b6d6b5f0be4a09caebb1
Bluetooth: Add hci_cmd_sync function

Send a HCI command and wait for command complete event.
This function serializes the requests by grabbing the req_lock.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c