summaryrefslogtreecommitdiff
path: root/cesar/cp/cco/action/src/cco_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/cco/action/src/cco_action.c')
-rw-r--r--cesar/cp/cco/action/src/cco_action.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/cp/cco/action/src/cco_action.c b/cesar/cp/cco/action/src/cco_action.c
index 463e888ab9..e7ef7c5780 100644
--- a/cesar/cp/cco/action/src/cco_action.c
+++ b/cesar/cp/cco/action/src/cco_action.c
@@ -1028,8 +1028,8 @@ cp_cco_action_cco_selection__sta_add (cp_t *ctx, cp_net_t *net, cp_sta_t *sta)
&& (cp_sta_get_authenticated (ctx, sta)))
{
own = cp_sta_mgr_get_sta_own_data (ctx);
- if ((own->cco_prefered == false)
- && ((sta->cco_cap > CP_CCO_LEVEL)))
+ if (own->cco_prefered == false
+ && sta->cco_cap > CP_CCO_LEVEL)
{
slab_addref (sta);
heap_node_init (&sta->cco_selection_node);
@@ -1160,6 +1160,7 @@ cp_cco_action_sc__sc_cco__cc_assoc_req (cp_t *ctx, cp_mme_rx_t *mme)
void
cp_cco_action_handover_ended (cp_t *ctx)
{
+ cp_cco_action_cco_selection__clear (ctx);
/* trigger the event for the assoc FSM. */
cp_fsm_trigger_new_event (ctx, bare, become_sta);
}