TRX: fix building with latest DTX changes

Bring up-to-speed with latest changes in OpenBSC.

Change-Id: I16b24b2cd09600e215de163e7b5baae329887c9e
This commit is contained in:
Max 2016-10-13 11:45:56 +02:00
parent babd05661d
commit de9dbe7958
1 changed files with 2 additions and 2 deletions

View File

@ -1123,7 +1123,7 @@ bfi:
/* indicate bad frame */
switch (tch_mode) {
case GSM48_CMODE_SPEECH_V1: /* FR */
if (lchan->tch.ul_sid)
if (lchan->tch.dtx.ul_sid)
return 0; /* DTXu: pause in progress */
memset(tch_data, 0, GSM_FR_BYTES);
rc = GSM_FR_BYTES;
@ -1297,7 +1297,7 @@ bfi:
/* indicate bad frame */
switch (tch_mode) {
case GSM48_CMODE_SPEECH_V1: /* HR */
if (lchan->tch.ul_sid)
if (lchan->tch.dtx.ul_sid)
return 0; /* DTXu: pause in progress */
tch_data[0] = 0x70; /* F = 0, FT = 111 */
memset(tch_data + 1, 0, 14);