diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-05-22 20:36:55 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-05-29 18:51:04 +0700 |
commit | 66c7ec1bf35b4a2f21c91231f36bd8296a294d6e (patch) | |
tree | 2ab20355460d01ea4796f37ed7beeb9a8bf8f5c3 /src | |
parent | ad8f7794c9b7c5c03f34e1d6a273e8b5f7c9da30 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/host/trxcon/src/sched_lchan_tchf.c | 6 | ||||
-rw-r--r-- | src/host/trxcon/src/sched_lchan_tchh.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/host/trxcon/src/sched_lchan_tchf.c b/src/host/trxcon/src/sched_lchan_tchf.c index fca21088..1a00a936 100644 --- a/src/host/trxcon/src/sched_lchan_tchf.c +++ b/src/host/trxcon/src/sched_lchan_tchf.c @@ -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) { diff --git a/src/host/trxcon/src/sched_lchan_tchh.c b/src/host/trxcon/src/sched_lchan_tchh.c index e3e4cded..303d59ee 100644 --- a/src/host/trxcon/src/sched_lchan_tchh.c +++ b/src/host/trxcon/src/sched_lchan_tchh.c @@ -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) { |