aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-25 19:53:21 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-30 18:22:12 +0200
commiteececf5fa96875e93d622299408423766c6e35d0 (patch)
treed74ed74db47e09c84b669fffbb7808784cf99824 /tests
parentbc24955e91f050e904851f589400eac4c3443917 (diff)
sysmobts: Make it possible to slowly ramp up the output power
For systems with a bigger PA enabling the full output power at once might draw more current than a power supply can provide. This code will step up the output power in smaller steps to avoid this situation.
Diffstat (limited to 'tests')
-rw-r--r--tests/stubs.c3
-rw-r--r--tests/sysmobts/Makefile.am3
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/stubs.c b/tests/stubs.c
index 99961aad..184ae724 100644
--- a/tests/stubs.c
+++ b/tests/stubs.c
@@ -51,3 +51,6 @@ uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx)
int bts_model_oml_estab(struct gsm_bts *bts)
{ return 0; }
+
+int l1if_set_txpower(struct femtol1_hdl *fl1h, float tx_power)
+{ return 0; }
diff --git a/tests/sysmobts/Makefile.am b/tests/sysmobts/Makefile.am
index d884237b..17160ba5 100644
--- a/tests/sysmobts/Makefile.am
+++ b/tests/sysmobts/Makefile.am
@@ -5,5 +5,6 @@ LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMOTRAU_
noinst_PROGRAMS = sysmobts_test
EXTRA_DIST = sysmobts_test.ok
-sysmobts_test_SOURCES = sysmobts_test.c $(top_srcdir)/src/osmo-bts-sysmo/utils.c
+sysmobts_test_SOURCES = sysmobts_test.c $(top_srcdir)/src/osmo-bts-sysmo/utils.c \
+ $(srcdir)/../stubs.c
sysmobts_test_LDADD = $(LDADD)