summaryrefslogtreecommitdiff
path: root/cesar/bsu/src/bsu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/bsu/src/bsu.c')
-rw-r--r--cesar/bsu/src/bsu.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 567fc5f126..65b07131a7 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -743,10 +743,12 @@ bsu_timer_event_process (void *ud)
&ctx->sta_avln->sync, ctx->mac_config, ctx->phy);
/* Compute the new BPSD with the data of the new AVLN. */
bsu_aclf_compute_beacon_period_start_date (
- ctx->aclf, ctx->sta_avln->sync.bts, ctx->sta_avln->bto,
+ ctx->aclf,
+ ctx->sta_avln->sync.bts
+ - ctx->sta_avln->sync.ntb_offset_tck,
+ ctx->sta_avln->bto,
ctx->sta_avln->beacon.bmis.bpsto.present ?
- ctx->sta_avln->beacon.bmis.bpsto.bpsto : 0,
- ctx->sta_avln->sync.ntb_offset_tck);
+ ctx->sta_avln->beacon.bmis.bpsto.bpsto : 0);
bsu_aclf_beacon_period_start_date (
ctx->aclf, bpsd, COUNT (bpsd));
/* Decrease countdown, the first schedule will not be
@@ -943,10 +945,9 @@ bsu_beacon_process__avln_tracked (bsu_t *ctx, bsu_beacon_t *beacon,
if (ctx->track_new == false && less_mod2p32 (bpsd0, bts_date))
{
bsu_aclf_compute_beacon_period_start_date (
- ctx->aclf, params->bts, (s16*) params->bto,
+ ctx->aclf, bts_date, (s16*) params->bto,
ctx->sta_avln->beacon.bmis.bpsto.present ?
- ctx->sta_avln->beacon.bmis.bpsto.bpsto : 0,
- ctx->sta_avln->sync.ntb_offset_tck);
+ ctx->sta_avln->beacon.bmis.bpsto.bpsto : 0);
/* Create the CA schedules. */
bsu_ca_schedules__beacon_reception (ctx, ctx->sta_avln);
}