summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/schedules.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/bsu/test/utest/src/schedules.c')
-rw-r--r--cesar/bsu/test/utest/src/schedules.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/cesar/bsu/test/utest/src/schedules.c b/cesar/bsu/test/utest/src/schedules.c
index a4beaa8d22..5aaa217f20 100644
--- a/cesar/bsu/test/utest/src/schedules.c
+++ b/cesar/bsu/test/utest/src/schedules.c
@@ -164,10 +164,8 @@ test_case_bsu_schedules_countdowns (test_t t)
bparamsrx.snid = 0;
pbbeacon->phy_pb.pb_rx.pb_measurement.crc_error = false;
bsu_beacon_recv (ctx.bsu, pbbeacon, &bparamsrx);
- /* Clear memory. */
- blk_release_desc ((blk_t*) pbbeacon);
- ctx.ul.beacon = INVALID_PTR;
- ctx.ul.bparams = NULL;
+ blk_release (ctx.ul.beacon);
+ bsu_test_upper_layer_beacon_received_init (&ctx);
/* Continue the test. */
bsu_track_avln (beacon.vf.nid, 0x0, ctx.mac_config.tei);
ctx.bsu->track_new = false;
@@ -206,6 +204,8 @@ test_case_bsu_schedules_countdowns (test_t t)
/* On beacon reception only schedules are read and CA is
* programmed with the current data. */
bsu_beacon_recv (ctx.bsu, b, &bparamsrx);
+ blk_release (ctx.ul.beacon);
+ bsu_test_upper_layer_beacon_received_init (&ctx);
}
/* On timer event the snid change, NEK and hybrid mode are changed
* in the lower layers. */
@@ -227,12 +227,6 @@ test_case_bsu_schedules_countdowns (test_t t)
}
cas[0] = cas[1];
cas[1] = cas[2];
- if (i != 1)
- {
- /* Release beacon. */
- blk_release_desc ((blk_t*) ctx.ul.beacon);
- ctx.ul.beacon = INVALID_PTR;
- }
beacon.bmis.change_snid.snidccd --;
beacon.bmis.change_snid.present =
beacon.bmis.change_snid.snidccd != 0;