aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-25 13:52:44 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-06-25 14:12:34 +0200
commita08685a5767d7d0e5f2f330899060c380286d671 (patch)
treec80d9cf869e07905ede0839fcf020d70fe150157
parentbbfc6e44ced0673a9c1cd0bd7bbf64973d56b833 (diff)
Fix shutdown in osmo-bts-{omldummy,virtual}
-rw-r--r--include/osmo-bts/bts_model.h1
-rw-r--r--src/osmo-bts-omldummy/bts_model.c2
-rw-r--r--src/osmo-bts-virtual/bts_model.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/include/osmo-bts/bts_model.h b/include/osmo-bts/bts_model.h
index f62291c8..4fd0813d 100644
--- a/include/osmo-bts/bts_model.h
+++ b/include/osmo-bts/bts_model.h
@@ -43,6 +43,7 @@ void bts_model_config_write_phy_inst(struct vty *vty, struct phy_instance *pinst
int bts_model_oml_estab(struct gsm_bts *bts);
+/* Implementation should call power_trx_change_compl() to confirm power change applied */
int bts_model_change_power(struct gsm_bts_trx *trx, int p_trxout_mdBm);
int bts_model_adjst_ms_pwr(struct gsm_lchan *lchan);
diff --git a/src/osmo-bts-omldummy/bts_model.c b/src/osmo-bts-omldummy/bts_model.c
index dc0e0417..c31354ff 100644
--- a/src/osmo-bts-omldummy/bts_model.c
+++ b/src/osmo-bts-omldummy/bts_model.c
@@ -158,7 +158,7 @@ int bts_model_trx_deact_rf(struct gsm_bts_trx *trx)
int bts_model_change_power(struct gsm_bts_trx *trx, int p_trxout_mdBm)
{
- LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);
+ power_trx_change_compl(trx, p_trxout_mdBm);
return 0;
}
diff --git a/src/osmo-bts-virtual/bts_model.c b/src/osmo-bts-virtual/bts_model.c
index 8209ce21..dfce81f6 100644
--- a/src/osmo-bts-virtual/bts_model.c
+++ b/src/osmo-bts-virtual/bts_model.c
@@ -175,6 +175,7 @@ int bts_model_trx_deact_rf(struct gsm_bts_trx *trx)
int bts_model_change_power(struct gsm_bts_trx *trx, int p_trxout_mdBm)
{
LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);
+ power_trx_change_compl(trx, p_trxout_mdBm);
return 0;
}