lte: Skip primary CC instead of first in UeManager::BuildNonCriticalExtentionConfigurationCa

This commit is contained in:
Alexander Krotov
2017-06-07 17:37:34 +03:00
parent 9c95cd7c1b
commit 1cf7c74ee0

View File

@@ -1399,14 +1399,18 @@ UeManager::BuildNonCriticalExtentionConfigurationCa ()
std::list<LteRrcSap::SCellToAddMod> SccCon;
// sCellToReleaseList is always empty since no Scc is released
auto it = m_rrc->m_componentCarrierPhyConf.begin();
it++;
for (;it!=m_rrc->m_componentCarrierPhyConf.end(); it++)
for (auto &it: m_rrc->m_componentCarrierPhyConf)
{
uint8_t ccId = it.first;
uint8_t ccId = it->first;
Ptr<ComponentCarrierEnb> eNbCcm = it->second;
// Skip primary CC.
if (ccId == m_componentCarrierId)
{
continue;
}
Ptr<ComponentCarrierEnb> eNbCcm = it.second;
LteRrcSap::SCellToAddMod component;
component.sCellIndex = ccId;
component.cellIdentification.physCellId = eNbCcm->GetCellId ();