diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-05 21:52:58 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-05 22:08:42 +0100 |
commit | c2f90c36c445b2a386b65bd3b5397d8f908a61be (patch) | |
tree | e8e85d10487e89d30ec5f8840acf1869cddba9bd | |
parent | 8128a49a6c6ce4aecffe9fa4f71fa734d5856693 (diff) |
handover_test: kick the gscon FSM into ACTIVE stateneels/fsm4
Change-Id: I46b9499b813c6f45a2dc5e8ab041dd473aee9339
-rw-r--r-- | tests/handover/handover_test.c | 10 |
1 files 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 <osmocom/bsc/bss.h> #include <osmocom/bsc/bsc_api.h> #include <osmocom/bsc/osmo_bsc.h> +#include <osmocom/bsc/bsc_subscr_conn_fsm.h> 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 */ |