eifs calculation is wrong: match the spec.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 18 Oct 2007 11:21:40 +0200
changeset 1995 ece7db093222
parent 1994 72e228d070f4
child 1996 454a63cf6549
eifs calculation is wrong: match the spec.
src/devices/wifi/wifi-net-device.cc
--- a/src/devices/wifi/wifi-net-device.cc	Thu Oct 18 11:21:14 2007 +0200
+++ b/src/devices/wifi/wifi-net-device.cc	Thu Oct 18 11:21:40 2007 +0200
@@ -157,7 +157,7 @@
     m_parameters->GetSlotTime ();
   // see 802.11 p85 section 9.2.10
   Time eifs = difs + m_parameters->GetSifs () + 
-    m_phy->CalculateTxDuration (2+2+6+4, m_phy->GetMode (0), WIFI_PREAMBLE_LONG);
+    m_phy->CalculateTxDuration (8 * (2+2+6+4), m_phy->GetMode (0), WIFI_PREAMBLE_LONG);
   dca->SetDifs (difs);
   dca->SetEifs (eifs);
   dca->SetMaxQueueSize (400);