<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24568">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trx_sched_is_sacch_fn(): fix handling of dynamic timeslots<br><br>There is no GSM_PCHAN_TCH_F{_TCH_H}_PDCH in trx_sched_multiframes[],<br>so find_sched_mframe_idx() would always return -1 for these.  Fix<br>this by using ts_pchan(), which returns currently active pchan type.<br><br>Change-Id: Ia5e337e897b595e7de6e504664c969b583cc02a1<br>---<br>M src/common/scheduler_mframe.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/68/24568/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/scheduler_mframe.c b/src/common/scheduler_mframe.c</span><br><span>index b969407..f6476ec 100644</span><br><span>--- a/src/common/scheduler_mframe.c</span><br><span>+++ b/src/common/scheduler_mframe.c</span><br><span>@@ -1007,7 +1007,7 @@</span><br><span>         const struct trx_sched_frame *frame;</span><br><span>         enum trx_chan_type ch_type;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- i = find_sched_mframe_idx(ts->pchan, ts->nr);</span><br><span style="color: hsl(120, 100%, 40%);">+   i = find_sched_mframe_idx(ts_pchan(ts), ts->nr);</span><br><span>  if (i < 0)</span><br><span>                return -EINVAL;</span><br><span>      sched = &trx_sched_multiframes[i];</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/24568">change 24568</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/+/24568"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: 2021q1 </div>
<div style="display:none"> Gerrit-Change-Id: Ia5e337e897b595e7de6e504664c969b583cc02a1 </div>
<div style="display:none"> Gerrit-Change-Number: 24568 </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>