summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-05-22 21:36:07 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-05-29 18:51:04 +0700
commit519f2d9c5b6b6fd7a630d3d0f7089bc7715e8eb1 (patch)
tree49f09957c7b04e2dfc12af159b914066b85520c1
parentf81a1711f2f1f1f0b1c419a21033cbb9104fc9d4 (diff)
trxcon/l1sched: use sched_tchh_dl_facch_map[] in rx_tchh_fn()
This is a more effecient way to check if FACCH/H is allowed. The mapping was added in a53e93fe9 and is already used for AMR. Change-Id: Ib4b409956326480679a436d28224b539d00779e2 Related: a53e93fe9 "trxcon: Initial support for forwarding AMR" Related: OS#4396
-rw-r--r--src/host/trxcon/src/sched_lchan_tchh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/src/sched_lchan_tchh.c b/src/host/trxcon/src/sched_lchan_tchh.c
index 04a8bff0..acf362e5 100644
--- a/src/host/trxcon/src/sched_lchan_tchh.c
+++ b/src/host/trxcon/src/sched_lchan_tchh.c
@@ -302,8 +302,8 @@ int rx_tchh_fn(struct l1sched_lchan_state *lchan,
case GSM48_CMODE_SIGN:
case GSM48_CMODE_SPEECH_V1: /* HR */
rc = gsm0503_tch_hr_decode(l2, buffer,
- !l1sched_tchh_facch_end(lchan->type, bi->fn, 0),
- &n_errors, &n_bits_total);
+ !sched_tchh_dl_facch_map[bi->fn % 26],
+ &n_errors, &n_bits_total);
break;
case GSM48_CMODE_SPEECH_AMR: /* AMR */
/* See comment in function rx_tchf_fn() */