wifi: eliminate unnecessary dBm-W conversions in WifiPhy.
This commit is contained in:
committed by
Sébastien Deronne
parent
e3d778ee97
commit
7cefbaed63
@@ -479,13 +479,13 @@ void
|
||||
WifiPhy::SetRxSensitivity(double threshold)
|
||||
{
|
||||
NS_LOG_FUNCTION(this << threshold);
|
||||
m_rxSensitivityW = DbmToW(threshold);
|
||||
m_rxSensitivityDbm = threshold;
|
||||
}
|
||||
|
||||
double
|
||||
WifiPhy::GetRxSensitivity() const
|
||||
{
|
||||
return WToDbm(m_rxSensitivityW);
|
||||
return m_rxSensitivityDbm;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -1500,7 +1500,7 @@ class WifiPhy : public Object
|
||||
Time m_ackTxTime; //!< estimated Ack TX time
|
||||
Time m_blockAckTxTime; //!< estimated BlockAck TX time
|
||||
|
||||
double m_rxSensitivityW; //!< Receive sensitivity threshold in watts
|
||||
double m_rxSensitivityDbm; //!< Receive sensitivity threshold in dBm
|
||||
double m_ccaEdThresholdW; //!< Clear channel assessment (CCA) energy detection (ED) threshold in
|
||||
//!< watts
|
||||
double m_ccaSensitivityThresholdW; //!< Clear channel assessment (CCA) modulation and coding
|
||||
|
||||
Reference in New Issue
Block a user