enb,slot_worker: skip UL signal demod if scheduler returns empty results

This commit is contained in:
Andre Puschmann 2021-10-22 10:31:19 +02:00
parent b54d4ad8e2
commit 2cee65bb88
1 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,11 @@ bool slot_worker::work_ul()
return false;
}
if (ul_sched.pucch.empty() && ul_sched.pusch.empty()) {
// early exit if nothing has been scheduled
return true;
}
// Demodulate
if (srsran_gnb_ul_fft(&gnb_ul) < SRSRAN_SUCCESS) {
logger.error("Error in demodulation");