[PATCH] osmocom-bb[master]: host/trxcon/scheduler: fix channel deactivation

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:32:41 UTC 2018


Review at  https://gerrit.osmocom.org/6702

host/trxcon/scheduler: fix channel deactivation

Change-Id: I7c99b7bd99619084727af290b388f7492ba58531
---
M src/host/trxcon/sched_trx.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/02/6702/1

diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 5cf8779..5499a24 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -312,9 +312,9 @@
 	if (lchan == NULL)
 		return -EINVAL;
 
-	if (lchan->active) {
+	if (!lchan->active) {
 		LOGP(DSCH, LOGL_ERROR, "Logical channel %s already deactivated "
-			"on ts=%d", trx_lchan_desc[chan].name, ts->index);
+			"on ts=%d\n", trx_lchan_desc[chan].name, ts->index);
 		return -EINVAL;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/6702
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c99b7bd99619084727af290b388f7492ba58531
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list