diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-07-31 12:06:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-07-31 12:10:39 +0200 |
commit | e8e864b2191a025a1f7cf1826e0dd9ac79857c51 (patch) | |
tree | b68e510ce2aa2c116c6745dc9d6ca685c1b0f3ac /src/osmo-bts-trx/loops.c | |
parent | 89f06e6c5447e0a1f1988504fd030237906defb5 (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
Diffstat (limited to 'src/osmo-bts-trx/loops.c')
-rw-r--r-- | src/osmo-bts-trx/loops.c | 3 |
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); |