From 9feddb7edfc95b6864e5f594211bd94d54d4ab46 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 20 Aug 2018 10:54:15 +0200 Subject: measurement: make sure state is reset on chan act. At the moment only lchan_meas_reset is reset on channel activation. All other states are not reset. This may lead to irretations in the first measurement interval if there are still leftover messages from a previous connection. Lets ensure everything is reset to zero by zeroing out the whole .meas struct in struct lchan. - Add a centralized function that does the reset - Call that function from rsl_tx_chan_act_ack() in rsl.c Change-Id: I880ae3030df6dcd60c32b7144c3430528429bdea Related: OS#2975 Related: OS#2987 --- include/osmo-bts/measurement.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/measurement.h b/include/osmo-bts/measurement.h index 283b0ffc..d98e9f0b 100644 --- a/include/osmo-bts/measurement.h +++ b/include/osmo-bts/measurement.h @@ -10,4 +10,6 @@ int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn); void lchan_meas_process_measurement(struct gsm_lchan *lchan, struct bts_ul_meas *ulm, uint32_t fn); +void lchan_meas_reset(struct gsm_lchan *lchan); + #endif -- cgit v1.2.3