<p>Pau Espin Pedrol <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/11789">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc<br><br>ARFCNs are values in well defined ranges. Until this patch, ARFCNs not<br>belonging to any band were blindly assigned to DCS1800 by<br>gsm_arfcn2band, causing unnoticed bugs and misconfigurations in<br>osmo-bsc.<br><br>Previous API gsm_arfcn2band cannot accomodate this kind of check easily,<br>so let's deprecate it to tell people to use a new API gsm_arfcn2band_rc<br>which performs this kind of checks and allows callers to log failures,<br>misconfigurations, etc.<br>At the same time, modify implementation of gsm_arfcn2band to abort if an<br>invalid ARFCN is passed, this way users of this API can notice they are<br>passing wrong data to it that most probably will produce unexpected<br>results.<br><br>Related: OS#3063<br>Change-Id: I780d452dcebce385469e32ef2fd844df6033393a<br>---<br>M include/osmocom/gsm/gsm_utils.h<br>M src/gsm/gsm_utils.c<br>M src/gsm/libosmogsm.map<br>M utils/osmo-arfcn.c<br>4 files changed, 58 insertions(+), 25 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/89/11789/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/11789">change 11789</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11789"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I780d452dcebce385469e32ef2fd844df6033393a </div>
<div style="display:none"> Gerrit-Change-Number: 11789 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Max <msuraev@sysmocom.de> </div>