aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-23 13:39:48 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-23 15:42:32 +0300
commit778aaedb952739af3c75901d94e735038b9a2fc7 (patch)
tree9da0f6536b6746d9dcbc30cd944ebc23e5a23515 /src/common/rsl.c
parent991020c049c63768e147d49bd2918c2d2e0f6dcb (diff)
lchan: introduce and use lchan_is_tch() helper
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index e8f9aa0d..c100687c 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -3579,8 +3579,7 @@ int lapdm_rll_tx_cb(struct msgb *msg, struct lapdm_entity *le, void *ctx)
rsl_msg_name(rh->msg_type));
/* REL_IND handling */
- if (rh->msg_type == RSL_MT_REL_IND &&
- (lchan->type == GSM_LCHAN_TCH_F || lchan->type == GSM_LCHAN_TCH_H)) {
+ if (rh->msg_type == RSL_MT_REL_IND && lchan_is_tch(lchan)) {
LOGPLCHAN(lchan, DRSL, LOGL_INFO,
"Scheduling %s to L3 in next associated TCH-RTS.ind\n",
rsl_msg_name(rh->msg_type));