View | Details | Raw Unified | Return to bug 509
Collapse All | Expand All

(-)a/src/devices/wifi/dcf-manager.cc (-4 / +1 lines)
 Lines 74-83   DcfState::ResetCw (void) Link Here 
74
void 
74
void 
75
DcfState::UpdateFailedCw (void)
75
DcfState::UpdateFailedCw (void)
76
{
76
{
77
  uint32_t cw = m_cw;
77
  m_cw = std::min( 2 * (m_cw + 1) - 1, m_cwMax );
78
  cw *= 2;
79
  cw = std::min (m_cwMax, cw);
80
  m_cw = cw;
81
}
78
}
82
void 
79
void 
83
DcfState::UpdateBackoffSlotsNow (uint32_t nSlots, Time backoffUpdateBound)
80
DcfState::UpdateBackoffSlotsNow (uint32_t nSlots, Time backoffUpdateBound)

Return to bug 509