lte: Correct typos

This commit is contained in:
ZorazeAli
2019-05-03 11:28:06 +02:00
parent a6afb989f3
commit 3387ea0361
4 changed files with 14 additions and 13 deletions

View File

@@ -225,9 +225,9 @@ public:
* \brief Is random access completed function
*
* This method is executed to decide if the non contention based
* preamble has to reused or not upon preamble expiry. If the random access
* preamble has to be reused or not upon preamble expiry. If the random access
* in connected mode is completed, then the preamble can be reused by other UEs.
* If not, the same UE retains the preamble and other available preambles is
* If not, the same UE retains the preamble and other available preambles are
* assigned to the required UEs.
*
* \param rnti the C-RNTI identifying the user

View File

@@ -588,14 +588,14 @@ LteUePhy::GenerateCqiRsrpRsrq (const SpectrumValue& sinr)
}
double rsrp = (rbNum > 0) ? (sum / rbNum) : DBL_MAX;
// averaged SINR among RBs
double avSinr = ComputeAvrgSinr (sinr);
double avSinr = ComputeAvgSinr (sinr);
NS_LOG_INFO (this << " cellId " << m_cellId << " rnti " << m_rnti << " RSRP " << rsrp << " SINR " << avSinr << " ComponentCarrierId " << (uint16_t) m_componentCarrierId);
//trigger RLF detection only when UE has an active RRC connection
//and RLF detection attribute is set to true
if (m_isConnected && m_enableRlfDetection)
{
double avrgSinrForRlf = ComputeAvrgSinr (m_ctrlSinrForRlf);
double avrgSinrForRlf = ComputeAvgSinr (m_ctrlSinrForRlf);
RlfDetection (10 * log10 (avrgSinrForRlf));
}
@@ -659,7 +659,7 @@ LteUePhy::GenerateCqiRsrpRsrq (const SpectrumValue& sinr)
} // end of void LteUePhy::GenerateCtrlCqiReport (const SpectrumValue& sinr)
double
LteUePhy::ComputeAvrgSinr (const SpectrumValue& sinr)
LteUePhy::ComputeAvgSinr (const SpectrumValue& sinr)
{
NS_LOG_FUNCTION (this);
@@ -707,8 +707,8 @@ LteUePhy::GenerateMixedCqiReport (const SpectrumValue& sinr)
NS_ASSERT (m_state != CELL_SEARCH);
//NOTE: The SINR received by this method is
//based on CTRL, which is not used to compute
//PDSCH (i.e., data) based SINR. Luckily, we can use
//it for RLF detection.
//PDSCH (i.e., data) based SINR. It is used
//for RLF detection.
m_ctrlSinrForRlf = sinr;
SpectrumValue mixedSinr = (m_rsReceivedPower * m_paLinear);
@@ -1560,7 +1560,7 @@ LteUePhy::RlfDetection (double sinrDb)
* than the threshold Qout, then the frame counter is reset
* since only consecutive frames should be considered.
*/
NS_LOG_INFO ("Reseting frame counter at phy. Current value = " << m_numOfFrames);
NS_LOG_INFO ("Resetting frame counter at phy. Current value = " << m_numOfFrames);
m_numOfFrames = 0;
// Also reset the sync indicator counter at RRC
m_ueCphySapUser->ResetSyncIndicationCounter ();
@@ -1569,8 +1569,9 @@ LteUePhy::RlfDetection (double sinrDb)
m_sinrDbFrame = 0;
}
/**
* Once the number of consecutive frames which cannot be decoded equals the Qout evaluation period (i.e 200ms),
* then an out-of-sync indication is sent to the RRC layer
* Once the number of consecutive frames which cannot be decoded equals
* the Qout evaluation period (i.e 200ms), then an out-of-sync indication
* is sent to the RRC layer
*/
if (m_downlinkInSync && (m_numOfFrames * 10) == m_numOfQoutEvalSf)
{

View File

@@ -500,7 +500,7 @@ private:
/**
* \brief Reset radio link failure parameters
*
* Upon receiving N311 in-sync indications from the UE
* Upon receiving N311 in Sync indications from the UE
* PHY, the UE RRC instructs the UE PHY to reset the
* RLF parameters so, it can start RLF detection again.
*
@@ -567,7 +567,7 @@ private:
* \param sinr
* \return the average SINR value
*/
double ComputeAvrgSinr (const SpectrumValue& sinr);
double ComputeAvgSinr (const SpectrumValue& sinr);
// UE PHY SAP methods
virtual void DoSendMacPdu (Ptr<Packet> p);

View File

@@ -319,7 +319,7 @@ LteUeRrc::GetTypeId (void)
MakeTraceSourceAccessor (&LteUeRrc::m_radioLinkFailureTrace),
"ns3::LteUeRrc::ImsiCidRntiTracedCallback")
.AddTraceSource ("PhySyncDetection",
"trace fired upon failure of radio link",
"trace fired upon receiving in Sync or out of Sync indications from UE PHY",
MakeTraceSourceAccessor (&LteUeRrc::m_phySyncDetectionTrace),
"ns3::LteUeRrc::PhySyncDetectionTracedCallback")
;