summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2009-03-30 15:53:48 +0000
committerlaranjeiro2009-03-30 15:53:48 +0000
commit42a0453390fa1a4864fbd0693f26c683ff83f57a (patch)
treed573ec800b4d8409e9882b1415a8518e756117e2 /cesar
parent51e4475d3033c1d5402f599bae673095f211cc59 (diff)
cp: Added the uninit function.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4331 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/src/cp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/cesar/cp/src/cp.c b/cesar/cp/src/cp.c
index eb719252e6..5c216f15cb 100644
--- a/cesar/cp/src/cp.c
+++ b/cesar/cp/src/cp.c
@@ -97,6 +97,24 @@ cp_init (mac_config_t * mac_config, interface_t * interface,
return &cp_global;
}
+void
+cp_uninit (cp_t *ctx)
+{
+ dbg_assert (ctx);
+
+ cp_fsm_uninit (ctx);
+ cp_sta_core_uninit (ctx);
+ cp_sta_mgr_uninit (ctx);
+ cp_beacon_uninit (ctx);
+ cp_cco_action_uninit (ctx);
+ cp_cco_bw_uninit (ctx);
+ cp_cco_region_uninit (ctx);
+ cp_cl_interf_uninit (ctx);
+ cp_msg_uninit (ctx);
+ cp_pwl_uninit (ctx);
+ cp_trace_uninit (ctx);
+}
+
/**
* Compute the NID and the NMK from the network password.
* \param ctx the CP context.