From: Andrei Emeltchenko Date: Thu, 6 Sep 2012 12:05:46 +0000 (+0300) Subject: Bluetooth: AMP: Add Read Data Block Size to amp_init X-Git-Tag: v3.7-rc1~145^2~31^2^2~65^2~9 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e71dfabab03129182a955663cbd53406714d96c0;p=~emulex%2Finfiniband.git 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 Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 9e6574a8e6e..e4070517ff3 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)