diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-22 01:28:46 +0300 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-22 01:32:27 +0300 |
commit | 26417d45749ca95d987c83b4104923844f268af2 (patch) | |
tree | bf0b8eff66b506d8bea5799c6154e91aed2225fa | |
parent | ae606d69a46a59cab1415502ffee24020bce515b (diff) |
rsl: rsl_tx_meas_res() does not change l3, make it const
Change-Id: Ie60a34f90f7872464e503dc7b56935aee95f0f80
-rw-r--r-- | include/osmo-bts/rsl.h | 2 | ||||
-rw-r--r-- | src/common/rsl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmo-bts/rsl.h b/include/osmo-bts/rsl.h index 9d5ec315..dcd476c5 100644 --- a/include/osmo-bts/rsl.h +++ b/include/osmo-bts/rsl.h @@ -32,6 +32,6 @@ void ipacc_dyn_pdch_complete(struct gsm_bts_trx_ts *ts, int rc); int rsl_tx_cbch_load_indication(struct gsm_bts *bts, bool ext_cbch, bool overflow, uint8_t amount); -int rsl_tx_meas_res(struct gsm_lchan *lchan, uint8_t *l3, int l3_len, int timing_offset); +int rsl_tx_meas_res(struct gsm_lchan *lchan, const uint8_t *l3, int l3_len, int timing_offset); #endif // _RSL_H */ diff --git a/src/common/rsl.c b/src/common/rsl.c index 145cc8a9..d14395b8 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -3464,7 +3464,7 @@ struct osmo_bts_supp_meas_info { } __attribute__((packed)); /* Compose and send 8.4.8 MEASUREMENT RESult via RSL. (timing_offset=-1 -> not present) */ -int rsl_tx_meas_res(struct gsm_lchan *lchan, uint8_t *l3, int l3_len, int timing_offset) +int rsl_tx_meas_res(struct gsm_lchan *lchan, const uint8_t *l3, int l3_len, int timing_offset) { struct msgb *msg; uint8_t meas_res[16]; |