equal
deleted
inserted
replaced
134 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
134 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); |
135 // This is one parameter that matters when using FixedRssLossModel |
135 // This is one parameter that matters when using FixedRssLossModel |
136 // set it to zero; otherwise, gain will be added |
136 // set it to zero; otherwise, gain will be added |
137 wifiPhy.Set ("RxGain", DoubleValue (0) ); |
137 wifiPhy.Set ("RxGain", DoubleValue (0) ); |
138 // ns-3 supports RadioTap and Prism tracing extensions for 802.11b |
138 // ns-3 supports RadioTap and Prism tracing extensions for 802.11b |
139 wifiPhy.SetPcapDataLinkType (PcapHelper::DLT_IEEE802_11_RADIO); |
139 wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); |
140 |
140 |
141 YansWifiChannelHelper wifiChannel ; |
141 YansWifiChannelHelper wifiChannel ; |
142 wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); |
142 wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); |
143 // The below FixedRssLossModel will cause the rss to be fixed regardless |
143 // The below FixedRssLossModel will cause the rss to be fixed regardless |
144 // of the distance between the two stations, and the transmit power |
144 // of the distance between the two stations, and the transmit power |