aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-03 02:36:38 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-05 00:39:44 +0200
commit13a5058c78e4628ee33a6154ad69323d2f5e74f3 (patch)
tree1802b345921dd0a219531cff53190b6a76b7e900
parentfe879e3a0a023e350332e05f63a6abb5fde6aa15 (diff)
trx_sched_is_sacch_fn(): fix handling of dynamic timeslots2021q1
There is no GSM_PCHAN_TCH_F{_TCH_H}_PDCH in trx_sched_multiframes[], so find_sched_mframe_idx() would always return -1 for these. Fix this by using ts_pchan(), which returns currently active pchan type. Change-Id: Ia5e337e897b595e7de6e504664c969b583cc02a1
-rw-r--r--src/common/scheduler_mframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/scheduler_mframe.c b/src/common/scheduler_mframe.c
index b969407c..f6476ece 100644
--- a/src/common/scheduler_mframe.c
+++ b/src/common/scheduler_mframe.c
@@ -1007,7 +1007,7 @@ bool trx_sched_is_sacch_fn(struct gsm_bts_trx_ts *ts, uint32_t fn, bool uplink)
const struct trx_sched_frame *frame;
enum trx_chan_type ch_type;
- i = find_sched_mframe_idx(ts->pchan, ts->nr);
+ i = find_sched_mframe_idx(ts_pchan(ts), ts->nr);
if (i < 0)
return -EINVAL;
sched = &trx_sched_multiframes[i];