From ed20015f6d86fd8199ee79a1c676fbcaf9ba697a Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Sat, 2 May 2015 22:00:28 +0200 Subject: [PATCH] Bug 2034 - [lr-wpan] CSMA-CA BackoffPeriod is too short --- RELEASE_NOTES | 1 + src/lr-wpan/model/lr-wpan-csmaca.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 60e048a59..c6fe20e7e 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -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 diff --git a/src/lr-wpan/model/lr-wpan-csmaca.cc b/src/lr-wpan/model/lr-wpan-csmaca.cc index 0673525a8..33ca2af38 100644 --- a/src/lr-wpan/model/lr-wpan-csmaca.cc +++ b/src/lr-wpan/model/lr-wpan-csmaca.cc @@ -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 ())