summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2010-06-04 07:46:52 +0000
committerlaranjeiro2010-06-04 07:46:52 +0000
commit2df345d4000ac12e9457db158bc428d324369097 (patch)
tree36c23b141e45e1653080722e6ed0401dd54da70c /cesar
parentda2d6b0d137d597edd44f4638f20ab390ae9409d (diff)
cesar/cp/beacon: reconfigure the timer with the correct station behavior
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7168 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/beacon/src/beacon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 57acc4934d..035187b2a5 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -585,13 +585,13 @@ cp_beacon_uninit (cp_t *ctx)
}
static bsu_beacon_t*
-cp_beacon_update_beacon_data (cp_t *ctx)
+cp_beacon_update_beacon_data (cp_t *ctx, bool cco)
{
cp_beacon_countdowns (ctx);
/** Generate the beacon and send. */
bsu_beacon_t *beacon = cp_beacon_fill_share_memory (ctx);
/** Program the timer to awake and send another central beacon. */
- cp_beacon_reconfigure_timer (ctx, true);
+ cp_beacon_reconfigure_timer (ctx, cco);
GPIO_TOGGLE (LED_BEACON_TX_RX);
return beacon;
}
@@ -600,7 +600,7 @@ void
cp_beacon_sta_update_beacon_data (cp_t *ctx)
{
dbg_assert (ctx);
- bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx);
+ bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx, false);
bsu_update (beacon, BSU_UPDATE_STA_TYPE_STA);
}
@@ -608,7 +608,7 @@ void
cp_beacon_cco_update_beacon_data (cp_t *ctx)
{
dbg_assert (ctx);
- bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx);
+ bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx, true);
bsu_update (beacon, BSU_UPDATE_STA_TYPE_CCO);
}
@@ -616,7 +616,7 @@ void
cp_beacon_ucco_update_beacon_data (cp_t *ctx)
{
dbg_assert (ctx);
- bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx);
+ bsu_beacon_t *beacon = cp_beacon_update_beacon_data (ctx, true);
bsu_update (beacon, BSU_UPDATE_STA_TYPE_UCCO);
}