remove buggy assert and comment
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 14 Nov 2007 13:53:32 +0100
changeset 2108 ba59d2c8a64f
parent 2107 9adb9e6d7bc7
child 2109 345491373a45
remove buggy assert and comment
src/devices/wifi/dcf-manager.cc
--- a/src/devices/wifi/dcf-manager.cc	Wed Nov 14 13:50:19 2007 +0100
+++ b/src/devices/wifi/dcf-manager.cc	Wed Nov 14 13:53:32 2007 +0100
@@ -318,7 +318,6 @@
       if (backoffStart <= Simulator::Now ())
         {
           Scalar nSlots = (Simulator::Now () - backoffStart) / m_slotTime;
-          // XXX: rounding should be nicer.
           uint32_t nIntSlots = lrint (nSlots.GetDouble ());
           /**
            * For each DcfState, calculate how many backoff slots elapsed since
@@ -356,12 +355,6 @@
   if (accessTimeoutNeeded)
     {
       MY_DEBUG ("expected backoff end="<<expectedBackoffEnd);
-      /**
-       * It is not possible that the backoff was expected to end before now
-       * because if it were possible, this would mean that we have missed
-       * a backoff expiration ! And that would be a bug.
-       */
-      NS_ASSERT (expectedBackoffEnd >= Simulator::Now ());
       if (expectedBackoffEnd > Simulator::Now ())
         {
           Time expectedBackoffDelay = expectedBackoffEnd - Simulator::Now ();