diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-03-05 13:37:46 -0500 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-03-08 08:40:26 -0500 |
commit | 71c76a170e979d60e01bd093c9b79e3adeb710cc (patch) | |
tree | cf213b5b1565f383bef766576a5dd001f75bb437 /include/net | |
parent | 1ca3a9d06e87e09d2f852397f1fbf7c442c921b5 (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 7191217c6bd1..67fe661259ba 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1048,6 +1048,7 @@ struct hci_request { | |||
1048 | 1048 | ||
1049 | void hci_req_init(struct hci_request *req, struct hci_dev *hdev); | 1049 | void hci_req_init(struct hci_request *req, struct hci_dev *hdev); |
1050 | int hci_req_run(struct hci_request *req, hci_req_complete_t complete); | 1050 | int hci_req_run(struct hci_request *req, hci_req_complete_t complete); |
1051 | int hci_req_add(struct hci_request *req, u16 opcode, u32 plen, void *param); | ||
1051 | 1052 | ||
1052 | int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param); | 1053 | int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param); |
1053 | void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags); | 1054 | void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags); |