From 2f028c4e2c29f63df9926435466aa35377947767 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 19 Apr 2017 16:04:37 +0200 Subject: [PATCH] measurement: make lchan_meas_check_compute() available to l1sap.c lchan_meas_check_compute() is a static function measurement.c. In order to distribute the measurement result calculation events, we need to be able to call lchan_meas_check_compute() from l1sap.c Change-Id: Ideffe896613e0feda443bc13dac59dcdbbc605aa --- include/osmo-bts/measurement.h | 2 ++ src/common/measurement.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/osmo-bts/measurement.h b/include/osmo-bts/measurement.h index 2037ff6bd..2efe40f72 100644 --- a/include/osmo-bts/measurement.h +++ b/include/osmo-bts/measurement.h @@ -5,4 +5,6 @@ int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm); int trx_meas_check_compute(struct gsm_bts_trx *trx, uint32_t fn); +int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn); + #endif diff --git a/src/common/measurement.c b/src/common/measurement.c index 6b06138d9..260304afa 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -191,7 +191,7 @@ static uint8_t ber10k_to_rxqual(uint32_t ber10k) return 7; } -static int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn) +int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn) { struct gsm_meas_rep_unidir *mru; uint32_t ber_full_sum = 0;