conf_lchans_as_pchan(): initialize all lchans with GSM_LCHAN_NONE

This function is called during the OML bootstrapping, and also
when a dynamic timeslot switches between PDCH and TCH/{F,H}.
In the later case, after switching from TCH/{F,H} to PDCH, some
lchans might still have the old type assigned.

Let's ensure that all logical channels are properly updated.

Change-Id: I44726f2bfb979c2fa2f5f30c5b11700cf4b3399d
Related: SYS#5313, OS#1569
This commit is contained in:
Vadim Yanitskiy 2021-06-08 01:46:50 +02:00
parent 628853de74
commit fc8c9880d9
1 changed files with 3 additions and 0 deletions

View File

@ -826,6 +826,9 @@ static inline void lchans_type_set(struct gsm_bts_trx_ts *ts,
int conf_lchans_as_pchan(struct gsm_bts_trx_ts *ts,
enum gsm_phys_chan_config pchan)
{
/* Initialize all lchans with GSM_LCHAN_NONE first */
lchans_type_set(ts, GSM_LCHAN_NONE, ARRAY_SIZE(ts->lchan));
switch (pchan) {
case GSM_PCHAN_CCCH_SDCCH4_CBCH:
case GSM_PCHAN_CCCH_SDCCH4: