src/test/ns3wifi/wifi-interference-test-suite.cc
changeset 6068 a2127017ecb4
parent 6065 0f012e7d9128
parent 6041 b65c6d6794f8
child 6360 d8975477ff6a
equal deleted inserted replaced
6067:ccbdc2b19ea5 6068:a2127017ecb4
   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 ());