aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-07 05:31:39 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-07 08:51:54 -0400
commitf6996cfe2f1db60a74765449f9b53c7591bcdc87 (patch)
treebfe0eb136036e8126722e372009266bc7943f778
parentcd0a85c22cd39f040ef4cff07a6c249bf1023137 (diff)
Bluetooth: Read supported features and commands on AMP controllers
The commands for reading supported features and commands are both supported by AMP controllers. Issue them during controller init phase so their values are known. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r--net/bluetooth/hci_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 3572611c0297..99f83abbcaa6 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -307,6 +307,12 @@ static void amp_init(struct hci_request *req)
307 /* Read Local Version */ 307 /* Read Local Version */
308 hci_req_add(req, HCI_OP_READ_LOCAL_VERSION, 0, NULL); 308 hci_req_add(req, HCI_OP_READ_LOCAL_VERSION, 0, NULL);
309 309
310 /* Read Local Supported Commands */
311 hci_req_add(req, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL);
312
313 /* Read Local Supported Features */
314 hci_req_add(req, HCI_OP_READ_LOCAL_FEATURES, 0, NULL);
315
310 /* Read Local AMP Info */ 316 /* Read Local AMP Info */
311 hci_req_add(req, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL); 317 hci_req_add(req, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);
312 318