From e8e864b2191a025a1f7cf1826e0dd9ac79857c51 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 31 Jul 2019 12:06:30 +0200 Subject: osmo-bts-trx: Don't attemtp to adjust MS power if fixed If the BSC has instructed the BTS via RSL to not autonomously perform MS power control, we are storing this in lchan->ms_power_ctrl.fixed. However, osmo-bts-trx would simply ignore that flag in loops.c and continue to compute new MS power values based on measurement results. Change-Id: I628d1f4f1094c22248d372c11c2ecc504135b757 --- src/osmo-bts-trx/loops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osmo-bts-trx/loops.c b/src/osmo-bts-trx/loops.c index 380bac5f..3fa2b3b4 100644 --- a/src/osmo-bts-trx/loops.c +++ b/src/osmo-bts-trx/loops.c @@ -232,6 +232,9 @@ void trx_loop_sacch_clock(struct l1sched_trx *l1t, uint8_t chan_nr, .lchan[l1sap_chan2ss(chan_nr)]; struct phy_instance *pinst = trx_phy_instance(l1t->trx); + if (lchan->ms_power_ctrl.fixed) + return; + if (pinst->phy_link->u.osmotrx.trx_ms_power_loop) ms_power_clock(lchan, chan_state); -- cgit v1.2.3