aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-05 00:44:40 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-08 02:05:27 +0100
commite8f857453df56a40be61b17aafc509047e141174 (patch)
tree334ceee99829b6af573d3750df195738b55d250d /src/common/bts.c
parent4a0a6fd014e1ce1886fb88e7e37d67ca252b63b2 (diff)
power_control: migrate MS/BS control loops to the new params
In change [1] the new power control structures and default params were introduced. In change [2], the existing VTY commands for MS power control in the BTS were deprecated and changed to use the new structures as storage. Finally, in change [3], handling of the power control parameters on the A-bis/RSL was implemented. This change is the final logical step in the mentioned chain: it makes both MS/BS power control loops use the new parameters, and removes the old structures. The actual implementation of both power control loops remains the same, however the expected output of some unit tests for the Downlink loop needs to be changed: - TC_fixed_mode: disabling dynamic power control becomes a separate step of the test script since the field 'fixed' is removed; - TC_rxlev_target: RxLev thresholds are printed 'as-is'. Not all of the new parameters are used by the power control loops yet. Further improvements to be done in the follow up commits. [1] I6d41eb238aa6d4f5b77596c5477c2ecbe86de2a8 [2] Icbd9a7d31ce6723294130a31a179a002fccb4612 [3] I5a901eca5a78a0335a6954064e602e65cda85390 Change-Id: Ib18f84c40227841d95a36063a6789bf63054fc2e Related: SYS#4918
Diffstat (limited to 'src/common/bts.c')
-rw-r--r--src/common/bts.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index de079577..06a5ccb2 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -330,22 +330,6 @@ int bts_init(struct gsm_bts *bts)
bts->rtp_port_range_next = bts->rtp_port_range_start;
bts->rtp_ip_dscp = -1;
- /* Default UL/DL power control parameters (legacy) */
- bts->ul_power_ctrl = bts->dl_power_ctrl = \
- (struct bts_power_ctrl_params) {
- .target_dbm = -75,
- .hysteresis_db = 3, /* -78 .. -72 dBm */
- .raise_step_max_db = PWR_RAISE_MAX_DB,
- .lower_step_max_db = PWR_LOWER_MAX_DB,
- .pf_algo = BTS_PF_ALGO_EWMA,
- .pf = {
- .ewma = {
- /* 50% smoothing */
- .alpha = 50
- }
- }
- };
-
/* Default (fall-back) MS/BS Power control parameters */
bts->bs_dpc_params = power_ctrl_params_def;
bts->ms_dpc_params = power_ctrl_params_def;