fixed LENA-78 m_dlBandwidth not initialized

This commit is contained in:
Nicola Baldo
2011-04-19 17:32:20 +02:00
parent 43ccddb253
commit b7f6c0fa5d
4 changed files with 26 additions and 2 deletions

View File

@@ -108,7 +108,6 @@ LteEnbNetDevice::LteEnbNetDevice (Ptr<Node> node, Ptr<LteEnbPhy> phy, Ptr<LteEnb
SetNode (node);
NS_ASSERT_MSG (m_cellIdCounter < 65535, "max num eNBs exceeded");
m_cellId = ++m_cellIdCounter;
UpdateConfig ();
}
LteEnbNetDevice::~LteEnbNetDevice (void)
@@ -218,6 +217,13 @@ LteEnbNetDevice::SetDlBandwidth (uint8_t bw)
}
}
void
LteEnbNetDevice::DoStart (void)
{
UpdateConfig ();
}
bool
LteEnbNetDevice::DoSend (Ptr<Packet> packet, const Mac48Address& source,

View File

@@ -106,6 +106,12 @@ public:
void SetDlBandwidth (uint8_t bw);
protected:
// inherited from Object
virtual void DoStart (void);
private:
bool DoSend (Ptr<Packet> packet,
const Mac48Address& source,

View File

@@ -79,7 +79,6 @@ LteUeNetDevice::LteUeNetDevice (Ptr<Node> node, Ptr<LteUePhy> phy, Ptr<LteUeMac>
m_mac = mac;
m_rrc = rrc;
SetNode (node);
UpdateConfig ();
}
LteUeNetDevice::~LteUeNetDevice (void)
@@ -151,6 +150,13 @@ LteUeNetDevice::GetTargetEnb (void)
}
void
LteUeNetDevice::DoStart (void)
{
UpdateConfig ();
}
bool
LteUeNetDevice::DoSend (Ptr<Packet> packet, const Mac48Address& source,
const Mac48Address& dest, uint16_t protocolNumber)

View File

@@ -81,6 +81,12 @@ public:
Ptr<LteEnbNetDevice> GetTargetEnb (void);
protected:
// inherited from Object
virtual void DoStart (void);
private:
bool DoSend (Ptr<Packet> packet,
const Mac48Address& source,