Bluetooth: AMP: Add Read Data Block Size to amp_init
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 6 Sep 2012 12:05:46 +0000 (15:05 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 8 Sep 2012 21:14:11 +0000 (18:14 -0300)
Add Read Data Block Size HCI cmd to AMP initialization, then it
makes possible to send data.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c

index 9e6574a8e6e20bdfd8869be84419ed871819d503..e4070517ff3b3decf3b61a5194874c7e2a039e7a 100644 (file)
@@ -231,6 +231,9 @@ static void amp_init(struct hci_dev *hdev)
 
        /* Read Local AMP Info */
        hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);
+
+       /* Read Data Blk size */
+       hci_send_cmd(hdev, HCI_OP_READ_DATA_BLOCK_SIZE, 0, NULL);
 }
 
 static void hci_init_req(struct hci_dev *hdev, unsigned long opt)