summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-03-09 17:09:44 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-03-11 17:38:29 +0700
commit40e71126abc26eb4d3deea580ca8c8f1c6c8c73b (patch)
tree7fbc3102bfb84b5f2b36123f68c54283d5940cf2
parent47aaf962fbd358f5b66a2d349160f25c521e6393 (diff)
trxcon/sched_lchan_xcch.c: always send data indications
We shall always send data frame indications, even if received frame is incomplete or decoding was failed. This is required for proper Measurement Reporting. Change-Id: I7beee7e797f488d04c3b59bee9501ce823717092
-rw-r--r--src/host/trxcon/sched_lchan_xcch.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/host/trxcon/sched_lchan_xcch.c b/src/host/trxcon/sched_lchan_xcch.c
index f3516741..04c9f4ec 100644
--- a/src/host/trxcon/sched_lchan_xcch.c
+++ b/src/host/trxcon/sched_lchan_xcch.c
@@ -94,8 +94,6 @@ int rx_data_fn(struct trx_instance *trx, struct trx_ts *ts,
(*first_fn) % ts->mf_layout->period,
ts->mf_layout->period,
lchan_desc->name);
-
- return -1;
}
/* Attempt to decode */
@@ -106,13 +104,18 @@ int rx_data_fn(struct trx_instance *trx, struct trx_ts *ts,
(*first_fn) % ts->mf_layout->period,
ts->mf_layout->period,
lchan_desc->name);
+
+ /**
+ * We should anyway send dummy frame for
+ * proper measurement reporting...
+ */
+ return sched_send_dt_ind(trx, ts, lchan, NULL, 0,
+ n_errors, true, false);
}
/* Send a L2 frame to the higher layers */
- sched_send_dt_ind(trx, ts, lchan, l2, GSM_MACBLOCK_LEN,
- n_errors, rc != 0, false);
-
- return 0;
+ return sched_send_dt_ind(trx, ts, lchan, l2, GSM_MACBLOCK_LEN,
+ n_errors, false, false);
}
int tx_data_fn(struct trx_instance *trx, struct trx_ts *ts,