Bluetooth: Introduce new hci_req_add function
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Mar 2013 18:37:46 +0000 (20:37 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Mar 2013 13:40:26 +0000 (10:40 -0300)
commit71c76a170e979d60e01bd093c9b79e3adeb710cc
treecf213b5b1565f383bef766576a5dd001f75bb437
parent1ca3a9d06e87e09d2f852397f1fbf7c442c921b5
Bluetooth: Introduce new hci_req_add function

This function is analogous to hci_send_cmd() but instead of directly
queuing the command to hdev->cmd_q it adds it to the local queue of the
asynchronous HCI request being build (inside struct hci_request).

This is the main function used for building asynchronous requests and
there should be one or more calls to it between calls to hci_req_init
and hci_req_run.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c