Zero power UCI bits is not an error but KO

This commit is contained in:
Xavier Arteaga 2021-10-07 13:10:26 +02:00
parent 4a327ad17d
commit 7262287926
1 changed files with 4 additions and 2 deletions

View File

@ -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