diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-05-30 10:29:36 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-19 18:19:00 +0100 |
commit | df65c9afee986e683b858e1ffc71c76499ce60f6 (patch) | |
tree | 96326a51b268766eea0d459d2d05049ae207416a /include/osmocom/bsc | |
parent | 81260a6795a72140de7098770ff96ac0074b47fb (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.
Change-Id: Ic8bee8a515ee8aa9a99af71756fe60b8dd8f868b
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 f2a75c5b8..748e9cd9f 100644 --- a/include/osmocom/bsc/chan_alloc.h +++ b/include/osmocom/bsc/chan_alloc.h @@ -24,6 +24,9 @@ struct gsm_subscriber_connection; +/* Count number of free TS of given pchan type */ +int bts_count_free_ts(struct gsm_bts *bts, enum gsm_phys_chan_config pchan); + /* Allocate a logical channel (SDCCH, TCH, ...) */ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type, int allow_bigger); |