aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-17 13:56:32 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-17 15:07:33 +0700
commite20baa31bf625cfb12ea964d36b7bb060ebbab30 (patch)
tree0f1065916b032ba1100713c50bdd269264f9497e
parentcf2226093ffdc9cdac571017b32c8c1257763fb4 (diff)
scheduler: use RSL_CHAN_NR_MASK in trx_sched_set_lchan()
-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 7e40e97e..5d46a250 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -988,7 +988,7 @@ int trx_sched_set_lchan(struct l1sched_trx *l1t, uint8_t chan_nr, uint8_t link_i
if ((trx_sched_multiframes[l1ts->mf_index].pchan == GSM_PCHAN_PDCH)
&& !(trx_chan_desc[i].flags & TRX_CHAN_FLAG_PDCH))
continue;
- if (trx_chan_desc[i].chan_nr == (chan_nr & 0xf8)
+ if (trx_chan_desc[i].chan_nr == (chan_nr & RSL_CHAN_NR_MASK)
&& trx_chan_desc[i].link_id == link_id) {
rc = 0;
if (chan_state->active == active)