From e20baa31bf625cfb12ea964d36b7bb060ebbab30 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 17 Oct 2020 13:56:32 +0700 Subject: scheduler: use RSL_CHAN_NR_MASK in trx_sched_set_lchan() Change-Id: I3dd2c90f510444cda38516bd9a1a207877bebadc --- src/common/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3