summaryrefslogtreecommitdiff
path: root/net/bluetooth/amp.h
diff options
context:
space:
mode:
authorArron Wang <arron.wang@intel.com>2015-07-24 17:12:55 +0800
committerMarcel Holtmann <marcel@holtmann.org>2015-07-30 13:31:59 +0200
commit244bc377591c3882f454882357bc730c90cbedb5 (patch)
tree644a5bd5aa8275c597f0a0d72488c6b5c9201fad /net/bluetooth/amp.h
parent4a546ec364633fcbe5709811230d7e0580c9dc1d (diff)
Bluetooth: Add BT_HS config option
Move A2MP Module under BT_HS config option and allow the user have flexible option to choose the feature only they need a2mp_discover_amp() & a2mp_channel_create() are a2mp module entry point for master and slave, and this is dynamic invoked depends on the userspace or remote request, then we defined their implementation depends on BT_HS config Signed-off-by: Arron Wang <arron.wang@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/amp.h')
-rw-r--r--net/bluetooth/amp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/bluetooth/amp.h b/net/bluetooth/amp.h
index 7ea3db77ba89..8848f8158ae4 100644
--- a/net/bluetooth/amp.h
+++ b/net/bluetooth/amp.h
@@ -44,6 +44,20 @@ void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
struct hci_conn *hcon);
void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
struct hci_conn *hcon);
+
+#if IS_ENABLED(CONFIG_BT_HS)
+void amp_create_logical_link(struct l2cap_chan *chan);
+void amp_disconnect_logical_link(struct hci_chan *hchan);
+#else
+static inline void amp_create_logical_link(struct l2cap_chan *chan)
+{
+}
+
+static inline void amp_disconnect_logical_link(struct hci_chan *hchan)
+{
+}
+#endif
+
void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle);
void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);
void amp_physical_cfm(struct hci_conn *bredr_hcon, struct hci_conn *hs_hcon);