From 93c3dc1cb18afc98b94a26ab0428add093d470e8 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 19 Apr 2021 11:07:08 +0200 Subject: [PATCH] Revert "Demodulator sets LLR to zero for 0.0 symbols" This reverts commit 1a6e5cdee5f52451c85221b08e10b82865c99848. --- lib/src/phy/modem/demod_soft.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/src/phy/modem/demod_soft.c b/lib/src/phy/modem/demod_soft.c index a81bf1eaf..dac7a5f09 100644 --- a/lib/src/phy/modem/demod_soft.c +++ b/lib/src/phy/modem/demod_soft.c @@ -928,15 +928,5 @@ int srsran_demod_soft_demodulate_b(srsran_mod_t modulation, const cf_t* symbols, ERROR("Invalid modulation %d", modulation); return -1; } - - uint32_t nof_bits_x_symbol = srsran_mod_bits_x_symbol(modulation); - for (uint32_t i = 0; i < nsymbols; i++) { - if (!isnormal(__real__ symbols[i]) || !isnormal(__imag__ symbols[i])) { - for (uint32_t j = 0; j < nof_bits_x_symbol; j++) { - llr[i * nof_bits_x_symbol + j] = 0; - } - } - } - return 0; }