Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: "Gustavo F. Padovan" <padovan@profusion.mobi>
Cc: Claudio Takahasi <claudio.takahasi@openbossa.org>,
	johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] Proposal to distinguish address device types
Date: Fri, 15 Apr 2011 18:03:10 -0700	[thread overview]
Message-ID: <1302915790.2503.31.camel@aeonflux> (raw)
In-Reply-To: <20110415184728.GA2359@joana>

Hi Claudio,

> > Device type is input to decide how to establish the L2CAP connection.
> > For LE devices fixed channel ID 4 is set, otherwise PSM should be set
> > for basic rate connections. LE public and random constants are misused
> > for discovery, however I don't see advantage of defining basic rate and
> > LE values only.
> > 
> > Based on jhe/master:
> > git://git.kernel.org/pub/scm/linux/kernel/git/jh/linux-2.6.git
> > 
> > Opinions?
> > ---
> >  include/net/bluetooth/bluetooth.h |    6 ++++++
> >  include/net/bluetooth/hci_core.h  |    4 ++--
> >  include/net/bluetooth/mgmt.h      |    1 +
> >  net/bluetooth/hci_event.c         |   16 ++++++++--------
> >  net/bluetooth/mgmt.c              |    5 +++--
> >  5 files changed, 20 insertions(+), 12 deletions(-)
> > 
> > diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
> > index 4375043..b91eec9 100644
> > --- a/include/net/bluetooth/bluetooth.h
> > +++ b/include/net/bluetooth/bluetooth.h
> > @@ -94,6 +94,12 @@ typedef struct {
> >  #define BDADDR_ANY   (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
> >  #define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
> >  
> > +enum {
> > +	BDADDR_TYPE_BR = 0,
> 
> As we going to differentiate this, can't we separate BR and BR/EDR?
> Or maybe not once most of the device today should be BR/EDR.

what is the difference between BR and BR/EDR exactly? I don't see one
and in general the specification calls this BR/EDR. So using BREDR seems
more correct.

> > +	BDADDR_TYPE_LE_PUBLIC,
> > +	BRADDR_TYPE_LE_RANDOM
> > +};

I am also not sure the we should have this BR/EDR differentiation since
the specification only talks about public and random addresses. And we
should follow the specification type value here. I am against
introducing our enum here.

Regards

Marcel



  reply	other threads:[~2011-04-16  1:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-15 18:33 [RFC] Proposal to distinguish address device types Claudio Takahasi
2011-04-15 18:47 ` Gustavo F. Padovan
2011-04-16  1:03   ` Marcel Holtmann [this message]
2011-04-16  7:00     ` Johan Hedberg
2011-04-16 17:04       ` Claudio Takahasi
2011-04-18 18:20         ` Claudio Takahasi
2011-05-30 17:27           ` Luiz Augusto von Dentz
2011-06-01 19:03             ` Gustavo F. Padovan
2011-06-01 20:00               ` Anderson Briglia
2011-06-02  1:16                 ` Marcel Holtmann
2011-06-02 13:05                   ` [RFC] PrJohan Hedbergoposal " tim.howes

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=1302915790.2503.31.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=claudio.takahasi@openbossa.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=padovan@profusion.mobi \
    /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