examples: Avoid deprecated/removed API
NS 3.28 has removed several long-deprecated helpers from Wifi module,
resulting in compilation failures.
Change-Id: Idedb22577f72fe6d5197a23e69050b5368da092a
diff --git a/examples/ndn-simple-wifi.cpp b/examples/ndn-simple-wifi.cpp
index 0afaa14..3d6891e 100644
--- a/examples/ndn-simple-wifi.cpp
+++ b/examples/ndn-simple-wifi.cpp
@@ -60,7 +60,7 @@
//////////////////////
//////////////////////
//////////////////////
- WifiHelper wifi = WifiHelper::Default();
+ WifiHelper wifi;
// wifi.SetRemoteStationManager ("ns3::AarfWifiManager");
wifi.SetStandard(WIFI_PHY_STANDARD_80211a);
wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode",
@@ -77,7 +77,7 @@
wifiPhyHelper.Set("TxPowerStart", DoubleValue(5));
wifiPhyHelper.Set("TxPowerEnd", DoubleValue(5));
- NqosWifiMacHelper wifiMacHelper = NqosWifiMacHelper::Default();
+ WifiMacHelper wifiMacHelper;
wifiMacHelper.SetType("ns3::AdhocWifiMac");
Ptr<UniformRandomVariable> randomizer = CreateObject<UniformRandomVariable>();