wifi: Check if a PHY is operating on a link when TXOP ends

This commit is contained in:
Stefano Avallone
2024-08-21 23:55:13 +02:00
committed by Stefano Avallone
parent 086c0b0f0c
commit 8dc920e488

View File

@@ -1179,7 +1179,7 @@ EhtFrameExchangeManager::TxopEnd(const std::optional<Mac48Address>& 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