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
This commit is contained in:
parent
59e147e7ad
commit
ea35b26b35
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue