diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-12-24 15:01:50 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-04 21:49:21 +0000 |
commit | 5f909b45c51e3a4c08a2c32e3bdc0d6b49ffdebd (patch) | |
tree | e8f7bb0e64ac91109b1ecbca058e5222827fcee9 /src/common/bts.c | |
parent | 20cbf7bc677037841e182552b52e3362a12e7ea5 (diff) |
power_control: check-in new parameters and default values
For the sake of simplicity, the old structures that are still used
by MS/BS power control loops are kept in place. Migration to the
new structures requires additional changes to the existing power
control logic, so it will be done in the follow-up changes.
The new parameters are integrated as follows:
+ struct gsm_bts - a BTS instance:
| Hard-coded default (fall-back) parameters for all transceivers.
|
+-+-> struct gsm_bts_trx - a TRX instance (transceiver):
| Default parameters for all logical channels inherited from
| 'struct gsm_bts' at start-up. May be overwritten by the
| BSC using ip.access specific 'Measurement Pre-processing
| Defaults' message on the A-bis/RSL interface.
|
+---> struct gsm_lchan - a logical channel (e.g. TCH or SDCCH):
Connection specific parameters inherited from 'struct
gsm_bts_trx'. May be overwritten by parameters sent
by the BSC in CHANnel ACTIVation and other messages.
Change-Id: I6d41eb238aa6d4f5b77596c5477c2ecbe86de2a8
Related: SYS#4918
Diffstat (limited to 'src/common/bts.c')
-rw-r--r-- | src/common/bts.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index ba244973..de079577 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -330,7 +330,7 @@ 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 */ + /* Default UL/DL power control parameters (legacy) */ bts->ul_power_ctrl = bts->dl_power_ctrl = \ (struct bts_power_ctrl_params) { .target_dbm = -75, @@ -346,6 +346,10 @@ int bts_init(struct gsm_bts *bts) } }; + /* Default (fall-back) MS/BS Power control parameters */ + bts->bs_dpc_params = power_ctrl_params_def; + bts->ms_dpc_params = power_ctrl_params_def; + /* configurable via OML */ bts->load.ccch.load_ind_period = 112; load_timer_start(bts); |