diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-04-02 10:35:04 (GMT) |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-04-04 16:16:06 (GMT) |
commit | 75e84b7c522c6e07964cd1f5bf28535768a1e9fa (patch) | |
tree | f446f05dddbc3fff7f9345ac524239f4e7d19baf /virt | |
parent | b6ddb638235d90ed67af9af40e63880fd66a1939 (diff) | |
download | linux-75e84b7c522c6e07964cd1f5bf28535768a1e9fa.tar.xz |
Bluetooth: Add __hci_cmd_sync() helper function
This patch adds a helper function for sending a single HCI command
waiting for its completion and then returning back the parameters in the
resulting command complete event (if there was one).
The implementation is very similar to that of hci_req_sync() except that
instead of invocing a callback for sending HCI commands the function
constructs and sends one itself and after being woken up picks the last
received event from hdev->recv_evt (if it matches the right criteria)
and returns it.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions