equal
deleted
inserted
replaced
147 // This is one parameter that matters when using FixedRssLossModel |
147 // This is one parameter that matters when using FixedRssLossModel |
148 // set it to zero; otherwise, gain will be added |
148 // set it to zero; otherwise, gain will be added |
149 wifiPhy.Set ("RxGain", DoubleValue (0) ); |
149 wifiPhy.Set ("RxGain", DoubleValue (0) ); |
150 wifiPhy.Set ("CcaMode1Threshold", DoubleValue (0.0) ); |
150 wifiPhy.Set ("CcaMode1Threshold", DoubleValue (0.0) ); |
151 |
151 |
152 // ns-3 support RadioTap and Prism tracing extensions for 802.11b |
152 // ns-3 supports RadioTap and Prism tracing extensions for 802.11b |
153 wifiPhy.SetPcapFormat (YansWifiPhyHelper::PCAP_FORMAT_80211_RADIOTAP); |
153 wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); |
154 |
154 |
155 YansWifiChannelHelper wifiChannel ; |
155 YansWifiChannelHelper wifiChannel ; |
156 wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); |
156 wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); |
157 wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel"); |
157 wifiChannel.AddPropagationLoss ("ns3::LogDistancePropagationLossModel"); |
158 wifiPhy.SetChannel (wifiChannel.Create ()); |
158 wifiPhy.SetChannel (wifiChannel.Create ()); |