<p>fixeria <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/15707">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">L1SAP: use RSL_CHAN_* definitions from libosmogsm<br><br>Change-Id: I2708b5d5bb6b92f90766ac752bafd28cff2549b0<br>---<br>M include/osmo-bts/l1sap.h<br>1 file changed, 21 insertions(+), 10 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmo-bts/l1sap.h b/include/osmo-bts/l1sap.h</span><br><span>index 70b4564..ccfcacc 100644</span><br><span>--- a/include/osmo-bts/l1sap.h</span><br><span>+++ b/include/osmo-bts/l1sap.h</span><br><span>@@ -2,6 +2,7 @@</span><br><span> #define L1SAP_H</span><br><span> </span><br><span> #include <osmocom/gsm/protocol/gsm_04_08.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/gsm/protocol/gsm_08_58.h></span><br><span> </span><br><span> /* lchan link ID */</span><br><span> #define LID_SACCH 0x40</span><br><span>@@ -15,16 +16,26 @@</span><br><span> #define L1SAP_CHAN2SS_BCCH(chan_nr) (CCCH_LCHAN)</span><br><span> </span><br><span> /* logical channel from chan_nr + link_id */</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_LINK_SACCH(link_id) ((link_id & 0xC0) == LID_SACCH)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_TCHF(chan_nr) ((chan_nr & 0xf8) == 0x08)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_TCHH(chan_nr) ((chan_nr & 0xf0) == 0x10)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_SDCCH4(chan_nr) ((chan_nr & 0xe0) == 0x20)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_SDCCH8(chan_nr) ((chan_nr & 0xc0) == 0x40)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_BCCH(chan_nr) ((chan_nr & 0xf8) == 0x80)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_RACH(chan_nr) ((chan_nr & 0xf8) == 0x88)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_AGCH_PCH(chan_nr) ((chan_nr & 0xf8) == 0x90)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_PDCH(chan_nr) ((chan_nr & 0xf8) == 0xc0)</span><br><span style="color: hsl(0, 100%, 40%);">-#define L1SAP_IS_CHAN_CBCH(chan_nr) ((chan_nr & 0xf8) == 0xc8)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_LINK_SACCH(link_id) \</span><br><span style="color: hsl(120, 100%, 40%);">+     ((link_id & 0xC0) == LID_SACCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_TCHF(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+    ((chan_nr & 0xf8) == RSL_CHAN_Bm_ACCHs)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_TCHH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+    ((chan_nr & 0xf0) == RSL_CHAN_Lm_ACCHs)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_SDCCH4(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+  ((chan_nr & 0xe0) == RSL_CHAN_SDCCH4_ACCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_SDCCH8(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+       ((chan_nr & 0xc0) == RSL_CHAN_SDCCH8_ACCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_BCCH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+ ((chan_nr & 0xf8) == RSL_CHAN_BCCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_RACH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+        ((chan_nr & 0xf8) == RSL_CHAN_RACH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_AGCH_PCH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+    ((chan_nr & 0xf8) == RSL_CHAN_PCH_AGCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_PDCH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+    ((chan_nr & 0xf8) == RSL_CHAN_OSMO_PDCH)</span><br><span style="color: hsl(120, 100%, 40%);">+#define L1SAP_IS_CHAN_CBCH(chan_nr) \</span><br><span style="color: hsl(120, 100%, 40%);">+   ((chan_nr & 0xf8) == RSL_CHAN_OSMO_CBCH4)</span><br><span> </span><br><span> /* rach type from ra */</span><br><span> #define L1SAP_IS_PACKET_RACH(ra) ((ra & 0xf0) == 0x70 && (ra & 0x0f) != 0x0f)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/15707">change 15707</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/+/15707"/><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: I2708b5d5bb6b92f90766ac752bafd28cff2549b0 </div>
<div style="display:none"> Gerrit-Change-Number: 15707 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>