diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-07-29 18:13:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-27 01:23:49 +0000 |
commit | 5486025b182ae595d0ede7d32d0ce0db11748e19 (patch) | |
tree | 4a81327ca580ff31a7631ff1eb85cfda115ba239 | |
parent | 3673380cdbefe74ae5ea5b4c05ebd9edcc023844 (diff) |
chan_alloc.c: use ts_subslots() instead of subslots_per_pchan[]
The array will move to gsm_data_shared.c; to prepare, use the function
instead.
Change-Id: Icbea7dbd78abf6144e5291f531a97f96507d8cbf
-rw-r--r-- | openbsc/src/libbsc/chan_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c index d9808f42e..92a13586a 100644 --- a/openbsc/src/libbsc/chan_alloc.c +++ b/openbsc/src/libbsc/chan_alloc.c @@ -170,13 +170,13 @@ _lc_find_trx(struct gsm_bts_trx *trx, enum gsm_phys_chan_config pchan, /* The requested type matches the dynamic * timeslot's current mode. A channel may still * be available (think TCH/H). */ - check_subslots = subslots_per_pchan[ts->dyn.pchan_is]; + check_subslots = ts_subslots(ts); } else /* Otherwise this slot is not applicable. */ continue; } else { /* Not a dynamic channel, there is only one pchan kind: */ - check_subslots = subslots_per_pchan[pchan]; + check_subslots = ts_subslots(ts); } /* Is a sub-slot still available? */ |