summaryrefslogtreecommitdiff
path: root/cesar/bsu/test
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-09-09 09:40:18 +0200
committerNélio Laranjeiro2010-09-09 15:03:46 +0200
commitbffea4248c53a8d6c67aed2af3b292d32520396a (patch)
tree95259271676c1b0bd6d08817aaa2e1809aad6a87 /cesar/bsu/test
parent74540c7363ef158d90949fa2579f1aef4ed211a0 (diff)
cesar/bsu: update aclf when tracking is requested by upper layer, closes #1869
Diffstat (limited to 'cesar/bsu/test')
-rw-r--r--cesar/bsu/test/utest/src/schedules.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cesar/bsu/test/utest/src/schedules.c b/cesar/bsu/test/utest/src/schedules.c
index fdfbbd96cc..12ca03dd54 100644
--- a/cesar/bsu/test/utest/src/schedules.c
+++ b/cesar/bsu/test/utest/src/schedules.c
@@ -270,6 +270,7 @@ test_case_ca_schedules_intellon (test_t test)
&beacon, BSU_BEACON_TYPE_CENTRAL, &t.mac_config, &btx);
pbbeacon->phy_pb.pb_rx.pb_measurement.crc_error = false;
/* The first time bsu receives a beacon of an AVLN. */
+ brx.bts = BSU_ACLF_BP_50HZ_TCK / 2;
bsu_beacon_process (t.bsu, pbbeacon, &brx);
/* Control plane request to track this AVLN. */
bsu_track_avln (beacon.vf.nid, brx.snid, 0, beacon.vf.nm);
@@ -288,6 +289,11 @@ test_case_ca_schedules_intellon (test_t test)
3907);
test_fail_unless (
t.bsu->sta_avln->bs.schedules.ps.ps[0].sais[0].stpf == false);
+ u32 bpsd[4];
+ bsu_aclf_beacon_period_start_date (t.bsu->aclf, bpsd, COUNT (bpsd));
+ for (i = 0; i < COUNT (bpsd); i++)
+ test_fail_unless (brx.bts + i * BSU_ACLF_BP_50HZ_TCK == bpsd[i] +
+ t.bsu->sta_avln->sync.ntb_offset_tck);
blk_release_desc ((blk_t*) pbbeacon);
bsu_test_uninit (&t);
}