summaryrefslogtreecommitdiff
path: root/cesar/cp2/beacon/inc
diff options
context:
space:
mode:
authorlaranjeiro2008-05-30 16:49:05 +0000
committerlaranjeiro2008-05-30 16:49:05 +0000
commit21f8781eac5efb73589c9bd7f8fe20a2119d0d24 (patch)
tree04e8e450a64008a5be8e20d82b0f627a90d02752 /cesar/cp2/beacon/inc
parent2599e4ee9d4dfbddaad499a14dd4a6f11cb540cb (diff)
beacon : Wrote the function to receive a beacon.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2180 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/beacon/inc')
-rw-r--r--cesar/cp2/beacon/inc/beacon.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/cesar/cp2/beacon/inc/beacon.h b/cesar/cp2/beacon/inc/beacon.h
index 1d05d33e79..97e7b696a7 100644
--- a/cesar/cp2/beacon/inc/beacon.h
+++ b/cesar/cp2/beacon/inc/beacon.h
@@ -140,7 +140,7 @@ cp_beacon_detect_snid_conficts (cp_beacon_t *ctx, u8 beacon_snid,
* in the sta manager and post an event in the FSM
*/
void
-cp_beacon_verify_avln (cp_beacon_t *ctx, u8 beacon_snid, u64 beacon_nid,
+cp_beacon_verify_avln (cp_t *ctx, u8 beacon_snid, u64 beacon_nid,
u8 stei, u8 beacon_type, mac_t mac_addr);
/**
@@ -204,4 +204,14 @@ cp_beacon_compute_ca_schedules (cp_t *ctx, cp_beacon_common_t *common,
uint hybrid_mode, set_t *schedules,
uint bpsto);
+/**
+ * Process the received beacon or countdown the counters if the beacon as
+ * not been received.
+ *
+ * \param ctx the beacon context.
+ * \param beacon the beacon received.
+ */
+void
+cp_beacon_process_central (cp_beacon_t *ctx, cp_beacon_desc_t *beacon);
+
#endif /* cp2_beacon_inc_beacon_h */