View | Details | Raw Unified | Return to bug 216382
Collapse All | Expand All

(-)a/net/bluetooth/hci_sync.c (-7 / +6 lines)
Lines 3339-3350 static const struct hci_init_stage amp_init2[] = { Link Here
3339
/* Read Buffer Size (ACL mtu, max pkt, etc.) */
3339
/* Read Buffer Size (ACL mtu, max pkt, etc.) */
3340
static int hci_read_buffer_size_sync(struct hci_dev *hdev)
3340
static int hci_read_buffer_size_sync(struct hci_dev *hdev)
3341
{
3341
{
3342
	/* Use Read LE Buffer Size V2 if supported */
3343
	if (hdev->commands[41] & 0x20)
3344
		return __hci_cmd_sync_status(hdev,
3345
					     HCI_OP_LE_READ_BUFFER_SIZE_V2,
3346
					     0, NULL, HCI_CMD_TIMEOUT);
3347
3348
	return __hci_cmd_sync_status(hdev, HCI_OP_READ_BUFFER_SIZE,
3342
	return __hci_cmd_sync_status(hdev, HCI_OP_READ_BUFFER_SIZE,
3349
				     0, NULL, HCI_CMD_TIMEOUT);
3343
				     0, NULL, HCI_CMD_TIMEOUT);
3350
}
3344
}
Lines 3558-3563 static const struct hci_init_stage hci_init2[] = { Link Here
3558
/* Read LE Buffer Size */
3552
/* Read LE Buffer Size */
3559
static int hci_le_read_buffer_size_sync(struct hci_dev *hdev)
3553
static int hci_le_read_buffer_size_sync(struct hci_dev *hdev)
3560
{
3554
{
3555
	/* Use Read LE Buffer Size V2 if supported */
3556
	if (hdev->commands[41] & 0x20)
3557
		return __hci_cmd_sync_status(hdev,
3558
					     HCI_OP_LE_READ_BUFFER_SIZE_V2,
3559
					     0, NULL, HCI_CMD_TIMEOUT);
3560
3561
	return __hci_cmd_sync_status(hdev, HCI_OP_LE_READ_BUFFER_SIZE,
3561
	return __hci_cmd_sync_status(hdev, HCI_OP_LE_READ_BUFFER_SIZE,
3562
				     0, NULL, HCI_CMD_TIMEOUT);
3562
				     0, NULL, HCI_CMD_TIMEOUT);
3563
}
3563
}
3564
- 

Return to bug 216382