wifi: WifiPhyStateHelper can receive pointers to const WifiPsdus

This commit is contained in:
Stefano Avallone
2022-08-24 16:43:07 +02:00
committed by Stefano Avallone
parent 6b8dde4fe2
commit 941a1287ff
2 changed files with 6 additions and 6 deletions

View File

@@ -457,7 +457,7 @@ WifiPhyStateHelper::SwitchToChannelSwitching (Time switchingDuration)
}
void
WifiPhyStateHelper::NotifyRxMpdu (Ptr<WifiPsdu> psdu, RxSignalInfo rxSignalInfo, const WifiTxVector& txVector)
WifiPhyStateHelper::NotifyRxMpdu (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo, const WifiTxVector& txVector)
{
NS_LOG_FUNCTION (this << *psdu << rxSignalInfo << txVector);
if (!m_rxOkCallback.IsNull ())
@@ -467,7 +467,7 @@ WifiPhyStateHelper::NotifyRxMpdu (Ptr<WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
}
void
WifiPhyStateHelper::NotifyRxPsduSucceeded (Ptr<WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
WifiPhyStateHelper::NotifyRxPsduSucceeded (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
const WifiTxVector& txVector, uint16_t staId,
const std::vector<bool>& statusPerMpdu)
{
@@ -486,7 +486,7 @@ WifiPhyStateHelper::NotifyRxPsduSucceeded (Ptr<WifiPsdu> psdu, RxSignalInfo rxSi
}
void
WifiPhyStateHelper::NotifyRxPsduFailed (Ptr<WifiPsdu> psdu, double snr)
WifiPhyStateHelper::NotifyRxPsduFailed (Ptr<const WifiPsdu> psdu, double snr)
{
NS_LOG_FUNCTION (this << *psdu << snr);
if (!m_rxErrorTrace.IsEmpty ())

View File

@@ -193,7 +193,7 @@ public:
* \param rxSignalInfo the info on the received signal (\see RxSignalInfo)
* \param txVector TXVECTOR of the PSDU
*/
void NotifyRxMpdu (Ptr<WifiPsdu> psdu, RxSignalInfo rxSignalInfo, const WifiTxVector& txVector);
void NotifyRxMpdu (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo, const WifiTxVector& txVector);
/**
* Handle the successful reception of a PSDU.
*
@@ -203,7 +203,7 @@ public:
* \param staId the station ID of the PSDU (only used for MU)
* \param statusPerMpdu reception status per MPDU
*/
void NotifyRxPsduSucceeded (Ptr<WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
void NotifyRxPsduSucceeded (Ptr<const WifiPsdu> psdu, RxSignalInfo rxSignalInfo,
const WifiTxVector& txVector, uint16_t staId,
const std::vector<bool>& statusPerMpdu);
/**
@@ -212,7 +212,7 @@ public:
* \param psdu the PSDU that we failed to received
* \param snr the SNR of the received PSDU in linear scale
*/
void NotifyRxPsduFailed (Ptr<WifiPsdu> psdu, double snr);
void NotifyRxPsduFailed (Ptr<const WifiPsdu> psdu, double snr);
/**
* Switch from RX after the reception was successful.
*/