From: Andre Guedes <andre.guedes@openbossa.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: [RFC v6 03/14] Bluetooth: Introduce connection parameters list
Date: Mon, 03 Feb 2014 11:06:10 -0300 [thread overview]
Message-ID: <1391436370.1075.3.camel@bali> (raw)
In-Reply-To: <94043278-430F-4EAE-A4F1-36AB1FB614A6@holtmann.org>
Hi Marcel,
On Fri, 2014-01-31 at 17:11 -0800, Marcel Holtmann wrote:
> Hi Andre,
>
> > This patch adds to hdev the connection parameters list (hdev->le_
> > conn_params). The elements from this list (struct hci_conn_params)
> > contains the connection parameters (for now, minimum and maximum
> > connection interval) that should be used during the connection
> > establishment.
> >
> > The struct hci_conn_params also defines the 'auto_connect' field
> > which will be used to implement the auto connection mechanism.
> >
> > Moreover, this patch adds helper functions to manipulate hdev->le_
> > conn_params list. Some of these functions are also declared in
> > hci_core.h since they will be used outside hci_core.c in upcoming
> > patches.
> >
> > Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
> > ---
> > include/net/bluetooth/hci_core.h | 25 +++++++++++++
> > net/bluetooth/hci_core.c | 80 ++++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 105 insertions(+)
> >
> > diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
> > index 197413b..f757b3f 100644
> > --- a/include/net/bluetooth/hci_core.h
> > +++ b/include/net/bluetooth/hci_core.h
> > @@ -269,6 +269,7 @@ struct hci_dev {
> > struct list_head link_keys;
> > struct list_head long_term_keys;
> > struct list_head remote_oob_data;
> > + struct list_head le_conn_params;
> >
> > struct hci_dev_stats stat;
> >
> > @@ -373,6 +374,22 @@ struct hci_chan {
> > __u8 state;
> > };
> >
> > +struct hci_conn_params {
> > + struct list_head list;
> > +
> > + bdaddr_t addr;
> > + u8 addr_type;
> > +
> > + enum {
> > + HCI_AUTO_CONN_DISABLED,
> > + HCI_AUTO_CONN_ALWAYS,
> > + HCI_AUTO_CONN_LINK_LOSS,
> > + } auto_connect;
>
> actually I would not include the auto_connect mode in the this stage of the patch set. We could have made more progress with this patch set and get things applied if things are not intermixed. So lets leave this out and only introduce it once we need it.
All right, I'll introduce this auto_connect mode in patch 13/14. It
clearly makes more sense.
Thanks,
Andre
next prev parent reply other threads:[~2014-02-03 14:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 21:22 [RFC v6 00/14] LE auto connection and connection parameters Andre Guedes
2014-01-30 21:22 ` [RFC v6 01/14] Bluetooth: Save connection interval parameters in hci_conn Andre Guedes
2014-01-30 21:22 ` [RFC v6 02/14] Bluetooth: Group list_head fields from strcut hci_dev together Andre Guedes
2014-01-30 21:22 ` [RFC v6 03/14] Bluetooth: Introduce connection parameters list Andre Guedes
2014-02-01 1:11 ` Marcel Holtmann
2014-02-03 14:06 ` Andre Guedes [this message]
2014-01-30 21:22 ` [RFC v6 04/14] Bluetooth: Use connection parameters if any Andre Guedes
2014-01-30 21:22 ` [RFC v6 05/14] Bluetooth: Introduce le_conn_failed() helper Andre Guedes
2014-01-30 21:22 ` [RFC v6 06/14] Bluetooth: Stop scanning on LE connection Andre Guedes
2014-01-30 21:22 ` [RFC v6 07/14] Bluetooth: Remove unused function Andre Guedes
2014-01-30 21:22 ` [RFC v6 08/14] Bluetooth: Introduce hdev->pend_le_conn list Andre Guedes
2014-01-30 21:22 ` [RFC v6 09/14] Bluetooth: Introduce LE auto connection infrastructure Andre Guedes
2014-01-30 21:22 ` [RFC v6 10/14] Bluetooth: Re-enable background scan in case of error Andre Guedes
2014-01-30 21:22 ` [RFC v6 11/14] Bluetooth: Temporarily stop background scanning on discovery Andre Guedes
2014-01-30 21:22 ` [RFC v6 12/14] Bluetooth: Auto connection and power on Andre Guedes
2014-01-30 21:22 ` [RFC v6 13/14] Bleutooth: Add support for auto connect options Andre Guedes
2014-01-30 21:22 ` [RFC v6 14/14] Bluetooth: Add le_auto_conn file on debugfs Andre Guedes
2014-02-01 1:17 ` [RFC v6 00/14] LE auto connection and connection parameters Marcel Holtmann
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=1391436370.1075.3.camel@bali \
--to=andre.guedes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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).