Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1449)

Unified Diff: examples/tutorial/third.cc

Issue 1926043: ns-3 Bug 978: Consolidate Wi-Fi MAC high functionality (Closed)
Patch Set: Draft 5 addressing Nicola's detailed comments Created 13 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/tap/tap-wifi-virtual-machine.py ('k') | examples/wireless/mixed-wireless.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/tutorial/third.cc
===================================================================
--- a/examples/tutorial/third.cc
+++ b/examples/tutorial/third.cc
@@ -91,15 +91,17 @@
NqosWifiMacHelper mac = NqosWifiMacHelper::Default ();
Ssid ssid = Ssid ("ns-3-ssid");
- mac.SetType ("ns3::NqstaWifiMac",
- "Ssid", SsidValue (ssid),
- "ActiveProbing", BooleanValue (false));
+ mac.SetType ("ns3::StaWifiMac",
+ "QosSupported", BooleanValue (false),
+ "Ssid", SsidValue (ssid),
+ "ActiveProbing", BooleanValue (false));
NetDeviceContainer staDevices;
staDevices = wifi.Install (phy, mac, wifiStaNodes);
- mac.SetType ("ns3::NqapWifiMac",
- "Ssid", SsidValue (ssid));
+ mac.SetType ("ns3::ApWifiMac",
+ "QosSupported", BooleanValue (false),
+ "Ssid", SsidValue (ssid));
NetDeviceContainer apDevices;
apDevices = wifi.Install (phy, mac, wifiApNode);
« no previous file with comments | « examples/tap/tap-wifi-virtual-machine.py ('k') | examples/wireless/mixed-wireless.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b