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 <lafo...@gnumonks.org>

Reply via email to