]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Bluetooth: Read supported features and commands on AMP controllers
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Oct 2013 09:31:39 +0000 (02:31 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Oct 2013 12:51:54 +0000 (14:51 +0200)
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>
net/bluetooth/hci_core.c

index 3572611c0297ae22227c4983560800c3035ce4cf..99f83abbcaa616f93332ab98b3779283a6ec6c2d 100644 (file)
@@ -307,6 +307,12 @@ static void amp_init(struct hci_request *req)
        /* Read Local Version */
        hci_req_add(req, HCI_OP_READ_LOCAL_VERSION, 0, NULL);
 
+       /* Read Local Supported Commands */
+       hci_req_add(req, HCI_OP_READ_LOCAL_COMMANDS, 0, NULL);
+
+       /* Read Local Supported Features */
+       hci_req_add(req, HCI_OP_READ_LOCAL_FEATURES, 0, NULL);
+
        /* Read Local AMP Info */
        hci_req_add(req, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);