|
@@ -59,6 +59,10 @@ static void hci_le_create_connection(struct hci_conn *conn)
|
|
|
cp.scan_window = __constant_cpu_to_le16(0x0030);
|
|
|
bacpy(&cp.peer_addr, &conn->dst);
|
|
|
cp.peer_addr_type = conn->dst_type;
|
|
|
+ if (bacmp(&hdev->bdaddr, BDADDR_ANY))
|
|
|
+ cp.own_address_type = ADDR_LE_DEV_PUBLIC;
|
|
|
+ else
|
|
|
+ cp.own_address_type = ADDR_LE_DEV_RANDOM;
|
|
|
cp.conn_interval_min = __constant_cpu_to_le16(0x0028);
|
|
|
cp.conn_interval_max = __constant_cpu_to_le16(0x0038);
|
|
|
cp.supervision_timeout = __constant_cpu_to_le16(0x002a);
|