wifi: Do no longer specify unit in names

This commit is contained in:
Sébastien Deronne
2024-10-29 16:12:00 +01:00
parent a57390cf9e
commit 5edc1a7990
3 changed files with 11 additions and 11 deletions

View File

@@ -416,10 +416,10 @@ EhtFrameExchangeManager::ForwardPsduDown(Ptr<const WifiPsdu> psdu, WifiTxVector&
if (auto phy = m_mac->GetWifiPhy(linkId);
phy && linkId != m_linkId && m_staMac->IsEmlsrLink(linkId))
{
auto txPowerDbm = phy->GetPower(txVector.GetTxPowerLevel()) + phy->GetTxGain();
const auto txPower = phy->GetPower(txVector.GetTxPowerLevel()) + phy->GetTxGain();
// generate in-device interference on the other EMLSR link for the duration of this
// transmission
GenerateInDeviceInterference(linkId, txDuration, DbmToW(txPowerDbm));
GenerateInDeviceInterference(linkId, txDuration, DbmToW(txPower));
}
}
}
@@ -505,10 +505,10 @@ EhtFrameExchangeManager::ForwardPsduMapDown(WifiConstPsduMap psduMap, WifiTxVect
if (auto phy = m_mac->GetWifiPhy(linkId);
phy && linkId != m_linkId && m_staMac->IsEmlsrLink(linkId))
{
auto txPowerDbm = phy->GetPower(txVector.GetTxPowerLevel()) + phy->GetTxGain();
const auto txPower = phy->GetPower(txVector.GetTxPowerLevel()) + phy->GetTxGain();
// generate in-device interference on the other EMLSR link for the duration of this
// transmission
GenerateInDeviceInterference(linkId, txDuration, DbmToW(txPowerDbm));
GenerateInDeviceInterference(linkId, txDuration, DbmToW(txPower));
}
}
}

View File

@@ -1345,10 +1345,10 @@ void
PhyEntity::StartTx(Ptr<const WifiPpdu> ppdu)
{
NS_LOG_FUNCTION(this << ppdu);
auto txPowerDbm = m_wifiPhy->GetTxPowerForTransmission(ppdu) + m_wifiPhy->GetTxGain();
auto txPower = m_wifiPhy->GetTxPowerForTransmission(ppdu) + m_wifiPhy->GetTxGain();
auto txVector = ppdu->GetTxVector();
auto txPowerSpectrum = GetTxPowerSpectralDensity(DbmToW(txPowerDbm), ppdu);
Transmit(ppdu->GetTxDuration(), ppdu, txPowerDbm, txPowerSpectrum, "transmission");
auto txPowerSpectrum = GetTxPowerSpectralDensity(DbmToW(txPower), ppdu);
Transmit(ppdu->GetTxDuration(), ppdu, txPower, txPowerSpectrum, "transmission");
}
void

View File

@@ -132,13 +132,13 @@ WifiSpectrumValueHelper::GetSpectrumModel(const std::vector<MHz_u>& centerFreque
// total width, only a quarter of the channel width has to be subtracted. Finally, we
// remove the guard band width to get the center frequency of the first band and half the
// carrier spacing to get the effective starting frequency of the first band.
const auto startingFrequencyHz = *minCenterFrequency * 1e6 -
((channelWidth * 1e6) / (2 * centerFrequencies.size())) -
(guardBandwidth * 1e6) - (carrierSpacing / 2);
const auto startingFrequency = *minCenterFrequency * 1e6 -
((channelWidth * 1e6) / (2 * centerFrequencies.size())) -
(guardBandwidth * 1e6) - (carrierSpacing / 2);
for (size_t i = 0; i < numBands; i++)
{
BandInfo info;
auto f = startingFrequencyHz + (i * carrierSpacing);
auto f = startingFrequency + (i * carrierSpacing);
info.fl = f;
f += carrierSpacing / 2;
info.fc = f;