Fix SIGFPE in pdsch_codeword_decode

master
Ismael Gomez 7 years ago
parent 81b69327b1
commit d139a73593

@ -637,7 +637,7 @@ static int srslte_pdsch_codeword_decode(srslte_pdsch_t *q, srslte_pdsch_cfg_t *c
/* Bit scrambling */ /* Bit scrambling */
srslte_scrambling_s_offset(seq, q->e[codeword_idx], 0, nbits->nof_bits); srslte_scrambling_s_offset(seq, q->e[codeword_idx], 0, nbits->nof_bits);
uint32_t qm = nbits->nof_bits/nbits->nof_re; uint32_t qm = 0;
switch(cfg->grant.mcs[tb_idx].mod) { switch(cfg->grant.mcs[tb_idx].mod) {
case SRSLTE_MOD_BPSK: case SRSLTE_MOD_BPSK:

Loading…
Cancel
Save