summaryrefslogtreecommitdiff
path: root/cl/cl_mactotei.h
diff options
context:
space:
mode:
authorlaranjeiro2007-10-25 09:41:50 +0000
committerlaranjeiro2007-10-25 09:41:50 +0000
commit01f6f0f933422cfdf9665ed2caf167fc4e5a1e53 (patch)
tree011a60d4b0ac89c5d6531ca256b9ffef9b3fa958 /cl/cl_mactotei.h
parent14bd155c1426c19420fd0bc4dc5bf8fec2b89fe0 (diff)
CL data tx done.
* Tested. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@885 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cl/cl_mactotei.h')
-rw-r--r--cl/cl_mactotei.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cl/cl_mactotei.h b/cl/cl_mactotei.h
index bd6f2ca030..83f8da20d6 100644
--- a/cl/cl_mactotei.h
+++ b/cl/cl_mactotei.h
@@ -19,4 +19,34 @@ typedef struct cl_mactotei_table_t cl_mactotei_table_t;
typedef struct cl_mactotei_blk_t cl_mactotei_blk_t;
typedef struct cl_mactotei_t cl_mactotei_t;
+/**
+ * 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);
+
+/**
+ * Request the CL to copy all the data without the coresponding one provide in
+ * this function paramater.
+ *
+ * \param table_old the table actually use by the CL
+ * \param table the mactotei new table to fill
+ * \param tag the tag to exclude from the copy
+ */
+void cl_mactotei_copy (cl_mactotei_table_t *table_old,
+ cl_mactotei_blk_t *table, 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);
+
#endif /*CL_MACTOTEI_H_*/