From 2b952049df3c1fc755ebdeddef6531457db5e6a5 Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Wed, 21 Apr 2010 17:00:57 +0200 Subject: [PATCH] Bug 802 - Minstrel algorithm causes segmentation fault --- src/devices/wifi/minstrel-wifi-manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/wifi/minstrel-wifi-manager.cc b/src/devices/wifi/minstrel-wifi-manager.cc index 2337f0f44..21fd7b433 100644 --- a/src/devices/wifi/minstrel-wifi-manager.cc +++ b/src/devices/wifi/minstrel-wifi-manager.cc @@ -486,7 +486,7 @@ MinstrelWifiManager::DoGetRtsMode (WifiRemoteStation *st) bool MinstrelWifiManager::IsLowLatency (void) const { - return false; + return true; } uint32_t MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station) @@ -782,7 +782,7 @@ MinstrelWifiManager::InitSampleTable (MinstrelWifiRemoteStation *station) { newIndex = (newIndex + 1)%GetNSupported (station); } - station->m_sampleTable[newIndex][col] = i+1; + station->m_sampleTable[newIndex][col] = i; } }