summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/test/utest/host/src/reassembly.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/sar/test/utest/host/src/reassembly.c')
-rw-r--r--cesar/mac/sar/test/utest/host/src/reassembly.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/cesar/mac/sar/test/utest/host/src/reassembly.c b/cesar/mac/sar/test/utest/host/src/reassembly.c
index 6baf27167e..d7899438da 100644
--- a/cesar/mac/sar/test/utest/host/src/reassembly.c
+++ b/cesar/mac/sar/test/utest/host/src/reassembly.c
@@ -366,6 +366,18 @@ test_case_unicast (test_t test)
uint i;
sar_test_init (&t, INVALID_PTR, INVALID_PTR);
+ /* Special behavior for EoC. MFS TX never expires, this is not the
+ * case for MFS RX which expires after a second of inactivity.
+ * So to receive the frame the product code set the ssn_min of the MFS
+ * to the SSN of the first PB received in the frame.
+ * To test the same part of code as AV, we need to create the MFS. */
+ bool added;
+ mfs_rx_t *mfs =
+ mac_store_mfs_add_rx (t.mac_store, false, false, 2, 1, &added);
+ test_fail_unless (added);
+ blk_release (mfs);
+ /* End special behavior for EoC. */
+
/* Create an ordered list of PBs. */
ssn = 6;
sar_test_create_mpdu (&mpdu, 3, ssn, 1, 2, false);
@@ -415,8 +427,6 @@ test_case_unicast (test_t test)
test_end;
}
-
-
void
test_case_example (test_t test)
{