/* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \file src/dataplane_stub.c * \brief Data plane layers stub. * \ingroup test */ #include "common/std.h" #include "lib/scenario/scenario.h" #include "cl/cl_mactotei.h" #include "mac/pbproc/pbproc.h" #include "cp/inc/context.h" void sar_activate (sar_t *ctx, bool flag) { scenario_event (sar_activate, param); test_fail_unless (flag == param->flag); } void sar_cleanup (sar_t *ctx) { if (!scenario.current || scenario.current->event_id != SCENARIO_EVENT_sar_cleanup) return; /* Be less strict. */ scenario_event (sar_cleanup); } void sar_store_mfs_remove (mac_store_t *mac_store, mfs_t *mfs, void *user) { mac_store_mfs_remove (mac_store, mfs); } void sar_sta_remove (sar_t *ctx, u8 tei) { cp_t *cp = (void *) ctx; /* For EoC some GLID are created. */ sta_t *sta = mac_store_sta_get (cp->mac_store, tei); if (sta) { mac_store_mfs_travel_by_tei (cp->mac_store, tei, sar_store_mfs_remove, ctx); dbg_check (mac_store_sta_remove (cp->mac_store, tei)); blk_release (sta); } } void pbproc_activate (pbproc_t *ctx, bool flag) { scenario_event (pbproc_activate, param); test_fail_unless (flag == param->flag); } void pbproc_parameters_adjust (pbproc_t *ctx, bool adjust) { scenario_event (pbproc_parameters_adjust, param); test_fail_unless (adjust == param->adjust); } void phy_tx_scale_adapt_exp_set (phy_t *ctx, u8 exp) { dbg_assert_default (); } void phy_tx_scale_adapt_set (phy_t *ctx, u16 value) { dbg_assert_default (); }