From 2c73b9e59c835be661aeb7c44bc3c152014d9e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sat, 11 Nov 2023 16:54:50 +0100 Subject: [PATCH] wifi: Make sure TX or RX event is canceled in WifiPhy::Reset --- src/wifi/model/wifi-phy.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index 0140328c0..937397316 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -1869,6 +1869,8 @@ WifiPhy::Reset() { phyEntity.second->CancelAllEvents(); } + m_endPhyRxEvent.Cancel(); + m_endTxEvent.Cancel(); SwitchMaybeToCcaBusy(nullptr); }