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
This commit is contained in:
Neels Hofmeyr 2016-07-29 18:13:38 +02:00 committed by Harald Welte
parent 3673380cdb
commit 5486025b18
1 changed files with 2 additions and 2 deletions

View File

@ -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? */