View | Details | Raw Unified | Return to bug 844
Collapse All | Expand All

(-)a/src/devices/wifi/yans-wifi-phy.cc (-1 / +1 lines)
 Lines 726-732    Link Here 
726
{
726
{
727
  NS_ASSERT (m_txPowerBaseDbm <= m_txPowerEndDbm);
727
  NS_ASSERT (m_txPowerBaseDbm <= m_txPowerEndDbm);
728
  NS_ASSERT (m_nTxPower > 0);
728
  NS_ASSERT (m_nTxPower > 0);
729
  double dbm = m_txPowerBaseDbm + power * (m_txPowerEndDbm - m_txPowerBaseDbm) / m_nTxPower;
729
  double dbm = m_txPowerBaseDbm + power * (m_txPowerEndDbm - m_txPowerBaseDbm) / (m_nTxPower == 1 ? 1 : m_nTxPower - 1);
730
  return dbm;
730
  return dbm;
731
}
731
}
732
732

Return to bug 844