diff --git a/src/devices/wifi/dcf-manager.cc b/src/devices/wifi/dcf-manager.cc index 6bc67e96d..760fed8ed 100644 --- a/src/devices/wifi/dcf-manager.cc +++ b/src/devices/wifi/dcf-manager.cc @@ -57,8 +57,7 @@ DcfState::UpdateFailedCw (void) void DcfState::UpdateBackoffSlotsNow (uint32_t nSlots, Time backoffUpdateBound) { - uint32_t n = std::min (nSlots, m_backoffSlots); - m_backoffSlots -= n; + m_backoffSlots -= nSlots; m_backoffStart = backoffUpdateBound; MY_DEBUG ("update slots="<