Partially revert "lte: (fixes: #2840) Wrong configuration of eNBs and UEs"
This reverts commit 3ee00b0a17.
This commit is contained in:
committed by
Tom Henderson
parent
3a8585befe
commit
3486c7862d
@@ -509,14 +509,12 @@ LteHelper::InstallSingleEnbDevice (Ptr<Node> n)
|
||||
Ptr<LteEnbNetDevice> dev = m_enbNetDeviceFactory.Create<LteEnbNetDevice> ();
|
||||
Ptr<LteHandoverAlgorithm> handoverAlgorithm = m_handoverAlgorithmFactory.Create<LteHandoverAlgorithm> ();
|
||||
|
||||
NS_ABORT_MSG_IF (m_componentCarrierPhyParams.size() != 0, "CC map is not clean");
|
||||
DoComponentCarrierConfigure (dev->GetUlEarfcn (), dev->GetDlEarfcn (),
|
||||
dev->GetUlBandwidth (), dev->GetDlBandwidth ());
|
||||
NS_ABORT_MSG_IF (m_componentCarrierPhyParams.size() != m_noOfCcs,
|
||||
"CC map size (" << m_componentCarrierPhyParams.size () <<
|
||||
") must be equal to number of carriers (" <<
|
||||
m_noOfCcs << ")");
|
||||
if (m_componentCarrierPhyParams.size() == 0)
|
||||
{
|
||||
DoComponentCarrierConfigure (dev->GetUlEarfcn (), dev->GetDlEarfcn (), dev->GetUlBandwidth (), dev->GetDlBandwidth ());
|
||||
}
|
||||
|
||||
NS_ASSERT_MSG(m_componentCarrierPhyParams.size()!=0, "Cannot create enb ccm map.");
|
||||
// create component carrier map for this eNb device
|
||||
std::map<uint8_t,Ptr<ComponentCarrierBaseStation> > ccMap;
|
||||
for (std::map<uint8_t, ComponentCarrier >::iterator it = m_componentCarrierPhyParams.begin ();
|
||||
@@ -533,9 +531,6 @@ LteHelper::InstallSingleEnbDevice (Ptr<Node> n)
|
||||
cc->SetCellId (m_cellIdCounter++);
|
||||
ccMap [it->first] = cc;
|
||||
}
|
||||
// CC map is not needed anymore
|
||||
m_componentCarrierPhyParams.clear ();
|
||||
|
||||
NS_ABORT_MSG_IF (m_useCa && ccMap.size()<2, "You have to either specify carriers or disable carrier aggregation");
|
||||
NS_ASSERT (ccMap.size () == m_noOfCcs);
|
||||
|
||||
@@ -762,19 +757,9 @@ LteHelper::InstallSingleUeDevice (Ptr<Node> n)
|
||||
{
|
||||
NS_LOG_FUNCTION (this);
|
||||
|
||||
NS_ABORT_MSG_IF (m_componentCarrierPhyParams.size() == 0 && m_useCa, "If CA is enabled, before call this method you need to install Enbs --> InstallEnbDevice()");
|
||||
|
||||
Ptr<LteUeNetDevice> dev = m_ueNetDeviceFactory.Create<LteUeNetDevice> ();
|
||||
|
||||
// Initialize the component carriers with default values in order to initialize MACs and PHYs
|
||||
// of each component carrier. These values must be updated once the UE is attached to the
|
||||
// eNB and receives RRC Connection Reconfiguration message. In case of primary carrier or
|
||||
// a single carrier, these values will be updated once the UE will receive SIB2 and MIB.
|
||||
NS_ABORT_MSG_IF (m_componentCarrierPhyParams.size() != 0, "CC map is not clean");
|
||||
DoComponentCarrierConfigure (dev->GetDlEarfcn () + 18000, dev->GetDlEarfcn (), 25, 25);
|
||||
NS_ABORT_MSG_IF (m_componentCarrierPhyParams.size() != m_noOfCcs,
|
||||
"CC map size (" << m_componentCarrierPhyParams.size () <<
|
||||
") must be equal to number of carriers (" <<
|
||||
m_noOfCcs << ")");
|
||||
|
||||
std::map<uint8_t, Ptr<ComponentCarrierUe> > ueCcMap;
|
||||
|
||||
for (std::map< uint8_t, ComponentCarrier >::iterator it = m_componentCarrierPhyParams.begin();
|
||||
@@ -792,8 +777,6 @@ LteHelper::InstallSingleUeDevice (Ptr<Node> n)
|
||||
// cc->GetPhy ()->Initialize (); // it is initialized within the LteUeNetDevice::DoInitialize ()
|
||||
ueCcMap.insert (std::pair<uint8_t, Ptr<ComponentCarrierUe> > (it->first, cc));
|
||||
}
|
||||
// CC map is not needed anymore
|
||||
m_componentCarrierPhyParams.clear ();
|
||||
|
||||
for (std::map<uint8_t, Ptr<ComponentCarrierUe> >::iterator it = ueCcMap.begin (); it != ueCcMap.end (); ++it)
|
||||
{
|
||||
|
||||
@@ -1345,8 +1345,6 @@ LteUeRrc::ApplyRadioResourceConfigDedicatedSecondaryCarrier (LteRrcSap::NonCriti
|
||||
{
|
||||
NS_LOG_FUNCTION (this);
|
||||
|
||||
m_sCellToAddModList = nonCec.sCellsToAddModList;
|
||||
|
||||
for (std::list<LteRrcSap::SCellToAddMod>::iterator it = nonCec.sCellsToAddModList.begin (); it != nonCec.sCellsToAddModList.end (); it++)
|
||||
{
|
||||
LteRrcSap::SCellToAddMod scell = *it;
|
||||
@@ -1374,8 +1372,6 @@ LteUeRrc::ApplyRadioResourceConfigDedicatedSecondaryCarrier (LteRrcSap::NonCriti
|
||||
m_cphySapProvider.at (ccId)->SetPa (paDouble);
|
||||
m_cphySapProvider.at (ccId)->SetSrsConfigurationIndex (srsIndex);
|
||||
}
|
||||
|
||||
m_sCarrierConfiguredTrace (this, m_sCellToAddModList);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -827,7 +827,6 @@ private:
|
||||
|
||||
uint32_t m_dlEarfcn; /**< Downlink carrier frequency. */
|
||||
uint32_t m_ulEarfcn; /**< Uplink carrier frequency. */
|
||||
std::list<LteRrcSap::SCellToAddMod> m_sCellToAddModList; /**< Secondary carriers. */
|
||||
|
||||
/**
|
||||
* The `MibReceived` trace source. Fired upon reception of Master Information
|
||||
|
||||
Reference in New Issue
Block a user