diff options
Diffstat (limited to 'src/common/measurement.c')
-rw-r--r-- | src/common/measurement.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c index 3e0daf19..ddc17474 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -10,6 +10,7 @@ #include <osmo-bts/measurement.h> #include <osmo-bts/scheduler.h> #include <osmo-bts/rsl.h> +#include <osmo-bts/ta_control.h> /* Tables as per TS 45.008 Section 8.3 */ static const uint8_t ts45008_83_tch_f[] = { 52, 53, 54, 55, 56, 57, 58, 59 }; @@ -696,6 +697,11 @@ int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn) lchan_meas_compute_extended(lchan); + /* Compute new ta_req value. This has to be done here since the value + * in lchan->meas.num_ul_meas together with lchan->meas.ms_toa256 + * is needed for the computation. */ + lchan_ms_ta_ctrl(lchan); + lchan->meas.num_ul_meas = 0; /* return 1 to indicate that the computation has been done and the next |