diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-11-27 15:07:55 +0100 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-12-04 09:27:48 +0100 |
commit | 0e24ace2f1a6986f2d494b5f9bf2d9c6a16825dd (patch) | |
tree | 84b4a5a9dce5ca2187e18ee7e722231a168a8508 /tests | |
parent | 9381576e1865e5b39d6a68aaf5f23f1d318ccf6c (diff) |
power_control: lchan_ul_pf_ewma(): do not use lchan->meas.res_nr
This would allow to pass only two pointers:
- 'struct bts_power_ctrl_params', and
- 'struct lchan_power_ctrl_state',
and get rid of 'struct gsm_lchan' dependency. The later is
exactly where all state variables are supposed to be kept.
Change-Id: Idfefca30f4944bc722b4e9d8f1685eb77670a9db
Related: SYS#4918
Diffstat (limited to 'tests')
-rw-r--r-- | tests/power/ms_power_loop_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/power/ms_power_loop_test.c b/tests/power/ms_power_loop_test.c index 1abe532e..147c725e 100644 --- a/tests/power/ms_power_loop_test.c +++ b/tests/power/ms_power_loop_test.c @@ -191,7 +191,7 @@ static void test_pf_algo_ewma(void) g_bts->ul_power_ctrl.pf.ewma.alpha = 70; /* 30% smoothing */ lchan->ms_power_ctrl.current = 15; - lchan->meas.res_nr = 0; + lchan->ms_power_ctrl.avg100_rxlev_dbm = 0; /* This is the first sample, the filter outputs it as-is */ apply_power_test(lchan, -50, 0, 15); |