summaryrefslogtreecommitdiff
path: root/cesar/bsu
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-03-28 14:22:19 +0200
committerNélio Laranjeiro2011-04-14 14:35:15 +0200
commit40d91a4842d27bf08a5910b91bcdcc9c7eff364f (patch)
tree582d826b0d60e3c1ad5762aa7637e524cbb30cf6 /cesar/bsu
parent4006c42c07af0eb0fdf7a572cd8e5c7243acd691 (diff)
cesar/bsu/aclf: fix beacon period start date computation when bto is invalid, closes #2418
Diffstat (limited to 'cesar/bsu')
-rw-r--r--cesar/bsu/aclf/src/aclf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cesar/bsu/aclf/src/aclf.c b/cesar/bsu/aclf/src/aclf.c
index 14af5d23af..0af61dae6a 100644
--- a/cesar/bsu/aclf/src/aclf.c
+++ b/cesar/bsu/aclf/src/aclf.c
@@ -290,15 +290,11 @@ bsu_aclf_compute_beacon_period_start_date (bsu_aclf_t *ctx, const u32 bts_ntb,
/* BTO is valid use it to compute. */
if (bto[i] != HPAV_BEACON_BTO_INVALID)
ctx->bpsd[i+1] = reference + bto[i];
- /* BTO is not valid, take the difference from the previous beacon
- * period. */
else
- ctx->bpsd[i+1] = ctx->bpsd[i]
- + (ctx->bpsd[i] - ctx->bpsd[i-1]);
+ ctx->bpsd[i+1] = reference;
}
else
- ctx->bpsd[i+1] = ctx->bpsd[i]
- + (ctx->bpsd[i] - ctx->bpsd[i-1]);
+ ctx->bpsd[i+1] = reference;
}
ctx->beacon_period_tck = ctx->bpsd[1] - ctx->bpsd[0];
}