osmo-msc/openbsc/src/libcommon
Neels Hofmeyr c3f72f63af dyn TS: fix: ts_subslots() for TCH/F_PDCH in PDCH mode
In gsm_data_shared.c, add ts_pchan() to determine actual pchan type for dynamic
and non-dynamic TS.

Use in ts_subslots() to fix the value returned for TCH/F_PDCH in PDCH mode.
Adjust the assertion in channel_test.c accordingly.

Drop GSM_PCHAN_TCH_F_PDCH, which is now handled in ts_pchan().
Explicitly add GSM_PCHAN_PDCH as zero in subslots_per_pchan[] (cosmetic).
Adjust the comment in subslots_per_pchan[].

The fix for the number of subslots affects only one caller: bts_chan_load() in
chan_alloc.c. Before this, it would always include a TCH/F_PDCH in the
load_counter->total, now it is skipped when in PDCH mode. Whether this is the
way bts_chan_load() should handle dynamic TS is a separate discussion, so far
I'm only making sure that the two dyn TS kinds act in the same way:
TCH/F_TCH/H_PDCH is only counted when in TCH mode, and TCH/F_PDCH should match.

Change-Id: Icd6668667ad2be7ad20866ffd185bf3b8711ccd6
2016-09-28 00:28:01 +00:00
..
Makefile.am Consistenly format variables in */Makefile.am files 2016-09-15 15:55:02 +02:00
bsc_version.c bsc_version.c: update copyright date, add contributor 2016-06-17 04:52:30 +02:00
common_vty.c vty: Change the return type from enum to int 2015-09-24 15:39:30 +02:00
debug.c add DSUA debug constant 2016-06-13 09:18:51 +00:00
gsm_data.c Modify SI 13 field for control_ack_type 2016-09-17 10:00:58 +00:00
gsm_data_shared.c dyn TS: fix: ts_subslots() for TCH/F_PDCH in PDCH mode 2016-09-28 00:28:01 +00:00
gsm_subscriber_base.c subscr_name(): Handle case for subscr == NULL 2016-05-22 11:51:18 +00:00
socket.c make sure we still build on systems that don't have IPPROTO_GRE 2012-04-08 15:56:00 +02:00
talloc_ctx.c mscsplit: talloc_ctx_init(): decouple from global tall_bsc_ctx 2016-09-26 02:25:46 +02:00