You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/04/09 10:09:33 UTC

[GitHub] sjanc closed pull request #31: nimble/ll: Fix build without extended advertising

sjanc closed pull request #31: nimble/ll: Fix build without extended advertising
URL: https://github.com/apache/mynewt-nimble/pull/31
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nimble/controller/src/ble_ll.c b/nimble/controller/src/ble_ll.c
index 4ed700b1..8f02f50c 100644
--- a/nimble/controller/src/ble_ll.c
+++ b/nimble/controller/src/ble_ll.c
@@ -517,12 +517,14 @@ ble_ll_set_random_addr(uint8_t *addr, bool hci_adv_ext)
 
     memcpy(g_random_addr, addr, BLE_DEV_ADDR_LEN);
 
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
     /* For instance 0 we need same address if legacy advertising might be
      * used. If extended advertising is in use than this command doesn't
      * affect instance 0.
      */
     if (!hci_adv_ext)
         ble_ll_adv_set_random_addr(addr, 0);
+#endif;
 
     return BLE_ERR_SUCCESS;
 }


 

----------------------------------------------------------------
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