From d0765540ade12811dbffd4d6b9d5746331325bfa Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Mon, 29 Nov 2021 17:32:18 +0100 Subject: [PATCH] wifi: (fixes #483) Cancel EndOfMpdu events when cancelling all events --- src/wifi/model/phy-entity.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wifi/model/phy-entity.cc b/src/wifi/model/phy-entity.cc index 4ea7fab59..bfc595b0e 100644 --- a/src/wifi/model/phy-entity.cc +++ b/src/wifi/model/phy-entity.cc @@ -923,6 +923,11 @@ PhyEntity::CancelAllEvents (void) endRxPayloadEvent.Cancel (); } m_endRxPayloadEvents.clear (); + for (auto & endMpduEvent : m_endOfMpduEvents) + { + endMpduEvent.Cancel (); + } + m_endOfMpduEvents.clear (); } bool