diff options
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c')
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c index b4091e91..12961e3f 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c @@ -335,6 +335,20 @@ int sbts2050_uc_set_pa_power(int on_off) return sbts2050_uc_set_power(status.master_enabled, status.slave_enabled, on_off); } + +int sbts2050_uc_set_slave_power(int on_off) +{ + struct sbts2050_power_status status; + if (sbts2050_uc_get_status(&status) != 0) { + LOGP(DTEMP, LOGL_ERROR, "Failed to read current power status.\n"); + return -1; + } + + return sbts2050_uc_set_power( + status.master_enabled, + on_off, + status.pa_enabled); +} #else void sbts2050_uc_initialize(void) { @@ -361,4 +375,10 @@ int sbts2050_uc_set_pa_power(int on_off) return -1; } +int sbts2050_uc_set_slave_power(int on_off) +{ + LOGP(DTEMP, LOGL_ERROR, "sysmoBTS2050 compiled without UC support.\n"); + return -1; +} + #endif |