From c2f90c36c445b2a386b65bd3b5397d8f908a61be Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 5 Mar 2018 21:52:58 +0100 Subject: handover_test: kick the gscon FSM into ACTIVE state Change-Id: I46b9499b813c6f45a2dc5e8ab041dd473aee9339 --- tests/handover/handover_test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index 8bcadbf77..6e8150e08 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -39,6 +39,7 @@ #include #include #include +#include struct gsm_network *bsc_gsmnet; @@ -186,8 +187,13 @@ static struct gsm_bts *create_bts(int arfcn) void create_conn(struct gsm_lchan *lchan) { - lchan->conn = bsc_subscr_con_allocate(lchan->ts->trx->bts->network); - lchan->conn->lchan = lchan; + struct gsm_subscriber_connection *conn; + conn = bsc_subscr_con_allocate(lchan->ts->trx->bts->network); + lchan->conn = conn; + conn->lchan = lchan; + /* kick the FSM from INIT through to the ACTIVE state */ + osmo_fsm_inst_dispatch(conn->fi, GSCON_EV_A_CONN_REQ, NULL); + osmo_fsm_inst_dispatch(conn->fi, GSCON_EV_A_CONN_CFM, NULL); } /* create lchan */ -- cgit v1.2.3