aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-06 03:05:02 +0700
committerlaforge <laforge@osmocom.org>2020-06-06 19:41:15 +0000
commit4977e135c886729835277780b30889ebec018ab2 (patch)
tree766bebda3b4386c14833efe6329bc22544ea2375 /include
parentb8200203d8c650123c7e19cef195ad287f53812f (diff)
common/scheduler: use boolean for channel activation state
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/scheduler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h
index 7a9da8fb..74102f32 100644
--- a/include/osmo-bts/scheduler.h
+++ b/include/osmo-bts/scheduler.h
@@ -72,7 +72,7 @@ enum trx_burst_type {
/* States each channel on a multiframe */
struct l1sched_chan_state {
/* scheduler */
- uint8_t active; /* Channel is active */
+ bool active; /* Channel is active */
ubit_t *dl_bursts; /* burst buffer for TX */
enum trx_burst_type dl_burst_type; /* GMSK or 8PSK burst type */
sbit_t *ul_bursts; /* burst buffer for RX */
@@ -175,8 +175,7 @@ int trx_sched_set_pchan(struct l1sched_trx *l1t, uint8_t tn,
enum gsm_phys_chan_config pchan);
/*! \brief set all matching logical channels active/inactive */
-int trx_sched_set_lchan(struct l1sched_trx *l1t, uint8_t chan_nr, uint8_t link_id,
- int active);
+int trx_sched_set_lchan(struct l1sched_trx *l1t, uint8_t chan_nr, uint8_t link_id, bool active);
/*! \brief set mode of all matching logical channels to given mode(s) */
int trx_sched_set_mode(struct l1sched_trx *l1t, uint8_t chan_nr, uint8_t rsl_cmode,