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

host/trxcon/scheduler: fix TS index in sched_trx_configure_ts()

TS index was not assigned after allocation of a new one.

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


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/31/6731/1

diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 88d9d97..1effeb7 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -223,6 +223,9 @@
                ts = sched_trx_add_ts(trx, ts_num);
                if (ts == NULL)
                        return -ENOMEM;
+
+               /* Assign TS index */
+               ts->index = ts_num;
        }
 
        /* Init queue primitives for TX */

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b62218f863acf27fb1d1f46b273b345b97d33d8
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to