src/devices/wifi/dcf-manager-test.cc
changeset 4686 f17f12944235
parent 4598 9b07308116ed
child 5189 8fcdf87a790a
--- a/src/devices/wifi/dcf-manager-test.cc	Thu Jul 16 11:19:43 2009 +0200
+++ b/src/devices/wifi/dcf-manager-test.cc	Thu Jul 16 13:51:12 2009 +0400
@@ -379,6 +379,21 @@
   AddAccessRequest (30, 2, 70, 0);
   ExpectCollision (30, 0, 0); // backoff: 0 slots
   EndTest ();
+  // Test shows when two frames are received without interval between
+  // them:
+  //  20          60         100   106     110  112
+  //   |    rx     |    rx     |sifs | aifsn | tx | 
+  //        |
+  //       30 request access. backoff slots: 0
+
+  StartTest (4, 6 , 10);
+  AddDcfState (1);
+  AddRxOkEvt (20, 40);
+  AddRxOkEvt (60, 40);
+  AddAccessRequest (30, 2, 110, 0);
+  ExpectCollision (30, 0, 0); // backoff: 0 slots
+  EndTest ();
+
 
   // The test below is subject to some discussion because I am 
   // not sure I understand the intent of the spec here.