summaryrefslogtreecommitdiff
path: root/cesar/cp/sta/action/test/utest/src/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/sta/action/test/utest/src/info.c')
-rw-r--r--cesar/cp/sta/action/test/utest/src/info.c44
1 files changed, 29 insertions, 15 deletions
diff --git a/cesar/cp/sta/action/test/utest/src/info.c b/cesar/cp/sta/action/test/utest/src/info.c
index 75767d45db..53cd3c54f1 100644
--- a/cesar/cp/sta/action/test/utest/src/info.c
+++ b/cesar/cp/sta/action/test/utest/src/info.c
@@ -73,7 +73,7 @@ info_set_tei_map_test_cases (test_t t)
scenario_globals_t globals = {
.cp = &ctx.cp,
};
- cp_mme_peer_t peer = CP_MME_PEER (0xaabbccddeeffull);
+ cp_mme_peer_t peer = CP_MME_PEER (0xaabbccddeeffull, 1);
test_case_begin (t, "set_tei_map");
test_begin (t, "add first")
{
@@ -395,7 +395,8 @@ info_unassociated_sta_test_cases (test_t t)
{
scenario_entry_t entries[] = {
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x111111111111ull)),
+ .peer = CP_MME_PEER (0x111111111111ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf11111111111ull, .cco_cap = 0),
@@ -413,28 +414,33 @@ info_unassociated_sta_test_cases (test_t t)
scenario_entry_t entries[] = {
/* More STA. */
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x222222222222ull)),
+ .peer = CP_MME_PEER (0x222222222222ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf22222222222ull, .cco_cap = 1),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x333333333333ull)),
+ .peer = CP_MME_PEER (0x333333333333ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf33333333333ull, .cco_cap = 2),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x444444444444ull)),
+ .peer = CP_MME_PEER (0x444444444444ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf44444444444ull, .cco_cap = 0),
/* More STA with the same NID. */
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0xaaaaaaaaaaaaull)),
+ .peer = CP_MME_PEER (0xaaaaaaaaaaaaull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf11111111111ull, .cco_cap = 1),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0xbbbbbbbbbbbbull)),
+ .peer = CP_MME_PEER (0xbbbbbbbbbbbbull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf22222222222ull, .cco_cap = 2),
@@ -457,13 +463,15 @@ info_unassociated_sta_test_cases (test_t t)
scenario_entry_t entries[] = {
/* Change of cco_cap. */
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x111111111111ull)),
+ .peer = CP_MME_PEER (0x111111111111ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf11111111111ull, .cco_cap = 2),
/* Update, no change. */
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x222222222222ull)),
+ .peer = CP_MME_PEER (0x222222222222ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf22222222222ull, .cco_cap = 1),
@@ -487,7 +495,8 @@ info_unassociated_sta_test_cases (test_t t)
{
scenario_entry_t entries[] = {
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x888888888888ull)),
+ .peer = CP_MME_PEER (0x888888888888ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = false,
.nid = 0xf88888888888ull, .cco_cap = 2),
@@ -510,28 +519,33 @@ info_unassociated_sta_test_cases (test_t t)
{
scenario_entry_t entries[] = {
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x555555555555ull)),
+ .peer = CP_MME_PEER (0x555555555555ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf55555555555ull, .cco_cap = 0),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x666666666666ull)),
+ .peer = CP_MME_PEER (0x666666666666ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf66666666666ull, .cco_cap = 0),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x777777777777ull)),
+ .peer = CP_MME_PEER (0x777777777777ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf77777777777ull, .cco_cap = 0),
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x888888888888ull)),
+ .peer = CP_MME_PEER (0x888888888888ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf88888888888ull, .cco_cap = 0),
/* No more room. */
SCENARIO_ACTION (process_cm_unassociated_sta_ind,
- .peer = CP_MME_PEER (0x999999999999ull)),
+ .peer = CP_MME_PEER (0x999999999999ull,
+ MAC_TEI_UNASSOCIATED)),
SCENARIO_EVENT (cp_msg_cm_unassociated_sta_ind_receive,
.ok = true,
.nid = 0xf99999999999ull, .cco_cap = 0),