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@xxxxxxxxxxxxxx
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
--
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