more comment on the test
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 16 Nov 2007 08:56:03 +0100
changeset 2134 cf59f463794a
parent 2133 df077fb96353
child 2135 21354fae90b2
more comment on the test
src/devices/wifi/dcf-manager-test.cc
--- a/src/devices/wifi/dcf-manager-test.cc	Fri Nov 16 08:54:16 2007 +0100
+++ b/src/devices/wifi/dcf-manager-test.cc	Fri Nov 16 08:56:03 2007 +0100
@@ -381,16 +381,18 @@
   EndTest ();
 
 
-  // test simple NAV count
   //
+  // test simple NAV count. This scenario modelizes a simple DATA+ACK handshake
+  // where the data rate used for the ACK is higher than expected by the DATA source
+  // so, the data exchange completes before the end of nav.
   // 
   StartTest (4, 6, 10);
   AddDcfState (1);
   AddRxOkEvt (20, 40);
-  AddNavStart (60, 11);
+  AddNavStart (60, 15);
   AddRxOkEvt (66, 5);
   AddNavStart (71, 0);
-  AddAccessRequest (30, 10, 89, 0);
+  AddAccessRequest (30, 10, 93, 0);
   ExpectCollision (30, 2, 0); // backoff: 2 slot
   EndTest ();