summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon/stub/src/beacon.c
blob: 3470bcb15e674d14c8dd7c7c54f5c783e774fbbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    src/beacon.c
 * \brief   « brief description »
 * \ingroup « module »
 *
 * « long description »
 */
#include "common/std.h"
#include "cp/cp.h"
#include "cp/beacon/beacon.h"
#include "bsu/beacon/beacon.h"

void
cp_beacon_init (cp_t *ctx) __attribute__((weak));
void
cp_beacon_init (cp_t *ctx) {}

void
cp_beacon_uninit (cp_t *ctx) __attribute__((weak));
void
cp_beacon_uninit (cp_t *ctx) {}

void
cp_beacon_cco_update_beacon_data (cp_t *ctx) __attribute__((weak));
void
cp_beacon_cco_update_beacon_data (cp_t *ctx) {}

void
cp_beacon_poweron_init (cp_t *ctx) __attribute__((weak));
void
cp_beacon_poweron_init (cp_t *ctx) {}

void
cp_beacon_create_default_schedules (cp_t *ctx) __attribute__((weak));
void
cp_beacon_create_default_schedules (cp_t *ctx) {}

void
cp_beacon_get_and_process_beacon (cp_t *ctx) __attribute__((weak));
void
cp_beacon_get_and_process_beacon (cp_t *ctx) {}

cp_sta_t *
cp_beacon_process_beacon_central (
    cp_t *ctx, bsu_beacon_t *beacon, cp_net_t *net) __attribute__((weak));
cp_sta_t *
cp_beacon_process_beacon_central (
    cp_t *ctx, bsu_beacon_t *beacon, cp_net_t *net)
{ return NULL; }

void
cp_beacon_process_tracked_avln (cp_t *ctx, bsu_beacon_t *beacon,
                                cp_net_t *net) __attribute__((weak));
void
cp_beacon_process_tracked_avln (cp_t *ctx, bsu_beacon_t *beacon,
                                cp_net_t *net) {}

void
cp_beacon_process_untracked_avln (cp_t *ctx) __attribute__((weak));
void
cp_beacon_process_untracked_avln (cp_t *ctx) {}

void
cp_beacon_beacon_not_received (cp_t *ctx) __attribute__((weak));
void
cp_beacon_beacon_not_received (cp_t *ctx) {}

void
cp_beacon_change_nek (cp_t *ctx, uint eks, cp_key_t nek, bool now)
    __attribute__((weak));
void
cp_beacon_change_nek (cp_t *ctx, uint eks, cp_key_t nek, bool now) {}

void
cp_beacon_deactivate (cp_t *ctx) __attribute__((weak));
void
cp_beacon_deactivate (cp_t *ctx) {}

void
cp_beacon_change_snid (cp_t *ctx, cp_snid_t snid) __attribute__((weak));
void
cp_beacon_change_snid (cp_t *ctx, cp_snid_t snid) {}

void
cp_beacon_reconfigure_timer (cp_t *ctx, bool cco) __attribute__((weak));
void
cp_beacon_reconfigure_timer (cp_t *ctx, bool cco) {}

bool
cp_beacon_any_countdown_active (cp_t *ctx) __attribute__((weak));
bool
cp_beacon_any_countdown_active (cp_t *ctx)
{ return false; }

void
cp_beacon_fill (cp_t *ctx, bsu_beacon_t *beacon) __attribute__ ((weak));
void
cp_beacon_fill (cp_t *ctx, bsu_beacon_t *beacon) {}

bool
cp_beacon_synchronised (cp_t *ctx) __attribute__ ((weak));
bool
cp_beacon_synchronised (cp_t *ctx)
{ return true; }

void
cp_beacon_update_tracking (cp_t *ctx, cp_sta_t *sta) __attribute__ ((weak));
void
cp_beacon_update_tracking (cp_t *ctx, cp_sta_t *sta) {}

cp_sta_t *
cp_beacon_update_sta_peer (cp_t *ctx, bsu_beacon_t *beacon, cp_net_t *net,
                           mac_t mac) __attribute__ ((weak));
cp_sta_t *
cp_beacon_update_sta_peer (cp_t *ctx, bsu_beacon_t *beacon, cp_net_t *net,
                           mac_t mac)
{ return NULL; }

void
cp_beacon_sta_compute_schedules (cp_t *ctx, bsu_beacon_t *beacon)
    __attribute__ ((weak));
void
cp_beacon_sta_compute_schedules (cp_t *ctx, bsu_beacon_t *beacon) {}

void
cp_beacon_countdowns (cp_t *ctx) __attribute__ ((weak));
void
cp_beacon_countdowns (cp_t *ctx) {}