diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-11-22 14:55:13 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-11-22 15:30:46 +0700 |
commit | 70eb683622f92c273c196a36daa61abd5de63f89 (patch) | |
tree | 748937310c6458941e708a7ba453090cdd3ba16f /src/osmo-bts-sysmo | |
parent | 07af4e1751f9a190118213cd394da0cdcbcf3dab (diff) |
Fix deprecated gsm_arfcn2band(), use gsm_arfcn2band_rc()
Change-Id: I45aae70f4bc3f4f85d267dafb757debdef1bb7d7
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r-- | src/osmo-bts-sysmo/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c index 7d1aca70..0e3ef273 100644 --- a/src/osmo-bts-sysmo/utils.c +++ b/src/osmo-bts-sysmo/utils.c @@ -80,6 +80,7 @@ int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn) { enum gsm_band band; struct gsm_bts *bts = trx->bts; + int rc; if (!bts->auto_band) return band_osmo2femto(trx, bts->band); @@ -87,7 +88,9 @@ int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn) /* * We need to check what will happen now. */ - band = gsm_arfcn2band(arfcn); + rc = gsm_arfcn2band_rc(arfcn, &band); + if (rc) /* wrong ARFCN, give up */ + return -1; /* if we are already on the right band return */ if (band == bts->band) |