summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/bsu/test/utest')
-rw-r--r--cesar/bsu/test/utest/src/bsut.c11
-rw-r--r--cesar/bsu/test/utest/src/tests.c2
2 files changed, 5 insertions, 8 deletions
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 68b894f581..7703348f95 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -498,9 +498,10 @@ test_case_bsu_timer_event (test_t test)
bsu_test_t t;
bsu_avln_t cmp_avln;
bsu_test_init (&t);
- bsu_beacon_t beacon;
- bsu_power_on (0);
bsu_activate (true);
+ t.bsu->aclf->pwl_sync.trig_present = false;
+ t.phy->phy_date = 0;
+ bsu_beacon_t beacon;
bsu_test_create_beacon (&t, &beacon);
bsu_update (&beacon, BSU_UPDATE_STA_TYPE_STA);
bsu_test_avln_create (&t, t.bsu->sta_avln);
@@ -508,9 +509,6 @@ test_case_bsu_timer_event (test_t test)
cmp_avln.beacon.vf.nm =
t.bsu->sta_avln->beacon.vf.nm =
BSU_BEACON_NM_UNCOORDINATED;
- u32 now = phy_date ();
- for (i = 0; i < BSU_ACLF_BPSD_NB; i++)
- t.bsu->aclf->bpsd[i] = now + i * BSU_ACLF_BP_50HZ_TCK;
for (j = 0; j < 10; j++)
{
t.bsu->sta_avln->beacon.beacon_period_start_date =
@@ -693,9 +691,6 @@ test_case_bsu_persistent_schedules_update__cscma_cscd_non_permanent (
t.bsu->sta_avln->beacon.vf.nm = BSU_BEACON_NM_CSMA_ONLY;
bsu_test_create_beacon (&t, &beacon);
beacon.bmis.ps.nb = ps_nb;
- u32 now = phy_date ();
- for (i = 0; i < BSU_ACLF_BPSD_NB; i++)
- t.bsu->aclf->bpsd[i] = now + i * BSU_ACLF_BP_50HZ_TCK;
bsu_update__persistent_schedules (t.bsu, &beacon);
test_fail_unless (t.bsu->sta_avln->beacon.bmis.ps.nb == ps_nb);
uint bd =
diff --git a/cesar/bsu/test/utest/src/tests.c b/cesar/bsu/test/utest/src/tests.c
index 98f6d2b472..8600486649 100644
--- a/cesar/bsu/test/utest/src/tests.c
+++ b/cesar/bsu/test/utest/src/tests.c
@@ -83,6 +83,8 @@ bsu_test_init (bsu_test_t *ctx)
bsu_update (&beacon, BSU_UPDATE_STA_TYPE_CCO);
bsu_power_on (0);
bsu_aclf_acl_frequency_detection (aclf);
+ aclf->pwl_sync.trig_present = false;
+ ctx->phy->phy_date = 0;
}
void