summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-01 22:13:56 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-15 16:11:29 +0200
commit176cbeceb5c5a740216a6be3e751e76aaddf94b9 (patch)
tree2eaf3941a2740f6ad3489a0e74aa47ab450692da /include/net
parentBluetooth: hci_core: Remove usage of hci_req_sync (diff)
downloadlinux-176cbeceb5c5a740216a6be3e751e76aaddf94b9.tar.xz
linux-176cbeceb5c5a740216a6be3e751e76aaddf94b9.zip
Bluetooth: hci_core: Don't use hci_prepare_cmd
This replaces the instance of hci_prepare_cmd with hci_cmd_sync_alloc since the former is part of hci_request.c which is considered deprecated. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci_sync.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_sync.h b/include/net/bluetooth/hci_sync.h
index 620e6014beb2..a8d88247ac89 100644
--- a/include/net/bluetooth/hci_sync.h
+++ b/include/net/bluetooth/hci_sync.h
@@ -20,6 +20,10 @@ struct hci_cmd_sync_work_entry {
};
struct adv_info;
+
+struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen,
+ const void *param, struct sock *sk);
+
/* Function with sync suffix shall not be called with hdev->lock held as they
* wait the command to complete and in the meantime an event could be received
* which could attempt to acquire hdev->lock causing a deadlock.