wifi: Fix default power level settings in AparfWifiManager and ParfWifiManager

This commit is contained in:
Sébastien Deronne
2018-05-21 21:57:50 +02:00
parent 29ea252284
commit 339224709c
2 changed files with 4 additions and 4 deletions

View File

@@ -129,8 +129,8 @@ void
AparfWifiManager::SetupPhy (const Ptr<WifiPhy> phy)
{
NS_LOG_FUNCTION (this << phy);
m_minPower = phy->GetTxPowerStart ();
m_maxPower = phy->GetTxPowerEnd ();
m_minPower = 0;
m_maxPower = phy->GetNTxPower () - 1;
WifiRemoteStationManager::SetupPhy (phy);
}

View File

@@ -97,8 +97,8 @@ void
ParfWifiManager::SetupPhy (const Ptr<WifiPhy> phy)
{
NS_LOG_FUNCTION (this << phy);
m_minPower = phy->GetTxPowerStart ();
m_maxPower = phy->GetTxPowerEnd ();
m_minPower = 0;
m_maxPower = phy->GetNTxPower () - 1;
WifiRemoteStationManager::SetupPhy (phy);
}