aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 45fc7012..8b0c761c 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -1272,7 +1272,8 @@ bfi:
/* If there is an ECU active on this channel, use its output */
if (lchan->ecu_state) {
rc = osmo_ecu_frame_out(lchan->ecu_state, tch_data);
- goto compose_l1sap;
+ if (rc >= 0) /* Otherwise we send a BFI */
+ goto compose_l1sap;
}
switch (tch_mode) {
@@ -1485,7 +1486,8 @@ bfi:
/* If there is an ECU active on this channel, use its output */
if (lchan->ecu_state) {
rc = osmo_ecu_frame_out(lchan->ecu_state, tch_data);
- goto compose_l1sap;
+ if (rc >= 0) /* Otherwise we send a BFI */
+ goto compose_l1sap;
}
switch (tch_mode) {