equal
deleted
inserted
replaced
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()); |