Re: Adding platform specific API to get public and/or random static address

2017-04-04 Thread will sanfilippo
Marcel: Thanks for the clarification on the public address and that for BLE the two LSbits of the MSbyte do not apply. I do understand the trickiness of changing the public address but it is certainly helpful for debugging/testing. > On Apr 3, 2017, at 9:38 AM, Marcel Holtmann

Re: Adding platform specific API to get public and/or random static address

2017-04-03 Thread will sanfilippo
Setting the public address from the host came from two things: bletiny and also my recollection of one of the vendor specific HCI commands that was discussed at Linaro Connect in Budapest this past March. I am trying to find the document we discussed in Budapest to confirm that this was one of

Re: Adding platform specific API to get public and/or random static address

2017-04-01 Thread Christopher Collins
On Sat, Apr 01, 2017 at 09:53:03AM +0200, Marcel Holtmann wrote: > > Some things about writing apps and the BLE spec: > > 1) I realize that it is the host that tells the controller the > > random address to use. The controller will NOT automatically use the > > random address from

Re: Adding platform specific API to get public and/or random static address

2017-04-01 Thread will sanfilippo
Comments inline: > On Apr 1, 2017, at 12:53 AM, Marcel Holtmann wrote: > > Hi Will, > >> There has been some discussion of this already on the list but nothing has >> been done yet so I wanted to resurrect the conversation with some proposals. >> >> What we are trying to

Re: Adding platform specific API to get public and/or random static address

2017-04-01 Thread Marcel Holtmann
Hi Will, > There has been some discussion of this already on the list but nothing has > been done yet so I wanted to resurrect the conversation with some proposals. > > What we are trying to do here is the following: > 1) Have the controller get a public device address without it being

Re: Adding platform specific API to get public and/or random static address

2017-03-31 Thread will sanfilippo
Yep, except for one typo: ble_hw_get_public_addr() instead of ble_hs_get_public_addr(). I should have mentioned that, assuming we agree to this, the controller code will call that API and the host should not call it. I mentioned this API in case someone wants to modify how it works for them.

Re: Adding platform specific API to get public and/or random static address

2017-03-31 Thread Christopher Collins
On Fri, Mar 31, 2017 at 03:49:05PM -0700, will sanfilippo wrote: > Hello: > > There has been some discussion of this already on the list but nothing has > been done yet so I wanted to resurrect the conversation with some proposals. > > What we are trying to do here is the following: > 1) Have

Adding platform specific API to get public and/or random static address

2017-03-31 Thread will sanfilippo
Hello: There has been some discussion of this already on the list but nothing has been done yet so I wanted to resurrect the conversation with some proposals. What we are trying to do here is the following: 1) Have the controller get a public device address without it being hardcoded. 2) Have