summaryrefslogtreecommitdiff
path: root/cesar/cp
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-12-06 11:00:27 +0100
committerThierry Carré2012-05-10 17:02:55 +0200
commitdeed3f57e94a0a352633ec318b018dce865b1b47 (patch)
tree83e3a5439a37ba33d1a1f8b9bfd6cdce44df3eaf /cesar/cp
parent5e1c4c6f5e2ded3bd7018102b7b0f995d0131948 (diff)
cesar/cp/beacon: remove a useless function call.
cp_beacon_sta_update_beacon_data function was only called by cp_beacon_cco_update_beacon_data.
Diffstat (limited to 'cesar/cp')
-rw-r--r--cesar/cp/beacon/src/beacon.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 4c4f0ca6dc..5f632c317f 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -572,15 +572,6 @@ cp_beacon_update_beacon_data (cp_t *ctx, bsu_beacon_t *beacon, bool cco)
}
void
-cp_beacon_sta_update_beacon_data (cp_t *ctx)
-{
- dbg_assert (ctx);
- bsu_beacon_bmi_discover_info_t discover;
- cp_beacon_fill_discover_info (ctx, &discover);
- bsu_update_discover_info (ctx->bsu, &discover);
-}
-
-void
cp_beacon_cco_update_beacon_data (cp_t *ctx)
{
bsu_beacon_t beacon;
@@ -590,7 +581,12 @@ cp_beacon_cco_update_beacon_data (cp_t *ctx)
* function, the handover is ended. The emission of the beacon MUST be
* aborted. */
bool hoip_ended = ctx->beacon.hoip.hoipcd == 1;
- cp_beacon_update_beacon_data (ctx, &beacon, true);
+ cp_beacon_countdowns (ctx);
+ /** Generate the beacon and send. */
+ cp_beacon_fill (ctx, &beacon);
+ /** Program the timer to awake and send another central beacon. */
+ cp_beacon_reconfigure_timer (ctx, true /* CCo */);
+ GPIO_TOGGLE (LED_BEACON_TX_RX);
if (!hoip_ended)
bsu_update (ctx->bsu, &beacon, BSU_UPDATE_STA_TYPE_CCO);
}