Bug-fix LteEnbMac::DoReceivePhyPd multiple LCs not allocated in m_ulInfoListElements
authormmiozzo
Mon, 28 Nov 2011 12:30:41 +0100
changeset 8414 cd0669085267
parent 8413 3387abb7a77c
child 8415 e9a27a8c6331
Bug-fix LteEnbMac::DoReceivePhyPd multiple LCs not allocated in m_ulInfoListElements
src/lte/model/lte-enb-mac.cc
--- a/src/lte/model/lte-enb-mac.cc	Fri Nov 25 19:55:29 2011 +0100
+++ b/src/lte/model/lte-enb-mac.cc	Mon Nov 28 12:30:41 2011 +0100
@@ -538,7 +538,15 @@
     }
   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;
     }