|
|
@ -65,8 +65,7 @@ phch_worker::phch_worker() : tr_exec(10240)
|
|
|
|
cell_initiated = false;
|
|
|
|
cell_initiated = false;
|
|
|
|
pregen_enabled = false;
|
|
|
|
pregen_enabled = false;
|
|
|
|
trace_enabled = false;
|
|
|
|
trace_enabled = false;
|
|
|
|
|
|
|
|
reset();
|
|
|
|
reset();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -97,7 +96,7 @@ void phch_worker::reset()
|
|
|
|
bzero(&period_cqi, sizeof(srslte_cqi_periodic_cfg_t));
|
|
|
|
bzero(&period_cqi, sizeof(srslte_cqi_periodic_cfg_t));
|
|
|
|
I_sr = 0;
|
|
|
|
I_sr = 0;
|
|
|
|
rnti_is_set = false;
|
|
|
|
rnti_is_set = false;
|
|
|
|
rar_cqi_request = false;
|
|
|
|
rar_cqi_request = false;
|
|
|
|
cfi = 0;
|
|
|
|
cfi = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -482,7 +481,11 @@ bool phch_worker::decode_pdcch_dl(srsue::mac_interface_phy::mac_grant_t* grant)
|
|
|
|
/* Fill MAC grant structure */
|
|
|
|
/* Fill MAC grant structure */
|
|
|
|
grant->ndi[0] = dci_unpacked.ndi;
|
|
|
|
grant->ndi[0] = dci_unpacked.ndi;
|
|
|
|
grant->ndi[1] = dci_unpacked.ndi_1;
|
|
|
|
grant->ndi[1] = dci_unpacked.ndi_1;
|
|
|
|
grant->pid = ASYNC_DL_SCHED?dci_unpacked.harq_process:(tti%(2*HARQ_DELAY_MS));
|
|
|
|
if (tti < MOD_N_PROC) {
|
|
|
|
|
|
|
|
grant->pid = ASYNC_DL_SCHED?dci_unpacked.harq_process:tti+(2*HARQ_DELAY_MS);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
grant->pid = ASYNC_DL_SCHED?dci_unpacked.harq_process:(tti%(2*HARQ_DELAY_MS));
|
|
|
|
|
|
|
|
}
|
|
|
|
grant->n_bytes[0] = grant->phy_grant.dl.mcs[0].tbs / (uint32_t) 8;
|
|
|
|
grant->n_bytes[0] = grant->phy_grant.dl.mcs[0].tbs / (uint32_t) 8;
|
|
|
|
grant->n_bytes[1] = grant->phy_grant.dl.mcs[1].tbs / (uint32_t) 8;
|
|
|
|
grant->n_bytes[1] = grant->phy_grant.dl.mcs[1].tbs / (uint32_t) 8;
|
|
|
|
grant->tti = tti;
|
|
|
|
grant->tti = tti;
|
|
|
|