From 8dc920e4887ca76028d126bdd163ad667f6bfcea Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Wed, 21 Aug 2024 23:55:13 +0200 Subject: [PATCH] wifi: Check if a PHY is operating on a link when TXOP ends --- src/wifi/model/eht/eht-frame-exchange-manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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