summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-07-10 15:47:10 +0000
committerlaranjeiro2008-07-10 15:47:10 +0000
commit98439c201b17b7909f6657e3ceb8645cd87e190c (patch)
tree9013fa79cb4bdb91e5ce66b31de08727357f054e
parent91b9644a09c7a19d60dcf5bfd357cb9c5ced8267 (diff)
cp2/cco/action: Remove withspace trailling.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2591 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/cp2/cco/action/cco_action.h2
-rw-r--r--cesar/cp2/cco/action/src/cco_action.c9
-rw-r--r--[-rwxr-xr-x]cesar/cp2/cco/action/test/src/action-test.c0
3 files changed, 10 insertions, 1 deletions
diff --git a/cesar/cp2/cco/action/cco_action.h b/cesar/cp2/cco/action/cco_action.h
index 0b686fea68..63fb0972b6 100644
--- a/cesar/cp2/cco/action/cco_action.h
+++ b/cesar/cp2/cco/action/cco_action.h
@@ -49,7 +49,7 @@ void
cp_cco_action_snid_change (cp_t *ctx);
/**
- * perform garbage actions of CCo's responsability.
+ * perform garbage actions of CCo's responsibility.
* \param ctx the module context.
*/
void
diff --git a/cesar/cp2/cco/action/src/cco_action.c b/cesar/cp2/cco/action/src/cco_action.c
index 3431920780..e18aa489ca 100644
--- a/cesar/cp2/cco/action/src/cco_action.c
+++ b/cesar/cp2/cco/action/src/cco_action.c
@@ -517,5 +517,14 @@ cp_cco_action_manage_sta_leave (cp_t *ctx, cp_mme_rx_t * leave_req,
// Remove the station.
cp_net_sta_remove (ctx, net, sta);
cp_net_commit_to_dataplane (ctx, net);
+
+ /* Verify if the network is empty, if it is post an event to the FSM. */
+ if (cp_net_is_empty (ctx, net))
+ {
+ cp_fsm_event_t *event;
+ event = cp_fsm_event_bare_new (ctx,
+ CP_FSM_EVENT_TYPE_ALL_STA_LEAVED);
+ cp_fsm_post (ctx, event);
+ }
}
diff --git a/cesar/cp2/cco/action/test/src/action-test.c b/cesar/cp2/cco/action/test/src/action-test.c
index 9ce4d55eb4..9ce4d55eb4 100755..100644
--- a/cesar/cp2/cco/action/test/src/action-test.c
+++ b/cesar/cp2/cco/action/test/src/action-test.c