Bug 802 - Minstrel algorithm causes segmentation fault
authorDuy Nguyen <dnlove@gmail.com>
Wed, 21 Apr 2010 17:00:57 +0200
changeset 626884e114d34b89
parent 6259 e61ce382fcdd
child 6269 ab2aa79904e8
Bug 802 - Minstrel algorithm causes segmentation fault
src/devices/wifi/minstrel-wifi-manager.cc
     1.1 --- a/src/devices/wifi/minstrel-wifi-manager.cc	Wed Apr 21 08:39:57 2010 -0400
     1.2 +++ b/src/devices/wifi/minstrel-wifi-manager.cc	Wed Apr 21 17:00:57 2010 +0200
     1.3 @@ -486,7 +486,7 @@
     1.4  bool 
     1.5  MinstrelWifiManager::IsLowLatency (void) const
     1.6  {
     1.7 -  return false;
     1.8 +  return true;
     1.9  }
    1.10  uint32_t 
    1.11  MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station)
    1.12 @@ -782,7 +782,7 @@
    1.13              {
    1.14                newIndex = (newIndex + 1)%GetNSupported (station);
    1.15              }
    1.16 -          station->m_sampleTable[newIndex][col] = i+1;
    1.17 +          station->m_sampleTable[newIndex][col] = i;
    1.18  
    1.19          }
    1.20      }