From 321dfcf74122be1135a32291d8a7954196545cab Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Sat, 17 Nov 2007 18:57:33 +0100 Subject: [PATCH] add XXX for two bugs --- src/devices/wifi/mac-low.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/devices/wifi/mac-low.cc b/src/devices/wifi/mac-low.cc index a11c20e4f..59b304771 100644 --- a/src/devices/wifi/mac-low.cc +++ b/src/devices/wifi/mac-low.cc @@ -730,6 +730,9 @@ void MacLow::CtsTimeout (void) { MY_DEBUG ("cts timeout"); + // XXX: should check that there was no rx start before now. + // we should restart a new cts timeout now until the expected + // end of rx if there was a rx start before now. MacStation *station = GetStation (m_currentHdr.GetAddr1 ()); station->ReportRtsFailed (); m_hasCurrent = false; @@ -741,6 +744,9 @@ void MacLow::NormalAckTimeout (void) { MY_DEBUG ("normal ack timeout"); + // XXX: should check that there was no rx start before now. + // we should restart a new ack timeout now until the expected + // end of rx if there was a rx start before now. MacStation *station = GetStation (m_currentHdr.GetAddr1 ()); station->ReportDataFailed (); MacLowTransmissionListener *listener = m_listener;