<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18130">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: Fix Decoding EGPRS MultislotClass from 11-bit EGPRS PACKET CHANNEL REQUEST<br><br>In osmo-pcu datatructures, the variables holding multislot classes<br>simply contain an integer referring to the multislot class number,<br>instead of coding from 3GPP TS 44.060 Table 11.2.5.3 and Table<br>11.2.5a.3.<br><br>So coding Multislot class 3 is stored as 0x03 in osmo-pcu variables,<br>while in 3GPP TS 44.060 coding it's coded as 0x02 (N-1).<br>This allows us using value 0x00 to designate a "yet unknown (EGPRS) Multislot<br>class".<br>Hence, we need to add 1 to the decoded value to match our data<br>structures.<br><br>Change-Id: Id3b121272bb7e84c0542ae9b4ce09598c6054edd<br>---<br>M src/bts.cpp<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-pcu refs/changes/30/18130/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/bts.cpp b/src/bts.cpp</span><br><span>index 8edde23..a43613e 100644</span><br><span>--- a/src/bts.cpp</span><br><span>+++ b/src/bts.cpp</span><br><span>@@ -676,7 +676,7 @@</span><br><span> static inline uint16_t egprs_mslot_class_from_ra(uint16_t ra, bool is_11bit)</span><br><span> {</span><br><span>  if (is_11bit)</span><br><span style="color: hsl(0, 100%, 40%);">-           return (ra & 0x3e0) >> 5;</span><br><span style="color: hsl(120, 100%, 40%);">+           return ((ra & 0x3e0) >> 5) + 1;</span><br><span> </span><br><span>        /* set EGPRS multislot class to 0 for 8-bit RACH, since we don't know it yet */</span><br><span>  return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18130">change 18130</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-pcu/+/18130"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id3b121272bb7e84c0542ae9b4ce09598c6054edd </div>
<div style="display:none"> Gerrit-Change-Number: 18130 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>