All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Gix <bgix@codeaurora.org>
To: linux-bluetooth@vger.kernel.org, Johan Hedberg <johan.hedberg@gmail.com>
Subject: Re: [PATCH 3/3] Bluetooth: Add address type fields to mgmt messages that need them
Date: Tue, 08 Nov 2011 09:05:19 -0800	[thread overview]
Message-ID: <4EB9614F.8000303@codeaurora.org> (raw)
In-Reply-To: <20111108085256.GA9733@fusion.localdomain>

Hi Johan,

On 11/8/2011 12:52 AM, Johan Hedberg wrote:
> Hi Brian,
>
> On Mon, Nov 07, 2011, Brian Gix wrote:
>>> +#define MGMT_ADDR_BREDR			0x00
>>> +#define MGMT_ADDR_LE			0x01
>>> +#define MGMT_ADDR_BREDR_LE		0x02
>>> +#define MGMT_ADDR_INVALID		0xff
>>
>
> The BREDR_LE option is there for the updated start_discovery command.
> You'll be able to specify whether you want BR/EDR-only, LE-only or
> interleaved discovery. I wouldn't add a completely new octet for public
> vs random information though but reuse the existing one instead. To be
> able to reuse our address type definitions for all purposes, how about
> making each value orthogonal to the others, e.g.:
>
> 	ADDR_BREDR	0x01
> 	ADDR_LE_PUBLIC	0x02
> 	ADDR_LE_RANDOM	0x04
>


I think that this would work well, and would support an address type 
field as a bit mask, and then extending that to all MGMT commands and 
events that use a remote address as a field/parameter.



-- 
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

  parent reply	other threads:[~2011-11-08 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 21:13 [PATCH 1/3] Bluetooth: Fix response for mgmt_start_discovery when powered off johan.hedberg
2011-11-07 21:13 ` [PATCH 2/3] Bluetooth: Update link key mgmt APIs to match latest spec johan.hedberg
2011-11-07 21:13 ` [PATCH 3/3] Bluetooth: Add address type fields to mgmt messages that need them johan.hedberg
2011-11-07 23:30   ` Brian Gix
2011-11-08  8:52     ` Johan Hedberg
2011-11-08 11:39       ` Anderson Lizardo
2011-11-08 15:01         ` Johan Hedberg
2011-11-08 16:19         ` Brian Gix
2011-11-08 17:05       ` Brian Gix [this message]
2011-11-08 15:10   ` Gustavo Padovan

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=4EB9614F.8000303@codeaurora.org \
    --to=bgix@codeaurora.org \
    --cc=johan.hedberg@gmail.com \
    --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.