diff --git a/src/lte/model/lte-rlc.cc b/src/lte/model/lte-rlc.cc index 09578cb93..73b9b7eb8 100644 --- a/src/lte/model/lte-rlc.cc +++ b/src/lte/model/lte-rlc.cc @@ -222,6 +222,7 @@ LteRlcSm::DoNotifyTxOpportunity (uint32_t bytes) m_txPdu(m_rnti, m_lcid, bytes); m_macSapProvider->TransmitPdu (params); + ReportBufferStatus (); } void @@ -232,17 +233,23 @@ LteRlcSm::DoNotifyHarqDeliveryFailure () void LteRlcSm::Start () +{ + NS_LOG_FUNCTION (this); + ReportBufferStatus (); +} + +void +LteRlcSm::ReportBufferStatus () { NS_LOG_FUNCTION (this); LteMacSapProvider::ReportBufferStatusParameters p; p.rnti = m_rnti; p.lcid = m_lcid; - p.txQueueSize = 1000000000; - p.txQueueHolDelay = 10000; - p.retxQueueSize = 1000000000; - p.retxQueueHolDelay = 10000; - p.statusPduSize = 1000; - + p.txQueueSize = 80000; + p.txQueueHolDelay = 10; + p.retxQueueSize = 0; + p.retxQueueHolDelay = 0; + p.statusPduSize = 0; m_macSapProvider->ReportBufferStatus (p); } diff --git a/src/lte/model/lte-rlc.h b/src/lte/model/lte-rlc.h index b515920bd..3cd531084 100644 --- a/src/lte/model/lte-rlc.h +++ b/src/lte/model/lte-rlc.h @@ -156,6 +156,9 @@ public: void Start (); +private: + void ReportBufferStatus (); + };