aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-23 13:24:56 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-23 13:34:06 -0400
commit109e3191935a77d123375f045e719b164fa471aa (patch)
tree55e3699ac7816508e83e054cdd3420a9fb49628a /net/bluetooth
parent32333edb82fb2009980eefc5518100068147ab82 (diff)
Bluetooth: Read list of local codecs supported by the controller
If the Bluetooth controller supports Read Local Supported Codecs command, then issue it during initialization so that the list of codecs is known. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index cfcb6055ced8..f3e14103b76b 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1686,6 +1686,10 @@ static void hci_init4_req(struct hci_request *req, unsigned long opt)
1686 if (hdev->commands[22] & 0x04) 1686 if (hdev->commands[22] & 0x04)
1687 hci_set_event_mask_page_2(req); 1687 hci_set_event_mask_page_2(req);
1688 1688
1689 /* Read local codec list if the HCI command is supported */
1690 if (hdev->commands[29] & 0x20)
1691 hci_req_add(req, HCI_OP_READ_LOCAL_CODECS, 0, NULL);
1692
1689 /* Check for Synchronization Train support */ 1693 /* Check for Synchronization Train support */
1690 if (lmp_sync_train_capable(hdev)) 1694 if (lmp_sync_train_capable(hdev))
1691 hci_req_add(req, HCI_OP_READ_SYNC_TRAIN_PARAMS, 0, NULL); 1695 hci_req_add(req, HCI_OP_READ_SYNC_TRAIN_PARAMS, 0, NULL);