Bug-fix LteEnbMac::DoReceivePhyPd multiple LCs not allocated in m_ulInfoListElements

This commit is contained in:
mmiozzo
2011-11-28 12:30:41 +01:00
parent 6a9b3e467f
commit 1bda20e520

View File

@@ -538,7 +538,15 @@ LteEnbMac::DoReceivePhyPdu (Ptr<Packet> p)
}
else
{
(*it).second.m_ulReception.at (tag.GetLcid () - 1) += p->GetSize ();
if ((*it).second.m_ulReception.size () < tag.GetLcid ())
{
std::vector <uint16_t>::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;
}