<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13095">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lchan_fsm: do not include 12.2k in active set on HR channels<br><br>When "Config-NB-Code = 1" is set via the S-bits, then the resulting<br>multirate configuration IE will contain 12.2K. Since the generator<br>function is not aware if the lchan is activated for HR or FR it sets the<br>flag for 12.2k always.<br><br>We have to add a check here in order to set the 12.2k flag in the IE<br>back to 0 so that the active set contains a set of useable rates.<br><br>Change-Id: I40e7f568f4822040a2d1e78f22dbba0e49d0167e<br>Related: SYS#4470<br>---<br>M src/osmo-bsc/lchan_fsm.c<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/95/13095/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/lchan_fsm.c b/src/osmo-bsc/lchan_fsm.c</span><br><span>index 0c54efb..7cbba44 100644</span><br><span>--- a/src/osmo-bsc/lchan_fsm.c</span><br><span>+++ b/src/osmo-bsc/lchan_fsm.c</span><br><span>@@ -545,6 +545,15 @@</span><br><span>                         return;</span><br><span>              }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+         /* Do not include 12.2 kbps rate when S1 is set. */</span><br><span style="color: hsl(120, 100%, 40%);">+           if (lchan->type == GSM_LCHAN_TCH_H && (info->s15_s0 & GSM0808_SC_CFG_AMR_4_75_5_90_7_40_12_20)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   /* See also 3GPP TS 28.062, chapter 7.11.3.1.3: "In case this Configuration</span><br><span style="color: hsl(120, 100%, 40%);">+                       * "Config-NB-Code = 1" is signalled in the TFO Negotiation for the HR_AMR</span><br><span style="color: hsl(120, 100%, 40%);">+                   * Codec Type,then it shall be assumed that AMR mode 12.2 kbps is (of course)</span><br><span style="color: hsl(120, 100%, 40%);">+                  * not included. */</span><br><span style="color: hsl(120, 100%, 40%);">+                   mr_conf.m12_2 = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+            }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>          if (lchan_mr_config(lchan, &mr_conf) < 0) {</span><br><span>                   lchan_fail("Can not generate multirate configuration IE\n");</span><br><span>                       return;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13095">change 13095</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/13095"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I40e7f568f4822040a2d1e78f22dbba0e49d0167e </div>
<div style="display:none"> Gerrit-Change-Number: 13095 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>