src/lte/model/rr-ff-mac-scheduler.cc
changeset 8887 90cbd09c8ff6
parent 8859 e3c54825650d
child 9047 284d30c8dd42
child 9334 e1b41c24fd32
--- a/src/lte/model/rr-ff-mac-scheduler.cc	Tue Jun 26 14:07:07 2012 +0200
+++ b/src/lte/model/rr-ff-mac-scheduler.cc	Mon Jul 02 11:34:21 2012 +0200
@@ -827,6 +827,8 @@
       if ( params.m_macCeList.at (i).m_macCeType == MacCeListElement_s::BSR )
         {
           // buffer status report
+          // note that we only consider LCG 0, the other three LCGs are neglected
+          // this is consistent with the assumption in LteUeMac that the first LCG gathers all LCs
           uint16_t rnti = params.m_macCeList.at (i).m_rnti;
           it = m_ceBsrRxed.find (rnti);
           if (it == m_ceBsrRxed.end ())
@@ -834,13 +836,12 @@
               // create the new entry
               uint8_t bsrId = params.m_macCeList.at (i).m_macCeValue.m_bufferStatus.at (0);
               int buffer = BufferSizeLevelBsr::BsrId2BufferSize (bsrId);
-              m_ceBsrRxed.insert ( std::pair<uint16_t, uint32_t > (rnti, buffer)); // only 1 buffer status is working now
+              m_ceBsrRxed.insert ( std::pair<uint16_t, uint32_t > (rnti, buffer));
             }
           else
             {
-              // update the CQI value
+              // update the buffer size value
               (*it).second = BufferSizeLevelBsr::BsrId2BufferSize (params.m_macCeList.at (i).m_macCeValue.m_bufferStatus.at (0));
-//               NS_LOG_DEBUG (this << " Update BSR with " << BufferSizeLevelBsr::BsrId2BufferSize (params.m_macCeList.at (i).m_macCeValue.m_bufferStatus.at (0)) << " at " << Simulator::Now ());
             }
         }
     }