From 21652950fd21bbe107e850f3143efc210bbb9fde Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 24 May 2018 10:50:52 +0200 Subject: [PATCH] Do not reset full softbuffer --- srsue/hdr/mac/dl_harq.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srsue/hdr/mac/dl_harq.h b/srsue/hdr/mac/dl_harq.h index 47ebb209f..f9dd39461 100644 --- a/srsue/hdr/mac/dl_harq.h +++ b/srsue/hdr/mac/dl_harq.h @@ -238,7 +238,7 @@ private: payload_buffer_ptr = NULL; } bzero(&cur_grant, sizeof(Tgrant)); - if (is_initiated) { + if (is_initiated && lock) { srslte_softbuffer_rx_reset(&softbuffer); } if (lock) { @@ -268,7 +268,9 @@ private: Warning("DL PID %d: Size of grant changed during a retransmission %d!=%d\n", pid, cur_grant.n_bytes[tid], grant.n_bytes[tid]); } - reset(false); + ack = false; + srslte_softbuffer_rx_reset_tbs(&softbuffer, cur_grant.n_bytes[tid] * 8); + n_retx = 0; } // If data has not yet been successfully decoded