/* Cesar project {{{ * * Copyright (C) 2010 Spidcom * * <<>> * * }}} */ /** * \file bsu/test/utest/src/ca.c * \brief CA stub functions. * \ingroup bsu */ #include "common/std.h" #include "mac/ca/ca.h" #include "bsu/test/utest/tests.h" static ca_schedule_t ca_sched[CA_SCHEDULE_NB]; void ca_mfs_add (ca_t *ctx, mfs_tx_t *mfs) { } void ca_mfs_hold (ca_t *ctx, mfs_tx_t *mfs) { } ca_schedule_t * ca_alloc_get_schedule (ca_t *ctx, uint index) { dbg_assert (index < CA_SCHEDULE_NB); return &ca_sched[index]; } void ca_alloc_update_beacon_periods (ca_t *ctx, ca_beacon_period_t *beacon_periods, uint beacon_periods_nb) { uint i; bsu_test_ca_t *t = (bsu_test_ca_t *) ctx; dbg_assert (beacon_periods); dbg_assert (beacon_periods_nb < CA_BEACON_PERIOD_NB); for (i = 0; i < beacon_periods_nb; i++) t->beacon_periods[i] = beacon_periods[i]; t->nb_beacon_periods = beacon_periods_nb; } void ca_mfs_remove (ca_t *ca, mfs_tx_t *mfs) { }