Skip to content

Commit

Permalink
fix potential issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeromy Fu committed Jul 16, 2018
1 parent d0e05bd commit e81c369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/topo/lte-topo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ static void CourseChange (std::string context, Ptr<const MobilityModel> mobility
}

Ptr<PointToPointEpcHelper> LteTop::epcHelper;
Ptr<LteHelper> LteTop::lteHelper;

void LteTop::Build(uint16_t numberOfUEs, double speedKmPerHour, uint32_t msDelay)
{
NS_LOG_INFO("LteTop::Build");
// setup core network
// PointToPoint links for the connection between the eNBs and the SGW (S1-U interface) and among eNBs (X2-U and X2-C interfaces)
lteHelper = CreateObject<LteHelper> ();
Ptr<LteHelper> lteHelper = CreateObject<LteHelper> ();
lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisPropagationLossModel"));

Expand Down
1 change: 1 addition & 0 deletions model/topo/lte-topo.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class LteTop: public Topo
static void EnableLTELogComponents();

protected:
static Ptr<LteHelper> lteHelper;
static Ptr<ns3::PointToPointEpcHelper> epcHelper;
NodeContainer m_ueNodes;
NodeContainer m_enbNodes;
Expand Down

0 comments on commit e81c369

Please sign in to comment.