From 1bda20e52015a02fb89e1de9183b140261d37dad Mon Sep 17 00:00:00 2001 From: mmiozzo Date: Mon, 28 Nov 2011 12:30:41 +0100 Subject: [PATCH] Bug-fix LteEnbMac::DoReceivePhyPd multiple LCs not allocated in m_ulInfoListElements --- src/lte/model/lte-enb-mac.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lte/model/lte-enb-mac.cc b/src/lte/model/lte-enb-mac.cc index 908784358..38fc0f226 100644 --- a/src/lte/model/lte-enb-mac.cc +++ b/src/lte/model/lte-enb-mac.cc @@ -538,7 +538,15 @@ LteEnbMac::DoReceivePhyPdu (Ptr p) } else { - (*it).second.m_ulReception.at (tag.GetLcid () - 1) += p->GetSize (); + if ((*it).second.m_ulReception.size () < tag.GetLcid ()) + { + std::vector ::iterator itV = (*it).second.m_ulReception.begin (); + (*it).second.m_ulReception.insert (itV + (tag.GetLcid () - 1), p->GetSize ()); + } + else + { + (*it).second.m_ulReception.at (tag.GetLcid () - 1) += p->GetSize (); + } (*it).second.m_receptionStatus = UlInfoListElement_s::Ok; }