Commit cb72bd26 authored by francescomani's avatar francescomani

do not send to L1 DCI PDU if there are no candidates

parent 6d9c2c35
......@@ -39,9 +39,7 @@
#include "executables/softmodem-common.h"
#include <stdio.h>
void fill_dci_search_candidates(const NR_SearchSpace_t *ss,
fapi_nr_dl_config_dci_dl_pdu_rel15_t *rel15,
const uint32_t Y)
void fill_dci_search_candidates(const NR_SearchSpace_t *ss, fapi_nr_dl_config_dci_dl_pdu_rel15_t *rel15, const uint32_t Y)
{
LOG_T(NR_MAC_DCI, "Filling search candidates for DCI\n");
......@@ -320,6 +318,11 @@ void config_dci_pdu(NR_UE_MAC_INST_t *mac,
if (ss->searchSpaceType->present == NR_SearchSpace__searchSpaceType_PR_ue_Specific)
Y = get_Y(ss, slot, rel15->rnti);
fill_dci_search_candidates(ss, rel15, Y);
// not scheduling DCI reception if there are no candidates
if (rel15->number_of_candidates == 0) {
LOG_E(NR_MAC, "No candidates in this DCI, not scheduling it");
return;
}
#ifdef DEBUG_DCI
for (int i = 0; i < rel15->num_dci_options; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment