From ecdfa579ec9f9842c4b82c1e50a18c8de58f2773 Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Fri, 16 Aug 2019 10:50:03 +0200 Subject: [PATCH] Fixed inverted interpretation of new data indication (ndi) field in dci_format1As_pack() function --- lib/src/phy/phch/dci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/phch/dci.c b/lib/src/phy/phch/dci.c index 28b0ff0f4..03fb20d65 100644 --- a/lib/src/phy/phch/dci.c +++ b/lib/src/phy/phch/dci.c @@ -672,7 +672,7 @@ static int dci_format1As_pack( srslte_bit_unpack(dci->pid, &y, HARQ_PID_LEN); - if (SRSLTE_RNTI_ISUSER(dci->rnti)) { + if (!SRSLTE_RNTI_ISUSER(dci->rnti)) { if (nof_prb >= 50 && dci->type2_alloc.mode == SRSLTE_RA_TYPE2_DIST) { *y++ = dci->type2_alloc.n_gap; } else {