wifi: Keep the medium busy if reception is aborted ahead of scheduled time

This commit is contained in:
Rediet
2019-12-23 12:21:49 +01:00
committed by Stefano Avallone
parent eaf27c8a73
commit 02db76a86c

View File

@@ -561,6 +561,11 @@ ChannelAccessManager::NotifyRxEndErrorNow (void)
{
NS_LOG_FUNCTION (this);
NS_LOG_DEBUG ("rx end error");
if (m_lastRxEnd > Simulator::Now ())
{
m_lastBusyStart = Simulator::Now ();
m_lastBusyDuration = m_lastRxEnd - m_lastBusyStart;
}
m_lastRxEnd = Simulator::Now ();
m_lastRxDuration = m_lastRxEnd - m_lastRxStart;
m_lastRxReceivedOk = false;