src/devices/wifi/dcf-manager.cc
changeset 2128 fbcd6a2dc392
parent 2127 2707cb71f6dc
child 2129 32f0e5c1a4d6
equal deleted inserted replaced
2127:2707cb71f6dc 2128:fbcd6a2dc392
   224           k++;
   224           k++;
   225           for (States::const_iterator j = i; j != m_states.end (); j++, k++)
   225           for (States::const_iterator j = i; j != m_states.end (); j++, k++)
   226             {
   226             {
   227               DcfState *state = *j;
   227               DcfState *state = *j;
   228               if (state->NeedsAccess () &&
   228               if (state->NeedsAccess () &&
   229                   GetBackoffEndFor (state) < Simulator::Now ())
   229                   GetBackoffEndFor (state) <= Simulator::Now ())
   230                 {
   230                 {
   231                   MY_DEBUG ("dcf " << k << " needs access. backoff expired. internal collision.");
   231                   MY_DEBUG ("dcf " << k << " needs access. backoff expired. internal collision.");
   232                   /**
   232                   /**
   233                    * all other dcfs with a lower priority whose backoff
   233                    * all other dcfs with a lower priority whose backoff
   234                    * has expired and which needed access to the medium
   234                    * has expired and which needed access to the medium