examples/wireless/wifi-simple-infra.cc
changeset 6041 b65c6d6794f8
parent 6009 e1b696a1ed28
child 6309 8d46400b959e
equal deleted inserted replaced
6040:a30eb0e5758a 6041:b65c6d6794f8
   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