wifi: DCF manager should not reset CW when CWmin or CWmax is unchanged

This commit is contained in:
Sébastien Deronne
2016-02-08 22:53:58 +01:00
parent 78b873d46c
commit ff13bd5872

View File

@@ -61,15 +61,23 @@ DcfState::SetAifsn (uint32_t aifsn)
void
DcfState::SetCwMin (uint32_t minCw)
{
bool changed = (m_cwMin == minCw);
m_cwMin = minCw;
ResetCw ();
if (changed == true)
{
ResetCw ();
}
}
void
DcfState::SetCwMax (uint32_t maxCw)
{
bool changed = (m_cwMax == maxCw);
m_cwMax = maxCw;
ResetCw ();
if (changed == true)
{
ResetCw ();
}
}
uint32_t