diff --git a/src/wifi/model/he/he-phy.cc b/src/wifi/model/he/he-phy.cc index 00bcf8773..165e82972 100644 --- a/src/wifi/model/he/he-phy.cc +++ b/src/wifi/model/he/he-phy.cc @@ -800,7 +800,7 @@ HePhy::RxPayloadSucceeded (Ptr psdu, RxSignalInfo rxSignalInfo, const std::vector& 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 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 (); diff --git a/src/wifi/model/phy-entity.cc b/src/wifi/model/phy-entity.cc index c35774041..ff67e9f23 100644 --- a/src/wifi/model/phy-entity.cc +++ b/src/wifi/model/phy-entity.cc @@ -626,7 +626,7 @@ PhyEntity::EndOfMpdu (Ptr event, Ptr 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 psdu, RxSignalInfo rxSignalIn const std::vector& 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 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 (); }