summaryrefslogtreecommitdiff
path: root/cesar/cp/sta/action/src/handover.c
diff options
context:
space:
mode:
authorlaranjeiro2009-03-10 16:34:23 +0000
committerlaranjeiro2009-03-10 16:34:23 +0000
commita97529fc77f1883b320cb12110cca7f0d0c95255 (patch)
treee8c2e7618ca9c014e41cb7ae373121ad341e765c /cesar/cp/sta/action/src/handover.c
parent0057d33e448a06d941268090e0a92bf85a715b94 (diff)
cp/sta/action: (See #161).
* Added the fsm_branch post when the handover_cnf is a hard handover. * cp/fsm: Added states and handover for the STA handover. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4195 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/sta/action/src/handover.c')
-rw-r--r--cesar/cp/sta/action/src/handover.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cesar/cp/sta/action/src/handover.c b/cesar/cp/sta/action/src/handover.c
index 79f31fc856..ee1d7b93a7 100644
--- a/cesar/cp/sta/action/src/handover.c
+++ b/cesar/cp/sta/action/src/handover.c
@@ -16,6 +16,7 @@
#include "cp/sta/mgr/sta_mgr.h"
#include "cp/msg/msg.h"
#include "cp/cco/action/cco_action.h"
+#include "cp/fsm/fsm.h"
void
cp_sta_action_handover__handover (cp_t *ctx, cp_mme_rx_t *mme)
@@ -34,13 +35,14 @@ cp_sta_action_handover__handover (cp_t *ctx, cp_mme_rx_t *mme)
&& (CP_CCO_LEVEL == 0))
{
result = CP_MSG_CC_HANDOVER_CNF_RESULT_REJECT_SOFT_HANDOVER;
- /*TODO: FSM post */
}
else if (soft_hard == CP_MSG_CC_HANDOVER_REQ_HANDOVER_HARD)
{
/* Go to the handover hard branch. */
result = CP_MSG_CC_HANDOVER_CNF_RESULT_ACCEPT;
- /*TODO: FSM post */
+
+ if (reason != CP_MSG_CC_HANDOVER_REQ_REASON_USER_APPOINT)
+ cp_fsm_branch (ctx, STA, CC_HANDOVER_REQ, hard);
}
if (reason == CP_MSG_CC_HANDOVER_REQ_REASON_USER_APPOINT)