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; }