From 621eae31ca99fba88814f8486eba5ec3a94767c0 Mon Sep 17 00:00:00 2001 From: Hossam Khader Date: Mon, 12 Sep 2016 23:02:50 +0200 Subject: [PATCH] mobility: (fixes #2390) AddWaypoint uses absolute time instead of relative time --- RELEASE_NOTES | 1 + src/mobility/model/waypoint-mobility-model.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 221f8589e..b40232766 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -68,6 +68,7 @@ Bugs fixed - Bug 2379 - BlockAckRequest should not be part of single-TID A-MPDUs - Bug 2380 - EdcaTxopN fails to retrieve TID for ADDBA requests, ADDBA responses and DELBA frames - Bug 2383 - IPv4 header for reassembled packets reports a wrong payload size +- Bug 2390 - WaypointMobilityModel::AddWaypoint lazy notify schedules an event using absolute time (should be relative time) - Bug 2392 - SYN segment advertised window should not be scaled - Bug 2396 - move utility functions to WifiPhy - Bug 2397 - add backoff and cw tracing to EDCA diff --git a/src/mobility/model/waypoint-mobility-model.cc b/src/mobility/model/waypoint-mobility-model.cc index 9f1e9c7f2..c960d0cd0 100644 --- a/src/mobility/model/waypoint-mobility-model.cc +++ b/src/mobility/model/waypoint-mobility-model.cc @@ -95,7 +95,7 @@ WaypointMobilityModel::AddWaypoint (const Waypoint &waypoint) if ( !m_lazyNotify ) { - Simulator::Schedule (waypoint.time, &WaypointMobilityModel::Update, this); + Simulator::Schedule (waypoint.time - Simulator::Now (), &WaypointMobilityModel::Update, this); } } Waypoint