wifi: remove RraaWifiManager::GetMinRate

This commit is contained in:
Sébastien Deronne
2017-12-17 21:01:52 +01:00
parent 0f63de2671
commit 34dab9dccb
2 changed files with 2 additions and 18 deletions

View File

@@ -245,7 +245,7 @@ RraaWifiManager::InitThresholds (RraaWifiRemoteStation *station)
nextMtl = m_alpha * nextCritical;
ori = nextMtl / m_beta;
}
if (i == GetMinRate (station))
if (i == 0)
{
mtl = 1;
}
@@ -274,12 +274,6 @@ RraaWifiManager::GetMaxRate (RraaWifiRemoteStation *station)
return station->m_nRate - 1;
}
uint32_t
RraaWifiManager::GetMinRate (RraaWifiRemoteStation *station)
{
return 0;
}
void
RraaWifiManager::DoReportRtsFailed (WifiRemoteStation *st)
{
@@ -418,8 +412,7 @@ RraaWifiManager::RunBasicAlgorithm (RraaWifiRemoteStation *station)
if (station->m_counter == 0
|| ploss > thresholds.m_mtl)
{
if (station->m_rateIndex > GetMinRate (station)
&& ploss > thresholds.m_mtl)
if (ploss > thresholds.m_mtl)
{
station->m_rateIndex--;
}

View File

@@ -108,15 +108,6 @@ private:
* \return the index for the maximum transmission rate
*/
uint32_t GetMaxRate (RraaWifiRemoteStation *station);
/**
* Return the index for the minimum transmission rate for
* the given station.
*
* \param station
*
* \return the index for the minimum transmission rate
*/
uint32_t GetMinRate (RraaWifiRemoteStation *station);
/**
* Check if the counter should be resetted.
*