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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Oct 19 15:04:22 UTC 2020


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

Change subject: scheduler: use RSL_CHAN_NR_MASK in trx_sched_set_cipher()
......................................................................

scheduler: use RSL_CHAN_NR_MASK in trx_sched_set_cipher()

Change-Id: I26fb115ce0a7c33453b05c8fcee8a21d1a2a97d5
---
M src/common/scheduler.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 5d46a25..7f80b02 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -1110,7 +1110,7 @@
 		/* 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,

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I26fb115ce0a7c33453b05c8fcee8a21d1a2a97d5
Gerrit-Change-Number: 20719
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201019/f4b297cd/attachment.htm>


More information about the gerrit-log mailing list