<p>Pau Espin Pedrol <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12050">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: ts_is_pchan_switching: Return correct IPA dyn TS target_pchan<br><br>Change-Id: Ie438b4efaa9832c44009a92c3df698875f1fa9ae<br>---<br>M src/osmo-bsc/timeslot_fsm.c<br>1 file changed, 15 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c</span><br><span>index 269fcd5..d784289 100644</span><br><span>--- a/src/osmo-bsc/timeslot_fsm.c</span><br><span>+++ b/src/osmo-bsc/timeslot_fsm.c</span><br><span>@@ -896,8 +896,21 @@</span><br><span>    case TS_ST_WAIT_PDCH_DEACT:</span><br><span>          /* If lchan started a PDCH deact but got somehow released while</span><br><span>               * waiting for PDCH DEACT (N)ACK */</span><br><span style="color: hsl(0, 100%, 40%);">-             if (target_pchan)</span><br><span style="color: hsl(0, 100%, 40%);">-                       *target_pchan = GSM_PCHAN_NONE;</span><br><span style="color: hsl(120, 100%, 40%);">+               if (target_pchan) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   switch (ts->pchan_on_init) {</span><br><span style="color: hsl(120, 100%, 40%);">+                       case GSM_PCHAN_TCH_F_TCH_H_PDCH:</span><br><span style="color: hsl(120, 100%, 40%);">+                              if (target_pchan)</span><br><span style="color: hsl(120, 100%, 40%);">+                                     *target_pchan = GSM_PCHAN_NONE;</span><br><span style="color: hsl(120, 100%, 40%);">+                               break;</span><br><span style="color: hsl(120, 100%, 40%);">+                        case GSM_PCHAN_TCH_F_PDCH:</span><br><span style="color: hsl(120, 100%, 40%);">+                            if (target_pchan)</span><br><span style="color: hsl(120, 100%, 40%);">+                                     *target_pchan = GSM_PCHAN_TCH_F;</span><br><span style="color: hsl(120, 100%, 40%);">+                              break;</span><br><span style="color: hsl(120, 100%, 40%);">+                        default:</span><br><span style="color: hsl(120, 100%, 40%);">+                              /* Can't be in this state and be a non dyn TS */</span><br><span style="color: hsl(120, 100%, 40%);">+                          OSMO_ASSERT(false);</span><br><span style="color: hsl(120, 100%, 40%);">+                   }</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span>            return true;</span><br><span> </span><br><span>     default:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12050">change 12050</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/12050"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ie438b4efaa9832c44009a92c3df698875f1fa9ae </div>
<div style="display:none"> Gerrit-Change-Number: 12050 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </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>