wifi: remove RraaWifiManager::GetMinRate
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user