aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-07-31 12:06:30 +0200
committerHarald Welte <laforge@gnumonks.org>2019-07-31 12:10:39 +0200
commite8e864b2191a025a1f7cf1826e0dd9ac79857c51 (patch)
treeb68e510ce2aa2c116c6745dc9d6ca685c1b0f3ac
parent89f06e6c5447e0a1f1988504fd030237906defb5 (diff)
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
-rw-r--r--src/osmo-bts-trx/loops.c3
1 files changed, 3 insertions, 0 deletions
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);