summaryrefslogtreecommitdiff
path: root/cesar/bsu/beacon/src
diff options
context:
space:
mode:
authorlaranjeiro2010-06-04 07:46:38 +0000
committerlaranjeiro2010-06-04 07:46:38 +0000
commit2f19026fa8316c0e0ab32842950edf31aea44de5 (patch)
tree8dfcaa65400caef4899b8f0527130b219ed20953 /cesar/bsu/beacon/src
parentb07ca76109753d3648fb832f44400a2e4a508c91 (diff)
cesar/{cp, bsu}: fix discover procedure request
* BSU send a discover beacon when the CCo requests it. * Discover interval is recomputed each time the previous discover round is over. * cco/action will not call discover functions git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7163 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/beacon/src')
-rw-r--r--cesar/bsu/beacon/src/beacon.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cesar/bsu/beacon/src/beacon.c b/cesar/bsu/beacon/src/beacon.c
index 43e70c0673..d29f63274a 100644
--- a/cesar/bsu/beacon/src/beacon.c
+++ b/cesar/bsu/beacon/src/beacon.c
@@ -1000,7 +1000,8 @@ bsu_beacon_countdown (bsu_beacon_t *beacon)
void
bsu_beacon_read_schedules (pb_beacon_t *beacon,
- bsu_beacon_schedules_t *schedules)
+ bsu_beacon_schedules_t *schedules,
+ bsu_beacon_bmi_discover_t *discover)
{
bitstream_t stream;
uint i, j, nbe, nb_persistent = 0;
@@ -1054,6 +1055,9 @@ bsu_beacon_read_schedules (pb_beacon_t *beacon,
for (j = hm.hmccd; j < COUNT (schedules->hm); j++)
schedules->hm[j] = hm.newhm;
break;
+ case BSU_BEACON_ENTRY_HEADER_DISCOVER:
+ bsu_beacon_read_bmi_discover (&stream, discover);
+ break;
default:
/* skip entry. */
bitstream_skip (&stream, length * 8);