summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-03-28 13:31:24 (GMT)
committerGustavo Padovan <gustavo@padovan.org>2012-05-09 03:41:39 (GMT)
commit6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac (patch)
tree273012deb26a82a33407f2a0dddcb5836caba319
parent328c9248bfa7f5e1490ee82e9027e14c3ecc0485 (diff)
downloadlinux-6bcbc4893fe8a6be3c3c5a83449d79dc9e9a51ac.tar.xz
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 a610846..3b3d9a8 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)