From d40173fb50f08a18187f564aaf664e0dcb9bf045 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Tue, 7 Dec 2021 12:02:08 +0100 Subject: [PATCH] wifi: (fixes #500) Clear PHY RX event if switching channel in IDLE and CCA_BUSY state (patch from Ohad Klausner) --- src/wifi/model/wifi-phy.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index f4fd65227..f77c3815e 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -1176,6 +1176,7 @@ WifiPhy::GetDelayUntilChannelSwitch (void) break; case WifiPhyState::CCA_BUSY: case WifiPhyState::IDLE: + m_endPhyRxEvent.Cancel (); for (auto & phyEntity : m_phyEntities) { phyEntity.second->CancelAllEvents ();