linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ville Tervo <ville.tervo@nokia.com>
To: ext Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH 2/6] Bluetooth: Add LE connect support
Date: Tue, 26 Oct 2010 10:55:52 +0300	[thread overview]
Message-ID: <20101026075552.GB15050@null> (raw)
In-Reply-To: <AANLkTi=3VB-q-H6vcTAMAC1hYdYVJiF9wVOBKchYEktt@mail.gmail.com>

Hi,


On Mon, Oct 25, 2010 at 10:33:05PM +0200, ext Anderson Lizardo wrote:
> Hi,
> 
> On Mon, Oct 25, 2010 at 8:21 AM, Ville Tervo <ville.tervo@nokia.com> wrote:
> > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> > index 0b1e460..0944c0c 100644
> > --- a/net/bluetooth/hci_conn.c
> > +++ b/net/bluetooth/hci_conn.c
> > @@ -45,6 +45,32 @@
> >  #include <net/bluetooth/bluetooth.h>
> >  #include <net/bluetooth/hci_core.h>
> >
> > +void hci_le_connect(struct hci_conn *conn)
> 
> This function could be made static, right? (just noticed this now)

Yes. Thanks.

> 
> > +{
> > +       struct hci_dev *hdev = conn->hdev;
> > +       struct hci_cp_le_create_conn cp;
> > +
> > +       conn->state = BT_CONNECT;
> > +       conn->out = 1;
> > +
> > +       memset(&cp, 0, sizeof(cp));
> > +       cp.scan_interval = cpu_to_le16(0x0004);
> > +       cp.scan_window = cpu_to_le16(0x0004);
> > +       bacpy(&cp.peer_addr, &conn->dst);
> > +       cp.conn_interval_min = cpu_to_le16(0x0008);
> > +       cp.conn_interval_max = cpu_to_le16(0x0100);
> > +       cp.supervision_timeout = cpu_to_le16(0x0064);
> > +       cp.min_ce_len = cpu_to_le16(0x0001);
> > +       cp.max_ce_len = cpu_to_le16(0x0001);
> > +
> > +       hci_send_cmd(hdev, HCI_OP_LE_CREATE_CONN, sizeof(cp), &cp);
> > +}

-- 
Ville

  reply	other threads:[~2010-10-26  7:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-25 12:21 [PATCH] Basic bluetooth low energy support Ville Tervo
2010-10-25 12:21 ` [PATCH 1/6] Bluetooth: Add low energy commands and events Ville Tervo
2010-10-25 12:21 ` [PATCH 2/6] Bluetooth: Add LE connect support Ville Tervo
2010-10-25 20:33   ` Anderson Lizardo
2010-10-26  7:55     ` Ville Tervo [this message]
2010-10-25 12:21 ` [PATCH 3/6] Bluetooth: Use LE buffers for LE traffic Ville Tervo
2010-11-10 16:53   ` Claudio Takahasi
2010-11-11  5:53     ` Ville Tervo
2010-10-25 12:21 ` [PATCH 4/6] Bluetooth: Add LE connection support to L2CAP Ville Tervo
2010-10-25 12:21 ` [PATCH 5/6] Bluetooth: Add server socket support for LE connection Ville Tervo
2010-10-27 19:09   ` Anderson Lizardo
2010-10-25 12:21 ` [PATCH 6/6] Bluetooth: Do not send disconn comand over LE links Ville Tervo
  -- strict thread matches above, loose matches on Subject: below --
2010-10-18 13:02 [RFC] Bluetooth Low energy support Ville Tervo
2010-10-18 13:02 ` [PATCH 2/6] Bluetooth: Add LE connect support Ville Tervo
2010-10-22 18:46   ` Gustavo F. Padovan
2010-10-25  7:07     ` Ville Tervo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101026075552.GB15050@null \
    --to=ville.tervo@nokia.com \
    --cc=anderson.lizardo@openbossa.org \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).