remove mobility trace to pass regression for now
authorJosh Pelkey <jpelkey@gatech.edu
Mon, 09 Aug 2010 18:47:12 -0400
changeset 65315c11ea507486
parent 6530 d4a75eecfa7d
child 6532 da018b878d74
remove mobility trace to pass regression for now
examples/wireless/wifi-wired-bridging.cc
     1.1 --- a/examples/wireless/wifi-wired-bridging.cc	Mon Aug 09 17:47:23 2010 -0400
     1.2 +++ b/examples/wireless/wifi-wired-bridging.cc	Mon Aug 09 18:47:12 2010 -0400
     1.3 @@ -61,11 +61,13 @@
     1.4    uint32_t nWifis = 2;
     1.5    uint32_t nStas = 2;
     1.6    bool sendIp = true;
     1.7 +  bool writeMobility = false;
     1.8  
     1.9    CommandLine cmd;
    1.10    cmd.AddValue ("nWifis", "Number of wifi networks", nWifis);
    1.11    cmd.AddValue ("nStas", "Number of stations per wifi network", nStas);
    1.12    cmd.AddValue ("SendIp", "Send Ipv4 or raw packets", sendIp);
    1.13 +  cmd.AddValue ("writeMobility", "Write mobility trace", writeMobility);
    1.14    cmd.Parse (argc, argv);
    1.15  
    1.16    NodeContainer backboneNodes;
    1.17 @@ -185,9 +187,12 @@
    1.18    wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[0]);
    1.19    wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[1]);
    1.20  
    1.21 -  std::ofstream os;
    1.22 -  os.open ("wifi-wired-bridging.mob");
    1.23 -  MobilityHelper::EnableAsciiAll (os);
    1.24 +  if (writeMobility)
    1.25 +    {
    1.26 +      std::ofstream os;
    1.27 +      os.open ("wifi-wired-bridging.mob");
    1.28 +      MobilityHelper::EnableAsciiAll (os);
    1.29 +    }
    1.30  
    1.31    Simulator::Stop (Seconds (5.0));
    1.32    Simulator::Run ();