fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/24568 )


Change subject: trx_sched_is_sacch_fn(): fix handling of dynamic timeslots
......................................................................

trx_sched_is_sacch_fn(): fix handling of dynamic timeslots

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
---
M src/common/scheduler_mframe.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/68/24568/1

diff --git a/src/common/scheduler_mframe.c b/src/common/scheduler_mframe.c
index b969407..f6476ec 100644
--- a/src/common/scheduler_mframe.c
+++ b/src/common/scheduler_mframe.c
@@ -1007,7 +1007,7 @@
        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];

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/24568
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: 2021q1
Gerrit-Change-Id: Ia5e337e897b595e7de6e504664c969b583cc02a1
Gerrit-Change-Number: 24568
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanits...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to