|
@@ -771,6 +771,15 @@ static int hci_init4_req(struct hci_request *req, unsigned long opt)
|
|
|
sizeof(support), &support);
|
|
|
}
|
|
|
|
|
|
+ /* Set Suggested Default Data Length to maximum if supported */
|
|
|
+ if (hdev->le_features[0] & HCI_LE_DATA_LEN_EXT) {
|
|
|
+ struct hci_cp_le_write_def_data_len cp;
|
|
|
+
|
|
|
+ cp.tx_len = hdev->le_max_tx_len;
|
|
|
+ cp.tx_time = hdev->le_max_tx_time;
|
|
|
+ hci_req_add(req, HCI_OP_LE_WRITE_DEF_DATA_LEN, sizeof(cp), &cp);
|
|
|
+ }
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|