<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18131">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: Return uint8_t in egprs_mslot_class_from_ra()<br><br>MultislotClass is 5 bit long, so an uint8_t is enough.<br>In most places we are already storing multislot class as uint8_t.<br><br>Change-Id: I1dcaff9d69379453a0b794e5f36b820f5f78531f<br>---<br>M src/bts.cpp<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/31/18131/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 a43613e..6578e06 100644</span><br><span>--- a/src/bts.cpp</span><br><span>+++ b/src/bts.cpp</span><br><span>@@ -673,7 +673,7 @@</span><br><span>  * can only receive EGPRS mslot class through 11-bit EGPRS PACKET CHANNEL</span><br><span>  * REQUEST.</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-static inline uint16_t egprs_mslot_class_from_ra(uint16_t ra, bool is_11bit)</span><br><span style="color: hsl(120, 100%, 40%);">+static inline uint8_t egprs_mslot_class_from_ra(uint16_t ra, bool is_11bit)</span><br><span> {</span><br><span>       if (is_11bit)</span><br><span>                return ((ra & 0x3e0) >> 5) + 1;</span><br><span>@@ -750,7 +750,7 @@</span><br><span>      int plen;</span><br><span>    uint8_t usf = 7;</span><br><span>     uint8_t tsc = 0, ta = qta2ta(qta);</span><br><span style="color: hsl(0, 100%, 40%);">-      uint16_t egprs_ms_class = egprs_mslot_class_from_ra(ra, is_11bit);</span><br><span style="color: hsl(120, 100%, 40%);">+    uint8_t egprs_ms_class = egprs_mslot_class_from_ra(ra, is_11bit);</span><br><span>    bool failure = false;</span><br><span> </span><br><span>    rach_frame();</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18131">change 18131</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/+/18131"/><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: I1dcaff9d69379453a0b794e5f36b820f5f78531f </div>
<div style="display:none"> Gerrit-Change-Number: 18131 </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>