From: Andre Guedes Date: Tue, 31 May 2011 17:20:57 +0000 (-0300) Subject: Bluetooth: Set 'peer_addr_type' in hci_le_connect() X-Git-Tag: v4.13~14059^2~350^2^2~134 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6d3ce0e7902314ddb330deaf8827205881d7e59f;p=mirror_ubuntu-bionic-kernel.git Bluetooth: Set 'peer_addr_type' in hci_le_connect() Set the 'peer_addr_type' field of the LE Create Connection command sent in hci_le_connect(). Signed-off-by: Andre Guedes Acked-by: Ville Tervo Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 4e38b4872865..ce67d0ff486f 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -58,6 +58,7 @@ static void hci_le_connect(struct hci_conn *conn) cp.scan_interval = cpu_to_le16(0x0004); cp.scan_window = cpu_to_le16(0x0004); bacpy(&cp.peer_addr, &conn->dst); + cp.peer_addr_type = conn->dst_type; cp.conn_interval_min = cpu_to_le16(0x0008); cp.conn_interval_max = cpu_to_le16(0x0100); cp.supervision_timeout = cpu_to_le16(0x0064);