Fix UL adaptive retx rv index

This commit is contained in:
Ismael Gomez 2020-07-14 15:35:11 +02:00
parent 5b2d1b609b
commit 1eaf7efab0
1 changed files with 4 additions and 3 deletions

View File

@ -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);