<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12180">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Neels Hofmeyr: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rsl: Send PDCH ACT NACK if TCH chan is still active<br><br>Fix recent commit which broke TTCN3 BTS_tests<br>TC_dyn_ipa_pdch_tchf_act_pdch_act_nack.<br><br>Prior to the breaking commit, logic was still not good, because<br>1- It didn't return after sending the NACK<br>2- It sent a NACK in all cases, while for PDCH DEACT we want to force<br>its deactivation. Going through tests it can be seen that indeed it<br>can deactivate it in that case:<br>rsl.c:2206 (bts=0,trx=0,ts=3,pchan=TCH/F_PDCH as PDCH) Request to PDCH DEACT, but lchan is still in state ACTIVE<br>...<br>rsl.c:2103 (bts=0,trx=0,ts=3,ss=0) Tx PDCH DEACT ACK<br><br>Fixes: 133a3d96dc07ebda4dfc7899dab9c0d0c80c9fea ("rsl: Avoid sending ipa PDCH DEACT NACK followed by ACK")<br>Change-Id: I6d6d12aec10c801fe55012ca6e58d0bc8755b15d<br>---<br>M src/common/rsl.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/rsl.c b/src/common/rsl.c</span><br><span>index 507e8aa..61bf6a1 100644</span><br><span>--- a/src/common/rsl.c</span><br><span>+++ b/src/common/rsl.c</span><br><span>@@ -2204,6 +2204,12 @@</span><br><span>                 "%s Request to PDCH %s, but lchan is still in state %s\n",</span><br><span>                 gsm_ts_and_pchan_name(ts), pdch_act? "ACT" : "DEACT",</span><br><span>                    gsm_lchans_name(lchan->state));</span><br><span style="color: hsl(120, 100%, 40%);">+               /* TCH takes preference over PDCH so allow forcing PDCH DEACT,</span><br><span style="color: hsl(120, 100%, 40%);">+                 * but forbid forcing PDCH ACT if lchan still active */</span><br><span style="color: hsl(120, 100%, 40%);">+               if (pdch_act) {</span><br><span style="color: hsl(120, 100%, 40%);">+                       rsl_tx_dyn_pdch_nack(lchan, pdch_act, RSL_ERR_NORMAL_UNSPEC);</span><br><span style="color: hsl(120, 100%, 40%);">+                 return;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span>    }</span><br><span> </span><br><span>        ts->flags |= pdch_act? TS_F_PDCH_ACT_PENDING</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12180">change 12180</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/12180"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6d6d12aec10c801fe55012ca6e58d0bc8755b15d </div>
<div style="display:none"> Gerrit-Change-Number: 12180 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Assignee: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>