Change in osmo-bts[master]: scheduler: fix: use ts_pchan() in trx_sched_set_cipher()

laforge gerrit-no-reply at lists.osmocom.org
Tue Jun 22 18:04:17 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/24746 )

Change subject: scheduler: fix: use ts_pchan() in trx_sched_set_cipher()
......................................................................

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

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index ea4aee4..93c1e85 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -1190,7 +1190,7 @@
 	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,

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Iccb8794253face54164af1ba344204eadab8f98b
Gerrit-Change-Number: 24746
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210622/9f20d0a4/attachment.htm>


More information about the gerrit-log mailing list