summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro2010-11-09 15:28:05 +0100
committerNicolas Schodet2010-12-07 13:33:26 +0100
commit568c7e2f67e4051f5d063645147ec36866704c65 (patch)
tree5dd2e21305a7026aa48ce0cd4a68c2eb80f71844 /cesar
parent7e992b247f46af0186ab79e8b9b8ef32427216e6 (diff)
cesar/bsu: remove a useless condition
Diffstat (limited to 'cesar')
-rw-r--r--cesar/bsu/src/bsu.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 24232ab7ea..7f3d2715f6 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -575,16 +575,13 @@ bsu_timer_event_process (void *ud)
ctx->sta_avln->beacon.beacon_period_start_date, bpsd[0]))
/* Create and send the beacon. */
bsu_beacon_countdown (&ctx->sta_avln->beacon);
- if (ctx->is_sta == BSU_UPDATE_STA_TYPE_CCO)
- {
- /* Inform PBProc we send a central beacon. */
- pbproc_beacon_detected (
- ctx->pbproc,
- bsu_aclf_beacon_period_start_date_next (ctx->aclf)
- + bsu_aclf_beacon_period_tck (ctx->aclf));
- bsu_beacon_send_prepare (ctx, BSU_BEACON_TYPE_CENTRAL,
- &ctx->sta_avln->beacon);
- }
+ /* Inform PBProc we send a central beacon. */
+ pbproc_beacon_detected (
+ ctx->pbproc,
+ bsu_aclf_beacon_period_start_date_next (ctx->aclf)
+ + bsu_aclf_beacon_period_tck (ctx->aclf));
+ bsu_beacon_send_prepare (ctx, BSU_BEACON_TYPE_CENTRAL,
+ &ctx->sta_avln->beacon);
if (ctx->sta_avln->beacon.bmis.discover.present
&& ctx->sta_avln->beacon.bmis.discover.tei
== ctx->mac_config->tei)