diff --git a/src/wifi/model/eht/eht-frame-exchange-manager.cc b/src/wifi/model/eht/eht-frame-exchange-manager.cc index 4d76285f4..673978d48 100644 --- a/src/wifi/model/eht/eht-frame-exchange-manager.cc +++ b/src/wifi/model/eht/eht-frame-exchange-manager.cc @@ -1179,7 +1179,7 @@ EhtFrameExchangeManager::TxopEnd(const std::optional& txopHolder) { NS_LOG_FUNCTION(this << txopHolder.has_value()); - if (m_phy->IsReceivingPhyHeader()) + if (m_phy && m_phy->IsReceivingPhyHeader()) { // we may get here because the PHY has not issued the PHY-RXSTART.indication before // the expiration of the timer started to detect new received frames, but the PHY is