Skip to content

Commit 9a8b1b1

Browse files
cvinayakdleach02
authored andcommitted
Bluetooth: Controller: Fix compile error when BT_CTLR_PRIVACY disabled
Fix compile error when BT_CTLR_PRIVACY is disabled. Compile error seen building hci_uart sample for nrf54l15dk. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 742ffd5 commit 9a8b1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_llcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ uint8_t ull_cp_periodic_sync(struct ll_conn *conn, struct ll_sync_set *sync,
10721072
interval = sync->interval;
10731073

10741074
addr_type = sync->peer_id_addr_type;
1075-
if (sync->peer_addr_resolved) {
1075+
if (IS_ENABLED(CONFIG_BT_CTLR_PRIVACY) && sync->peer_addr_resolved) {
10761076
uint8_t rl_idx;
10771077

10781078
/* peer_id_addr contains the identity address; Get the peers RPA */

0 commit comments

Comments
 (0)