summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco/action
diff options
context:
space:
mode:
authorlaranjeiro2008-07-01 15:03:14 +0000
committerlaranjeiro2008-07-01 15:03:14 +0000
commit8106fbe0919d8b0d4faf6384ad4651bb12a8b761 (patch)
tree4d73602e8aadb7bef83f3e987fb7cfa6bee06119 /cesar/cp2/cco/action
parentadfbdf3d05aa265d9d324a4bd820af376e9fe3a8 (diff)
cp2/cco/action: Removed withspace trailling.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2511 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco/action')
-rw-r--r--cesar/cp2/cco/action/src/cco_action.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/cesar/cp2/cco/action/src/cco_action.c b/cesar/cp2/cco/action/src/cco_action.c
index b6c3fe29ce..126e05739e 100644
--- a/cesar/cp2/cco/action/src/cco_action.c
+++ b/cesar/cp2/cco/action/src/cco_action.c
@@ -7,7 +7,7 @@
* }}} */
/**
* \file cp2/cco/action/src/cco_action.c
- * \brief CCo Action functions.
+ * \brief CCo Action functions.
* \ingroup cp2_cco
*
*/
@@ -43,7 +43,7 @@
/**
* Search for an available TEI in the AVLN list.
* \param ctx the module context.
- * \return return the TEI found.
+ * \return return the TEI found.
*
* Get the AVLN from the station manager (our AVLN). Lookup in the station
* a hole of TEIs. It no hole is found and no more STAs are available
@@ -65,8 +65,8 @@ cp_cco_action_tei_compute (cp_cco_action_t *ctx)
flag = ~ctx->tei_flags[index];
flag_rot = flag;
for (i = (index == 0 ? 1 : 0) ;
- i < sizeof(uint) * 8
- && ((index == CP_CCO_ACTION_TEI_FLAGS_ROW - 1) ?
+ i < sizeof(uint) * 8
+ && ((index == CP_CCO_ACTION_TEI_FLAGS_ROW - 1) ?
(flag_rot == 0x80000000 ? 0 : 1) : flag_rot);
i++)
{
@@ -102,9 +102,9 @@ cp_cco_action_tei_release (cp_cco_action_t *ctx, u8 tei)
dbg_assert (ctx);
dbg_assert (tei);
- row = tei / CP_CCO_ACTION_TEI_FLAGS_ROW_SIZE_BITS;
+ row = tei / CP_CCO_ACTION_TEI_FLAGS_ROW_SIZE_BITS;
- ctx->tei_flags[row] &= ~(1 << ((tei - 1)
+ ctx->tei_flags[row] &= ~(1 << ((tei - 1)
% CP_CCO_ACTION_TEI_FLAGS_ROW_SIZE_BITS));
}
@@ -276,7 +276,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
{
/* Add the TEI lease corresponding to an unassociated STA. */
cp_net_commit_to_dataplane (net, ctx);
- sta->tei_lease_ms =
+ sta->tei_lease_ms =
MAC_SEC_TO_MS(CP_CCO_ACTION_LEASE_ASSOC_MIN * 60);
cnf.result = CP_MSG_CC_ASSOC_CNF_RESULT_SUCCESS;
@@ -284,9 +284,9 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
}
else
{
- cnf.result =
+ cnf.result =
CP_MSG_CC_ASSOC_CNF_RESULT_FAILURE_TEMPORARY_RESSOURCE_EXHAUSTION;
- sta->tei_lease_ms =
+ sta->tei_lease_ms =
MAC_SEC_TO_MS(CP_CCO_ACTION_LEASE_UNASSOC_MIN * 60);
}
@@ -300,7 +300,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
if (sta)
{
/* Renew the TEI. */
- sta->tei_lease_ms =
+ sta->tei_lease_ms =
MAC_SEC_TO_MS(CP_CCO_ACTION_LEASE_AUTH_MIN * 60);
cnf.result = CP_MSG_CC_ASSOC_CNF_RESULT_SUCCESS;
@@ -324,7 +324,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
/* Send the answer. */
cp_msg_cc_assoc_cnf_send (ctx, &CP_MME_PEER(assoc_req->peer.mac,
tei), &cnf);
- if (tei
+ if (tei
&& assoc.request_type != CP_MSG_CC_ASSOC_REQ_TYPE_RENEW)
{
// Send the TEI MAPs.
@@ -376,7 +376,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
// all the station of the network.
peer = &CP_MME_PEER (MAC_BROADCAST);
- mme_tx = cp_msg_cc_set_tei_map_ind_send_begin (ctx, peer,
+ mme_tx = cp_msg_cc_set_tei_map_ind_send_begin (ctx, peer,
CP_MSG_CC_SET_TEI_MAP_IND_MODE_ADD, 1);
cp_msg_cc_set_tei_map_ind_send_sta (ctx, mme_tx,
@@ -479,7 +479,7 @@ cp_cco_action_manage_sta_leave (cp_t *ctx, cp_mme_rx_t * leave_req,
/* Get the station. */
sta = cp_net_get_sta (net, leave_req->peer.tei);
peer = &CP_MME_PEER (leave_req->peer.mac, leave_req->peer.tei);
- cp_msg_cc_leave_cnf_send (ctx, peer);
+ cp_msg_cc_leave_cnf_send (ctx, peer);
}
else
{
@@ -493,7 +493,7 @@ cp_cco_action_manage_sta_leave (cp_t *ctx, cp_mme_rx_t * leave_req,
// Send the TEI MAP to the station.
peer = &CP_MME_PEER (MAC_BROADCAST);
-
+
switch (cp_sta_get_state (sta))
{
case CP_STA_STATE_ASSOCIATED: