<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11258">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">common/pcu_sock.c: cosmetic: explicitly address lchan<br><br>In the most cases a PDCH time-slot has only one logical channel<br>allocated. In case of both osmo-bts-trx and osmo-bts-virtual,<br>there are two kinds of logical channels: PDTCH and PTCCH,<br>but since they share the same chan_nr value, deactivating<br>one of them would trigger deactivation of another one.<br><br>Let's explicitly address the first logical channel in array.<br><br>Change-Id: I8edcb46e887c4db63a425eba89cec4374165763e<br>Closes: OS#3023<br>---<br>M src/common/pcu_sock.c<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-bts refs/changes/58/11258/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c</span><br><span>index 7f32f32..60e0f7a 100644</span><br><span>--- a/src/common/pcu_sock.c</span><br><span>+++ b/src/common/pcu_sock.c</span><br><span>@@ -738,9 +738,9 @@</span><br><span>                       ts = &trx->ts[j];</span><br><span>                     if (ts->mo.nm_state.operational == NM_OPSTATE_ENABLED</span><br><span>                      && ts->pchan == GSM_PCHAN_PDCH) {</span><br><span style="color: hsl(0, 100%, 40%);">-                           ts->lchan->rel_act_kind = LCHAN_REL_ACT_PCU;</span><br><span style="color: hsl(120, 100%, 40%);">+                            ts->lchan[0].rel_act_kind = LCHAN_REL_ACT_PCU;</span><br><span>                            l1sap_chan_rel(trx,</span><br><span style="color: hsl(0, 100%, 40%);">-                                     gsm_lchan2chan_nr(ts->lchan));</span><br><span style="color: hsl(120, 100%, 40%);">+                                     gsm_lchan2chan_nr(&ts->lchan[0]));</span><br><span>                    }</span><br><span>            }</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11258">change 11258</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/11258"/><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: I8edcb46e887c4db63a425eba89cec4374165763e </div>
<div style="display:none"> Gerrit-Change-Number: 11258 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>