aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-05 16:47:57 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:25 +0200
commit7a0d11dd68528d96afff61083c3cf90a50af11bb (patch)
treef026dcdae8b564b6e0d197e7822b5a11a99dcc9a /tests
parentcd0581d815f76dd159406a2e797ad554df82c761 (diff)
ABIS: Introduce bts_model_abis_close to indicate ABIS link failure.
sysmocom-bts model shuts down on link loss, but other models may not want this, so shutdown is moved tor bts_model_abis_close of osmo-bts-sysmo.
Diffstat (limited to 'tests')
-rw-r--r--tests/stubs.c3
-rw-r--r--tests/sysmobts/sysmobts_test.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/stubs.c b/tests/stubs.c
index 89ab8027..f1ba5cc7 100644
--- a/tests/stubs.c
+++ b/tests/stubs.c
@@ -59,3 +59,6 @@ int l1if_set_txpower(struct femtol1_hdl *fl1h, float tx_power)
int bts_model_adjst_ms_pwr(struct gsm_lchan *lchan)
{ return 0; }
+
+void bts_model_abis_close(struct gsm_bts *bts)
+{ }
diff --git a/tests/sysmobts/sysmobts_test.c b/tests/sysmobts/sysmobts_test.c
index 99fd4c7d..def7a819 100644
--- a/tests/sysmobts/sysmobts_test.c
+++ b/tests/sysmobts/sysmobts_test.c
@@ -265,3 +265,5 @@ int bts_model_init(struct gsm_bts *bts)
{ return 0; }
int bts_model_oml_estab(struct gsm_bts *bts)
{ return 0; }
+void bts_model_abis_close(struct gsm_bts *bts)
+{ }