aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/bluetooth/hci_sync.c
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2021-10-27 16:58:50 -0700
committerMarcel Holtmann <marcel@holtmann.org>2021-10-29 16:51:59 +0200
commit5a750137466400276560458db040c143cbc254ed (patch)
tree63e6dc7e7c99f6693b55fd80d51b14d1b2ee5ce8 /net/bluetooth/hci_sync.c
parentBluetooth: hci_sync: Convert MGMT_OP_SET_SECURE_CONN (diff)
downloadwireguard-linux-5a750137466400276560458db040c143cbc254ed.tar.xz
wireguard-linux-5a750137466400276560458db040c143cbc254ed.zip
Bluetooth: hci_sync: Convert MGMT_OP_GET_CLOCK_INFO
Synchronous version of MGMT_OP_GET_CLOCK_INFO. Signed-off-by: Brian Gix <brian.gix@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_sync.c')
-rw-r--r--net/bluetooth/hci_sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index dc27d6652188..37595b393ac1 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -1318,6 +1318,12 @@ int hci_read_rssi_sync(struct hci_dev *hdev, __le16 handle)
sizeof(cp), &cp, HCI_CMD_TIMEOUT);
}
+int hci_read_clock_sync(struct hci_dev *hdev, struct hci_cp_read_clock *cp)
+{
+ return __hci_cmd_sync_status(hdev, HCI_OP_READ_CLOCK,
+ sizeof(*cp), cp, HCI_CMD_TIMEOUT);
+}
+
int hci_read_tx_power_sync(struct hci_dev *hdev, __le16 handle, u8 type)
{
struct hci_cp_read_tx_power cp;