aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-18 18:39:44 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-06-18 19:11:55 +0200
commitcec19e6324b43f141a03fbc72f20534099b20be1 (patch)
tree8e160d1f4d4156e56e1db27e131c81fb3a4f01e7
parent492c7c50aa0724d894f729e6d06e6c24e9b0e8ea (diff)
Fix missing bts_model implementations in stubs.c and bts_model.c
These will be required by compiler/linker after next changes. Change-Id: Icd20d64cf973f4cf4425b46d4102747db53d8990
-rw-r--r--src/osmo-bts-omldummy/bts_model.c5
-rw-r--r--tests/stubs.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/src/osmo-bts-omldummy/bts_model.c b/src/osmo-bts-omldummy/bts_model.c
index c0114015..a9683815 100644
--- a/src/osmo-bts-omldummy/bts_model.c
+++ b/src/osmo-bts-omldummy/bts_model.c
@@ -220,3 +220,8 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
{
return 0;
}
+
+int bts_model_phy_link_open(struct phy_link *plink)
+{
+ return 0;
+}
diff --git a/tests/stubs.c b/tests/stubs.c
index 05175ea2..20ce5129 100644
--- a/tests/stubs.c
+++ b/tests/stubs.c
@@ -2,6 +2,8 @@
struct femtol1_hdl;
struct bts_model_set_dyn_pdch_data;
+struct phy_link;
+struct phy_instance;
/*
* Stubs to provide an empty bts model implementation for testing.
@@ -60,3 +62,12 @@ int bts_model_ts_disconnect(struct gsm_bts_trx_ts *ts)
void bts_model_ts_connect(struct gsm_bts_trx_ts *ts,
enum gsm_phys_chan_config as_pchan)
{ return; }
+
+void bts_model_phy_link_set_defaults(struct phy_link *plink)
+{ return; }
+
+void bts_model_phy_instance_set_defaults(struct phy_instance *pinst)
+{ return; }
+
+int bts_model_phy_link_open(struct phy_link *plink)
+{ return 0; }