mirror of https://github.com/PentHertz/srsLTE.git
Duplicate NR PDSCH transmits ACK and add ACK Tx TTI to trace
This commit is contained in:
parent
de9158eeaf
commit
9fb091262a
|
@ -229,9 +229,14 @@ bool cc_worker::work_dl()
|
||||||
mac_dl_grant.tti = dl_slot_cfg.idx;
|
mac_dl_grant.tti = dl_slot_cfg.idx;
|
||||||
phy->stack->new_grant_dl(0, mac_dl_grant, &dl_action);
|
phy->stack->new_grant_dl(0, mac_dl_grant, &dl_action);
|
||||||
|
|
||||||
// Early stop if MAC says it doesn't need the TB
|
// Abort if MAC says it doesn't need the TB
|
||||||
if (not dl_action.tb.enabled) {
|
if (not dl_action.tb.enabled) {
|
||||||
logger.info("Decoding not required. Skipping PDSCH");
|
// Force positive ACK
|
||||||
|
if (pdsch_cfg.grant.rnti_type == srsran_rnti_type_c) {
|
||||||
|
phy->set_pending_ack(dl_slot_cfg.idx, ack_resource, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info("Decoding not required. Skipping PDSCH. ack_tti_tx=%d", TTI_ADD(dl_slot_cfg.idx, ack_resource.k1));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,8 +275,13 @@ bool cc_worker::work_dl()
|
||||||
str.data(),
|
str.data(),
|
||||||
str_extra.data());
|
str_extra.data());
|
||||||
} else {
|
} else {
|
||||||
logger.info(
|
logger.info(pdsch_res.tb[0].payload,
|
||||||
pdsch_res.tb[0].payload, pdsch_cfg.grant.tb[0].tbs / 8, "PDSCH: cc=%d pid=%d %s", cc_idx, pid, str.data());
|
pdsch_cfg.grant.tb[0].tbs / 8,
|
||||||
|
"PDSCH: cc=%d pid=%d %s ack_tti_tx=%d",
|
||||||
|
cc_idx,
|
||||||
|
pid,
|
||||||
|
str.data(),
|
||||||
|
TTI_ADD(dl_slot_cfg.idx, ack_resource.k1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue