src/devices/wifi/wifi-net-device.cc
changeset 2004 59eb6fb7b722
parent 2003 335dc094e52a
child 2009 afed751cc0b5
--- a/src/devices/wifi/wifi-net-device.cc	Thu Oct 18 13:37:22 2007 +0200
+++ b/src/devices/wifi/wifi-net-device.cc	Thu Oct 18 14:27:43 2007 +0200
@@ -78,10 +78,17 @@
   // the rate control algorithm
   switch (WifiDefaultParameters::GetRateControlAlgorithm ()) {
   case WifiDefaultParameters::ARF:
-    m_stations = new ArfMacStations (m_phy->GetMode (0));
+    m_stations = new ArfMacStations (m_phy->GetMode (0), 
+                                     WifiDefaultParameters::GetArfRateControlTimerThreshold (),
+                                     WifiDefaultParameters::GetArfRateControlSuccessThreshold ());
     break;
   case WifiDefaultParameters::AARF:
-    m_stations = new AarfMacStations (m_phy->GetMode (0));
+    m_stations = new AarfMacStations (m_phy->GetMode (0),
+                                      WifiDefaultParameters::GetAarfRateControlMinTimerThreshold (),
+                                      WifiDefaultParameters::GetAarfRateControlMinSuccessThreshold (),
+                                      WifiDefaultParameters::GetAarfRateControlSuccessK (),
+                                      WifiDefaultParameters::GetAarfRateControlMaxSuccessThreshold (),
+                                      WifiDefaultParameters::GetAarfRateControlTimerK ());
     break;
   case WifiDefaultParameters::CONSTANT_RATE: {
     WifiMode dataRate = GetWifiModeForPhyMode (m_phy, WifiDefaultParameters::GetConstantDataRate ());