Bug 2034 - [lr-wpan] CSMA-CA BackoffPeriod is too short

This commit is contained in:
Tommaso Pecorella
2015-05-02 22:00:28 +02:00
parent 656edfa6d0
commit ed20015f6d
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ Bugs fixed
- Bug 1974 - CalculateTxTime should return a Time, not a double
- Bug 1982 - AODV and mesh use random variables before seed can be set
- Bug 2025 - (lr-wpan) Changing the channel doesn't affect the Tx params
- Bug 2034 - (lr-wpan) CSMA-CA BackoffPeriod is too short
- Bug 2070 - Wrong report of Packets and Bytes stored in CoDeL
- Bug 2073 - NDisc cache entries update timer might be stuck in a loop
- Bug 2076 - TCP MinRTO Attribute is not actually used

View File

@@ -240,7 +240,7 @@ LrWpanCsmaCa::RandomBackoffDelay ()
symbolRate = (uint64_t) m_mac->GetPhy ()->GetDataOrSymbolRate (isData); //symbols per second
backoffPeriod = (uint64_t)m_random->GetValue (0, upperBound); //num backoff periods
backoffPeriod = (uint64_t)m_random->GetValue (0, upperBound+1); // num backoff periods
randomBackoff = MicroSeconds (backoffPeriod * GetUnitBackoffPeriod () * 1000 * 1000 / symbolRate);
if (IsUnSlottedCsmaCa ())