[MERGED] osmocom-bb[fixeria/trx]: trxcon/scheduler: add CHAN_IS_SACCH macro

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Mar 23 08:34:14 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: trxcon/scheduler: add CHAN_IS_SACCH macro
......................................................................


trxcon/scheduler: add CHAN_IS_SACCH macro

Change-Id: I2fc90d4732433f221c628058c9812815edf9c8cb
---
M src/host/trxcon/sched_trx.h
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index bba8bcf..ce1c7f4 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -292,6 +292,9 @@
 #define CHAN_IS_TCH(chan) \
 	(chan == TRXC_TCHF || chan == TRXC_TCHH_0 || chan == TRXC_TCHH_1)
 
+#define CHAN_IS_SACCH(chan) \
+	(trx_lchan_desc[chan].link_id & TRX_CH_LID_SACCH)
+
 #define PRIM_IS_TCH(prim) \
 	CHAN_IS_TCH(prim->chan) && prim->payload_len != GSM_MACBLOCK_LEN
 

-- 
To view, visit https://gerrit.osmocom.org/7469
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2fc90d4732433f221c628058c9812815edf9c8cb
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: fixeria/trx
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list