summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-09-06 15:05:46 +0300
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-09-08 18:14:11 -0300
commite71dfabab03129182a955663cbd53406714d96c0 (patch)
tree4b579a4d20c30d322e1a0ea5b398aa4658cd2305 /net/bluetooth
parent376261ae3627b03574994496f70f95d5538795d5 (diff)
downloadop-kernel-dev-e71dfabab03129182a955663cbd53406714d96c0.zip
op-kernel-dev-e71dfabab03129182a955663cbd53406714d96c0.tar.gz
Bluetooth: AMP: Add Read Data Block Size to amp_init
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>
Diffstat (limited to 'net/bluetooth')
-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 9e6574a..e407051 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -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)
OpenPOWER on IntegriCloud