libosmocore/include/osmocom
Pau Espin c8772517d9 gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc
ARFCNs are values in well defined ranges. Until this patch, ARFCNs not
belonging to any band were blindly assigned to DCS1800 by
gsm_arfcn2band, causing unnoticed bugs and misconfigurations in
osmo-bsc.

Previous API gsm_arfcn2band cannot accomodate this kind of check easily,
so let's deprecate it to tell people to use a new API gsm_arfcn2band_rc
which performs this kind of checks and allows callers to log failures,
misconfigurations, etc.
At the same time, modify implementation of gsm_arfcn2band to abort if an
invalid ARFCN is passed, this way users of this API can notice they are
passing wrong data to it that most probably will produce unexpected
results.

Related: OS#3063
Change-Id: I780d452dcebce385469e32ef2fd844df6033393a
2018-11-20 16:56:28 +00:00
..
codec libosmocodec: implement ECU (Error Concealment Unit) for FR 2018-01-15 20:12:03 +00:00
coding coding: Add BER-reporting RACH decode functions 2018-02-26 12:26:38 +01:00
core Move msgb_push helpers to public header 2018-11-19 05:47:25 +00:00
crypt add osmo_auth_c3() (separate from gsm_milenage()) 2017-12-18 23:05:24 +00:00
ctrl ctrl: Introduce ctrl_cmd_parse3 API 2018-07-16 17:56:25 +00:00
gprs bssgp: introduce flush queue functions 2018-08-10 06:55:43 +00:00
gsm gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc 2018-11-20 16:56:28 +00:00
sim doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
vty vty/command.h: document and prettify CMD_ATTR_* flags 2018-09-24 13:02:07 +07:00