summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchertier2008-03-27 15:21:27 +0000
committerchertier2008-03-27 15:21:27 +0000
commita90b017b438f8c0b4e20365cdc78c2b5a3823efe (patch)
tree8a49bc81fb51680becf35481e97574bea422f90c
parent197dafeeb2fdf2912d928a0714636f1f2a5c6e65 (diff)
Use of station context in function prototypes (1st try of full station integration with CP+DP)
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1652 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cp/station/inc/station_data.h119
1 files changed, 106 insertions, 13 deletions
diff --git a/cp/station/inc/station_data.h b/cp/station/inc/station_data.h
index 0acf0e6eb0..862d13441a 100644
--- a/cp/station/inc/station_data.h
+++ b/cp/station/inc/station_data.h
@@ -17,6 +17,7 @@
#include "mac/common/store.h"
#include "cp/cp_types.h"
#include "cp/station/inc/station_types.h"
+#include "cp/station/inc/station_ctx.h"
#include "cl/cl.h"
#include "SEMTypes.h"
@@ -35,14 +36,14 @@ mac_store_t *
station_get_mac_store_ctx(void);
*/
-
+cp_sta_t *my_cp_sta_ctx;
/**
* \brief return the nid of the station
- * \param
+ * \param ctx pointer to station context.
* \return the nid !
*/
nid_t
-cp_station_get_nid(void);
+cp_station_get_nid(cp_sta_t *ctx);
/**
* \brief return the snid of the station
@@ -114,18 +115,20 @@ cp_station_get_tei(void *v);
/**
* \brief set the mac address of the station
+ * \param ctx pointer to station context.
* \param mac_address : the mac address
* \return
*/
void
-cp_station_set_mac_address(void *sta, mac_address_t mac_address);
+cp_station_set_mac_address(cp_sta_t *ctx, mac_address_t mac_address);
/**
* \brief return the mac address of the station
+ * \param ctx pointer to station context.
* \return
*/
void
-cp_station_get_mac_address(mac_address_t *mac_address);
+cp_station_get_mac_address(cp_sta_t *ctx, mac_address_t *mac_address);
/**
* \brief clear the associated sta list
@@ -236,31 +239,70 @@ tei_t
cp_station_find_tei_from_mac(const mac_address_t mac_address);
/**
+ * \brief get the status of the station
+ * \param
+ * \return the current status of the station
+ */
+cp_station_status_t
+cp_station_get_status(void);
+
+/**
* \brief set the association status of the station
- * \param is_associated
+ * \param become_associated true to set station in associated station state
* \return
*/
VS_VOID
-cp_station_is_associated (VS_BOOL associated);
+cp_station_set_assoc_status (VS_BOOL become_associated);
-cp_station_status_t
-cp_station_get_status(void);
+/**
+ * Return the association status of the station
+ *
+ * \return boolean informing if the sta is associated or not.
+ */
+VS_BOOL
+cp_station_get_assoc_status (void);
+
+/**
+ * Return the association status of the station
+ *
+ * \param ctx the station context.
+ * \return boolean informing if the sta is associated or not.
+ */
+VS_BOOL
+cp_station_is_associated(cp_sta_t *ctx);
/**
* \brief set the cco status of the station
- * \param true if station is cco
+ * \param is_cco true to set station in cco state
* \return
*/
VS_VOID
-cp_station_is_cco(VS_BOOL is_cco);
+cp_station_set_cco_status (VS_BOOL is_cco);
/**
* \brief set the authentication status of the station
- * \param true if station is authenticated
+ * \param become_authenticated true to set station in authenticated station state
* \return
*/
VS_VOID
-cp_station_is_authenticated (VS_BOOL is_authenticated);
+cp_station_set_auth_status (VS_BOOL become_authenticated);
+
+/**
+ * Return the authentication status of the station
+ *
+ * \return boolean informing if the sta is authenticated or not.
+ */
+VS_BOOL
+cp_station_get_auth_status (void);
+
+/**
+ * Return the authentication status of the station
+ *
+ * \param ctx the station context.
+ * \return boolean informing if the sta is authenticated or not.
+ */
+VS_BOOL
+cp_station_is_authenticated(cp_sta_t *ctx);
/**
* \brief return true if the station is pco
@@ -302,7 +344,58 @@ cp_station_get_num_discovered_avln(void);
bool
cp_station_get_is_user_appointed_cco(void);
+/**
+ * Get the Handover in progress status.
+ *
+ * \param sta the station context
+ * \return the handover progress status.
+ */
+bool
+cp_station_get_hoip (cp_sta_t *sta);
+
+/**
+ * Set the Handover in progress status.
+ *
+ * \param sta context.
+ * \param hoip handover in progress.
+ */
+void
+cp_station_set_hoip(cp_sta_t *sta, uint hoip);
+
+/**
+ * get the rstbf flag
+ *
+ * \param sta the sta context.
+ */
+bool
+cp_station_get_rtsbf(cp_sta_t *sta);
+
+/**
+ * Set the sta rtsbf
+ *
+ * \param sta the station context
+ * \param rstbf the flag
+ */
+void
+cp_station_set_rtsbf (cp_sta_t *sta, bool rtsbf);
+/**
+ * Get the number of distant STAs
+ *
+ * \param sta the station context
+ * \return the number of distant stations
+ */
+u8
+cp_station_get_num_dis_sta(cp_sta_t *sta);
+
+/**
+ * Get number of distant networks.
+ *
+ * \param sta the sta context.
+ * \return the number of distant networks.
+ */
+u8
+cp_station_get_num_dis_net(cp_sta_t *sta);
#endif /*STATION_DATA_H_*/