wifi: STAs that do not respond to Basic TF are no longer protected

This commit is contained in:
Stefano Avallone
2024-06-11 11:31:55 +02:00
parent 506379cb2f
commit d9ec9acd65

View File

@@ -1357,6 +1357,22 @@ HeFrameExchangeManager::DoTbPpduTimeout(WifiPsduMap* psduMap,
m_edca->ResetCw(m_linkId);
TransmissionSucceeded();
}
else
{
// Stations that did not respond must be removed from the set of stations for which
// protection is not needed in the current TXOP.
for (const auto& address : staMissedTbPpduFrom)
{
NS_LOG_DEBUG(address << " did not respond, hence it is no longer protected");
m_protectedStas.erase(address);
m_sentFrameTo.erase(address);
}
if (m_protectedIfResponded)
{
m_protectedStas.merge(m_sentFrameTo);
}
m_sentFrameTo.clear();
}
m_psduMap.clear();
}