<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11164">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sysmo, virtual: properly handle BS-AG-BLKS-RES as received from BSC<br><br>Change-Id: Ifd9a3be6189b3288526e12260d68a982b089404e<br>---<br>M src/osmo-bts-sysmo/l1_if.c<br>M src/osmo-bts-virtual/scheduler_virtbts.c<br>2 files changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/64/11164/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c</span><br><span>index 247c371..f682ffd 100644</span><br><span>--- a/src/osmo-bts-sysmo/l1_if.c</span><br><span>+++ b/src/osmo-bts-sysmo/l1_if.c</span><br><span>@@ -386,7 +386,7 @@</span><br><span>           /* The sapi depends on DSP configuration, not</span><br><span>                 * on the actual SYSTEM INFORMATION 3. */</span><br><span>            u8BlockNbr = l1sap_fn2ccch_block(u32Fn);</span><br><span style="color: hsl(0, 100%, 40%);">-                if (u8BlockNbr >= 1)</span><br><span style="color: hsl(120, 100%, 40%);">+               if (u8BlockNbr >= num_agch(trx, "PH-DATA-REQ"))</span><br><span>                         sapi = GsmL1_Sapi_Pch;</span><br><span>               else</span><br><span>                         sapi = GsmL1_Sapi_Agch;</span><br><span>diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c</span><br><span>index 997ccbc..2248afc 100644</span><br><span>--- a/src/osmo-bts-virtual/scheduler_virtbts.c</span><br><span>+++ b/src/osmo-bts-virtual/scheduler_virtbts.c</span><br><span>@@ -79,7 +79,8 @@</span><br><span>     timeslot = tn;</span><br><span>       /* in Osmocom, AGCH is only sent on ccch block 0. no idea why. this seems to cause false GSMTAP channel</span><br><span>       * types for agch and pch. */</span><br><span style="color: hsl(0, 100%, 40%);">-   if (rsl_chantype == RSL_CHAN_PCH_AGCH && l1sap_fn2ccch_block(fn) == 0)</span><br><span style="color: hsl(120, 100%, 40%);">+        if (rsl_chantype == RSL_CHAN_PCH_AGCH &&</span><br><span style="color: hsl(120, 100%, 40%);">+          l1sap_fn2ccch_block(fn) >= num_agch(l1t->trx, "PH-DATA-REQ"))</span><br><span>            gsmtap_chantype = GSMTAP_CHANNEL_PCH;</span><br><span>        else</span><br><span>                 gsmtap_chantype = chantype_rsl2gsmtap(rsl_chantype, chdesc->link_id); /* the logical channel type */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11164">change 11164</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/11164"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ifd9a3be6189b3288526e12260d68a982b089404e </div>
<div style="display:none"> Gerrit-Change-Number: 11164 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>