aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2022-10-11 11:43:27 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-10-12 18:20:14 +0700
commitea35b26b35db8728fd56a31b565eaa232dd4834d (patch)
treec98dee61f00e81205d65c2d34c48f0b06a35a94a
parent59e147e7ad89561957f7d3a4c8bfcce721c514ed (diff)
rsl: use unsigned int
The parameter l3_len in rsl_tx_meas_res() is defined as int, even though it can't be negative. Lets use unsigned int for l3_len. Change-Id: I99068a36e74a557000f406154dce32300615086c
-rw-r--r--include/osmo-bts/rsl.h2
-rw-r--r--src/common/rsl.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/osmo-bts/rsl.h b/include/osmo-bts/rsl.h
index a5307341..7f31ea9a 100644
--- a/include/osmo-bts/rsl.h
+++ b/include/osmo-bts/rsl.h
@@ -30,6 +30,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, const uint8_t *l3, int l3_len, int timing_offset);
+int rsl_tx_meas_res(struct gsm_lchan *lchan, const uint8_t *l3, unsigned int l3_len, int timing_offset);
#endif // _RSL_H */
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 8aa9b78f..91af6cbf 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -3493,7 +3493,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, const uint8_t *l3, int l3_len, int timing_offset)
+int rsl_tx_meas_res(struct gsm_lchan *lchan, const uint8_t *l3, unsigned int l3_len, int timing_offset)
{
struct msgb *msg;
uint8_t meas_res[16];
@@ -3512,7 +3512,7 @@ int rsl_tx_meas_res(struct gsm_lchan *lchan, const uint8_t *l3, int l3_len, int
return -ENOMEM;
LOGPLCHAN(lchan, DRSL, LOGL_DEBUG,
- "Send Meas RES: NUM:%u, RXLEV_FULL:%u, RXLEV_SUB:%u, RXQUAL_FULL:%u, RXQUAL_SUB:%u, MS_PWR:%u, UL_TA:%u, L3_LEN:%d, TimingOff:%u\n",
+ "Send Meas RES: NUM:%u, RXLEV_FULL:%u, RXLEV_SUB:%u, RXQUAL_FULL:%u, RXQUAL_SUB:%u, MS_PWR:%u, UL_TA:%u, L3_LEN:%u, TimingOff:%u\n",
lchan->meas.res_nr,
lchan->meas.ul_res.full.rx_lev,
lchan->meas.ul_res.sub.rx_lev,