Commit 8f688c00 authored by Laurent THOMAS's avatar Laurent THOMAS

replace assert by error logging when we call DFT with impossible size to deal with existing LTE UE

parent 486cebce
...@@ -93,6 +93,11 @@ void dft_lte(int32_t *z,struct complex16 *input, int32_t Msc_PUSCH, uint8_t Nsym ...@@ -93,6 +93,11 @@ void dft_lte(int32_t *z,struct complex16 *input, int32_t Msc_PUSCH, uint8_t Nsym
// printf("\n"); // printf("\n");
dft_size_idx_t dftsize = get_dft(Msc_PUSCH); dft_size_idx_t dftsize = get_dft(Msc_PUSCH);
if (dftsize == DFT_SIZE_IDXTABLESIZE) {
LOG_E(PHY, "Internal error, not modulating the slot, Msc_PUSCH = %d\n", Msc_PUSCH);
return;
}
switch (Msc_PUSCH) { switch (Msc_PUSCH) {
case 12: case 12:
dft(dftsize, (int16_t *)dft_in0, (int16_t *)dft_out0, 0); dft(dftsize, (int16_t *)dft_in0, (int16_t *)dft_out0, 0);
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <simde/simde-common.h> #include <simde/simde-common.h>
#include <simde/x86/sse.h> #include <simde/x86/sse.h>
#include <simde/x86/avx2.h> #include <simde/x86/avx2.h>
#include "common/utils/LOG/log.h"
#define simd_q15_t simde__m128i #define simd_q15_t simde__m128i
#define simdshort_q15_t simde__m64 #define simdshort_q15_t simde__m64
...@@ -623,7 +624,7 @@ static inline dft_size_idx_t get_dft(int size) ...@@ -623,7 +624,7 @@ static inline dft_size_idx_t get_dft(int size)
switch (size) { switch (size) {
FOREACH_DFTSZ(FIND_ENUM) FOREACH_DFTSZ(FIND_ENUM)
default: default:
AssertFatal(false, "function get_dft : unsupported DFT size %d\n", size); LOG_E(UTIL, "function get_dft : unsupported DFT size %d\n", size);
break; break;
} }
return DFT_SIZE_IDXTABLESIZE; return DFT_SIZE_IDXTABLESIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment