<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24437">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">[VAMOS] rsl_lchan_lookup(): use ABIS_RSL_CHAN_NR_CBITS_* macros<br><br>Change-Id: Iec3250e3a59f8d428d7e7be2ceb71f7086a68e7b<br>Related: SYS#4895, OS#4941<br>---<br>M src/common/gsm_data.c<br>1 file changed, 4 insertions(+), 4 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/37/24437/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/gsm_data.c b/src/common/gsm_data.c</span><br><span>index 9a54912..8425d1a 100644</span><br><span>--- a/src/common/gsm_data.c</span><br><span>+++ b/src/common/gsm_data.c</span><br><span>@@ -282,24 +282,24 @@</span><br><span>       if (rc)</span><br><span>              *rc = -EINVAL;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      if (cbits == 0x01) {</span><br><span style="color: hsl(120, 100%, 40%);">+  if (cbits == ABIS_RSL_CHAN_NR_CBITS_Bm_ACCHs) {</span><br><span>              lch_idx = 0;    /* TCH/F */</span><br><span>          if (ts->pchan != GSM_PCHAN_TCH_F &&</span><br><span>                   ts->pchan != GSM_PCHAN_PDCH &&</span><br><span>                    ts->pchan != GSM_PCHAN_TCH_F_PDCH &&</span><br><span>              ts->pchan != GSM_PCHAN_TCH_F_TCH_H_PDCH)</span><br><span>                      ok = false;</span><br><span style="color: hsl(0, 100%, 40%);">-     } else if ((cbits & 0x1e) == 0x02) {</span><br><span style="color: hsl(120, 100%, 40%);">+      } else if ((cbits & 0x1e) == ABIS_RSL_CHAN_NR_CBITS_Lm_ACCHs(0)) {</span><br><span>               lch_idx = cbits & 0x1;      /* TCH/H */</span><br><span>          if (ts->pchan != GSM_PCHAN_TCH_H &&</span><br><span>                   ts->pchan != GSM_PCHAN_TCH_F_TCH_H_PDCH)</span><br><span>                      ok = false;</span><br><span style="color: hsl(0, 100%, 40%);">-     } else if ((cbits & 0x1c) == 0x04) {</span><br><span style="color: hsl(120, 100%, 40%);">+      } else if ((cbits & 0x1c) == ABIS_RSL_CHAN_NR_CBITS_SDCCH4_ACCH(0)) {</span><br><span>            lch_idx = cbits & 0x3;      /* SDCCH/4 */</span><br><span>                if (ts->pchan != GSM_PCHAN_CCCH_SDCCH4 &&</span><br><span>                     ts->pchan != GSM_PCHAN_CCCH_SDCCH4_CBCH)</span><br><span>                      ok = false;</span><br><span style="color: hsl(0, 100%, 40%);">-     } else if ((cbits & 0x18) == 0x08) {</span><br><span style="color: hsl(120, 100%, 40%);">+      } else if ((cbits & 0x18) == ABIS_RSL_CHAN_NR_CBITS_SDCCH8_ACCH(0)) {</span><br><span>            lch_idx = cbits & 0x7;      /* SDCCH/8 */</span><br><span>                if (ts->pchan != GSM_PCHAN_SDCCH8_SACCH8C &&</span><br><span>                  ts->pchan != GSM_PCHAN_SDCCH8_SACCH8C_CBCH)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/24437">change 24437</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/c/osmo-bts/+/24437"/><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-Change-Id: Iec3250e3a59f8d428d7e7be2ceb71f7086a68e7b </div>
<div style="display:none"> Gerrit-Change-Number: 24437 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>