diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index ec3cbf354f81e..d0b6e9b93426e 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -2787,8 +2787,10 @@ static const struct event_handler meta_events[] = { #if defined(CONFIG_BT_PER_ADV_SYNC_RSP) EVENT_HANDLER(BT_HCI_EVT_LE_PER_ADVERTISING_REPORT_V2, bt_hci_le_per_adv_report_v2, sizeof(struct bt_hci_evt_le_per_advertising_report_v2)), +#if defined(CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER) EVENT_HANDLER(BT_HCI_EVT_LE_PAST_RECEIVED_V2, bt_hci_le_past_received_v2, sizeof(struct bt_hci_evt_le_past_received_v2)), +#endif /* CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER */ EVENT_HANDLER(BT_HCI_EVT_LE_PER_ADV_SYNC_ESTABLISHED_V2, bt_hci_le_per_adv_sync_established_v2, sizeof(struct bt_hci_evt_le_per_adv_sync_established_v2)),