Re: [RFC v6 03/14] Bluetooth: Introduce connection parameters list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
> > ---
> > 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


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux