summaryrefslogtreecommitdiff
path: root/cp2/sta/mgr
diff options
context:
space:
mode:
authorlaranjeiro2008-03-31 09:06:35 +0000
committerlaranjeiro2008-03-31 09:06:35 +0000
commita5d4fb9463d4922b0b9ab232b4398ca81899685b (patch)
tree3dbb52061217cde8d3280f40e54f34bb1c3dbff2 /cp2/sta/mgr
parent49422acffb6c285c4eef62b233e26dfc3b6f29dc (diff)
cp2: Added the header for the commit API in the sta_mgr.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1693 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cp2/sta/mgr')
-rw-r--r--cp2/sta/mgr/sta_mgr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/cp2/sta/mgr/sta_mgr.h b/cp2/sta/mgr/sta_mgr.h
index d64c99011c..190b8d011e 100644
--- a/cp2/sta/mgr/sta_mgr.h
+++ b/cp2/sta/mgr/sta_mgr.h
@@ -21,7 +21,10 @@
struct cp_t
{
- u16 current_sta_avln;
+ /** the index 0 represents our avln. The others are the neighbour avln. */
+ cp_net_list_t avln[8];
+ /** Last AVLN access in the neigbour avln. */
+ cp_net_list_t *current_avln;
};
typedef struct cp_t cp_sta_mgr_t;
@@ -151,4 +154,10 @@ cp_sta_mgr_update_sta_in_avln(cp_t *ctx, cp_sta_t *sta,
void
cp_sta_mgr_update_sta(cp_sta_t sta, u8 tei, mac_t mac_addr);
+/** Commit the modification done when a STA has been removed of added.
+ * \param ctx the cp context.
+ */
+void
+cp_sta_mgr_commit (cp_t *ctx);
+
#endif /* cp2_sta_data_sta_mgr_h */