mirror of https://github.com/PentHertz/srsLTE.git
{ul,dl}_harq_nr: reword log entries if HARQ PID isn't found
This commit is contained in:
parent
edd150b29f
commit
73d6b33920
|
@ -77,7 +77,7 @@ void dl_harq_entity_nr::new_grant_dl(const mac_nr_grant_dl_t& grant, mac_interfa
|
|||
proc_ptr = &bcch_proc;
|
||||
} else {
|
||||
if (grant.pid >= cfg.nof_procs) {
|
||||
logger.error("Invalid PID: %d", grant.pid);
|
||||
logger.error("Grant for invalid HARQ PID=%d", grant.pid);
|
||||
return;
|
||||
}
|
||||
proc_ptr = harq_procs.at(grant.pid).get();
|
||||
|
@ -105,7 +105,7 @@ void dl_harq_entity_nr::tb_decoded(const mac_nr_grant_dl_t& grant, mac_interface
|
|||
bcch_proc.tb_decoded(grant, std::move(result));
|
||||
} else {
|
||||
if (grant.pid >= cfg.nof_procs) {
|
||||
logger.error("Invalid PID: %d", grant.pid);
|
||||
logger.error("Decoded TB for invalid HARQ PID=%d", grant.pid);
|
||||
return;
|
||||
}
|
||||
harq_procs.at(grant.pid)->tb_decoded(grant, std::move(result));
|
||||
|
|
|
@ -60,7 +60,7 @@ void ul_harq_entity_nr::new_grant_ul(const mac_interface_phy_nr::mac_nr_grant_ul
|
|||
mac_interface_phy_nr::tb_action_ul_t* action)
|
||||
{
|
||||
if (grant.pid >= harq_procs.size()) {
|
||||
logger.error("Invalid PID: %d", grant.pid);
|
||||
logger.error("UL grant for invalid HARQ PID=%d", grant.pid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ void ul_harq_entity_nr::new_grant_ul(const mac_interface_phy_nr::mac_nr_grant_ul
|
|||
int ul_harq_entity_nr::get_current_tbs(uint32_t pid)
|
||||
{
|
||||
if (pid >= harq_procs.size()) {
|
||||
logger.error("Invalid PID: %d", pid);
|
||||
logger.error("Invalid HARQ PID=%d", pid);
|
||||
return 0;
|
||||
}
|
||||
return harq_procs.at(pid).get_current_tbs();
|
||||
|
|
Loading…
Reference in New Issue