Hi Johan, On Mon, Jan 31, 2011 at 6:40 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote: > Hi Claudio, > > On Fri, Jan 28, 2011, Claudio Takahasi wrote: >> When privacy is enabled, random address is used during active scanning. >> The non-resolvable private address shall be set using hciconfig. >> --- >> Âtools/hcitool.c | Â 13 +++++++++---- >> Â1 files changed, 9 insertions(+), 4 deletions(-) > > Both patches have been pushed upstream. Thanks. > > Any plans how to represent this feature in the official APIs? I suppose > the random address can be generated automatically using some appropriate > source such as the HCI_LE_Rand command but how do we represent the > public vs random address selection using the D-Bus API? Or do we even > need to do that? > > Johan > I added these changes to investigate the PTS test result, it is not mandatory. I am was planning to focus on Register Application API first instead of privacy for central. The implementation is simple, if someone in the community wants to help us, here are some guidelines: My idea is add a new property in the adapter interface called: Privacy. The changes will be: 1. Add Privacy property with persistent storage => adapter.SetProperty("Privacy", True/False) 2. Generate a non-resolvable private address. My suggestion is to read the data directly from "/dev/random" instead of use HCI_LE_Rand command(needs to wait for command complete). 3. Trigger the LE scanning based on this property. PS: For LE Create Connection command the own address type must be set based on privacy value, however this change requires changes in the kernel. Currently, Own_Address_Type is hard-coded in the kernel(public address only). Regards, Claudio. -- 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