aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-11-22 14:00:19 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2020-01-03 12:56:00 +0100
commit66c17cfc2d5d2a68de0484562cef46d142dd2f4b (patch)
treea40ffeedf88785f0699e212971f020e558d2bb6d /src/common/l1sap.c
parenta2392f0f9e07e6220c943b458360f1fddc1528b6 (diff)
rsl: ensure measurement reports are sent
osmo-bts currently does not generate a measurement report in case the SACCH of the related traffic channel is lost. This is a problem because the moment when reception gets bad measurmenet reporting is crucial to carry out handover decisions effectively. The presence of a SACCH block controls the conclusion of the measurement interval and the sending of the RSL measurement report. The latter one not only requires a measurmenet indication, it also requires a fully intact SACCH block. Lets use the NOPE / IDLE indications from V1 of the TRXD protocol to ensure a SACCH block is always reported up to l1sap.c. In cases where the SACCH is bad, trigger the sending of the RSL measurement report manually without attaching the measurmenet data from the MS (which we do not have in this case) Related: OS#2975 Depends: osmo-ttcn3-hacks Ib2f511991349ab15e02db9c5e45f0df3645835a4 Change-Id: Idfa8ef94e8cf131ff234dac8f93f337051663ae2
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index b6e21faf..49302573 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1238,8 +1238,17 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
/* bad frame */
if (len == 0) {
- if (L1SAP_IS_LINK_SACCH(link_id))
+ if (L1SAP_IS_LINK_SACCH(link_id)) {
+ /* In case we loose a SACCH block, we must take care
+ * that the related measurement report is sent via RSL.
+ * This is a fallback method. The report will also
+ * lack the measurement report from the MS side. See
+ * also rsl.c:lapdm_rll_tx_cb() */
+ le = &lchan->lapdm_ch.lapdm_acch;
+ rsl_tx_meas_res(lchan, NULL, 0, le);
+
radio_link_timeout(lchan, 1);
+ }
return -EINVAL;
}