Movec cellId assignation out of the constructor (since it is an attribute now, it is set in DoStart method)

This commit is contained in:
jnin
2011-05-03 12:22:37 +02:00
parent 1649562c29
commit 73afe1dfd5

View File

@@ -111,7 +111,6 @@ LteEnbNetDevice::LteEnbNetDevice (Ptr<Node> node, Ptr<LteEnbPhy> phy, Ptr<LteEnb
m_rrc = rrc;
SetNode (node);
NS_ASSERT_MSG (m_cellIdCounter < 65535, "max num eNBs exceeded");
m_cellId = ++m_cellIdCounter;
}
LteEnbNetDevice::~LteEnbNetDevice (void)
@@ -224,6 +223,7 @@ LteEnbNetDevice::SetDlBandwidth (uint8_t bw)
void
LteEnbNetDevice::DoStart (void)
{
m_cellId = ++m_cellIdCounter;
UpdateConfig ();
}