wifi: Fix UID used in an MU-CTS trigger response on 2.4 GHz links

This commit is contained in:
Sébastien Deronne
2023-03-13 18:30:27 +01:00
parent 38b33903ba
commit 2a75e50f53

View File

@@ -113,12 +113,14 @@ ErpOfdmPhy::BuildPpdu(const WifiConstPsduMap& psdus,
Time /* ppduDuration */)
{
NS_LOG_FUNCTION(this << psdus << txVector);
return Create<ErpOfdmPpdu>(psdus.begin()->second,
txVector,
m_wifiPhy->GetOperatingChannel().GetPrimaryChannelCenterFrequency(
txVector.GetChannelWidth()),
m_wifiPhy->GetPhyBand(),
ObtainNextUid(txVector));
return Create<ErpOfdmPpdu>(
psdus.begin()->second,
txVector,
m_wifiPhy->GetOperatingChannel().GetPrimaryChannelCenterFrequency(
txVector.GetChannelWidth()),
m_wifiPhy->GetPhyBand(),
m_wifiPhy->GetLatestPhyEntity()->ObtainNextUid(
txVector)); // use latest PHY entity to handle MU-RTS sent with non-HT rate
}
void