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:
parent
628853de74
commit
fc8c9880d9
|
@ -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,
|
int conf_lchans_as_pchan(struct gsm_bts_trx_ts *ts,
|
||||||
enum gsm_phys_chan_config pchan)
|
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) {
|
switch (pchan) {
|
||||||
case GSM_PCHAN_CCCH_SDCCH4_CBCH:
|
case GSM_PCHAN_CCCH_SDCCH4_CBCH:
|
||||||
case GSM_PCHAN_CCCH_SDCCH4:
|
case GSM_PCHAN_CCCH_SDCCH4:
|
||||||
|
|
Loading…
Reference in New Issue