src/devices/wifi/minstrel-wifi-manager.cc
changeset 4725 4e068296f09f
parent 4703 e1259e2fdaad
child 5235 ca04d8e6cb2e
equal deleted inserted replaced
4724:10d56d5c0830 4725:4e068296f09f
   537           /// bookeeping
   537           /// bookeeping
   538           m_minstrelTable[i].successHist += m_minstrelTable[i].numRateSuccess;
   538           m_minstrelTable[i].successHist += m_minstrelTable[i].numRateSuccess;
   539           m_minstrelTable[i].attemptHist += m_minstrelTable[i].numRateAttempt;
   539           m_minstrelTable[i].attemptHist += m_minstrelTable[i].numRateAttempt;
   540           m_minstrelTable[i].prob = tempProb;
   540           m_minstrelTable[i].prob = tempProb;
   541 
   541 
   542           /// ewma probability
   542           /// ewma probability (cast for gcc 3.4 compatibility)
   543           tempProb = ((tempProb * (100 - m_stations->m_ewmaLevel)) + (m_minstrelTable[i].ewmaProb * m_stations->m_ewmaLevel) )/100;
   543           tempProb = static_cast<uint32_t>(((tempProb * (100 - m_stations->m_ewmaLevel)) + (m_minstrelTable[i].ewmaProb * m_stations->m_ewmaLevel) )/100);
   544 
   544 
   545           m_minstrelTable[i].ewmaProb = tempProb;
   545           m_minstrelTable[i].ewmaProb = tempProb;
   546 
   546 
   547           /// calculating throughput
   547           /// calculating throughput
   548           m_minstrelTable[i].throughput = tempProb * (1000000 / txTime.GetMicroSeconds());
   548           m_minstrelTable[i].throughput = tempProb * (1000000 / txTime.GetMicroSeconds());