From 778aaedb952739af3c75901d94e735038b9a2fc7 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 23 Oct 2021 13:39:48 +0300 Subject: lchan: introduce and use lchan_is_tch() helper Change-Id: Icd832667cad1189e3e819c88bde837c4260aa252 --- include/osmo-bts/lchan.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/lchan.h b/include/osmo-bts/lchan.h index a7e90043..57999b1b 100644 --- a/include/osmo-bts/lchan.h +++ b/include/osmo-bts/lchan.h @@ -365,3 +365,6 @@ static inline bool lchan_is_dcch(const struct gsm_lchan *lchan) return false; } } + +#define lchan_is_tch(lchan) \ + ((lchan)->type == GSM_LCHAN_TCH_F || (lchan)->type == GSM_LCHAN_TCH_H) -- cgit v1.2.3