From 9acefc53f8477c99231193162ca98b5e53c5b0f2 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 14 Feb 2018 00:00:31 +0100 Subject: [PATCH] Set C-RNTI when grant from RAR but no Msg3 --- srsue/hdr/mac/ul_harq.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srsue/hdr/mac/ul_harq.h b/srsue/hdr/mac/ul_harq.h index 21b84aa60..4ea37cb07 100644 --- a/srsue/hdr/mac/ul_harq.h +++ b/srsue/hdr/mac/ul_harq.h @@ -250,6 +250,9 @@ private: // Normal UL grant } else { + if (grant->is_from_rar) { + grant->rnti = harq_entity->rntis->crnti; + } // Request a MAC PDU from the Multiplexing & Assemble Unit pdu_ptr = harq_entity->mux_unit->pdu_get(payload_buffer, grant->n_bytes[0], tti_tx, pid); if (pdu_ptr) {