aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/tx_power.h
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2022-12-19 15:07:27 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2022-12-20 15:21:46 +0100
commit08f337abec8640e63ab6260fa28f5a792071408b (patch)
treed07f23db7d7ebc93c76549b1d59919235bd0536b /include/osmo-bts/tx_power.h
parentc8e2b021a9f41008c168cca4160102b58f00d842 (diff)
shutdown_fsm: Add power_ramp_force() to jump straight to the tgt powerdaniel/abis-timeout
Both power_ramp_start() and power_ramp_force() are now small macros around _power_ramp_start() The new behavior is: * ramp down power when stopping bts through Ctrl-C * the other shutdown causes skip power ramping This will cause the bts to reconnect faster when the oml link is dropped and power ramping is enabled. Change-Id: Ida1d7bbf094958b9142af306dbf84206729a609e Related: SYS#6237
Diffstat (limited to 'include/osmo-bts/tx_power.h')
-rw-r--r--include/osmo-bts/tx_power.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/osmo-bts/tx_power.h b/include/osmo-bts/tx_power.h
index a7f846e8..73134c8b 100644
--- a/include/osmo-bts/tx_power.h
+++ b/include/osmo-bts/tx_power.h
@@ -77,7 +77,12 @@ int get_p_trxout_target_mdBm_lchan(const struct gsm_lchan *lchan);
int get_p_trxout_actual_mdBm(const struct gsm_bts_trx *trx, uint8_t bs_power_red);
int get_p_trxout_actual_mdBm_lchan(const struct gsm_lchan *lchan);
-int power_ramp_start(struct gsm_bts_trx *trx, int p_total_tgt_mdBm, int bypass, ramp_compl_cb_t ramp_compl_cb);
+int _power_ramp_start(struct gsm_bts_trx *trx, int p_total_tgt_mdBm, int bypass_max_power, ramp_compl_cb_t ramp_compl_cb, bool skip_ramping);
+#define power_ramp_start(trx, p_total_tgt_mdBm, bypass_max_power, ramp_compl_cb) \
+ _power_ramp_start(trx, p_total_tgt_mdBm, bypass_max_power, ramp_compl_cb, false)
+#define power_ramp_force(trx, p_total_tgt_mdBm, bypass_max_power, ramp_compl_cb) \
+ _power_ramp_start(trx, p_total_tgt_mdBm, bypass_max_power, ramp_compl_cb, true)
+
void power_ramp_abort(struct gsm_bts_trx *trx);
void power_trx_change_compl(struct gsm_bts_trx *trx, int p_trxout_cur_mdBm);