summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
Diffstat (limited to 'cesar')
-rw-r--r--cesar/bsu/src/interface.c4
-rw-r--r--cesar/bsu/test/utest/src/interface.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/cesar/bsu/src/interface.c b/cesar/bsu/src/interface.c
index 4902fb1f20..5fa6772b56 100644
--- a/cesar/bsu/src/interface.c
+++ b/cesar/bsu/src/interface.c
@@ -68,7 +68,7 @@ bsu_beacon_send (bsu_t *ctx, bsu_beacon_type_t beacon_type,
sar_beacon_send (ctx->sar, beacon, beacon_mfs, bto_bpsto);
/* Send the beacon to the upper layer. */
bsu_params_t bsu_params = {BSU_BEACON_DIRECTION_TO_PLC,
- FIXED (ctx->sta_avln->sync.fe, 30),
+ FIXED (ctx->sta_avln->sync.fe, BSU_NTB_FIXED_POINT),
ctx->sta_avln->sync.ntb_offset_tck};
(*ctx->ul_cb) (ctx->ul_data, beacon, NULL, bsu_params);
}
@@ -87,7 +87,7 @@ bsu_beacon_recv (bsu_t *ctx, pb_beacon_t *beacon,
bsu_beacon_process (ctx, beacon, params);
/* Send it to the upper layer. */
bsu_params_t bsu_params = {BSU_BEACON_DIRECTION_FROM_PLC,
- FIXED (ctx->sta_avln->sync.fe, 30),
+ FIXED (ctx->sta_avln->sync.fe, BSU_NTB_FIXED_POINT),
ctx->sta_avln->sync.ntb_offset_tck};
(*ctx->ul_cb) (ctx->ul_data, beacon, params, bsu_params);
}
diff --git a/cesar/bsu/test/utest/src/interface.c b/cesar/bsu/test/utest/src/interface.c
index bdd78da771..308d322ea0 100644
--- a/cesar/bsu/test/utest/src/interface.c
+++ b/cesar/bsu/test/utest/src/interface.c
@@ -66,7 +66,8 @@ test_case_bsu_interface_tx (test_t t, bsu_beacon_type_t type)
test_fail_unless (test.ul.bparams.direction
== BSU_BEACON_DIRECTION_TO_PLC);
test_fail_unless (test.ul.bparams.frequency_error
- == FIXED(test.bsu->avlns[0].sync.fe, 30));
+ == FIXED(test.bsu->avlns[0].sync.fe,
+ BSU_NTB_FIXED_POINT));
test_fail_unless (test.ul.bparams.tick_offset
== test.bsu->avlns[0].sync.ntb_offset_tck);
/* Free the beacon. */
@@ -107,7 +108,8 @@ test_case_bsu_interface_rx (test_t t)
test_fail_unless (test.ul.bparams.direction
== BSU_BEACON_DIRECTION_FROM_PLC);
test_fail_unless (test.ul.bparams.frequency_error
- == FIXED(test.bsu->avlns[0].sync.fe, 30));
+ == FIXED(test.bsu->avlns[0].sync.fe,
+ BSU_NTB_FIXED_POINT));
test_fail_unless (test.ul.bparams.tick_offset
== test.bsu->avlns[0].sync.ntb_offset_tck);
bsu_test_uninit (&test);