diff --git a/examples/tutorial/third.py b/examples/tutorial/third.py index fd6368aee..77bae2e0a 100644 --- a/examples/tutorial/third.py +++ b/examples/tutorial/third.py @@ -90,7 +90,7 @@ wifiStaNodes.Create(nWifi) wifiApNode = p2pNodes.Get(0) channel = ns.wifi.YansWifiChannelHelper.Default() -phy = ns.wifi.YansWifiPhyHelper.Default() +phy = ns.wifi.YansWifiPhyHelper() phy.SetChannel(channel.Create()) wifi = ns.wifi.WifiHelper() @@ -152,7 +152,7 @@ ns.internet.Ipv4GlobalRoutingHelper.PopulateRoutingTables() ns.core.Simulator.Stop(ns.core.Seconds(10.0)) if tracing == "True": - phy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO); + phy.SetPcapDataLinkType(phy.DLT_IEEE802_11_RADIO) pointToPoint.EnablePcapAll ("third") phy.EnablePcap ("third", apDevices.Get (0)) csma.EnablePcap ("third", csmaDevices.Get (0), True) diff --git a/examples/wireless/mixed-wired-wireless.py b/examples/wireless/mixed-wired-wireless.py index f589eba75..dc902c20e 100644 --- a/examples/wireless/mixed-wired-wireless.py +++ b/examples/wireless/mixed-wired-wireless.py @@ -136,7 +136,7 @@ def main(argv): wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode", ns.core.StringValue("OfdmRate54Mbps")) wifiPhy = ns.wifi.YansWifiPhyHelper() - wifiPhy.SetPcapDataLinkType (WifiPhyHelper::DLT_IEEE802_11_RADIO); + wifiPhy.SetPcapDataLinkType(wifiPhy.DLT_IEEE802_11_RADIO) wifiChannel = ns.wifi.YansWifiChannelHelper.Default() wifiPhy.SetChannel(wifiChannel.Create()) backboneDevices = wifi.Install(wifiPhy, mac, backbone)