You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by gi...@git.apache.org on 2017/08/09 20:54:48 UTC

[GitHub] ccollins476ad opened a new pull request #482: BLE Host - Auto own-addr-type values

ccollins476ad opened a new pull request #482: BLE Host - Auto own-addr-type values
URL: https://github.com/apache/mynewt-core/pull/482
 
 
   This commit introduces two new own-addr-type values, usable only by the host:
   
   ```
       #define BLE_OWN_ADDR_AUTO_PUB                (0xf0)
       #define BLE_OWN_ADDR_AUTO_PRIV               (0xf1)
   ```
   
   These values indicate that the host should choose an appropriate own-addr-type value, depending on what is available.  The procedure for choosing an address type is as follows:
   
   ```
       if privacy requested:
           if we have a random static address:
                --> RPA with static random ID
           else
                --> RPA with public ID
           end
       else
           if we have a random static address:
                --> random static address
           else
                --> public address
           end
       end
   ```
   
   The motivation for this change is to allow BLE packages to be more self-contained.  If a package doesn't care what type of address it uses, it can just use whatever is available.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services