summaryrefslogtreecommitdiff
path: root/cesar/bsu/src/bsu.c
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 10:02:51 +0000
committerlaranjeiro2010-05-17 10:02:51 +0000
commit508f437388a77866f85453bbbd5efa096897bd1e (patch)
tree09e9ef284d69a99c2913b067c30e10dd5138eea6 /cesar/bsu/src/bsu.c
parent6f6331ebad0ad3ceb6b5d5042add257215201714 (diff)
cesar/{interface, bsu, cp/beacon, station}: integrate bsu in the station
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7072 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/src/bsu.c')
-rw-r--r--cesar/bsu/src/bsu.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c
index 31265712ab..997eac6b2f 100644
--- a/cesar/bsu/src/bsu.c
+++ b/cesar/bsu/src/bsu.c
@@ -373,8 +373,7 @@ bsu_timer_event_process (void *ud)
bsu_t *
bsu_init (bsu_aclf_t *aclf, mac_config_t *mac_config, phy_t *phy,
- mac_store_t *mac_store, ca_t *ca, sar_t *sar, hal_timer_t *timer,
- bsu_beacon_processed_t cb, void *cb_ud)
+ mac_store_t *mac_store, ca_t *ca, sar_t *sar, hal_timer_t *timer)
{
bsu_t *ctx = &bsu_global;
dbg_assert (aclf);
@@ -384,7 +383,6 @@ bsu_init (bsu_aclf_t *aclf, mac_config_t *mac_config, phy_t *phy,
dbg_assert (ca);
dbg_assert (sar);
dbg_assert (timer);
- dbg_assert (cb);
/* Initialise the context. */
ctx->aclf = aclf;
ctx->mac_config = mac_config;
@@ -392,8 +390,6 @@ bsu_init (bsu_aclf_t *aclf, mac_config_t *mac_config, phy_t *phy,
ctx->mac_store = mac_store;
ctx->ca = ca;
ctx->sar = sar;
- ctx->ul_cb = cb;
- ctx->ul_data = cb_ud;
ctx->hal_timer = timer;
/* Initialise the NTB. */
uint i;
@@ -411,6 +407,13 @@ bsu_init (bsu_aclf_t *aclf, mac_config_t *mac_config, phy_t *phy,
}
void
+bsu_init_beacon_cb (bsu_beacon_processed_t cb, void *cb_ud)
+{
+ bsu_global.ul_cb = cb;
+ bsu_global.ul_data = cb_ud;
+}
+
+void
bsu_uninit (bsu_t *ctx)
{
dbg_assert (ctx);