summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-03-28 16:31:24 +0300
committerGustavo Padovan <gustavo@padovan.org>2012-05-09 00:41:39 -0300
commit6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac (patch)
tree273012deb26a82a33407f2a0dddcb5836caba319
parent328c9248bfa7f5e1490ee82e9027e14c3ecc0485 (diff)
downloadlinux-stable-6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac.tar.gz
linux-stable-6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac.tar.bz2
linux-stable-6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac.zip
Bluetooth: Add Read Local AMP Info to init
AMP Info will be used in Discovery Response. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
-rw-r--r--net/bluetooth/hci_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index a6108469e9eb..3b3d9a882dbd 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -252,6 +252,9 @@ static void amp_init(struct hci_dev *hdev)
/* Read Local Version */
hci_send_cmd(hdev, HCI_OP_READ_LOCAL_VERSION, 0, NULL);
+
+ /* Read Local AMP Info */
+ hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);
}
static void hci_init_req(struct hci_dev *hdev, unsigned long opt)