summaryrefslogtreecommitdiff
path: root/cesar/cp/cco/action/test/src/garbage.c
diff options
context:
space:
mode:
authorlaranjeiro2008-10-03 14:58:46 +0000
committerlaranjeiro2008-10-03 14:58:46 +0000
commit7c931cf02fc3132172496c4f0d464926bba16c93 (patch)
tree214edf6f57996d4d9170ace5116bc411381c5fcd /cesar/cp/cco/action/test/src/garbage.c
parenta70e2ff4dad55bce94ec8f1e5e352cd6fa1c5195 (diff)
cp/cco/action: Update the CCo action module cause of the modifications of the station manager.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3157 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/cco/action/test/src/garbage.c')
-rw-r--r--cesar/cp/cco/action/test/src/garbage.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cesar/cp/cco/action/test/src/garbage.c b/cesar/cp/cco/action/test/src/garbage.c
index d093b7bfab..8d38b36097 100644
--- a/cesar/cp/cco/action/test/src/garbage.c
+++ b/cesar/cp/cco/action/test/src/garbage.c
@@ -29,6 +29,7 @@
#include "cl/cl.h"
#include "cl/inc/context.h"
+#include "mac/sar/inc/context.h"
#include "stdio.h"
@@ -64,6 +65,7 @@ my_thread_entry (cyg_addrword_t data)
uint phy;
uint date;
cl_t cl;
+ sar_t sar;
test_case_begin (test, "Verify garbage result");
@@ -77,11 +79,14 @@ my_thread_entry (cyg_addrword_t data)
cp_cco_action_init (&cp);
cp_sta_mgr_init (&cp);
cp.cl = &cl;
+ cp.sar = &sar;
cp.mac_store = mac_store_init ();
cp.mac_config = &mac_config;
+ cl.mactotei = NULL;
+ sar.mac_store = cp.mac_store;
- memset (&cl, 0, sizeof(cl_t));
- net = cp_sta_mgr_get_our_avln (&cp);
+ net = cp_sta_mgr_add_avln (&cp, 1, 1);
+ cp_sta_mgr_set_our_avln (&cp, net);
printf ("Starting the test, please wait...\n");
for (i = 0; i < TEST_CCO_ACTION_NB_STA; i++)