diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-13 13:17:20 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-14 16:36:00 +0100 |
commit | e717aec2f733ef32608734a771b80d453654f9a0 (patch) | |
tree | 76815e8a2e8f0799dd26fde0c64b279eb947ef0f /src/osmo-bts-trx/loops.c | |
parent | 869091011c01098e0da995c5d68f5a5fbd6c1cbd (diff) |
Move and rename gsm_lchan.ms_power field
Make it clear that it contains the maximum MS power level (TS 05.05) and
not the one to be used. The one aimed at is in ms_power_ctrl.current.
Since it's used in related code, move it inside the ms_power_ctrl struct
too.
Related: OS#1851
Change-Id: Ib264ec7dac87355cef6415461ed74bd8e9c8ca52
Diffstat (limited to 'src/osmo-bts-trx/loops.c')
-rw-r--r-- | src/osmo-bts-trx/loops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/loops.c b/src/osmo-bts-trx/loops.c index b2b163a1..4b723a01 100644 --- a/src/osmo-bts-trx/loops.c +++ b/src/osmo-bts-trx/loops.c @@ -62,11 +62,11 @@ static void ms_power_diff(struct gsm_lchan *lchan, int8_t diff) lchan->ms_power_ctrl.current, gsm_band_name(band)); return; } - bsc_max_dbm = ms_pwr_dbm(band, lchan->ms_power); + bsc_max_dbm = ms_pwr_dbm(band, lchan->ms_power_ctrl.max); if (bsc_max_dbm < 0) { LOGPLCHAN(lchan, DLOOP, LOGL_NOTICE, "Failed to calculate dBm for power ctl level %" PRIu8 " on band %s\n", - lchan->ms_power, gsm_band_name(band)); + lchan->ms_power_ctrl.max, gsm_band_name(band)); return; } |