wifi: No need for PHY to make a copy of WifiPsdus
This commit is contained in:
committed by
Stefano Avallone
parent
941a1287ff
commit
5c5973ea96
@@ -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 ();
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user