aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-22 18:49:34 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-22 18:59:16 +0200
commita6af31cd443dda1642459c5887bc18d21f559d85 (patch)
treed33241ede65c39f9d64a7f660932b64830d62386
parentf47fa70b9f2bebe4b12ed9ef41d22a61c8ac657c (diff)
scheduler: fix wrong union field in trx_sched_tch_req()
I introduced this regression in [1] during a massive refactoring. Basically, I copy-pasted a chunk from trx_sched_ph_data_req(), but forgot to change the union field. This broke voice calls, because all TCH.req primitives would be enqueued to wrong timeslot. Change-Id: If841e6ac40a3c6344c304ab970755d6a2d292156 Fixes: [1] I7c4379e43a25e9d858d582a99bf6c4b65c9af481
-rw-r--r--src/common/scheduler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 3dd76931..ea4aee42 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -868,7 +868,7 @@ int trx_sched_ph_data_req(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap
int trx_sched_tch_req(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
{
- uint8_t tn = L1SAP_CHAN2TS(l1sap->u.data.chan_nr);
+ uint8_t tn = L1SAP_CHAN2TS(l1sap->u.tch.chan_nr);
struct l1sched_ts *l1ts = trx->ts[tn].priv;
LOGL1S(DL1P, LOGL_DEBUG, l1ts, -1, l1sap->u.tch.fn,