wifi: Record in TX timer that a STA responded to a SU frame, too

This commit is contained in:
Stefano Avallone
2024-06-10 12:17:53 +02:00
parent e0a109574f
commit 5fa28afdaf
3 changed files with 3 additions and 0 deletions

View File

@@ -1429,6 +1429,7 @@ FrameExchangeManager::ReceivedNormalAck(Ptr<WifiMpdu> mpdu,
{
Mac48Address sender = mpdu->GetHeader().GetAddr1();
NS_LOG_DEBUG("Received ACK from=" << sender);
m_txTimer.GotResponseFrom(sender);
NotifyReceivedNormalAck(mpdu);

View File

@@ -2462,6 +2462,7 @@ HeFrameExchangeManager::ReceiveMpdu(Ptr<const WifiMpdu> mpdu,
NS_ABORT_MSG_IF(!blockAck.IsMultiSta(),
"A Multi-STA BlockAck is expected after a TB PPDU");
NS_LOG_DEBUG("Received a Multi-STA BlockAck from=" << hdr.GetAddr2());
m_txTimer.GotResponseFrom(hdr.GetAddr2());
NS_ASSERT(m_staMac && m_staMac->IsAssociated());
if (hdr.GetAddr2() != m_bssid)

View File

@@ -1565,6 +1565,7 @@ HtFrameExchangeManager::ReceiveMpdu(Ptr<const WifiMpdu> mpdu,
{
Mac48Address sender = hdr.GetAddr2();
NS_LOG_DEBUG("Received BlockAck from=" << sender);
m_txTimer.GotResponseFrom(sender);
SnrTag tag;
mpdu->GetPacket()->PeekPacketTag(tag);