diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-05-30 10:29:36 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-01 03:37:43 +0100 |
commit | 1708a704dc88145cc0444c90d42364746e2f27fd (patch) | |
tree | 050a7f85481f64bc7875b2381267d4709181e8fa /include/osmocom/bsc | |
parent | 188a49319399cb242018072bab98fd0da46b4a62 (diff) |
HO: Count number of free timeslot on a given BTS
This is needed for handover algorithm to balance free slots and to prevent
congestion of one cell, while other cells still have free capacities.
Diffstat (limited to 'include/osmocom/bsc')
-rw-r--r-- | include/osmocom/bsc/chan_alloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/bsc/chan_alloc.h b/include/osmocom/bsc/chan_alloc.h index f2d3c781d..63c072496 100644 --- a/include/osmocom/bsc/chan_alloc.h +++ b/include/osmocom/bsc/chan_alloc.h @@ -35,6 +35,9 @@ struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts, /* Regular physical channel (TS) */ void ts_free(struct gsm_bts_trx_ts *ts); +/* Count number of free TS of given pchan type */ +int lc_count_bts(struct gsm_bts *bts, enum gsm_phys_chan_config pchan); + /* Find an allocated channel for a specified subscriber */ struct gsm_subscriber_connection *connection_for_subscr(struct gsm_subscriber *subscr); |