From 1eaf7efab081fb7482786d02d467e9be9ac1a136 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 14 Jul 2020 15:35:11 +0200 Subject: [PATCH] Fix UL adaptive retx rv index --- lib/src/phy/phch/ra_ul.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/phy/phch/ra_ul.c b/lib/src/phy/phch/ra_ul.c index fb41d7b6b..abcf60025 100644 --- a/lib/src/phy/phch/ra_ul.c +++ b/lib/src/phy/phch/ra_ul.c @@ -292,12 +292,13 @@ int srslte_ra_ul_dci_to_grant(srslte_cell_t* cell, // Compute PRB allocation if (!ra_ul_grant_to_grant_prb_allocation(dci, grant, hopping_cfg->n_rb_ho, cell->nof_prb)) { - // Compute MCS + // copy default values from DCI. RV can be updated by ul_fill_ra_mcs() in case of Adaptive retx (mcs>28) grant->tb.mcs_idx = dci->tb.mcs_idx; + grant->tb.rv = dci->tb.rv; + + // Compute MCS ul_fill_ra_mcs(&grant->tb, &grant->last_tb, grant->L_prb, dci->cqi_request); - // copy RV - grant->tb.rv = dci->tb.rv; /* Compute RE assuming shortened is false*/ srslte_ra_ul_compute_nof_re(grant, cell->cp, 0);