wifi: No need for PHY to make a copy of WifiPsdus

This commit is contained in:
Stefano Avallone
2022-08-24 16:55:20 +02:00
committed by Stefano Avallone
parent 941a1287ff
commit 5c5973ea96
2 changed files with 5 additions and 5 deletions

View File

@@ -800,7 +800,7 @@ HePhy::RxPayloadSucceeded (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
const std::vector<bool>& statusPerMpdu)
{
NS_LOG_FUNCTION (this << *psdu << txVector);
m_state->NotifyRxPsduSucceeded (Copy (psdu), rxSignalInfo, txVector, staId, statusPerMpdu);
m_state->NotifyRxPsduSucceeded (psdu, rxSignalInfo, txVector, staId, statusPerMpdu);
if (!IsUlMu (txVector.GetPreambleType ()))
{
m_state->SwitchFromRxEndOk ();
@@ -815,7 +815,7 @@ void
HePhy::RxPayloadFailed (Ptr<const WifiPsdu> psdu, double snr, const WifiTxVector& txVector)
{
NS_LOG_FUNCTION (this << *psdu << txVector << snr);
m_state->NotifyRxPsduFailed (Copy (psdu), snr);
m_state->NotifyRxPsduFailed (psdu, snr);
if (!txVector.IsUlMu ())
{
m_state->SwitchFromRxEndError ();

View File

@@ -626,7 +626,7 @@ PhyEntity::EndOfMpdu (Ptr<Event> event, Ptr<const WifiPsdu> psdu, size_t mpduInd
if (rxInfo.first && GetAddressedPsduInPpdu (ppdu)->GetNMpdus () > 1)
{
//only done for correct MPDU that is part of an A-MPDU
m_state->NotifyRxMpdu (Copy (psdu), rxSignalInfo, txVector);
m_state->NotifyRxMpdu (psdu, rxSignalInfo, txVector);
}
}
@@ -675,7 +675,7 @@ PhyEntity::RxPayloadSucceeded (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalIn
const std::vector<bool>& statusPerMpdu)
{
NS_LOG_FUNCTION (this << *psdu << txVector);
m_state->NotifyRxPsduSucceeded (Copy (psdu), rxSignalInfo, txVector, staId, statusPerMpdu);
m_state->NotifyRxPsduSucceeded (psdu, rxSignalInfo, txVector, staId, statusPerMpdu);
m_state->SwitchFromRxEndOk ();
}
@@ -683,7 +683,7 @@ void
PhyEntity::RxPayloadFailed (Ptr<const WifiPsdu> psdu, double snr, const WifiTxVector& txVector)
{
NS_LOG_FUNCTION (this << *psdu << txVector << snr);
m_state->NotifyRxPsduFailed (Copy (psdu), snr);
m_state->NotifyRxPsduFailed (psdu, snr);
m_state->SwitchFromRxEndError ();
}