From e8f2b3a74cdf57ac5e77aab3df2b7b5145d8d003 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 4 Jun 2021 15:32:28 +0200 Subject: [PATCH] Add PDCCH decoder correlation check in blind search --- lib/src/phy/ue/ue_dl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/ue/ue_dl.c b/lib/src/phy/ue/ue_dl.c index b60ebc661..32a3b77aa 100644 --- a/lib/src/phy/ue/ue_dl.c +++ b/lib/src/phy/ue/ue_dl.c @@ -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)) {