diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-31 15:38:30 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-04 12:41:22 +0100 |
commit | e40b9637ea9f166ed4e574550c05b429b1099e39 (patch) | |
tree | ea3bd9fed285136335be910d7102c777c409ab3c /src | |
parent | 2272a03a3705aaae1f95796895220258eb08f6ba (diff) |
gsm: gsm_utils: Fix return type of API ms_class_gmsk_dbm() and add unit tests
Only known user of API is in osmocom-bb and it compiles fine after the
change.
Related: OS#4244
Change-Id: Ia10345008b3aca50b30482ef3b852b03eca71995
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/gsm_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index 365920fa..ae77a9dc 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -501,8 +501,8 @@ size_t gsm0858_rsl_ul_meas_enc(struct gsm_meas_rep_unidir *mru, bool dtxd_used, /*! Convert power class to dBm according to GSM TS 05.05 * \param[in] band GSM frequency band * \param[in] class GSM power class - * \returns maximum transmit power of power class in dBm */ -unsigned int ms_class_gmsk_dbm(enum gsm_band band, int class) + * \returns maximum transmit power of power class in dBm, negative on error */ +int ms_class_gmsk_dbm(enum gsm_band band, int class) { switch (band) { case GSM_BAND_450: |