bsc_vty: fix wrong else-if statement

Related: CID#214331
Change-Id: I1b0f324a66757278f7c95d25a5192d4234432a6b
This commit is contained in:
Philipp Maier 2020-09-18 16:05:18 +02:00
parent 3b3a6ba6eb
commit 77189b535b
1 changed files with 2 additions and 1 deletions

View File

@ -5019,7 +5019,8 @@ static int lchan_act_single(struct vty *vty, struct gsm_lchan *lchan, const char
lchan_t = GSM_LCHAN_TCH_F;
else if (lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH && !strcmp(codec_str, "hr"))
lchan_t = GSM_LCHAN_TCH_H;
else if ((lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH || GSM_PCHAN_TCH_F_TCH_H_PDCH)
else if ((lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH
|| lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH)
&& !strcmp(codec_str, "fr"))
lchan_t = GSM_LCHAN_TCH_F;
else {