143 manager->SetAttribute(
"AttemptThreshold",
UintegerValue(15));
144 manager->SetAttribute(
"SuccessThreshold",
UintegerValue(10));
151 packetHeader.
SetAddr1(remoteAddress);
162 dev->Send(p, remoteAddress, 1);
170 manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
176 "PARF: Initial data rate wrong");
185 for (
int i = 0; i < 10; i++)
187 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
190 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
196 "PARF: Incorrect vale of data rate");
205 manager->ReportDataFailed(mpdu);
207 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
213 "PARF: Incorrect vale of data rate");
222 for (
int i = 0; i < 7; i++)
224 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
225 manager->ReportDataFailed(mpdu);
227 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
229 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
235 "PARF: Incorrect vale of data rate");
244 manager->ReportDataFailed(mpdu);
246 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
252 "PARF: Incorrect vale of data rate");
261 manager->ReportDataFailed(mpdu);
262 manager->ReportDataFailed(mpdu);
264 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
270 "PARF: Incorrect vale of data rate");
279 for (
int i = 0; i < 10; i++)
281 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
284 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
290 "PARF: Incorrect vale of data rate");
299 manager->ReportDataFailed(mpdu);
301 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
307 "PARF: Incorrect vale of data rate");
316 for (
int i = 0; i < 10; i++)
318 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
321 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
327 "PARF: Incorrect vale of data rate");
336 for (
int i = 0; i < 10; i++)
338 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
341 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
347 "PARF: Incorrect vale of data rate");
356 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
358 for (
int i = 0; i < 2; i++)
360 manager->ReportDataFailed(mpdu);
363 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
369 "PARF: Incorrect vale of data rate");
386 manager->SetAttribute(
"SuccessThreshold1",
UintegerValue(3));
387 manager->SetAttribute(
"SuccessThreshold2",
UintegerValue(10));
396 packetHeader.
SetAddr1(remoteAddress);
407 dev->Send(p, remoteAddress, 1);
415 manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
421 "APARF: Initial data rate wrong");
431 for (
int i = 0; i < 3; i++)
433 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
436 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
442 "APARF: Incorrect vale of data rate");
451 manager->ReportDataFailed(mpdu);
453 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
459 "APARF: Incorrect vale of data rate");
468 for (
int i = 0; i < 10; i++)
470 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
473 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
479 "APARF: Incorrect vale of data rate");
489 for (
int i = 0; i < 3; i++)
491 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
494 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
500 "APARF: Incorrect vale of data rate");
509 for (
int i = 0; i < 16 * 3; i++)
511 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
514 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
520 "APARF: Incorrect vale of data rate");
529 manager->ReportDataFailed(mpdu);
531 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
537 "Incorrect vale of data rate");
546 for (
int i = 0; i < 16; i++)
548 manager->ReportDataFailed(mpdu);
551 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
557 "APARF: Incorrect vale of data rate");
567 manager->ReportDataFailed(mpdu);
569 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
575 "Incorrect vale of data rate");
584 for (
int i = 0; i < 3; i++)
586 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
589 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
595 "APARF: Incorrect vale of data rate");
606 for (
int i = 0; i < 9 * 3; i++)
608 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
611 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
617 "APARF: Incorrect vale of data rate");
620 for (
int i = 0; i < 3; i++)
622 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
625 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
631 "APARF: Incorrect vale of data rate");
664 packetHeader.
SetAddr1(remoteAddress);
675 dev->Send(p, remoteAddress, 1);
709 manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
716 "RRPAA: Initial data rate wrong");
729 for (
int i = 0; i < 6; i++)
731 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
734 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
741 "RRPAA: Incorrect vale of data rate");
747 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
749 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
756 "RRPAA: Incorrect vale of data rate");
765 for (
int i = 0; i < 4; i++)
767 manager->ReportDataFailed(mpdu);
770 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
777 "RRPAA: Incorrect vale of data rate");
780 manager->ReportDataFailed(mpdu);
782 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
789 "RRPAA: Incorrect vale of data rate");
798 for (
int i = 0; i < 7; i++)
800 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
803 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
810 "RRPAA: Incorrect vale of data rate");
813 for (
int i = 0; i < 10; i++)
815 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
818 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
825 "RRPAA: Incorrect vale of data rate");
828 for (
int i = 0; i < 13; i++)
830 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
833 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
840 "RRPAA: Incorrect vale of data rate");
843 for (
int i = 0; i < 19; i++)
845 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
848 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
855 "RRPAA: Incorrect vale of data rate");
858 for (
int i = 0; i < 23; i++)
860 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
863 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
870 "RRPAA: Incorrect vale of data rate");
873 for (
int i = 0; i < 33; i++)
875 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
878 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
885 "RRPAA: Incorrect vale of data rate");
888 for (
int i = 0; i < 43; i++)
890 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
893 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
900 "RRPAA: Incorrect vale of data rate");
911 for (
int i = 0; i < 49; i++)
913 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
916 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
923 "RRPAA: Incorrect vale of data rate");
926 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
928 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
935 "RRPAA: Incorrect vale of data rate");
945 for (
int i = 0; i < 16 * 50; i++)
947 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
950 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
957 "RRPAA: Incorrect vale of data rate");
966 for (
int i = 0; i < 6; i++)
968 manager->ReportDataFailed(mpdu);
971 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
978 "RRPAA: Incorrect vale of data rate");
987 for (
int i = 0; i < 16 * 6; i++)
989 manager->ReportDataFailed(mpdu);
992 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
999 "RRPAA: Incorrect vale of data rate");
1008 for (
int i = 0; i < 6; i++)
1010 manager->ReportDataFailed(mpdu);
1013 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1020 "RRPAA: Incorrect vale of data rate");
1027 for (
int i = 0; i < 11; i++)
1029 manager->ReportDataFailed(mpdu);
1032 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1039 "RRPAA: Incorrect vale of data rate");
1050 for (
int i = 0; i < 25; i++)
1052 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
1055 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1062 "RRPAA: Incorrect vale of data rate");
1065 for (
int i = 0; i < 5; i++)
1067 manager->ReportDataFailed(mpdu);
1070 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1077 "RRPAA: Incorrect vale of data rate");
1080 for (
int i = 0; i < 5; i++)
1082 manager->ReportDataFailed(mpdu);
1085 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1092 "RRPAA: Incorrect vale of data rate");
1095 for (
int i = 0; i < 25; i++)
1097 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
1100 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1107 "RRPAA: Incorrect vale of data rate");
1116 for (
int i = 0; i < 16; i++)
1118 for (
int j = 0; j < 25; j++)
1120 manager->ReportDataOk(mpdu, 0, ackMode, 0, txVector);
1123 for (
int j = 0; j < 5; j++)
1125 manager->ReportDataFailed(mpdu);
1129 txVector = manager->GetDataTxVector(packetHeader, dev->GetPhy()->GetChannelWidth());
1136 "RRPAA: Incorrect vale of data rate");