From 9502e7537ca3d53a77fb9ffbe21d8414448e02cc Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 19 Mar 2025 10:00:38 +0100 Subject: [PATCH] avoiding segfault in LOGs in case of harq disabled --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c index 0092c388b6..39aae6db49 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c @@ -1032,9 +1032,9 @@ void nr_schedule_ue_spec(module_id_t module_id, harq->round, nr_get_rv(harq->round % 4), harq->ndi, - pucch->timing_indicator, - pucch->frame, - pucch->ul_slot, + pucch ? pucch->timing_indicator : 0, + pucch ? pucch->frame : 0, + pucch ? pucch->ul_slot : 0, sched_pdsch->pucch_allocation, sched_ctrl->tpc1); @@ -1222,7 +1222,7 @@ void nr_schedule_ue_spec(module_id_t module_id, dci_payload.ndi, dci_payload.rv, dci_payload.tpc, - pucch->timing_indicator); + pucch ? pucch->timing_indicator : 0); const int rnti_type = TYPE_C_RNTI_; fill_dci_pdu_rel15(&UE->sc_info,