|
@@ -794,6 +794,18 @@ static int hci_init4_req(struct hci_request *req, unsigned long opt)
|
|
|
hci_req_add(req, HCI_OP_LE_WRITE_DEF_DATA_LEN, sizeof(cp), &cp);
|
|
|
}
|
|
|
|
|
|
+ /* Set Default PHY parameters if command is supported */
|
|
|
+ if (hdev->commands[35] & 0x20) {
|
|
|
+ struct hci_cp_le_set_default_phy cp;
|
|
|
+
|
|
|
+ /* No transmitter PHY or receiver PHY preferences */
|
|
|
+ cp.all_phys = 0x03;
|
|
|
+ cp.tx_phys = 0;
|
|
|
+ cp.rx_phys = 0;
|
|
|
+
|
|
|
+ hci_req_add(req, HCI_OP_LE_SET_DEFAULT_PHY, sizeof(cp), &cp);
|
|
|
+ }
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|