wifi: (fixes #500) Clear PHY RX event if switching channel in IDLE and CCA_BUSY state (patch from Ohad Klausner)

This commit is contained in:
Stefano Avallone
2021-12-07 12:02:08 +01:00
parent d0765540ad
commit d40173fb50

View File

@@ -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 ();