replace assert by error logging when we call DFT with impossible size to deal with existing LTE UE
This commit is contained in:
@@ -93,6 +93,11 @@ void dft_lte(int32_t *z,struct complex16 *input, int32_t Msc_PUSCH, uint8_t Nsym
|
||||
|
||||
// printf("\n");
|
||||
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) {
|
||||
case 12:
|
||||
dft(dftsize, (int16_t *)dft_in0, (int16_t *)dft_out0, 0);
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <simde/simde-common.h>
|
||||
#include <simde/x86/sse.h>
|
||||
#include <simde/x86/avx2.h>
|
||||
#include "common/utils/LOG/log.h"
|
||||
|
||||
#define simd_q15_t simde__m128i
|
||||
#define simdshort_q15_t simde__m64
|
||||
@@ -623,7 +624,7 @@ static inline dft_size_idx_t get_dft(int size)
|
||||
switch (size) {
|
||||
FOREACH_DFTSZ(FIND_ENUM)
|
||||
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;
|
||||
}
|
||||
return DFT_SIZE_IDXTABLESIZE;
|
||||
|
||||
Reference in New Issue
Block a user