aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover/handover_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-01-05 12:20:11 +0100
committerlaforge <laforge@osmocom.org>2021-01-11 14:35:34 +0000
commit351e0f10026df2005e9f89e048f18403e0c8015c (patch)
tree4b527d9652d2921831a5469a0dcbd3272cacc4ea /tests/handover/handover_test.c
parent3f1c43e74bb35172c07905203f7799a38ec3fc37 (diff)
handover_test: include ack-chan in expect-chan
Diffstat (limited to 'tests/handover/handover_test.c')
-rw-r--r--tests/handover/handover_test.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index 3c9b4ff57..e3ccb64df 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -971,11 +971,6 @@ static void _expect_chan_activ(struct gsm_lchan *lchan)
gsm_lchan_name(lchan), gsm_lchan_name(chan_req_lchan));
exit(1);
}
-}
-
-static void _ack_chan_activ(struct gsm_lchan *lchan)
-{
- fprintf(stderr, "- Acknowledging channel request on %s\n", gsm_lchan_name(lchan));
got_ho_req = 0;
send_chan_act_ack(lchan, 1);
}
@@ -1005,15 +1000,6 @@ DEFUN(expect_chan, expect_chan_cmd,
return CMD_SUCCESS;
}
-DEFUN(ack_chan, ack_chan_cmd,
- "ack-chan",
- "ACK a previous Channel Request\n")
-{
- OSMO_ASSERT(got_chan_req);
- _ack_chan_activ(chan_req_lchan);
- return CMD_SUCCESS;
-}
-
DEFUN(expect_ho_req, expect_ho_req_cmd,
"expect-ho-req " LCHAN_ARGS,
"Expect a handover of a given lchan\n"
@@ -1067,7 +1053,6 @@ DEFUN(expect_ho, expect_ho_cmd,
struct gsm_lchan *to = parse_lchan_args(argv+4);
_expect_chan_activ(to);
- _ack_chan_activ(to);
_expect_ho_req(from);
send_ho_detect(to);
send_ho_complete(to, true);
@@ -1152,7 +1137,6 @@ static void ho_test_vty_init()
install_element(CONFIG_NODE, &congestion_check_cmd);
install_element(CONFIG_NODE, &expect_no_chan_cmd);
install_element(CONFIG_NODE, &expect_chan_cmd);
- install_element(CONFIG_NODE, &ack_chan_cmd);
install_element(CONFIG_NODE, &expect_ho_req_cmd);
install_element(CONFIG_NODE, &ho_detection_cmd);
install_element(CONFIG_NODE, &ho_complete_cmd);