diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-22 16:01:43 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-22 19:03:47 +0200 |
commit | f1bdf605b5857cdcddbce10b24d3f816e81f79b6 (patch) | |
tree | 1151e842d00a2553f137e282ab2506c7704e8fe5 | |
parent | a6af31cd443dda1642459c5887bc18d21f559d85 (diff) |
scheduler: fix: use ts_pchan() in trx_sched_set_cipher()
Properly handle dynamic timeslots, do not access 'pchan' directly.
Change-Id: Iccb8794253face54164af1ba344204eadab8f98b
Fixes: [1] I7c4379e43a25e9d858d582a99bf6c4b65c9af481
-rw-r--r-- | src/common/scheduler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c index ea4aee42..93c1e85e 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -1190,7 +1190,7 @@ int trx_sched_set_cipher(struct gsm_lchan *lchan, uint8_t chan_nr, bool downlink int i, rc = -EINVAL; /* no cipher for PDCH */ - if (lchan->ts->pchan == GSM_PCHAN_PDCH) + if (ts_pchan(lchan->ts) == GSM_PCHAN_PDCH) return 0; /* VAMOS: convert Osmocom specific channel number to a generic one, |