Bluetooth: AMP: Get amp_mgr reference in HS hci_conn
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 18 Oct 2012 10:16:19 +0000 (13:16 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 18 Oct 2012 10:27:20 +0000 (07:27 -0300)
commitf706adfeade767d2194c9f39c0f75e944b0bdd23
treea047952d3ce06440c9743cc5b582079d5df37030
parent56f6098441adb9487f6e0439429fc536afcf9e71
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>
include/net/bluetooth/a2mp.h
net/bluetooth/a2mp.c
net/bluetooth/amp.c