From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] Bluetooth: Add link_type information to the mgmt Connected event
Date: Thu, 16 Jun 2011 18:57:18 -0300 [thread overview]
Message-ID: <20110616215718.GA23537@piper.indt.org> (raw)
In-Reply-To: <20110616210924.GA14812@dell.ger.corp.intel.com>
Hi Johan,
On 00:09 Fri 17 Jun, Johan Hedberg wrote:
> Hi,
>
> On Thu, Jun 16, 2011, Gustavo F. Padovan wrote:
> > > -int mgmt_connected(u16 index, bdaddr_t *bdaddr)
> > > +int mgmt_connected(u16 index, bdaddr_t *bdaddr, u8 link_type)
> > > {
> > > struct mgmt_ev_connected ev;
> > >
> > > bacpy(&ev.bdaddr, bdaddr);
> > > + ev.link_type = link_type;
> > >
> > > return mgmt_event(MGMT_EV_CONNECTED, index, &ev, sizeof(ev), NULL);
> > > }
> >
> > Seems good to me. Anyone else has comments on it?
>
> It seems this is using the SCO_LINK, ESCO_LINK, ACL_LINK, and LE_LINK
> defines, right? If we're going to add an address or link type I think
> it'd be good to have the random vs public information for LE addresses
> included from the start.
Yes, we have to think about exporting the type of the address, I just am
not sure that the Connected event is the right place, for me, the story this
event tells is more like: "we are connected to device X over link Y". I
don't know how to fit address type information in that message.
The Device Found event, on the other hand, seems more appropriate for address
type information.
>
> Johan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
prev parent reply other threads:[~2011-06-16 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 22:34 [RFC] Bluetooth: Add link_type information to the mgmt Connected event Vinicius Costa Gomes
2011-06-16 20:56 ` Gustavo F. Padovan
2011-06-16 21:09 ` Johan Hedberg
2011-06-16 21:50 ` Marcel Holtmann
2011-06-16 21:57 ` Vinicius Costa Gomes [this message]
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=20110616215718.GA23537@piper.indt.org \
--to=vinicius.gomes@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.