use the new MacStation::Report*Failed methods.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 12 Dec 2007 13:36:16 +0100
changeset 2270 7eb30e93d305
parent 2269 06c660ffc070
child 2271 85724b1cbb1a
use the new MacStation::Report*Failed methods.
src/devices/wifi/dca-txop.cc
--- a/src/devices/wifi/dca-txop.cc	Wed Dec 12 13:17:04 2007 +0100
+++ b/src/devices/wifi/dca-txop.cc	Wed Dec 12 13:36:16 2007 +0100
@@ -431,6 +431,8 @@
   m_ctstimeoutTrace (m_ssrc);
   if (m_ssrc > Parameters ()->GetMaxSsrc ()) 
     {
+      MacStation *station = m_stations->Lookup (m_currentHdr.GetAddr1 ());
+      station->ReportFinalRtsFailed ();
       // to reset the dcf.
       m_currentPacket = 0;
       m_dcf->ResetCw ();
@@ -476,6 +478,8 @@
   m_acktimeoutTrace (m_slrc);
   if (m_slrc > Parameters ()->GetMaxSlrc ()) 
     {
+      MacStation *station = m_stations->Lookup (m_currentHdr.GetAddr1 ());
+      station->ReportFinalDataFailed ();
       // to reset the dcf.    
       m_currentPacket = 0;
       m_dcf->ResetCw ();