SRSUE: notify MAC about UL grant

This commit is contained in:
Xavier Arteaga 2021-02-12 18:06:54 +01:00 committed by Xavier Arteaga
parent 784a33583b
commit 7aef15bf34
1 changed files with 8 additions and 1 deletions

View File

@ -268,7 +268,14 @@ bool cc_worker::work_ul()
if (has_pusch_grant) {
// Notify MAC about PUSCH found grant
// ...
mac_interface_phy_nr::mac_nr_grant_ul_t mac_ul_grant = {};
mac_ul_grant.pid = pid;
mac_ul_grant.rnti = pusch_cfg.grant.rnti;
mac_ul_grant.tti = ul_slot_cfg.idx;
mac_ul_grant.tbs = pusch_cfg.grant.tb[0].tbs;
phy->stack->new_grant_ul(0, mac_ul_grant);
// Provisional reset and assign Tx softbuffer
srslte_softbuffer_tx_reset(&softbuffer_tx);
pusch_cfg.grant.tb[0].softbuffer.tx = &softbuffer_tx;