[PATCH] osmocom-bb[master]: host/trxcon/scheduler: notify transceiver about TS state

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:33:00 UTC 2018


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

host/trxcon/scheduler: notify transceiver about TS state

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


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/26/6726/1

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 @@
 	/* 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 @@
 		}
 	}
 
+	/* Notify transceiver about TS activation */
+	/* FIXME: set proper channel type */
+	trx_if_cmd_setslot(trx, ts_num, 1);
+
 	return 0;
 }
 
@@ -282,6 +289,9 @@
 	/* Free channel states */
 	talloc_free(ts->lchans);
 
+	/* Notify transceiver about that */
+	trx_if_cmd_setslot(trx, ts_num, 0);
+
 	return 0;
 }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5783066e7c1b01e4ebb28d10b03f3290ff8a0f37
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