summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-14 09:18:03 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commitb8138c7408caf0a305d6fa4019bf20e7cbfbdc1c (patch)
treefa8262c8350f26e6b80ab39c03337d0c283e6c92
parentc8c62c18e39faec573d8aaf5525965392a162548 (diff)
host/trxcon/scheduler: notify transceiver about TS state
-rw-r--r--src/host/trxcon/sched_trx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 3c5e265..88d9d97 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -202,6 +202,9 @@ void sched_trx_del_ts(struct trx_instance *trx, int ts_num)
/* Remove ts from list */
llist_del(&ts->list);
talloc_free(ts);
+
+ /* Notify transceiver about that */
+ trx_if_cmd_setslot(trx, ts_num, 0);
}
int sched_trx_configure_ts(struct trx_instance *trx, int ts_num,
@@ -258,6 +261,10 @@ int sched_trx_configure_ts(struct trx_instance *trx, int ts_num,
}
}
+ /* Notify transceiver about TS activation */
+ /* FIXME: set proper channel type */
+ trx_if_cmd_setslot(trx, ts_num, 1);
+
return 0;
}
@@ -282,6 +289,9 @@ int sched_trx_reset_ts(struct trx_instance *trx, int ts_num)
/* Free channel states */
talloc_free(ts->lchans);
+ /* Notify transceiver about that */
+ trx_if_cmd_setslot(trx, ts_num, 0);
+
return 0;
}