mirror of https://github.com/PentHertz/srsLTE.git
SRSUE: notify MAC about UL grant
This commit is contained in:
parent
784a33583b
commit
7aef15bf34
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue