Bug 802 - Minstrel algorithm causes segmentation fault
authorDuy Nguyen <dnlove@gmail.com>
Wed, 21 Apr 2010 17:00:57 +0200
changeset 6268 84e114d34b89
parent 6259 e61ce382fcdd
child 6269 ab2aa79904e8
Bug 802 - Minstrel algorithm causes segmentation fault
src/devices/wifi/minstrel-wifi-manager.cc
--- a/src/devices/wifi/minstrel-wifi-manager.cc	Wed Apr 21 08:39:57 2010 -0400
+++ b/src/devices/wifi/minstrel-wifi-manager.cc	Wed Apr 21 17:00:57 2010 +0200
@@ -486,7 +486,7 @@
 bool 
 MinstrelWifiManager::IsLowLatency (void) const
 {
-  return false;
+  return true;
 }
 uint32_t 
 MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station)
@@ -782,7 +782,7 @@
             {
               newIndex = (newIndex + 1)%GetNSupported (station);
             }
-          station->m_sampleTable[newIndex][col] = i+1;
+          station->m_sampleTable[newIndex][col] = i;
 
         }
     }