From beaeea740d3c22f233c1857c442ed983d48be2d3 Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Thu, 12 Oct 2017 16:28:37 +0200 Subject: [PATCH] bugfix: careful when setting harq_mask (didn't work for dci 1a sent to UE to do uplink) --- openair1/PHY/LTE_TRANSPORT/dci_tools.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openair1/PHY/LTE_TRANSPORT/dci_tools.c b/openair1/PHY/LTE_TRANSPORT/dci_tools.c index af7fe279e4..a4dce4d1cc 100644 --- a/openair1/PHY/LTE_TRANSPORT/dci_tools.c +++ b/openair1/PHY/LTE_TRANSPORT/dci_tools.c @@ -911,7 +911,6 @@ void fill_dci_and_dlsch(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC_t *dci dlsch0_harq->round=0; } else { // process is inactive, so activate and set round to 0 - dlsch0->harq_mask |= (1<<rel8->harq_process); dlsch0_harq->round=0; } dlsch0_harq->ndi = rel8->new_data_indicator_1; @@ -1109,6 +1108,8 @@ LOG_D(PHY,"NFAPI: harq_pid %d harq_mask %x, round %d ndi (%d,%d) rnti type %d\n" if (dlsch0_harq->round == 0) dlsch0_harq->status = ACTIVE; + dlsch0->harq_mask |= (1<<rel8->harq_process); + if (rel8->rnti_type == 1) LOG_I(PHY,"DCI 1A: round %d, mcs %d, rballoc %x,rv %d, rnti %x\n",dlsch0_harq->round,rel8->mcs_1,rel8->resource_block_coding,rel8->redundancy_version_1,rel8->rnti); break; @@ -1270,6 +1271,7 @@ LOG_D(PHY,"NFAPI: harq_pid %d harq_mask %x, round %d ndi (%d,%d) rnti type %d\n" LOG_D(PHY,"DCI: Set harq_ids[%d] to %d (%p)\n",subframe,rel8->harq_process,dlsch0); dlsch0->harq_ids[subframe] = rel8->harq_process; + dlsch0->harq_mask |= (1<<rel8->harq_process); dlsch0->rnti = rel8->rnti; -- GitLab