<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/19520">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">oml: fix ARFCN range check in oml_rx_set_bts_attr()<br><br>Change-Id: I52c15de3c59cd654207599ae410a4c1fed48ee58<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/20/19520/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 34d1a5c..78d9c65 100644</span><br><span>--- a/src/common/oml.c</span><br><span>+++ b/src/common/oml.c</span><br><span>@@ -552,7 +552,7 @@</span><br><span>    /* Test for globally unsupported stuff here */</span><br><span>       if (TLVP_PRES_LEN(&tp, NM_ATT_BCCH_ARFCN, 2)) {</span><br><span>          uint16_t arfcn = ntohs(tlvp_val16_unal(&tp, NM_ATT_BCCH_ARFCN));</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(&bts->mo, NM_SEVER_MAJOR, OSMO_EVT_WARN_SW_WARN,</span><br><span>                                              "Given ARFCN %u is not supported",</span><br><span>                                                 arfcn);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/19520">change 19520</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/+/19520"/><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: I52c15de3c59cd654207599ae410a4c1fed48ee58 </div>
<div style="display:none"> Gerrit-Change-Number: 19520 </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>