Skip to content

Commit 3f8b139

Browse files
authored
Merge pull request apache#78 from sjanc/priv_build
nimble/ll: Fix build with privacy disabled
2 parents 9017366 + 729d723 commit 3f8b139

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nimble/controller/src/ble_ll_conn.c

+4
Original file line numberDiff line numberDiff line change
@@ -1742,11 +1742,13 @@ ble_ll_conn_master_init(struct ble_ll_conn_sm *connsm,
17421742
* and we need to adjust here. If device is on resolve list mark type as
17431743
* 'identity' as this means also RPA is allowed for connection.
17441744
*/
1745+
#if (MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY) == 1)
17451746
if ((connsm->peer_addr_type < BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT) &&
17461747
ble_ll_resolv_list_find(connsm->peer_addr,
17471748
connsm->peer_addr_type)) {
17481749
connsm->peer_addr_type += 2;
17491750
}
1751+
#endif
17501752

17511753
}
17521754

@@ -1858,10 +1860,12 @@ ble_ll_conn_ext_master_init(struct ble_ll_conn_sm *connsm,
18581860
* mark type as 'identity' as this means also RPA is allowed for
18591861
* connection.
18601862
*/
1863+
#if (MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY) == 1)
18611864
if (ble_ll_resolv_list_find(connsm->peer_addr,
18621865
connsm->peer_addr_type)) {
18631866
connsm->peer_addr_type += 2;
18641867
}
1868+
#endif
18651869
}
18661870

18671871
connsm->initial_params = *hcc;

0 commit comments

Comments
 (0)