SRSUE: notify MAC about UL grant

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent 784a33583b
commit 7aef15bf34

@ -268,7 +268,14 @@ bool cc_worker::work_ul()
if (has_pusch_grant) { if (has_pusch_grant) {
// Notify MAC about PUSCH found 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); srslte_softbuffer_tx_reset(&softbuffer_tx);
pusch_cfg.grant.tb[0].softbuffer.tx = &softbuffer_tx; pusch_cfg.grant.tb[0].softbuffer.tx = &softbuffer_tx;

Loading…
Cancel
Save