src/devices/wifi/wifi-phy-test.cc
changeset 4038 c6f634d0fc6f
parent 3912 4d1a61f80745
child 4257 3e8f8052e155
--- a/src/devices/wifi/wifi-phy-test.cc	Tue Dec 30 21:51:36 2008 -0800
+++ b/src/devices/wifi/wifi-phy-test.cc	Tue Jan 06 13:12:28 2009 +0100
@@ -4,6 +4,7 @@
 #include "propagation-loss-model.h"
 #include "propagation-delay-model.h"
 #include "error-rate-model.h"
+#include "yans-error-rate-model.h"
 #include "ns3/ptr.h"
 #include "ns3/mobility-model.h"
 #include "ns3/static-mobility-model.h"
@@ -86,7 +87,7 @@
 
   Ptr<YansWifiPhy> tx = CreateObject<YansWifiPhy> ();
   Ptr<YansWifiPhy> rx = CreateObject<YansWifiPhy> ();
-  Ptr<ErrorRateModel> error = CreateObject<ErrorRateModel> ();
+  Ptr<ErrorRateModel> error = CreateObject<YansErrorRateModel> ();
   tx->SetErrorRateModel (error);
   rx->SetErrorRateModel (error);
   tx->SetChannel (channel);
@@ -217,7 +218,7 @@
   Ptr<YansWifiPhy> txB = CreateObject<YansWifiPhy> ();
   Ptr<YansWifiPhy> rx = CreateObject<YansWifiPhy> ();
 
-  Ptr<ErrorRateModel> error = CreateObject<ErrorRateModel> ();
+  Ptr<ErrorRateModel> error = CreateObject<YansErrorRateModel> ();
   txA->SetErrorRateModel (error);
   txB->SetErrorRateModel (error);
   rx->SetErrorRateModel (error);