aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-07 18:32:23 +0600
committerfixeria <vyanitskiy@sysmocom.de>2021-10-08 10:48:51 +0000
commite73516ed00fb3ba34de3dc363c885125585e3381 (patch)
treebee237218de8693a0c76fe85b6f11b2fe38b7af3 /include/osmo-bts
parent7726d2332713023a1e7b58bd5837e20160b029df (diff)
rsl_tx_rf_res(): separate interference AVG / band calculation
It's cleaner from the architectural point of view to have the interference measurements processed in a separate function. Change-Id: I3981608e01a50585359cad673c38c8a305027d30 Related: SYS#5313
Diffstat (limited to 'include/osmo-bts')
-rw-r--r--include/osmo-bts/lchan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmo-bts/lchan.h b/include/osmo-bts/lchan.h
index fdb3144c..8fcf36aa 100644
--- a/include/osmo-bts/lchan.h
+++ b/include/osmo-bts/lchan.h
@@ -226,8 +226,10 @@ struct gsm_lchan {
uint16_t toa256_std_dev;
} ext;
/* Interference levels reported by PHY (in dBm) */
+ int16_t interf_meas_avg_dbm; /* Average value */
int16_t interf_meas_dbm[31]; /* Intave max is 31 */
uint8_t interf_meas_num;
+ uint8_t interf_band;
} meas;
struct {
struct amr_multirate_conf amr_mr;
@@ -341,7 +343,7 @@ uint8_t gsm_lchan_as_pchan2chan_nr(const struct gsm_lchan *lchan,
enum gsm_phys_chan_config as_pchan);
void gsm_lchan_interf_meas_push(struct gsm_lchan *lchan, int dbm);
-int gsm_lchan_interf_meas_calc_band(struct gsm_lchan *lchan);
+void gsm_lchan_interf_meas_calc_avg(struct gsm_lchan *lchan);
int lchan2ecu_codec(const struct gsm_lchan *lchan);