aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-24 10:44:31 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-24 16:42:02 +0200
commitd9a2aa8d9909d93d96e421c7cb727932445fa8ab (patch)
treea5d58e1a563ed7feb35ce7bc7d973f0e4038686e /src/osmo-bts-sysmo
parente43feaf231e08f108aafa26a7829820fad3447cb (diff)
add control interface to common BTS (for thermal attenuation)
Using this control interface, an external program can request attentuation of the transmitter for thermal management reasons. The external application doesn't have to know anthing about the actual transmit power, but it can just configure a certian value of milli-dB (1/10000 bel) and update (increase/decrease) that value depending on the thermal environment.
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r--src/osmo-bts-sysmo/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c
index d12421df..8c930965 100644
--- a/src/osmo-bts-sysmo/main.c
+++ b/src/osmo-bts-sysmo/main.c
@@ -45,6 +45,7 @@
#include <osmo-bts/vty.h>
#include <osmo-bts/bts_model.h>
#include <osmo-bts/pcu_if.h>
+#include <osmo-bts/control_if.h>
#define SYSMOBTS_RF_LOCK_PATH "/var/lock/bts_rf_lock"
@@ -290,6 +291,8 @@ static int write_pid_file(char *procname)
return 0;
}
+extern int sysmobts_ctrlif_inst_cmds(void);
+
int main(int argc, char **argv)
{
struct stat st;
@@ -348,6 +351,8 @@ int main(int argc, char **argv)
}
write_pid_file("osmo-bts");
+ bts_controlif_setup(bts, 3333);
+
rc = telnet_init(tall_bts_ctx, NULL, 4241);
if (rc < 0) {
fprintf(stderr, "Error initializing telnet\n");