<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11904">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rsl: Avoid sending ipa PDCH DEACT NACK followed by ACK<br><br>It was spotted during osmo-gsm-tester test<br>dynts:trx-sysmocell5000+mod-bts0-dynts67-ipa+cfg-codec-fr-any that<br>osmo-bts-trx was answering to PDCH DEACT from BSC first with a NACK<br>followed immediatelly after by an ACK. That happens after the test does<br>a GPRS pdp ctx act successfuly and then deactivates the ctx and the 2 MS<br>try to place a call between them (and thus channels need to be moved to<br>TCH/F).<br><br>Most probably the if condition where the lines for this commit are<br>modified need to be fine-grained. Patch before this one should help to<br>understand the steates/situation in this scenario, and then a follow-up<br>patch can be created to improve the logic.<br><br>Change-Id: I91c65da6b6b7094f32187d3b083153a87c3219fd<br>---<br>M src/common/rsl.c<br>1 file changed, 1 insertion(+), 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/04/11904/1</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 d4bd2f0..b4cea2c 100644</span><br><span>--- a/src/common/rsl.c</span><br><span>+++ b/src/common/rsl.c</span><br><span>@@ -2200,11 +2200,10 @@</span><br><span>         }</span><br><span> </span><br><span>        if (lchan->state != LCHAN_S_NONE) {</span><br><span style="color: hsl(0, 100%, 40%);">-          LOGP(DRSL, LOGL_ERROR,</span><br><span style="color: hsl(120, 100%, 40%);">+                LOGP(DRSL, LOGL_NOTICE,</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(0, 100%, 40%);">-         rsl_tx_dyn_pdch_nack(lchan, pdch_act, RSL_ERR_NORMAL_UNSPEC);</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/11904">change 11904</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/11904"/><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: I91c65da6b6b7094f32187d3b083153a87c3219fd </div>
<div style="display:none"> Gerrit-Change-Number: 11904 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>