diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-04-02 13:41:09 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-02 17:09:27 +0300 |
commit | f60cb30579d3401cab1ed36b42df5c0568ae0ba7 (patch) | |
tree | 27f3b73ea066bb1053857cbee1c5c938c2564fd1 /include/net/bluetooth | |
parent | e6214487492566b15ff24e97c6747bb2e5d9e040 (diff) | |
download | linux-f60cb30579d3401cab1ed36b42df5c0568ae0ba7.tar.xz |
Bluetooth: Convert hci_req_sync family of function to new request API
Now that there's an API in place that allows passing the resulting skb
to the request callback we can conveniently convert the hci_req_sync and
related functions to use it. Since we still need to get the skb from the
async callback into the sleeping _sync() function the patch adds another
req_skb variable to hci_dev where the sync request state is tracked.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-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 540c07feece7..257ac04c00e1 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -334,6 +334,7 @@ struct hci_dev { wait_queue_head_t req_wait_q; __u32 req_status; __u32 req_result; + struct sk_buff *req_skb; void *smp_data; void *smp_bredr_data; |