[PATCH] osmo-bts[master]: sysmo/l1_if.c: Allow passing low quality buffers to l1if_tch_rx

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Jun 26 16:11:46 UTC 2017


Review at  https://gerrit.osmocom.org/3056

sysmo/l1_if.c: Allow passing low quality buffers to l1if_tch_rx

We want to always call l1if_tch_rx in order to avoid losing triggering
events on the upper layers.

Change-Id: If5df8940fab833eb4e3ed851880b66987d356031
---
M src/osmo-bts-sysmo/l1_if.c
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/56/3056/1

diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index f564836..9666425 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -951,12 +951,6 @@
 
 	process_meas_res(trx, chan_nr, fn, data_ind);
 
-	if (data_ind->measParam.fLinkQuality < btsb->min_qual_norm
-	 && data_ind->msgUnitParam.u8Size != 0) {
-		msgb_free(l1p_msg);
-		return 0;
-	}
-
 	DEBUGP(DL1P, "Rx PH-DATA.ind %s (hL2 %08x): %s",
 		get_value_string(femtobts_l1sapi_names, data_ind->sapi),
 		data_ind->hLayer2,
@@ -973,6 +967,12 @@
 		return rc;
 	}
 
+	if (data_ind->measParam.fLinkQuality < btsb->min_qual_norm
+	 && data_ind->msgUnitParam.u8Size != 0) {
+		msgb_free(l1p_msg);
+		return 0;
+	}
+
 	/* fill L1SAP header */
 	sap_msg = l1sap_msgb_alloc(data_ind->msgUnitParam.u8Size);
 	l1sap = msgb_l1sap_prim(sap_msg);

-- 
To view, visit https://gerrit.osmocom.org/3056
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If5df8940fab833eb4e3ed851880b66987d356031
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list