diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-02-15 01:27:37 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-02-15 10:58:54 +0000 |
commit | d37041b1ea3cf382b6168daf7d8dbd5d7ad7615e (patch) | |
tree | bbc8f392cc7010816ca319be8d33e276de616b9d /include | |
parent | 7d29ff9345e2bae58fe99d7442848253e6312de7 (diff) |
ta_control: make 'struct bts_ul_meas' parameters const
The only reason why it was not 'const' is that in lchan_new_ul_meas()
we may need to overwrite 'ulm->is_sub'. This can still be done after
memcpy()ing a new set of samples to the destination buffer.
Change-Id: I0cabf75f8e0bf793c01225a4a8433e994c93f562
Related: OS#5024
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/measurement.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/osmo-bts/measurement.h b/include/osmo-bts/measurement.h index 8e91c334..45f275f1 100644 --- a/include/osmo-bts/measurement.h +++ b/include/osmo-bts/measurement.h @@ -4,11 +4,15 @@ #define MEAS_MAX_TIMING_ADVANCE 63 #define MEAS_MIN_TIMING_ADVANCE 0 -int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm, uint32_t fn); +int lchan_new_ul_meas(struct gsm_lchan *lchan, + const struct bts_ul_meas *ulm, + uint32_t fn); int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn); -int lchan_meas_process_measurement(struct gsm_lchan *lchan, struct bts_ul_meas *ulm, uint32_t fn); +int lchan_meas_process_measurement(struct gsm_lchan *lchan, + const struct bts_ul_meas *ulm, + uint32_t fn); void lchan_meas_reset(struct gsm_lchan *lchan); |