--- a/src/wifi/examples/wifi-phy-test.cc Thu Jun 11 19:07:25 2015 +0200
+++ b/src/wifi/examples/wifi-phy-test.cc Fri Jun 12 20:14:31 2015 +0200
@@ -119,6 +119,9 @@
rx->SetChannel (channel);
tx->SetMobility (posTx);
rx->SetMobility (posRx);
+
+ tx->ConfigureStandard(WIFI_PHY_STANDARD_80211a);
+ rx->ConfigureStandard(WIFI_PHY_STANDARD_80211a);
rx->SetReceiveOkCallback (MakeCallback (&PsrExperiment::Receive, this));
@@ -263,6 +266,9 @@
txB->SetMobility (posTxB);
rx->SetMobility (posRx);
+ txA->ConfigureStandard(WIFI_PHY_STANDARD_80211a);
+ txB->ConfigureStandard(WIFI_PHY_STANDARD_80211a);
+ rx->ConfigureStandard(WIFI_PHY_STANDARD_80211a);
rx->SetReceiveOkCallback (MakeCallback (&CollisionExperiment::Receive, this));
@@ -320,6 +326,7 @@
cmd.AddValue ("NPackets", "The number of packets to send", input.nPackets);
cmd.AddValue ("PacketSize", "The size of each packet sent", input.packetSize);
cmd.Parse (argc, argv);
+
for (input.distance = 1.0; input.distance < 165; input.distance += 2.0)
{
std::cout << input.distance;
@@ -406,6 +413,7 @@
cmd.AddValue ("NPackets", "The number of packets to send for each transmitter", input.nPackets);
cmd.AddValue ("xA", "the position of transmitter A", input.xA);
cmd.AddValue ("xB", "the position of transmitter B", input.xB);
+
for (uint32_t i = 0; i < 100; i += 1)
{
CollisionExperiment experiment;
@@ -462,6 +470,10 @@
{
PrintPsrVsCollisionInterval (argc, argv);
}
+ else
+ {
+ std::cout << "Wrong arguments!" << std::endl;
+ }
return 0;
}