From 1edeecfbfe4d30780439f622180899241e0b4910 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 7 Jun 2016 12:36:27 +0200 Subject: [PATCH] Changed rv_idx to int for format1c --- srslte/include/srslte/phch/ra.h | 2 +- srslte/lib/phch/dci.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/srslte/include/srslte/phch/ra.h b/srslte/include/srslte/phch/ra.h index a65cf8442..a3e901a8c 100644 --- a/srslte/include/srslte/phch/ra.h +++ b/srslte/include/srslte/phch/ra.h @@ -124,7 +124,7 @@ typedef struct SRSLTE_API { uint32_t mcs_idx; uint32_t harq_process; - uint32_t rv_idx; + int rv_idx; bool ndi; } srslte_ra_dl_dci_t; diff --git a/srslte/lib/phch/dci.c b/srslte/lib/phch/dci.c index 719e3c5d0..88fa78b9d 100644 --- a/srslte/lib/phch/dci.c +++ b/srslte/lib/phch/dci.c @@ -806,6 +806,7 @@ int dci_format1Cs_unpack(srslte_dci_msg_t *msg, srslte_ra_dl_dci_t *data, uint32 data->mcs_idx = srslte_bit_pack(&y, 5); data->dci_format = SRSLTE_RA_DCI_FORMAT1C; + data->rv_idx = -1; // For SI-RNTI, get RV from TTI msg->nof_bits = (y - msg->data);