From 39517952d416742c5c502ce0f05aa9907a2d7034 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Fri, 26 May 2017 16:46:33 +0200 Subject: [PATCH] fixed temporal scrambling sequence in pdsch_decode --- srslte/lib/phch/pdsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srslte/lib/phch/pdsch.c b/srslte/lib/phch/pdsch.c index 9a2281753..87e54a6d5 100644 --- a/srslte/lib/phch/pdsch.c +++ b/srslte/lib/phch/pdsch.c @@ -542,7 +542,7 @@ int srslte_pdsch_encode(srslte_pdsch_t *q, if (srslte_sequence_pdsch(&seq, rnti, 0, 2 * cfg->sf_idx, q->cell.id, cfg->nbits.nof_bits)) { return SRSLTE_ERROR; } - srslte_scrambling_bytes(&q->users[rnti]->seq[cfg->sf_idx], (uint8_t*) q->e, cfg->nbits.nof_bits); + srslte_scrambling_bytes(&seq, (uint8_t*) q->e, cfg->nbits.nof_bits); srslte_sequence_free(&seq); } else { srslte_scrambling_bytes(&q->users[rnti]->seq[cfg->sf_idx], (uint8_t*) q->e, cfg->nbits.nof_bits);