summaryrefslogtreecommitdiff
path: root/include/net/bluetooth/a2mp.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-10-18 13:16:19 +0300
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-18 07:27:20 -0300
commitf706adfeade767d2194c9f39c0f75e944b0bdd23 (patch)
treea047952d3ce06440c9743cc5b582079d5df37030 /include/net/bluetooth/a2mp.h
parent56f6098441adb9487f6e0439429fc536afcf9e71 (diff)
downloadlwn-f706adfeade767d2194c9f39c0f75e944b0bdd23.tar.gz
lwn-f706adfeade767d2194c9f39c0f75e944b0bdd23.zip
Bluetooth: AMP: Get amp_mgr reference in HS hci_conn
When assigning amp_mgr in hci_conn (type AMP_LINK) get also reference. In hci_conn_del those references would be put for both conn types AMP_LINK and ACL_LINK associated with amp_mgr. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth/a2mp.h')
-rw-r--r--include/net/bluetooth/a2mp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/a2mp.h b/include/net/bluetooth/a2mp.h
index e776ab2dc572..42f21766c538 100644
--- a/include/net/bluetooth/a2mp.h
+++ b/include/net/bluetooth/a2mp.h
@@ -133,7 +133,7 @@ struct a2mp_physlink_rsp {
extern struct list_head amp_mgr_list;
extern struct mutex amp_mgr_list_lock;
-void amp_mgr_get(struct amp_mgr *mgr);
+struct amp_mgr *amp_mgr_get(struct amp_mgr *mgr);
int amp_mgr_put(struct amp_mgr *mgr);
u8 __next_ident(struct amp_mgr *mgr);
struct l2cap_chan *a2mp_channel_create(struct l2cap_conn *conn,