summaryrefslogtreecommitdiff
path: root/cesar/bsu/beacon
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 10:02:44 +0000
committerlaranjeiro2010-05-17 10:02:44 +0000
commitbc9a5f3da34877ae76199d7b2bcc489a1b9e9155 (patch)
treef12da9386a7d80ac01b700c5269fd61a2c847d40 /cesar/bsu/beacon
parentee0c629859c7756dfeb7c5b567e1e67069e54c0d (diff)
cesar/bsu/beacon: fix session allocation read and write when STPF is false
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7070 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/beacon')
-rw-r--r--cesar/bsu/beacon/src/beacon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cesar/bsu/beacon/src/beacon.c b/cesar/bsu/beacon/src/beacon.c
index d6e8323714..09abec47d3 100644
--- a/cesar/bsu/beacon/src/beacon.c
+++ b/cesar/bsu/beacon/src/beacon.c
@@ -88,6 +88,8 @@ bsu_beacon_write_bmi_schedule_sai (bitstream_t *stream,
if (sai->stpf)
bitstream_write (stream, sai->start_time_atu, 12);
bitstream_write (stream, sai->end_time_atu, 12);
+ if (!sai->stpf)
+ bitstream_write (stream, 0, 4);
}
/**
@@ -560,6 +562,8 @@ bsu_beacon_read_bmi_schedules_sai (bitstream_t *stream, bsu_beacon_sai_t *sai)
if (sai->stpf)
sai->start_time_atu = bitstream_read (stream, 12);
sai->end_time_atu = bitstream_read (stream, 12);
+ if (!sai->stpf)
+ bitstream_skip (stream, 4);
}
/**