equal
deleted
inserted
replaced
18 * Author: Mirko Banchi <mk.banchi@gmail.com> |
18 * Author: Mirko Banchi <mk.banchi@gmail.com> |
19 */ |
19 */ |
20 #include "nqos-wifi-mac-helper.h" |
20 #include "nqos-wifi-mac-helper.h" |
21 #include "ns3/wifi-mac.h" |
21 #include "ns3/wifi-mac.h" |
22 #include "ns3/pointer.h" |
22 #include "ns3/pointer.h" |
|
23 #include "ns3/boolean.h" |
23 #include "ns3/dca-txop.h" |
24 #include "ns3/dca-txop.h" |
24 |
25 |
25 namespace ns3 { |
26 namespace ns3 { |
26 |
27 |
27 NqosWifiMacHelper::NqosWifiMacHelper () |
28 NqosWifiMacHelper::NqosWifiMacHelper () |
32 |
33 |
33 NqosWifiMacHelper |
34 NqosWifiMacHelper |
34 NqosWifiMacHelper::Default (void) |
35 NqosWifiMacHelper::Default (void) |
35 { |
36 { |
36 NqosWifiMacHelper helper; |
37 NqosWifiMacHelper helper; |
37 helper.SetType ("ns3::AdhocWifiMac"); |
38 // We're making non QoS-enabled Wi-Fi MACs here, so we set the |
|
39 // necessary attribute. I've carefully positioned this here so that |
|
40 // someone who knows what they're doing can override with explicit |
|
41 // attributes. |
|
42 helper.SetType ("ns3::AdhocWifiMac", |
|
43 "QosSupported", BooleanValue (false)); |
38 return helper; |
44 return helper; |
39 } |
45 } |
40 |
46 |
41 void |
47 void |
42 NqosWifiMacHelper::SetType (std::string type, |
48 NqosWifiMacHelper::SetType (std::string type, |