From c90a2538178f6a66855693847e5a9f2acaf010cd Mon Sep 17 00:00:00 2001 From: ismagom Date: Thu, 6 Aug 2015 22:00:47 +0200 Subject: [PATCH] Fixed grant pcap --- srsapps/ue/mac/src/ul_harq.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsapps/ue/mac/src/ul_harq.cc b/srsapps/ue/mac/src/ul_harq.cc index 32e7c0fc0..81754ce30 100644 --- a/srsapps/ue/mac/src/ul_harq.cc +++ b/srsapps/ue/mac/src/ul_harq.cc @@ -241,7 +241,7 @@ void ul_harq_entity::ul_harq_process::run_tti(uint32_t tti_tx, mac_interface_phy // Non-Adaptive Re-Tx generate_retx(tti_tx, action); } - if (harq_entity->pcap) { + if (harq_entity->pcap && grant) { harq_entity->pcap->write_ul_crnti(pdu_ptr, grant->n_bytes, grant->rnti, get_nof_retx(), tti_tx); }