diff -r 5c75d40fedcd -r ca04d8e6cb2e src/devices/wifi/minstrel-wifi-manager.cc --- a/src/devices/wifi/minstrel-wifi-manager.cc Mon Sep 21 11:21:05 2009 -0700 +++ b/src/devices/wifi/minstrel-wifi-manager.cc Mon Sep 21 23:44:59 2009 -0700 @@ -369,7 +369,6 @@ WifiMode MinstrelWifiRemoteStation::DoGetDataMode (uint32_t size) { - UpdateStats (); if (!m_initialized) { CheckInit (); @@ -377,6 +376,7 @@ /// start the rate at half way m_txrate = GetNSupportedModes () / 2; } + UpdateStats (); return GetSupportedMode (m_txrate); } @@ -435,7 +435,7 @@ { /// now go through the table and find an index rate - idx = GetNextSample (); + idx = GetNextSample(); /**