wifi: pass WifiConstPsduMap by const ref.

This commit is contained in:
Tolik Zinovyev
2024-09-14 23:38:02 -04:00
committed by Stefano Avallone
parent 3d4b05bef0
commit ef72c1248e
6 changed files with 12 additions and 12 deletions

View File

@@ -1527,7 +1527,7 @@ HePhy::StartTxHePortion(Ptr<const WifiPpdu> ppdu,
}
Time
HePhy::CalculateTxDuration(WifiConstPsduMap psduMap,
HePhy::CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band) const
{

View File

@@ -97,7 +97,7 @@ class HePhy : public VhtPhy
uint16_t GetStaId(const Ptr<const WifiPpdu> ppdu) const override;
MHz_u GetMeasurementChannelWidth(const Ptr<const WifiPpdu> ppdu) const override;
void StartTx(Ptr<const WifiPpdu> ppdu) override;
Time CalculateTxDuration(WifiConstPsduMap psduMap,
Time CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band) const override;
void SwitchMaybeToCcaBusy(const Ptr<const WifiPpdu> ppdu) override;

View File

@@ -1388,7 +1388,7 @@ PhyEntity::GetTxMaskRejectionParams() const
}
Time
PhyEntity::CalculateTxDuration(WifiConstPsduMap psduMap,
PhyEntity::CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band) const
{

View File

@@ -478,7 +478,7 @@ class PhyEntity : public SimpleRefCount<PhyEntity>
*
* \return the total amount of time this PHY will stay busy for the transmission of the PPDU
*/
virtual Time CalculateTxDuration(WifiConstPsduMap psduMap,
virtual Time CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band) const;
/**

View File

@@ -1582,7 +1582,7 @@ WifiPhy::CalculateTxDuration(Ptr<const WifiPsdu> psdu,
}
Time
WifiPhy::CalculateTxDuration(WifiConstPsduMap psduMap,
WifiPhy::CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band)
{
@@ -1597,7 +1597,7 @@ WifiPhy::GetMaxPsduSize(WifiModulationClass modulation)
}
void
WifiPhy::NotifyTxBegin(WifiConstPsduMap psdus, Watt_u txPower)
WifiPhy::NotifyTxBegin(const WifiConstPsduMap& psdus, Watt_u txPower)
{
if (!m_phyTxBeginTrace.IsEmpty())
{
@@ -1612,7 +1612,7 @@ WifiPhy::NotifyTxBegin(WifiConstPsduMap psdus, Watt_u txPower)
}
void
WifiPhy::NotifyTxEnd(WifiConstPsduMap psdus)
WifiPhy::NotifyTxEnd(const WifiConstPsduMap& psdus)
{
if (!m_phyTxEndTrace.IsEmpty())
{
@@ -1789,7 +1789,7 @@ WifiPhy::Send(Ptr<const WifiPsdu> psdu, const WifiTxVector& txVector)
}
void
WifiPhy::Send(WifiConstPsduMap psdus, const WifiTxVector& txVector)
WifiPhy::Send(const WifiConstPsduMap& psdus, const WifiTxVector& txVector)
{
NS_LOG_FUNCTION(this << psdus << txVector);
/* Transmission can happen if:

View File

@@ -156,7 +156,7 @@ class WifiPhy : public Object
* real transmission power is calculated as txPowerMin + txPowerLevel * (txPowerMax -
* txPowerMin) / nTxLevels
*/
void Send(WifiConstPsduMap psdus, const WifiTxVector& txVector);
void Send(const WifiConstPsduMap& psdus, const WifiTxVector& txVector);
/**
* \param ppdu the PPDU to send
@@ -266,7 +266,7 @@ class WifiPhy : public Object
*
* \return the total amount of time this PHY will stay busy for the transmission of the PPDU
*/
static Time CalculateTxDuration(WifiConstPsduMap psduMap,
static Time CalculateTxDuration(const WifiConstPsduMap& psduMap,
const WifiTxVector& txVector,
WifiPhyBand band);
@@ -564,14 +564,14 @@ class WifiPhy : public Object
* \param psdus the PSDUs being transmitted (only one unless DL MU transmission)
* \param txPower the transmit power
*/
void NotifyTxBegin(WifiConstPsduMap psdus, Watt_u txPower);
void NotifyTxBegin(const WifiConstPsduMap& psdus, Watt_u txPower);
/**
* Public method used to fire a PhyTxEnd trace.
* Implemented for encapsulation purposes.
*
* \param psdus the PSDUs being transmitted (only one unless DL MU transmission)
*/
void NotifyTxEnd(WifiConstPsduMap psdus);
void NotifyTxEnd(const WifiConstPsduMap& psdus);
/**
* Public method used to fire a PhyTxDrop trace.
* Implemented for encapsulation purposes.