Minor aesthetic changes and fix memory issue

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent 0396ebae17
commit 7495986b5c

@ -91,7 +91,7 @@ extern "C" {
/** /**
* @brief defines the maximum number of resource elements per PRB * @brief defines the maximum number of resource elements per PRB
* @remark Defined in TS 36.214 V15.10.0 5.1.3.2 Transport block size determination, point 1, second bullet * @remark Defined in TS 38.214 V15.10.0 5.1.3.2 Transport block size determination, point 1, second bullet
*/ */
#define SRSLTE_MAX_NRE_NR 156 #define SRSLTE_MAX_NRE_NR 156

@ -726,7 +726,7 @@ int srslte_dmrs_pdsch_estimate(srslte_dmrs_pdsch_t* q,
uint32_t symbol_idx = 0; uint32_t symbol_idx = 0;
uint32_t count = 0; uint32_t count = 0;
for (uint32_t l = grant->S; l < grant->S + grant->L; l++) { for (uint32_t l = grant->S; l < grant->S + grant->L; l++) {
while (symbols[symbol_idx] < l && symbol_idx < nof_symbols) { while (symbols[symbol_idx] < l && symbol_idx < nof_symbols - 1) {
symbol_idx++; symbol_idx++;
} }

@ -39,7 +39,6 @@ int pdsch_nr_init_common(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
int srslte_pdsch_nr_init_enb(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args) int srslte_pdsch_nr_init_enb(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
{ {
if (q == NULL) { if (q == NULL) {
return SRSLTE_ERROR_INVALID_INPUTS; return SRSLTE_ERROR_INVALID_INPUTS;
} }
@ -58,7 +57,6 @@ int srslte_pdsch_nr_init_enb(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* ar
int srslte_pdsch_nr_init_ue(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args) int srslte_pdsch_nr_init_ue(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
{ {
if (q == NULL || args == NULL) { if (q == NULL || args == NULL) {
return SRSLTE_ERROR_INVALID_INPUTS; return SRSLTE_ERROR_INVALID_INPUTS;
} }

Loading…
Cancel
Save