aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-18 17:56:51 +0700
committerlaforge <laforge@osmocom.org>2020-10-19 15:04:22 +0000
commit68323527e7d8963c5a54b4db0d3b6392b741520d (patch)
treeda1f30678eab2b8d8b8e46500f78de95007d51bd
parentbdea34165b0aa8a4880549125c07ac9f223d0ef4 (diff)
scheduler: use RSL_CHAN_NR_MASK in trx_sched_set_cipher()
-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 5d46a250..7f80b028 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -1110,7 +1110,7 @@ int trx_sched_set_cipher(struct l1sched_trx *l1t, uint8_t chan_nr, int downlink,
/* skip if pchan type */
if (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)) {
chan_state = &l1ts->chan_state[i];
LOGP(DL1C, LOGL_NOTICE, "Set a5/%d %s for %s on trx=%d "
"ts=%d\n", algo,