<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20936">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf_dl: Don't fake EGPRS MS class when no related info is available<br><br>For instance if PCU received DL data to be sent to an MS from an SGSN,<br>and the MS is not currently cached in the PCU (because there's no TBF<br>active for it), it will page it and transmit the DL data to it.<br>The SGSN is capable of sending (EGPRS) MS Class information in that same<br>DL data message, so it's the one responsible for providing that<br>information if not available at the PCU.<br>In the PCU if we don't have information about that MS and SGSN didn't<br>provide us information about it, we cannot assume the MS is going to be<br>EGPRS capable and even less expecting a specific EGPRS MS class.<br>So let's drop this code.<br><br>Change-Id: Icce66cadb51af25ae0c3b3719940eccb548fe33b<br>---<br>M src/tbf_dl.cpp<br>1 file changed, 0 insertions(+), 9 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/36/20936/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp</span><br><span>index 7d1f85c..0f30929 100644</span><br><span>--- a/src/tbf_dl.cpp</span><br><span>+++ b/src/tbf_dl.cpp</span><br><span>@@ -136,15 +136,6 @@</span><br><span> </span><br><span>     OSMO_ASSERT(ms != NULL);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    if (ms->egprs_ms_class() == 0 && bts->egprs_enabled) {</span><br><span style="color: hsl(0, 100%, 40%);">-            if (ms->ms_class() > 0) {</span><br><span style="color: hsl(0, 100%, 40%);">-                 LOGP(DTBF, LOGL_NOTICE, "Not accepting non-EGPRS phone in EGPRS-only mode\n");</span><br><span style="color: hsl(0, 100%, 40%);">-                        bts->bts->do_rate_ctr_inc(CTR_TBF_FAILED_EGPRS_ONLY);</span><br><span style="color: hsl(0, 100%, 40%);">-                     return NULL;</span><br><span style="color: hsl(0, 100%, 40%);">-            }</span><br><span style="color: hsl(0, 100%, 40%);">-               ms->set_egprs_ms_class(1);</span><br><span style="color: hsl(0, 100%, 40%);">-   }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    LOGP(DTBF, LOGL_DEBUG, "********** DL-TBF starts here **********\n");</span><br><span>      LOGP(DTBF, LOGL_INFO, "Allocating DL TBF: MS_CLASS=%d/%d\n",</span><br><span>            ms->ms_class(), ms->egprs_ms_class());</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20936">change 20936</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/+/20936"/><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: Icce66cadb51af25ae0c3b3719940eccb548fe33b </div>
<div style="display:none"> Gerrit-Change-Number: 20936 </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>