From ece206758a05bbdacc6a3b31d0fb1b82bc00a7f5 Mon Sep 17 00:00:00 2001 From: francescomani Date: Tue, 10 Sep 2024 16:33:59 +0200 Subject: [PATCH] prevent UE to print HARQ processing error log for MSG2 --- openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c b/openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c index 6b20c2d16e..2da11f109c 100644 --- a/openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c +++ b/openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c @@ -1092,9 +1092,10 @@ static int8_t handle_dlsch(NR_UE_MAC_INST_t *mac, nr_downlink_indication_t *dl_i if (get_softmodem_params()->emulate_l1) dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.harq_pid = g_harq_pid; - update_harq_status(mac, - dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.harq_pid, - dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.ack_nack); + if (mac->ra.ra_state != nrRA_WAIT_RAR) // no HARQ for MSG2 + update_harq_status(mac, + dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.harq_pid, + dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.ack_nack); if(dl_info->rx_ind->rx_indication_body[pdu_id].pdsch_pdu.ack_nack) nr_ue_send_sdu(mac, dl_info, pdu_id);