diff --git a/src/lte/model/pf-ff-mac-scheduler.cc b/src/lte/model/pf-ff-mac-scheduler.cc index bbb9e96f7..b574d8214 100644 --- a/src/lte/model/pf-ff-mac-scheduler.cc +++ b/src/lte/model/pf-ff-mac-scheduler.cc @@ -1191,6 +1191,7 @@ PfFfMacScheduler::RefreshUlCqiMaps(void) void PfFfMacScheduler::UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size) { + size = size - 2; // remove the minimum RLC overhead std::map::iterator it; LteFlowId_t flow (rnti, lcid); it = m_rlcBufferReq.find (flow); @@ -1242,7 +1243,7 @@ void PfFfMacScheduler::UpdateUlRlcBufferInfo (uint16_t rnti, uint16_t size) { - + size = size - 2; // remove the minimum RLC overhead std::map ::iterator it = m_ceBsrRxed.find (rnti); if (it!=m_ceBsrRxed.end ()) { diff --git a/src/lte/model/rr-ff-mac-scheduler.cc b/src/lte/model/rr-ff-mac-scheduler.cc index 7d9f8e4c9..53a6a7476 100644 --- a/src/lte/model/rr-ff-mac-scheduler.cc +++ b/src/lte/model/rr-ff-mac-scheduler.cc @@ -972,6 +972,7 @@ RrFfMacScheduler::RefreshUlCqiMaps(void) void RrFfMacScheduler::UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size) { + size = size - 2; // remove the minimum RLC overhead std::list::iterator it; for (it = m_rlcBufferReq.begin (); it != m_rlcBufferReq.end (); it++) { @@ -1021,7 +1022,7 @@ void RrFfMacScheduler::UpdateUlRlcBufferInfo (uint16_t rnti, uint16_t size) { - + size = size - 2; // remove the minimum RLC overhead std::map ::iterator it = m_ceBsrRxed.find (rnti); if (it!=m_ceBsrRxed.end ()) {