Add PDCCH decoder correlation check in blind search

This commit is contained in:
Xavier Arteaga 2021-06-04 15:32:28 +02:00 committed by Andre Puschmann
parent 7c78fd2050
commit e8f2b3a74c
1 changed files with 9 additions and 1 deletions

View File

@ -440,8 +440,16 @@ static int dci_blind_search(srsran_ue_dl_t* q,
return SRSRAN_ERROR;
}
// Check if RNTI is matched
if ((dci_msg[nof_dci].rnti == rnti) && (dci_msg[nof_dci].nof_bits > 0)) {
dci_msg[nof_dci].rnti = rnti;
// Compute decoded message correlation to drastically reduce false alarm probability
float corr = srsran_pdcch_msg_corr(&q->pdcch, &dci_msg[nof_dci]);
// Skip candidate if the threshold is not reached
// 0.5 is set from pdcch_test
if (!isnormal(corr) || corr < 0.5f) {
continue;
}
// Look for the messages found and apply the new format if the location is common
if (search_in_common && (dci_cfg->multiple_csi_request_enabled || dci_cfg->srs_request_enabled)) {