summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-03-31 15:10:09 +0200
committerNélio Laranjeiro2011-04-01 11:23:56 +0200
commit4348e37eb13a0865b2ce18cb1e84d419f645c129 (patch)
treed056e819c634ea18879b833cb4835aa03a2c6d8c
parent970058fe1c4f18f793c7e4f68772a4d1d804c49e (diff)
cesar/bsu: make bsu to point to the poweron structure, refs #2333
-rw-r--r--cesar/bsu/src/bsu.c2
-rw-r--r--cesar/bsu/test/utest/src/bsut.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 03ef287843..72b3bdf908 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -1246,7 +1246,7 @@ bsu_activate (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 = NULL;
+ ctx->sta_avln = &ctx->poweron;
ctx->avlns_nb = 0;
}
}
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 7e22d519cc..6d18ca9740 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -609,6 +609,7 @@ test_case_bsu_activate (test_t test)
test_fail_unless (t.ca.beacon_periods[i].start_date == bpsd[i]);
bsu_activate (false);
test_fail_unless (t.bsu->activate == false);
+ test_fail_unless (t.bsu->sta_avln == &t.bsu->poweron);
}
test_end;
bsu_test_uninit (&t);