summaryrefslogtreecommitdiff
path: root/net/bluetooth/aosp.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2021-04-06 21:55:52 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-04-06 14:11:23 -0700
commitf67743f9e03a67dbbf931d1787e6faf50766e521 (patch)
tree782f23cbd3708bc26ddc6126ba340a4a001d5fbb /net/bluetooth/aosp.h
parent8ce85ada0a05e21a5386ba5c417c52ab00fcd0d1 (diff)
Bluetooth: Add support for reading AOSP vendor capabilities
When drivers indicate support for AOSP vendor extension, initialize them and read its capabilities. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/aosp.h')
-rw-r--r--net/bluetooth/aosp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/bluetooth/aosp.h b/net/bluetooth/aosp.h
new file mode 100644
index 000000000000..328fc6d39f70
--- /dev/null
+++ b/net/bluetooth/aosp.h
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) 2021 Intel Corporation
+ */
+
+#if IS_ENABLED(CONFIG_BT_AOSPEXT)
+
+void aosp_do_open(struct hci_dev *hdev);
+void aosp_do_close(struct hci_dev *hdev);
+
+#else
+
+static inline void aosp_do_open(struct hci_dev *hdev) {}
+static inline void aosp_do_close(struct hci_dev *hdev) {}
+
+#endif