wifi: Check if a PHY is operating on a link when TXOP ends
This commit is contained in:
committed by
Stefano Avallone
parent
086c0b0f0c
commit
8dc920e488
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user