From 34dab9dccb74bbec1f41ae589f5c30bf8f93a277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sun, 17 Dec 2017 21:01:52 +0100 Subject: [PATCH] wifi: remove RraaWifiManager::GetMinRate --- src/wifi/model/rraa-wifi-manager.cc | 11 ++--------- src/wifi/model/rraa-wifi-manager.h | 9 --------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/wifi/model/rraa-wifi-manager.cc b/src/wifi/model/rraa-wifi-manager.cc index 58bf9a79a..3d4ea25d4 100644 --- a/src/wifi/model/rraa-wifi-manager.cc +++ b/src/wifi/model/rraa-wifi-manager.cc @@ -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--; } diff --git a/src/wifi/model/rraa-wifi-manager.h b/src/wifi/model/rraa-wifi-manager.h index 951878829..859eff2ae 100644 --- a/src/wifi/model/rraa-wifi-manager.h +++ b/src/wifi/model/rraa-wifi-manager.h @@ -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. *