Return-Path: Date: Tue, 24 May 2011 14:16:52 +0300 From: Ville Tervo To: ext Andre Guedes Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH v2 11/11] Bluetooth: Set 'peer_addr_type' in hci_le_connect() Message-ID: <20110524111652.GI2480@null> References: <1305936645-15007-1-git-send-email-andre.guedes@openbossa.org> <1305936645-15007-11-git-send-email-andre.guedes@openbossa.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1305936645-15007-11-git-send-email-andre.guedes@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Fri, May 20, 2011 at 09:10:45PM -0300, ext Andre Guedes wrote: > 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 > --- > net/bluetooth/hci_conn.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c > index 468d2aa..e58ef96 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); -- Ville