From c693067b7e99a643da673cb3e2a36162cbd0f59c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 14 Nov 2019 16:27:25 +0100 Subject: Introduce BTS feature BTS_FEAT_MS_PWR_CTRL_DSP It indicates whether BTS model supports managing an MS Power Control Loop over HW/DSP instead of using the software based osmocom algorithm present in osmo-bts. osmo-bts-trx own loop implementation is considered to be a "DSP/HW" one since it acts on lower layers and interferes with osmocom algorithm since it controls the same end variable "lchan->ms_power_ctrl.current", this way we make sure both aren't enabled at the same time. Old behavior in kept: if common upper-layer algo is not enabled explicitly in VTY (ms-power-control osmo) and bts-trx specific lower layer algo is neither enabled (osmotrx ms-power-loop ), then no power control is done at all. Related: OS#1851 Change-Id: I49706926b1e962b18791174627bc3cc0cd0cd9d5 --- src/osmo-bts-oc2g/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/osmo-bts-oc2g') diff --git a/src/osmo-bts-oc2g/main.c b/src/osmo-bts-oc2g/main.c index cbf5c420..f9bb0cb1 100644 --- a/src/osmo-bts-oc2g/main.c +++ b/src/osmo-bts-oc2g/main.c @@ -120,6 +120,7 @@ int bts_model_init(struct gsm_bts *bts) gsm_bts_set_feature(bts, BTS_FEAT_SPEECH_F_EFR); gsm_bts_set_feature(bts, BTS_FEAT_SPEECH_F_AMR); gsm_bts_set_feature(bts, BTS_FEAT_SPEECH_H_AMR); + gsm_bts_set_feature(bts, BTS_FEAT_MS_PWR_CTRL_DSP); bts_model_vty_init(bts); -- cgit v1.2.3