trxcon/l1sched: drop Tx prims for not supported TCH modes

Otherwise we'll be attempting to transmit the same prim again and again.

Change-Id: I2f137a0b931e8e7d05a5d903023c50065f57bfa6
Related: OS#4396
This commit is contained in:
Vadim Yanitskiy 2023-05-22 20:36:55 +07:00
parent ad8f7794c9
commit 66c7ec1bf3
2 changed files with 8 additions and 4 deletions

View File

@ -303,8 +303,10 @@ int tx_tchf_fn(struct l1sched_lchan_state *lchan,
break;
}
default:
LOGP_LCHAND(lchan, LOGL_ERROR, "Invalid TCH mode: %u\n", lchan->tch_mode);
return -EINVAL;
LOGP_LCHAND(lchan, LOGL_ERROR,
"TCH mode %s is unknown or not supported\n",
gsm48_chan_mode_name(lchan->tch_mode));
goto free_bad_msg;
}
if (rc) {

View File

@ -523,8 +523,10 @@ int tx_tchh_fn(struct l1sched_lchan_state *lchan,
break;
}
default:
LOGP_LCHAND(lchan, LOGL_ERROR, "Invalid TCH mode: %u\n", lchan->tch_mode);
return -EINVAL;
LOGP_LCHAND(lchan, LOGL_ERROR,
"TCH mode %s is unknown or not supported\n",
gsm48_chan_mode_name(lchan->tch_mode));
goto free_bad_msg;
}
if (rc) {