<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/19519">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">oml: fix ARFCN range check in oml_rx_set_radio_attr()<br><br>Change-Id: I11c8203dfe26175632974e5c6859eeaea962e878<br>---<br>M src/common/oml.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/19/19519/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/oml.c b/src/common/oml.c</span><br><span>index 39304f1..34d1a5c 100644</span><br><span>--- a/src/common/oml.c</span><br><span>+++ b/src/common/oml.c</span><br><span>@@ -775,7 +775,7 @@</span><br><span>          memcpy(&_value, value, 2);</span><br><span>               arfcn = ntohs(_value);</span><br><span>               value += 2;</span><br><span style="color: hsl(0, 100%, 40%);">-             if (arfcn > 1024) {</span><br><span style="color: hsl(120, 100%, 40%);">+                if (arfcn >= 1024) { /* 0 .. 1023 (1024 channels total) */</span><br><span>                        oml_tx_failure_event_rep(&trx->bts->mo, NM_SEVER_MAJOR, OSMO_EVT_WARN_SW_WARN,</span><br><span>                                              "Given ARFCN %u is unsupported", arfcn);</span><br><span>                  LOGPFOH(DOML, LOGL_NOTICE, foh, "Given ARFCN %u is unsupported.\n", arfcn);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/19519">change 19519</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/c/osmo-bts/+/19519"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I11c8203dfe26175632974e5c6859eeaea962e878 </div>
<div style="display:none"> Gerrit-Change-Number: 19519 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>