From 5d25c81f81299790c6b4b388c3cebc208ed9b491 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 23 Sep 2021 06:43:03 +0200 Subject: Implement BSC MS Uplink Power Control Loop. This is a more or less a port of the power control Loop from osmo-bts Change-Id: Ibc307e758697eb5ca3fb86622f35709d6077db9e --- include/osmocom/bsc/gsm_data.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/osmocom/bsc/gsm_data.h') diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index b16614695..9369b5d9a 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -665,6 +665,19 @@ struct lchan_modify_info { #define INTERF_DBM_UNKNOWN 0 #define INTERF_BAND_UNKNOWN 0xff +/* Measurement pre-processing state */ +struct gsm_power_ctrl_meas_proc_state { + /* Number of measurements processed */ + unsigned int meas_num; + /* Algorithm specific data */ + union { + struct { + /* Scaled up 100 times average value */ + int Avg100; + } ewma; + }; +}; + struct gsm_lchan { /* The TS that we're part of */ struct gsm_bts_trx_ts *ts; @@ -808,6 +821,7 @@ struct gsm_lchan { /* Actual reported interference band index, or INTERF_BAND_UNKNOWN if this lchan was not included in the most * recent Resource Indication. */ uint8_t interf_band; + struct gsm_power_ctrl_meas_proc_state rxlev_meas_proc; }; /* One Timeslot in a TRX */ -- cgit v1.2.3