summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/bsu/src/bsu.c2
-rw-r--r--cesar/bsu/test/utest/src/bsut.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 5fe2572fd3..bc9d40f299 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -1293,7 +1293,7 @@ bsu_activate (bsu_t *ctx, bool status)
hal_timer_instance_cancel (ctx->hal_timer, &ctx->timer);
for (i = 0; i < HPAV_AVLNS_NB_MAX; i++)
bsu_ntb_init (&ctx->avlns[i].sync);
- ctx->sta_avln = &ctx->poweron;
+ bsu_track_avln_identify (ctx, NULL);
ctx->avlns_nb = 0;
bsu_aclf_clear (ctx->aclf);
}
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index c327d6148f..2dda881d86 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -614,6 +614,8 @@ test_case_bsu_activate (test_t test)
{
bsu_test_t t;
bsu_test_init (&t);
+ /* bsu test init set a sync variable in poweron table. */
+ memset (&t.bsu->poweron, 0, sizeof (bsu_avln_t));
test_case_begin (test, "BSU activate");
test_begin (test, "Activate/deactivate")
{