lte: (fixes #2849) Received RLC and PDCP PDUs are missing in the stats files

This commit is contained in:
Manuel Requena
2018-02-20 15:52:26 +01:00
parent 26553ebde7
commit e49a4ed64b
2 changed files with 19 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ Bugs fixed
- Bug 2838 - wifi: ht-wifi-network crashes with RTS/CTS enabled and frequency set to 2.4GHz
- Bug 2843 - spectrum, wifi: Incorrect channel width and center frequency provided for non-HT PPDUs when building SpectralDensity
- Bug 2848 - wifi: Association ID not correctly set upon association
- Bug 2849 - lte: Received RLC and PDCP PDUs are missing in the stats files
- Bug 2854 - wifi: he-wifi-network crashes when frequency is set at 2.4 GHz
Known issues

View File

@@ -272,8 +272,7 @@ RadioBearerStatsCalculator::WriteUlResults (std::ofstream& outFile)
{
NS_LOG_FUNCTION (this);
// Get the unique IMSI / LCID list
// Get the unique IMSI/LCID pairs list
std::vector < ImsiLcidPair_t > pairVector;
for (Uint32Map::iterator it = m_ulTxPackets.begin (); it != m_ulTxPackets.end (); ++it)
{
@@ -283,6 +282,14 @@ RadioBearerStatsCalculator::WriteUlResults (std::ofstream& outFile)
}
}
for (Uint32Map::iterator it = m_ulRxPackets.begin (); it != m_ulRxPackets.end (); ++it)
{
if (find (pairVector.begin (), pairVector.end (), (*it).first) == pairVector.end ())
{
pairVector.push_back ((*it).first);
}
}
Time endTime = m_startTime + m_epochDuration;
for (std::vector<ImsiLcidPair_t>::iterator it = pairVector.begin (); it != pairVector.end (); ++it)
{
@@ -318,7 +325,7 @@ RadioBearerStatsCalculator::WriteDlResults (std::ofstream& outFile)
{
NS_LOG_FUNCTION (this);
// Get the unique IMSI list
// Get the unique IMSI/LCID pairs list
std::vector < ImsiLcidPair_t > pairVector;
for (Uint32Map::iterator it = m_dlTxPackets.begin (); it != m_dlTxPackets.end (); ++it)
{
@@ -328,6 +335,14 @@ RadioBearerStatsCalculator::WriteDlResults (std::ofstream& outFile)
}
}
for (Uint32Map::iterator it = m_dlRxPackets.begin (); it != m_dlRxPackets.end (); ++it)
{
if (find (pairVector.begin (), pairVector.end (), (*it).first) == pairVector.end ())
{
pairVector.push_back ((*it).first);
}
}
Time endTime = m_startTime + m_epochDuration;
for (std::vector<ImsiLcidPair_t>::iterator pair = pairVector.begin (); pair != pairVector.end (); ++pair)
{