From 57b77fe55b349bea92a0485184bb765519e50628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Thu, 10 May 2018 22:13:49 +0200 Subject: [PATCH] examples: Cleanup wifi-module includes --- examples/energy/energy-model-example.cc | 16 ++++++++-------- .../energy-model-with-harvesting-example.cc | 16 ++++++++-------- examples/routing/manet-routing-compare.cc | 2 +- examples/stats/wifi-example-sim.cc | 6 +----- examples/tutorial/third.cc | 3 ++- 5 files changed, 20 insertions(+), 23 deletions(-) diff --git a/examples/energy/energy-model-example.cc b/examples/energy/energy-model-example.cc index 586176b36..f8d48326f 100644 --- a/examples/energy/energy-model-example.cc +++ b/examples/energy/energy-model-example.cc @@ -18,18 +18,18 @@ * Author: Sidharth Nabar , He Wu */ -#include "ns3/core-module.h" -#include "ns3/network-module.h" -#include "ns3/mobility-module.h" -#include "ns3/config-store-module.h" -#include "ns3/wifi-module.h" -#include "ns3/energy-module.h" -#include "ns3/internet-module.h" - #include #include #include #include +#include "ns3/core-module.h" +#include "ns3/network-module.h" +#include "ns3/mobility-module.h" +#include "ns3/config-store-module.h" +#include "ns3/energy-module.h" +#include "ns3/internet-module.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/wifi-radio-energy-model-helper.h" using namespace ns3; diff --git a/examples/energy/energy-model-with-harvesting-example.cc b/examples/energy/energy-model-with-harvesting-example.cc index 63a3d95ac..f89eab5da 100644 --- a/examples/energy/energy-model-with-harvesting-example.cc +++ b/examples/energy/energy-model-with-harvesting-example.cc @@ -47,18 +47,18 @@ * */ -#include "ns3/core-module.h" -#include "ns3/network-module.h" -#include "ns3/mobility-module.h" -#include "ns3/config-store-module.h" -#include "ns3/wifi-module.h" -#include "ns3/energy-module.h" -#include "ns3/internet-module.h" - #include #include #include #include +#include "ns3/core-module.h" +#include "ns3/network-module.h" +#include "ns3/mobility-module.h" +#include "ns3/config-store-module.h" +#include "ns3/energy-module.h" +#include "ns3/internet-module.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/wifi-radio-energy-model-helper.h" using namespace ns3; diff --git a/examples/routing/manet-routing-compare.cc b/examples/routing/manet-routing-compare.cc index e8f2f3a80..71331cad0 100644 --- a/examples/routing/manet-routing-compare.cc +++ b/examples/routing/manet-routing-compare.cc @@ -71,12 +71,12 @@ #include "ns3/network-module.h" #include "ns3/internet-module.h" #include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" #include "ns3/aodv-module.h" #include "ns3/olsr-module.h" #include "ns3/dsdv-module.h" #include "ns3/dsr-module.h" #include "ns3/applications-module.h" +#include "ns3/yans-wifi-helper.h" using namespace ns3; using namespace dsr; diff --git a/examples/stats/wifi-example-sim.cc b/examples/stats/wifi-example-sim.cc index 9dd8c62e0..4a859ff7b 100644 --- a/examples/stats/wifi-example-sim.cc +++ b/examples/stats/wifi-example-sim.cc @@ -31,17 +31,13 @@ */ #include - #include - #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/mobility-module.h" -#include "ns3/wifi-module.h" #include "ns3/internet-module.h" - #include "ns3/stats-module.h" - +#include "ns3/yans-wifi-helper.h" #include "wifi-example-apps.h" using namespace ns3; diff --git a/examples/tutorial/third.cc b/examples/tutorial/third.cc index ecda1bca3..ee17a5c86 100644 --- a/examples/tutorial/third.cc +++ b/examples/tutorial/third.cc @@ -18,10 +18,11 @@ #include "ns3/point-to-point-module.h" #include "ns3/network-module.h" #include "ns3/applications-module.h" -#include "ns3/wifi-module.h" #include "ns3/mobility-module.h" #include "ns3/csma-module.h" #include "ns3/internet-module.h" +#include "ns3/yans-wifi-helper.h" +#include "ns3/ssid.h" // Default Network Topology //