summaryrefslogtreecommitdiff
path: root/cesar/cp/conn
diff options
context:
space:
mode:
authordufour2009-10-08 09:47:45 +0000
committerdufour2009-10-08 09:47:45 +0000
commit45a93c433065366d920f6c33eb2b5f517a0dadbc (patch)
treef3720a8cfe279de037597c10fb1ea4703dc5b633 /cesar/cp/conn
parent3e133ee163920e9770d53f1bbc9d0747c39c5947 (diff)
cesar/{cp,cl}/{test,stub}: fix cl/mactotei stub to use new API, see r5992
The MAC to TEI stub of the CL now use the new API of the MAC to TEI module. Force tests to use the default stub of the CL: - remove some duplicate stubs of the MAC to TEI table, - use the default CL stub in the Makefile. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6011 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/conn')
-rw-r--r--cesar/cp/conn/test/Makefile9
-rw-r--r--cesar/cp/conn/test/src/cl_stub.c76
2 files changed, 5 insertions, 80 deletions
diff --git a/cesar/cp/conn/test/Makefile b/cesar/cp/conn/test/Makefile
index 5aa4ff28dd..52064898c5 100644
--- a/cesar/cp/conn/test/Makefile
+++ b/cesar/cp/conn/test/Makefile
@@ -4,13 +4,14 @@ INCLUDES = cp/conn/test/override/
HOST_PROGRAMS = conn_test conn_mgr_test
-conn_test_SOURCES = conn_test.c msg_stub.c pwl_stub.c cl_stub.c sar_stub.c
+conn_test_SOURCES = conn_test.c msg_stub.c pwl_stub.c sar_stub.c
conn_test_MODULES = lib cp/conn cp/sta/mgr cp/cco/bw mac/common cp/fsm/stub \
- cp/cco/action/stub cp/sta/core/stub
+ cp/cco/action/stub cp/sta/core/stub cl/stub
conn_mgr_test_SOURCES = conn_mgr_test.c msg_stub.c pwl_stub.c \
- cl_stub.c sar_stub.c
+ sar_stub.c
conn_mgr_test_MODULES = lib cp/conn cp/sta/mgr cp/cco/bw mac/common \
- cp/fsm/stub cp/cco/action/stub cp/sta/core/stub
+ cp/fsm/stub cp/cco/action/stub cp/sta/core/stub \
+ cl/stub
include $(BASE)/common/make/top.mk
diff --git a/cesar/cp/conn/test/src/cl_stub.c b/cesar/cp/conn/test/src/cl_stub.c
deleted file mode 100644
index f850e94a7c..0000000000
--- a/cesar/cp/conn/test/src/cl_stub.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file src/cl_stub.c
- * \brief « brief description »
- * \ingroup « module »
- *
- * « long description »
- */
-#include "common/std.h"
-#include "cl/cl_mactotei.h"
-
-/**
- * Create a new table to be filled by the CP.
- *
- * \return a pointer to the new block to be fill with the mac to tei table
- * data
- */
-cl_mactotei_blk_t *
-cl_mactotei_new (void)
-{
- return NULL;
-}
-
-/**
- * Request the CL to copy all the data corresponding to the tag and the tei.
- *
- * \param ctx the cl context.
- * \param table the mactotei new table to fill
- * \param tei the tei to copy.
- * \param tag the tag to copy
- */
-void
-cl_mactotei_copy_tei_and_tag (cl_t *ctx,
- cl_mactotei_blk_t *table, u8 tei, u8 tag)
-{
-}
-
-/**
- * Add a new tupple of data to the table.
- *
- * \param table the table pointer to add a new mac to tei correspondance.
- * \param mac_addr the mac addr to add
- * \param tei the tei corresponding to the STA.
- * \param tag the CP tag provide to indentifier a network.
- */
-void cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr,
- uint tei, uint tag)
-{
-}
-
-/**
- * Request the CL to use the new table and remove the old one.
- *
- * \param ctx the CL context
- * \param table the new table to use.
- */
-void
-cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
-{
-}
-
-/**
- * Release the complete table from the memory.
- *
- * \param ctx the cl context.
- */
-void
-cl_mactotei_release_table (cl_t *ctx)
-{
-}