summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorYacine Belkadi2013-05-29 09:43:26 +0200
committerYacine Belkadi2013-06-06 15:49:09 +0200
commitcb525fabeeee3a53ed47865580712b4adabe4f2b (patch)
treea34e17aca46925472c2819c3240e9020055f313d /cesar
parent3d2f47a3d5a4d1e0bde6baacbb07c331461d1694 (diff)
cesar/cp/beacon: don't reset spoc if SPOC_UPDATE_INTERVAL == 0, refs #4004
When SPOC_UPDATE_INTERVAL_MS is set to 0 in the internal.conf file, the cp should not update SPOC.
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/beacon/src/beacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 7b3ea86054..2b9b051cb5 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -906,7 +906,8 @@ cp_beacon_process_untracked_avln (cp_t *ctx)
own->cco_mac_addr_track = MAC_ZERO;
/* Reset SPOC. */
ctx->beacon.spoc_updated = false;
- cp_beacon_clk_sync_call_spoc (ctx, false, 0);
+ if (ctx->beacon.spoc_update_interval_ms != 0)
+ cp_beacon_clk_sync_call_spoc (ctx, false, 0);
/* Inform BSU. */
bsu_untrack_avln (ctx->bsu);
}