From 72622879265fe7cff47a7796ac425ecae3d2c242 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 7 Oct 2021 13:10:26 +0200 Subject: [PATCH] Zero power UCI bits is not an error but KO --- lib/src/phy/phch/uci_nr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/phch/uci_nr.c b/lib/src/phy/phch/uci_nr.c index f7934fe7d..31638d696 100644 --- a/lib/src/phy/phch/uci_nr.c +++ b/lib/src/phy/phch/uci_nr.c @@ -633,9 +633,11 @@ static int uci_nr_decode_3_11_bit(srsran_uci_nr_t* q, // Compute average LLR power float pwr = srsran_vec_avg_power_bf(llr, E); + + // If the power measurement is invalid (zero, NAN, INF) then consider it cannot be decoded if (!isnormal(pwr)) { - ERROR("Received all zeros"); - return SRSRAN_ERROR; + *decoded_ok = false; + return SRSRAN_SUCCESS; } // Decode