diff --git a/src/wifi/model/wifi-phy-state-helper.cc b/src/wifi/model/wifi-phy-state-helper.cc index d163aa179..79dc6f2e4 100644 --- a/src/wifi/model/wifi-phy-state-helper.cc +++ b/src/wifi/model/wifi-phy-state-helper.cc @@ -445,11 +445,7 @@ WifiPhyStateHelper::SwitchToChannelSwitching (Time switchingDuration) break; } - if (now < m_endCcaBusy) - { - m_endCcaBusy = now; - } - + m_endCcaBusy = std::min (now, m_endCcaBusy); m_stateLogger (now, switchingDuration, WifiPhyState::SWITCHING); m_previousStateChangeTime = now; m_startSwitching = now;