libosmocore/utils
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
..
Makefile.am Add new osmo-config-merge utility 2018-09-25 20:05:02 +02:00
conv_codes_gsm.py Don't enforce Python 2 for utilities 2018-07-02 20:30:31 +07:00
conv_gen.py Don't enforce Python 2 for utilities 2018-07-02 20:30:31 +07:00
gen_website_doc_tree.sh add script to generate http://www.osmocom.org/doc tree structure 2011-08-20 17:40:08 +02:00
osmo-arfcn.c gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc 2018-11-20 16:56:28 +00:00
osmo-auc-gen.c utils: Fix false positive in compiler warning 2017-11-16 16:16:08 +00:00
osmo-config-merge.c osmo-config-merge: fclose() what we fopen() 2018-10-21 10:58:33 +02:00
osmo-sim-test.c cosmetic: osmo-sim-test.c: use memcpy instead of strncpy 2018-07-27 18:15:44 +00:00