lte: Add method to flush DL HARQ buffer

This commit is contained in:
Vignesh Babu
2019-03-18 11:38:45 +01:00
committed by ZorazeAli
parent e8319c36dd
commit b013520133
2 changed files with 23 additions and 0 deletions

View File

@@ -216,6 +216,22 @@ LteHarqPhy::ResetUlHarqProcessStatus (uint16_t rnti, uint8_t id)
}
}
void
LteHarqPhy::ClearDlHarqBuffer (uint16_t rnti)
{
NS_LOG_FUNCTION (this << rnti);
// flush the DL harq buffers
m_miDlHarqProcessesInfoMap.clear ();
// Recreate DL Decodification HARQ buffers
std::vector<HarqProcessInfoList_t> dlHarqLayer0;
dlHarqLayer0.resize (8);
std::vector<HarqProcessInfoList_t> dlHarqLayer1;
dlHarqLayer1.resize (8);
m_miDlHarqProcessesInfoMap.push_back (dlHarqLayer0);
m_miDlHarqProcessesInfoMap.push_back (dlHarqLayer1);
}

View File

@@ -137,6 +137,13 @@ public:
*/
void ResetUlHarqProcessStatus(uint16_t rnti, uint8_t id);
/**
* \brief Clear the downlink HARQ buffer
*
* \param rnti the RNTI of the UE
*/
void ClearDlHarqBuffer (uint16_t rnti);