summaryrefslogtreecommitdiff
path: root/cesar/cp/sta/action/test/utest/src/poweron.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/sta/action/test/utest/src/poweron.c')
-rw-r--r--cesar/cp/sta/action/test/utest/src/poweron.c34
1 files changed, 33 insertions, 1 deletions
diff --git a/cesar/cp/sta/action/test/utest/src/poweron.c b/cesar/cp/sta/action/test/utest/src/poweron.c
index 28e3b3297e..db906af646 100644
--- a/cesar/cp/sta/action/test/utest/src/poweron.c
+++ b/cesar/cp/sta/action/test/utest/src/poweron.c
@@ -359,9 +359,10 @@ poweron_test_cases (test_t t)
slab_release (sta);
scenario_entry_t entries[] = {
SCENARIO_ACTION (poweron__poweron__btt_timeout),
+ SCENARIO_EVENT (cp_cco_action_ucco_start),
SCENARIO_EVENT (cp_fsm_branch,
.branch = CP_FSM_BRANCH (POWERON, btt_timeout,
- avln)),
+ no_avln)),
SCENARIO_END
};
scenario_run (t, entries, &globals);
@@ -414,6 +415,37 @@ poweron_test_cases (test_t t)
scenario_run (t, entries, &globals);
cp_sta_mgr_sta_remove_from_mac (cp, 0x012345678901ull);
} test_end;
+ /* AVLN NID match, CCo authenticated. */
+ test_begin (t, "cco authenticated")
+ {
+ sta = cp_sta_mgr_sta_add (cp, net, 1, 0x012345678901ull);
+ cp_net_set_cco (cp, net, 1);
+ slab_release (sta);
+ scenario_entry_t entries[] = {
+ SCENARIO_ACTION (poweron__poweron__btt_timeout),
+ SCENARIO_EVENT (cp_fsm_branch,
+ .branch = CP_FSM_BRANCH (POWERON, btt_timeout,
+ avln)),
+ SCENARIO_END
+ };
+ scenario_run (t, entries, &globals);
+ cp_sta_mgr_sta_remove_from_mac (cp, 0x012345678901ull);
+ } test_end;
+ /* AVLN NID match, Sta associated. */
+ test_begin (t, "Sta associated")
+ {
+ sta = cp_sta_mgr_sta_add (cp, net, 1, 0x012345678901ull);
+ slab_release (sta);
+ scenario_entry_t entries[] = {
+ SCENARIO_ACTION (poweron__poweron__btt_timeout),
+ SCENARIO_EVENT (cp_fsm_branch,
+ .branch = CP_FSM_BRANCH (POWERON, btt_timeout,
+ avln)),
+ SCENARIO_END
+ };
+ scenario_run (t, entries, &globals);
+ cp_sta_mgr_sta_remove_from_mac (cp, 0x012345678901ull);
+ } test_end;
/* USTA indication. */
test_case_begin (t, "usta usta ind");
test_sta_action_reset (&ctx);