You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2021/10/04 09:43:24 UTC
[mynewt-nimble] branch master updated: nimble/ll: Fix build with
past and without privacy
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 74e1217 nimble/ll: Fix build with past and without privacy
74e1217 is described below
commit 74e121759876df954ea1dce73d27e0eb65ff822e
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Thu Sep 30 23:24:24 2021 +0200
nimble/ll: Fix build with past and without privacy
---
nimble/controller/src/ble_ll_sync.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/nimble/controller/src/ble_ll_sync.c b/nimble/controller/src/ble_ll_sync.c
index cdffc4b..78d9456 100644
--- a/nimble/controller/src/ble_ll_sync.c
+++ b/nimble/controller/src/ble_ll_sync.c
@@ -1922,6 +1922,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm,
rpa_index = -1;
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY)
/* check if need to resolve */
if (ble_ll_is_rpa(addr, addr_type)) {
rpa_index = ble_ll_resolv_peer_rpa_any(addr);
@@ -1931,6 +1932,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm,
addr_type = g_ble_ll_resolv_list[rpa_index].rl_addr_type;
}
}
+#endif
OS_ENTER_CRITICAL(sr);
/* check if already synchronized with this peer */